From 72e957fa1f32d9283f01c1dcaf8f61f52e8591b9 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Fri, 27 Mar 2015 09:23:22 -0500 Subject: [PATCH] Bug 1148382 - Update Shumway to version 0.10.312. r=till --- .../extensions/shumway/chrome/ShumwayCom.jsm | 9 + .../shumway/content/ShumwayBootstrapUtils.jsm | 8 + .../content/ShumwayStreamConverter.jsm | 43 +- .../extensions/shumway/content/shumway.gfx.js | 12342 ++++---- .../shumway/content/shumway.player.js | 24052 ++++++++-------- .../extensions/shumway/content/version.txt | 4 +- 6 files changed, 18269 insertions(+), 18189 deletions(-) diff --git a/browser/extensions/shumway/chrome/ShumwayCom.jsm b/browser/extensions/shumway/chrome/ShumwayCom.jsm index 9351c362d14b..2edf3df129a0 100644 --- a/browser/extensions/shumway/chrome/ShumwayCom.jsm +++ b/browser/extensions/shumway/chrome/ShumwayCom.jsm @@ -162,6 +162,15 @@ var ShumwayCom = { environment.swfUrl, environment.privateBrowsing); }, + getWeakMapKeys: function (weakMap) { + var keys = Components.utils.nondeterministicGetWeakMapKeys(weakMap); + var result = new content.Array(); + keys.forEach(function (key) { + result.push(key); + }); + return result; + }, + setLoadFileCallback: function (callback) { onLoadFileCallback = callback; }, diff --git a/browser/extensions/shumway/content/ShumwayBootstrapUtils.jsm b/browser/extensions/shumway/content/ShumwayBootstrapUtils.jsm index 50d8d84071ea..9d1dcfb7cd92 100644 --- a/browser/extensions/shumway/content/ShumwayBootstrapUtils.jsm +++ b/browser/extensions/shumway/content/ShumwayBootstrapUtils.jsm @@ -98,6 +98,10 @@ var ShumwayBootstrapUtils = { isRegistered: false, register: function () { + if (this.isRegistered) { + return; + } + this.isRegistered = true; // Register the components. @@ -121,6 +125,10 @@ var ShumwayBootstrapUtils = { }, unregister: function () { + if (!this.isRegistered) { + return; + } + this.isRegistered = false; // Remove the contract/component. diff --git a/browser/extensions/shumway/content/ShumwayStreamConverter.jsm b/browser/extensions/shumway/content/ShumwayStreamConverter.jsm index 505b83e9d839..b441c6ed1c60 100644 --- a/browser/extensions/shumway/content/ShumwayStreamConverter.jsm +++ b/browser/extensions/shumway/content/ShumwayStreamConverter.jsm @@ -392,21 +392,19 @@ ShumwayStreamConverterBase.prototype = { } } - if (!url) { // at this point url shall be known -- asserting - throw new Error('Movie url is not specified'); - } - + baseUrl = pageUrl; if (objectParams.base) { - baseUrl = Services.io.newURI(objectParams.base, null, pageUrl).spec; - } else { - baseUrl = pageUrl; + try { + var parsedPageUrl = Services.io.newURI(pageUrl); + baseUrl = Services.io.newURI(objectParams.base, null, parsedPageUrl).spec; + } catch (e) { /* ignore */ } } var movieParams = {}; if (objectParams.flashvars) { movieParams = parseQueryString(objectParams.flashvars); } - var queryStringMatch = /\?([^#]+)/.exec(url); + var queryStringMatch = url && /\?([^#]+)/.exec(url); if (queryStringMatch) { var queryStringParams = parseQueryString(queryStringMatch[1]); for (var i in queryStringParams) { @@ -416,7 +414,8 @@ ShumwayStreamConverterBase.prototype = { } } - var allowScriptAccess = isScriptAllowed(objectParams.allowscriptaccess, url, pageUrl); + var allowScriptAccess = !!url && + isScriptAllowed(objectParams.allowscriptaccess, url, pageUrl); var startupInfo = {}; startupInfo.window = window; @@ -494,6 +493,18 @@ ShumwayStreamConverterBase.prototype = { var domWindow = getDOMWindow(channel); let startupInfo = converter.getStartupInfo(domWindow, converter.getUrlHint(originalURI)); + + listener.onStopRequest(aRequest, context, statusCode); + + if (!startupInfo.url) { + // Special case when movie URL is not specified, e.g. swfobject + // checks only version. No need to instantiate the flash plugin. + if (startupInfo.embedTag) { + setupSimpleExternalInterface(startupInfo.embedTag); + } + return; + } + if (!isShumwayEnabledFor(startupInfo)) { fallbackToNativePlugin(domWindow, false, true); return; @@ -515,8 +526,6 @@ ShumwayStreamConverterBase.prototype = { ActivationQueue.enqueue(startupInfo, function(domWindow) { activateShumwayScripts(domWindow); }.bind(null, domWindow)); - - listener.onStopRequest(aRequest, context, statusCode); } }; @@ -539,6 +548,18 @@ ShumwayStreamConverterBase.prototype = { } }; +function setupSimpleExternalInterface(embedTag) { + Components.utils.exportFunction(function (variable) { + switch (variable) { + case '$version': + return 'SHUMWAY 10,0,0'; + default: + log('GetVariable: ' + variable); + return undefined; + } + }, embedTag.wrappedJSObject, {defineAs: 'GetVariable'}); +} + function isScriptAllowed(allowScriptAccessParameter, url, pageUrl) { if (!allowScriptAccessParameter) { allowScriptAccessParameter = 'sameDomain'; diff --git a/browser/extensions/shumway/content/shumway.gfx.js b/browser/extensions/shumway/content/shumway.gfx.js index c6ba071c1c5c..0e943ff09cf8 100644 --- a/browser/extensions/shumway/content/shumway.gfx.js +++ b/browser/extensions/shumway/content/shumway.gfx.js @@ -16,8 +16,8 @@ */ console.time("Load Shared Dependencies"); var Shumway, Shumway$$inline_0 = Shumway || (Shumway = {}); -Shumway$$inline_0.version = "0.10.268"; -Shumway$$inline_0.build = "02fd13d"; +Shumway$$inline_0.version = "0.10.312"; +Shumway$$inline_0.build = "9de7c7a"; var jsGlobal = function() { return this || (0,eval)("this//# sourceURL=jsGlobal-getter"); }(), inBrowser = "undefined" !== typeof window && "document" in window && "plugins" in window.document, inFirefox = "undefined" !== typeof navigator && 0 <= navigator.userAgent.indexOf("Firefox"); @@ -27,1903 +27,1905 @@ jsGlobal.performance || (jsGlobal.performance = {}); jsGlobal.performance.now || (jsGlobal.performance.now = "undefined" !== typeof dateNow ? dateNow : Date.now); function lazyInitializer(k, r, g) { Object.defineProperty(k, r, {get:function() { - var c = g(); - Object.defineProperty(k, r, {value:c, configurable:!0, enumerable:!0}); - return c; + var b = g(); + Object.defineProperty(k, r, {value:b, configurable:!0, enumerable:!0}); + return b; }, configurable:!0, enumerable:!0}); } var START_TIME = performance.now(); (function(k) { - function r(d) { - return(d | 0) === d; + function r(e) { + return (e | 0) === e; } - function g(d) { - return "object" === typeof d || "function" === typeof d; + function g(e) { + return "object" === typeof e || "function" === typeof e; } - function c(d) { - return String(Number(d)) === d; + function b(e) { + return String(Number(e)) === e; } - function t(d) { - var e = 0; - if ("number" === typeof d) { - return e = d | 0, d === e && 0 <= e ? !0 : d >>> 0 === d; + function v(e) { + var f = 0; + if ("number" === typeof e) { + return f = e | 0, e === f && 0 <= f ? !0 : e >>> 0 === e; } - if ("string" !== typeof d) { - return!1; + if ("string" !== typeof e) { + return !1; } - var b = d.length; - if (0 === b) { - return!1; + var c = e.length; + if (0 === c) { + return !1; } - if ("0" === d) { - return!0; + if ("0" === e) { + return !0; } - if (b > k.UINT32_CHAR_BUFFER_LENGTH) { - return!1; + if (c > k.UINT32_CHAR_BUFFER_LENGTH) { + return !1; } - var f = 0, e = d.charCodeAt(f++) - 48; - if (1 > e || 9 < e) { - return!1; + var d = 0, f = e.charCodeAt(d++) - 48; + if (1 > f || 9 < f) { + return !1; } - for (var q = 0, w = 0;f < b;) { - w = d.charCodeAt(f++) - 48; - if (0 > w || 9 < w) { - return!1; + for (var q = 0, u = 0;d < c;) { + u = e.charCodeAt(d++) - 48; + if (0 > u || 9 < u) { + return !1; } - q = e; - e = 10 * e + w; + q = f; + f = 10 * f + u; } - return q < k.UINT32_MAX_DIV_10 || q === k.UINT32_MAX_DIV_10 && w <= k.UINT32_MAX_MOD_10 ? !0 : !1; + return q < k.UINT32_MAX_DIV_10 || q === k.UINT32_MAX_DIV_10 && u <= k.UINT32_MAX_MOD_10 ? !0 : !1; } - (function(d) { - d[d._0 = 48] = "_0"; - d[d._1 = 49] = "_1"; - d[d._2 = 50] = "_2"; - d[d._3 = 51] = "_3"; - d[d._4 = 52] = "_4"; - d[d._5 = 53] = "_5"; - d[d._6 = 54] = "_6"; - d[d._7 = 55] = "_7"; - d[d._8 = 56] = "_8"; - d[d._9 = 57] = "_9"; + (function(e) { + e[e._0 = 48] = "_0"; + e[e._1 = 49] = "_1"; + e[e._2 = 50] = "_2"; + e[e._3 = 51] = "_3"; + e[e._4 = 52] = "_4"; + e[e._5 = 53] = "_5"; + e[e._6 = 54] = "_6"; + e[e._7 = 55] = "_7"; + e[e._8 = 56] = "_8"; + e[e._9 = 57] = "_9"; })(k.CharacterCodes || (k.CharacterCodes = {})); k.UINT32_CHAR_BUFFER_LENGTH = 10; k.UINT32_MAX = 4294967295; k.UINT32_MAX_DIV_10 = 429496729; k.UINT32_MAX_MOD_10 = 5; - k.isString = function(d) { - return "string" === typeof d; + k.isString = function(e) { + return "string" === typeof e; }; - k.isFunction = function(d) { - return "function" === typeof d; + k.isFunction = function(e) { + return "function" === typeof e; }; - k.isNumber = function(d) { - return "number" === typeof d; + k.isNumber = function(e) { + return "number" === typeof e; }; k.isInteger = r; - k.isArray = function(d) { - return d instanceof Array; + k.isArray = function(e) { + return e instanceof Array; }; - k.isNumberOrString = function(d) { - return "number" === typeof d || "string" === typeof d; + k.isNumberOrString = function(e) { + return "number" === typeof e || "string" === typeof e; }; k.isObject = g; - k.toNumber = function(d) { - return+d; + k.toNumber = function(e) { + return +e; }; - k.isNumericString = c; - k.isNumeric = function(d) { - if ("number" === typeof d) { - return!0; + k.isNumericString = b; + k.isNumeric = function(e) { + if ("number" === typeof e) { + return !0; } - if ("string" === typeof d) { - var e = d.charCodeAt(0); - return 65 <= e && 90 >= e || 97 <= e && 122 >= e || 36 === e || 95 === e ? !1 : t(d) || c(d); + if ("string" === typeof e) { + var f = e.charCodeAt(0); + return 65 <= f && 90 >= f || 97 <= f && 122 >= f || 36 === f || 95 === f ? !1 : v(e) || b(e); } - return!1; + return !1; }; - k.isIndex = t; - k.isNullOrUndefined = function(d) { - return void 0 == d; + k.isIndex = v; + k.isNullOrUndefined = function(e) { + return void 0 == e; }; var n; - (function(d) { - d.error = function(b) { - console.error(b); - throw Error(b); + (function(e) { + e.error = function(c) { + console.error(c); + throw Error(c); }; - d.assert = function(b, f) { - void 0 === f && (f = "assertion failed"); - "" === b && (b = !0); - if (!b) { + e.assert = function(c, d) { + void 0 === d && (d = "assertion failed"); + "" === c && (c = !0); + if (!c) { if ("undefined" !== typeof console && "assert" in console) { - throw console.assert(!1, f), Error(f); + throw console.assert(!1, d), Error(d); } - d.error(f.toString()); + e.error(d.toString()); } }; - d.assertUnreachable = function(b) { - throw Error("Reached unreachable location " + Error().stack.split("\n")[1] + b); + e.assertUnreachable = function(c) { + throw Error("Reached unreachable location " + Error().stack.split("\n")[1] + c); }; - d.assertNotImplemented = function(b, f) { - b || d.error("notImplemented: " + f); + e.assertNotImplemented = function(c, d) { + c || e.error("notImplemented: " + d); }; - d.warning = function(b, f, q) { + e.warning = function(c, d, q) { }; - d.notUsed = function(b) { + e.notUsed = function(c) { }; - d.notImplemented = function(b) { + e.notImplemented = function(c) { }; - d.dummyConstructor = function(b) { + e.dummyConstructor = function(c) { }; - d.abstractMethod = function(b) { + e.abstractMethod = function(c) { }; - var e = {}; - d.somewhatImplemented = function(b) { - e[b] || (e[b] = !0); + var f = {}; + e.somewhatImplemented = function(c) { + f[c] || (f[c] = !0); }; - d.unexpected = function(b) { - d.assert(!1, "Unexpected: " + b); + e.unexpected = function(c) { + e.assert(!1, "Unexpected: " + c); }; - d.unexpectedCase = function(b) { - d.assert(!1, "Unexpected Case: " + b); + e.unexpectedCase = function(c) { + e.assert(!1, "Unexpected Case: " + c); }; })(n = k.Debug || (k.Debug = {})); k.getTicks = function() { return performance.now(); }; - (function(d) { - function e(f, q) { - for (var b = 0, e = f.length;b < e;b++) { - if (f[b] === q) { - return b; + (function(e) { + function f(d, c) { + for (var u = 0, f = d.length;u < f;u++) { + if (d[u] === c) { + return u; } } - f.push(q); - return f.length - 1; + d.push(c); + return d.length - 1; } - d.popManyInto = function(f, q, b) { - for (var e = q - 1;0 <= e;e--) { - b[e] = f.pop(); + e.popManyInto = function(d, c, u) { + for (var f = c - 1;0 <= f;f--) { + u[f] = d.pop(); } - b.length = q; + u.length = c; }; - d.popMany = function(f, b) { - var w = f.length - b, e = f.slice(w, this.length); - f.length = w; - return e; - }; - d.popManyIntoVoid = function(f, b) { - f.length -= b; - }; - d.pushMany = function(f, b) { - for (var w = 0;w < b.length;w++) { - f.push(b[w]); - } - }; - d.top = function(f) { - return f.length && f[f.length - 1]; - }; - d.last = function(f) { - return f.length && f[f.length - 1]; - }; - d.peek = function(f) { - return f[f.length - 1]; - }; - d.indexOf = function(f, b) { - for (var w = 0, e = f.length;w < e;w++) { - if (f[w] === b) { - return w; - } - } - return-1; - }; - d.equals = function(f, b) { - if (f.length !== b.length) { - return!1; - } - for (var w = 0;w < f.length;w++) { - if (f[w] !== b[w]) { - return!1; - } - } - return!0; - }; - d.pushUnique = e; - d.unique = function(f) { - for (var b = [], w = 0;w < f.length;w++) { - e(b, f[w]); - } - return b; - }; - d.copyFrom = function(f, b) { - f.length = 0; - d.pushMany(f, b); - }; - d.ensureTypedArrayCapacity = function(f, b) { - if (f.length < b) { - var w = f; - f = new f.constructor(k.IntegerUtilities.nearestPowerOfTwo(b)); - f.set(w, 0); - } + e.popMany = function(d, c) { + var u = d.length - c, f = d.slice(u, this.length); + d.length = u; return f; }; - d.memCopy = function(f, b, w, e, d) { - void 0 === w && (w = 0); - void 0 === e && (e = 0); - void 0 === d && (d = 0); - 0 < e || 0 < d && d < b.length ? (0 >= d && (d = b.length - e), f.set(b.subarray(e, e + d), w)) : f.set(b, w); + e.popManyIntoVoid = function(d, c) { + d.length -= c; }; - var b = function() { - function f(f) { - void 0 === f && (f = 16); + e.pushMany = function(d, c) { + for (var u = 0;u < c.length;u++) { + d.push(c[u]); + } + }; + e.top = function(d) { + return d.length && d[d.length - 1]; + }; + e.last = function(d) { + return d.length && d[d.length - 1]; + }; + e.peek = function(d) { + return d[d.length - 1]; + }; + e.indexOf = function(d, c) { + for (var u = 0, f = d.length;u < f;u++) { + if (d[u] === c) { + return u; + } + } + return -1; + }; + e.equals = function(d, c) { + if (d.length !== c.length) { + return !1; + } + for (var u = 0;u < d.length;u++) { + if (d[u] !== c[u]) { + return !1; + } + } + return !0; + }; + e.pushUnique = f; + e.unique = function(d) { + for (var c = [], u = 0;u < d.length;u++) { + f(c, d[u]); + } + return c; + }; + e.copyFrom = function(d, c) { + d.length = 0; + e.pushMany(d, c); + }; + e.ensureTypedArrayCapacity = function(d, c) { + if (d.length < c) { + var u = d; + d = new d.constructor(k.IntegerUtilities.nearestPowerOfTwo(c)); + d.set(u, 0); + } + return d; + }; + e.memCopy = function(d, c, u, f, e) { + void 0 === u && (u = 0); + void 0 === f && (f = 0); + void 0 === e && (e = 0); + 0 < f || 0 < e && e < c.length ? (0 >= e && (e = c.length - f), d.set(c.subarray(f, f + e), u)) : d.set(c, u); + }; + var c = function() { + function d(d) { + void 0 === d && (d = 16); this._f32 = this._i32 = this._u16 = this._u8 = null; this._offset = 0; - this.ensureCapacity(f); + this.ensureCapacity(d); } - f.prototype.reset = function() { + d.prototype.reset = function() { this._offset = 0; }; - Object.defineProperty(f.prototype, "offset", {get:function() { + Object.defineProperty(d.prototype, "offset", {get:function() { return this._offset; }, enumerable:!0, configurable:!0}); - f.prototype.getIndex = function(f) { - return this._offset / f; + d.prototype.getIndex = function(d) { + return this._offset / d; }; - f.prototype.ensureAdditionalCapacity = function() { + d.prototype.ensureAdditionalCapacity = function() { this.ensureCapacity(this._offset + 68); }; - f.prototype.ensureCapacity = function(f) { + d.prototype.ensureCapacity = function(d) { if (!this._u8) { - this._u8 = new Uint8Array(f); + this._u8 = new Uint8Array(d); } else { - if (this._u8.length > f) { + if (this._u8.length > d) { return; } } - var b = 2 * this._u8.length; - b < f && (b = f); - f = new Uint8Array(b); - f.set(this._u8, 0); - this._u8 = f; - this._u16 = new Uint16Array(f.buffer); - this._i32 = new Int32Array(f.buffer); - this._f32 = new Float32Array(f.buffer); + var c = 2 * this._u8.length; + c < d && (c = d); + d = new Uint8Array(c); + d.set(this._u8, 0); + this._u8 = d; + this._u16 = new Uint16Array(d.buffer); + this._i32 = new Int32Array(d.buffer); + this._f32 = new Float32Array(d.buffer); }; - f.prototype.writeInt = function(f) { + d.prototype.writeInt = function(d) { this.ensureCapacity(this._offset + 4); - this.writeIntUnsafe(f); + this.writeIntUnsafe(d); }; - f.prototype.writeIntAt = function(f, b) { - this.ensureCapacity(b + 4); - this._i32[b >> 2] = f; + d.prototype.writeIntAt = function(d, c) { + this.ensureCapacity(c + 4); + this._i32[c >> 2] = d; }; - f.prototype.writeIntUnsafe = function(f) { - this._i32[this._offset >> 2] = f; + d.prototype.writeIntUnsafe = function(d) { + this._i32[this._offset >> 2] = d; this._offset += 4; }; - f.prototype.writeFloat = function(f) { + d.prototype.writeFloat = function(d) { this.ensureCapacity(this._offset + 4); - this.writeFloatUnsafe(f); + this.writeFloatUnsafe(d); }; - f.prototype.writeFloatUnsafe = function(f) { - this._f32[this._offset >> 2] = f; + d.prototype.writeFloatUnsafe = function(d) { + this._f32[this._offset >> 2] = d; this._offset += 4; }; - f.prototype.write4Floats = function(f, b, e, d) { + d.prototype.write4Floats = function(d, c, f, e) { this.ensureCapacity(this._offset + 16); - this.write4FloatsUnsafe(f, b, e, d); + this.write4FloatsUnsafe(d, c, f, e); }; - f.prototype.write4FloatsUnsafe = function(f, b, e, d) { + d.prototype.write4FloatsUnsafe = function(d, c, f, e) { var a = this._offset >> 2; - this._f32[a + 0] = f; - this._f32[a + 1] = b; - this._f32[a + 2] = e; - this._f32[a + 3] = d; + this._f32[a + 0] = d; + this._f32[a + 1] = c; + this._f32[a + 2] = f; + this._f32[a + 3] = e; this._offset += 16; }; - f.prototype.write6Floats = function(f, b, e, d, a, h) { + d.prototype.write6Floats = function(d, c, f, e, a, h) { this.ensureCapacity(this._offset + 24); - this.write6FloatsUnsafe(f, b, e, d, a, h); + this.write6FloatsUnsafe(d, c, f, e, a, h); }; - f.prototype.write6FloatsUnsafe = function(f, b, e, d, a, h) { + d.prototype.write6FloatsUnsafe = function(d, c, f, e, a, h) { var p = this._offset >> 2; - this._f32[p + 0] = f; - this._f32[p + 1] = b; - this._f32[p + 2] = e; - this._f32[p + 3] = d; + this._f32[p + 0] = d; + this._f32[p + 1] = c; + this._f32[p + 2] = f; + this._f32[p + 3] = e; this._f32[p + 4] = a; this._f32[p + 5] = h; this._offset += 24; }; - f.prototype.subF32View = function() { + d.prototype.subF32View = function() { return this._f32.subarray(0, this._offset >> 2); }; - f.prototype.subI32View = function() { + d.prototype.subI32View = function() { return this._i32.subarray(0, this._offset >> 2); }; - f.prototype.subU16View = function() { + d.prototype.subU16View = function() { return this._u16.subarray(0, this._offset >> 1); }; - f.prototype.subU8View = function() { + d.prototype.subU8View = function() { return this._u8.subarray(0, this._offset); }; - f.prototype.hashWords = function(f, b, e) { - b = this._i32; - for (var d = 0;d < e;d++) { - f = (31 * f | 0) + b[d] | 0; + d.prototype.hashWords = function(d, c, f) { + c = this._i32; + for (var e = 0;e < f;e++) { + d = (31 * d | 0) + c[e] | 0; } - return f; + return d; }; - f.prototype.reserve = function(f) { - f = f + 3 & -4; - this.ensureCapacity(this._offset + f); - this._offset += f; + d.prototype.reserve = function(d) { + d = d + 3 & -4; + this.ensureCapacity(this._offset + d); + this._offset += d; }; - return f; + return d; }(); - d.ArrayWriter = b; + e.ArrayWriter = c; })(k.ArrayUtilities || (k.ArrayUtilities = {})); var a = function() { - function d(e) { - this._u8 = new Uint8Array(e); - this._u16 = new Uint16Array(e); - this._i32 = new Int32Array(e); - this._f32 = new Float32Array(e); + function e(f) { + this._u8 = new Uint8Array(f); + this._u16 = new Uint16Array(f); + this._i32 = new Int32Array(f); + this._f32 = new Float32Array(f); this._offset = 0; } - Object.defineProperty(d.prototype, "offset", {get:function() { + Object.defineProperty(e.prototype, "offset", {get:function() { return this._offset; }, enumerable:!0, configurable:!0}); - d.prototype.isEmpty = function() { + e.prototype.isEmpty = function() { return this._offset === this._u8.length; }; - d.prototype.readInt = function() { - var e = this._i32[this._offset >> 2]; + e.prototype.readInt = function() { + var f = this._i32[this._offset >> 2]; this._offset += 4; - return e; + return f; }; - d.prototype.readFloat = function() { - var e = this._f32[this._offset >> 2]; + e.prototype.readFloat = function() { + var f = this._f32[this._offset >> 2]; this._offset += 4; - return e; + return f; }; - return d; + return e; }(); k.ArrayReader = a; - (function(d) { - function e(f, b) { - return Object.prototype.hasOwnProperty.call(f, b); + (function(e) { + function f(d, c) { + return Object.prototype.hasOwnProperty.call(d, c); } - function b(f, b) { - for (var w in b) { - e(b, w) && (f[w] = b[w]); + function c(d, c) { + for (var u in c) { + f(c, u) && (d[u] = c[u]); } } - d.boxValue = function(f) { - return void 0 == f || g(f) ? f : Object(f); + e.boxValue = function(d) { + return void 0 == d || g(d) ? d : Object(d); }; - d.toKeyValueArray = function(f) { - var b = Object.prototype.hasOwnProperty, e = [], d; - for (d in f) { - b.call(f, d) && e.push([d, f[d]]); + e.toKeyValueArray = function(d) { + var c = Object.prototype.hasOwnProperty, f = [], e; + for (e in d) { + c.call(d, e) && f.push([e, d[e]]); } - return e; + return f; }; - d.isPrototypeWriteable = function(f) { - return Object.getOwnPropertyDescriptor(f, "prototype").writable; + e.isPrototypeWriteable = function(d) { + return Object.getOwnPropertyDescriptor(d, "prototype").writable; }; - d.hasOwnProperty = e; - d.propertyIsEnumerable = function(f, b) { - return Object.prototype.propertyIsEnumerable.call(f, b); + e.hasOwnProperty = f; + e.propertyIsEnumerable = function(d, c) { + return Object.prototype.propertyIsEnumerable.call(d, c); }; - d.getOwnPropertyDescriptor = function(f, b) { - return Object.getOwnPropertyDescriptor(f, b); + e.getOwnPropertyDescriptor = function(d, c) { + return Object.getOwnPropertyDescriptor(d, c); }; - d.hasOwnGetter = function(f, b) { - var e = Object.getOwnPropertyDescriptor(f, b); - return!(!e || !e.get); + e.hasOwnGetter = function(d, c) { + var f = Object.getOwnPropertyDescriptor(d, c); + return !(!f || !f.get); }; - d.getOwnGetter = function(f, b) { - var e = Object.getOwnPropertyDescriptor(f, b); - return e ? e.get : null; + e.getOwnGetter = function(d, c) { + var f = Object.getOwnPropertyDescriptor(d, c); + return f ? f.get : null; }; - d.hasOwnSetter = function(f, b) { - var e = Object.getOwnPropertyDescriptor(f, b); - return!(!e || !e.set); + e.hasOwnSetter = function(d, c) { + var f = Object.getOwnPropertyDescriptor(d, c); + return !(!f || !f.set); }; - d.createMap = function() { + e.createMap = function() { return Object.create(null); }; - d.createArrayMap = function() { - return[]; + e.createArrayMap = function() { + return []; }; - d.defineReadOnlyProperty = function(f, b, e) { - Object.defineProperty(f, b, {value:e, writable:!1, configurable:!0, enumerable:!1}); + e.defineReadOnlyProperty = function(d, c, f) { + Object.defineProperty(d, c, {value:f, writable:!1, configurable:!0, enumerable:!1}); }; - d.getOwnPropertyDescriptors = function(f) { - for (var b = d.createMap(), e = Object.getOwnPropertyNames(f), a = 0;a < e.length;a++) { - b[e[a]] = Object.getOwnPropertyDescriptor(f, e[a]); + e.getOwnPropertyDescriptors = function(d) { + for (var c = e.createMap(), f = Object.getOwnPropertyNames(d), a = 0;a < f.length;a++) { + c[f[a]] = Object.getOwnPropertyDescriptor(d, f[a]); } - return b; + return c; }; - d.cloneObject = function(f) { - var q = Object.create(Object.getPrototypeOf(f)); - b(q, f); + e.cloneObject = function(d) { + var q = Object.create(Object.getPrototypeOf(d)); + c(q, d); return q; }; - d.copyProperties = function(f, b) { - for (var e in b) { - f[e] = b[e]; + e.copyProperties = function(d, c) { + for (var f in c) { + d[f] = c[f]; } }; - d.copyOwnProperties = b; - d.copyOwnPropertyDescriptors = function(f, b, w) { - void 0 === w && (w = !0); - for (var d in b) { - if (e(b, d)) { - var a = Object.getOwnPropertyDescriptor(b, d); - if (w || !e(f, d)) { + e.copyOwnProperties = c; + e.copyOwnPropertyDescriptors = function(d, c, u) { + void 0 === u && (u = !0); + for (var e in c) { + if (f(c, e)) { + var a = Object.getOwnPropertyDescriptor(c, e); + if (u || !f(d, e)) { try { - Object.defineProperty(f, d, a); + Object.defineProperty(d, e, a); } catch (h) { } } } } }; - d.getLatestGetterOrSetterPropertyDescriptor = function(b, q) { - for (var e = {};b;) { - var d = Object.getOwnPropertyDescriptor(b, q); - d && (e.get = e.get || d.get, e.set = e.set || d.set); - if (e.get && e.set) { + e.getLatestGetterOrSetterPropertyDescriptor = function(d, c) { + for (var f = {};d;) { + var e = Object.getOwnPropertyDescriptor(d, c); + e && (f.get = f.get || e.get, f.set = f.set || e.set); + if (f.get && f.set) { break; } - b = Object.getPrototypeOf(b); + d = Object.getPrototypeOf(d); } - return e; + return f; }; - d.defineNonEnumerableGetterOrSetter = function(b, q, e, a) { - var h = d.getLatestGetterOrSetterPropertyDescriptor(b, q); + e.defineNonEnumerableGetterOrSetter = function(d, c, f, a) { + var h = e.getLatestGetterOrSetterPropertyDescriptor(d, c); h.configurable = !0; h.enumerable = !1; - a ? h.get = e : h.set = e; - Object.defineProperty(b, q, h); + a ? h.get = f : h.set = f; + Object.defineProperty(d, c, h); }; - d.defineNonEnumerableGetter = function(b, q, e) { - Object.defineProperty(b, q, {get:e, configurable:!0, enumerable:!1}); + e.defineNonEnumerableGetter = function(d, c, f) { + Object.defineProperty(d, c, {get:f, configurable:!0, enumerable:!1}); }; - d.defineNonEnumerableSetter = function(b, q, e) { - Object.defineProperty(b, q, {set:e, configurable:!0, enumerable:!1}); + e.defineNonEnumerableSetter = function(d, c, f) { + Object.defineProperty(d, c, {set:f, configurable:!0, enumerable:!1}); }; - d.defineNonEnumerableProperty = function(b, q, e) { - Object.defineProperty(b, q, {value:e, writable:!0, configurable:!0, enumerable:!1}); + e.defineNonEnumerableProperty = function(d, c, f) { + Object.defineProperty(d, c, {value:f, writable:!0, configurable:!0, enumerable:!1}); }; - d.defineNonEnumerableForwardingProperty = function(b, q, e) { - Object.defineProperty(b, q, {get:h.makeForwardingGetter(e), set:h.makeForwardingSetter(e), writable:!0, configurable:!0, enumerable:!1}); + e.defineNonEnumerableForwardingProperty = function(d, c, f) { + Object.defineProperty(d, c, {get:h.makeForwardingGetter(f), set:h.makeForwardingSetter(f), writable:!0, configurable:!0, enumerable:!1}); }; - d.defineNewNonEnumerableProperty = function(b, q, e) { - d.defineNonEnumerableProperty(b, q, e); + e.defineNewNonEnumerableProperty = function(d, c, f) { + e.defineNonEnumerableProperty(d, c, f); }; - d.createPublicAliases = function(b, q) { - for (var e = {value:null, writable:!0, configurable:!0, enumerable:!1}, d = 0;d < q.length;d++) { - var a = q[d]; - e.value = b[a]; - Object.defineProperty(b, "$Bg" + a, e); + e.createPublicAliases = function(d, c) { + for (var f = {value:null, writable:!0, configurable:!0, enumerable:!1}, e = 0;e < c.length;e++) { + var a = c[e]; + f.value = d[a]; + Object.defineProperty(d, "$Bg" + a, f); } }; })(k.ObjectUtilities || (k.ObjectUtilities = {})); var h; - (function(d) { - d.makeForwardingGetter = function(e) { - return new Function('return this["' + e + '"]//# sourceURL=fwd-get-' + e + ".as"); + (function(e) { + e.makeForwardingGetter = function(f) { + return new Function('return this["' + f + '"]//# sourceURL=fwd-get-' + f + ".as"); }; - d.makeForwardingSetter = function(e) { - return new Function("value", 'this["' + e + '"] = value;//# sourceURL=fwd-set-' + e + ".as"); + e.makeForwardingSetter = function(f) { + return new Function("value", 'this["' + f + '"] = value;//# sourceURL=fwd-set-' + f + ".as"); }; - d.bindSafely = function(e, b) { - function f() { - return e.apply(b, arguments); + e.bindSafely = function(f, c) { + function d() { + return f.apply(c, arguments); } - f.boundTo = b; - return f; + d.boundTo = c; + return d; }; })(h = k.FunctionUtilities || (k.FunctionUtilities = {})); - (function(d) { - function e(b) { - return "string" === typeof b ? '"' + b + '"' : "number" === typeof b || "boolean" === typeof b ? String(b) : b instanceof Array ? "[] " + b.length : typeof b; + (function(e) { + function f(d) { + return "string" === typeof d ? '"' + d + '"' : "number" === typeof d || "boolean" === typeof d ? String(d) : d instanceof Array ? "[] " + d.length : typeof d; } - d.repeatString = function(b, f) { - for (var q = "", e = 0;e < f;e++) { - q += b; + function c(d, c, f) { + q[0] = d; + q[1] = c; + q[2] = f; + return q.join(""); + } + function d(d, c, q, f) { + u[0] = d; + u[1] = c; + u[2] = q; + u[3] = f; + return u.join(""); + } + e.repeatString = function(d, c) { + for (var q = "", f = 0;f < c;f++) { + q += d; } return q; }; - d.memorySizeToString = function(b) { - b |= 0; - return 1024 > b ? b + " B" : 1048576 > b ? (b / 1024).toFixed(2) + "KB" : (b / 1048576).toFixed(2) + "MB"; + e.memorySizeToString = function(d) { + d |= 0; + return 1024 > d ? d + " B" : 1048576 > d ? (d / 1024).toFixed(2) + "KB" : (d / 1048576).toFixed(2) + "MB"; }; - d.toSafeString = e; - d.toSafeArrayString = function(b) { - for (var f = [], q = 0;q < b.length;q++) { - f.push(e(b[q])); + e.toSafeString = f; + e.toSafeArrayString = function(d) { + for (var c = [], q = 0;q < d.length;q++) { + c.push(f(d[q])); } - return f.join(", "); + return c.join(", "); }; - d.utf8decode = function(b) { - for (var f = new Uint8Array(4 * b.length), q = 0, e = 0, w = b.length;e < w;e++) { - var d = b.charCodeAt(e); - if (127 >= d) { - f[q++] = d; + e.utf8decode = function(d) { + for (var c = new Uint8Array(4 * d.length), q = 0, f = 0, e = d.length;f < e;f++) { + var u = d.charCodeAt(f); + if (127 >= u) { + c[q++] = u; } else { - if (55296 <= d && 56319 >= d) { - var a = b.charCodeAt(e + 1); - 56320 <= a && 57343 >= a && (d = ((d & 1023) << 10) + (a & 1023) + 65536, ++e); + if (55296 <= u && 56319 >= u) { + var a = d.charCodeAt(f + 1); + 56320 <= a && 57343 >= a && (u = ((u & 1023) << 10) + (a & 1023) + 65536, ++f); } - 0 !== (d & 4292870144) ? (f[q++] = 248 | d >>> 24 & 3, f[q++] = 128 | d >>> 18 & 63, f[q++] = 128 | d >>> 12 & 63, f[q++] = 128 | d >>> 6 & 63) : 0 !== (d & 4294901760) ? (f[q++] = 240 | d >>> 18 & 7, f[q++] = 128 | d >>> 12 & 63, f[q++] = 128 | d >>> 6 & 63) : 0 !== (d & 4294965248) ? (f[q++] = 224 | d >>> 12 & 15, f[q++] = 128 | d >>> 6 & 63) : f[q++] = 192 | d >>> 6 & 31; - f[q++] = 128 | d & 63; + 0 !== (u & 4292870144) ? (c[q++] = 248 | u >>> 24 & 3, c[q++] = 128 | u >>> 18 & 63, c[q++] = 128 | u >>> 12 & 63, c[q++] = 128 | u >>> 6 & 63) : 0 !== (u & 4294901760) ? (c[q++] = 240 | u >>> 18 & 7, c[q++] = 128 | u >>> 12 & 63, c[q++] = 128 | u >>> 6 & 63) : 0 !== (u & 4294965248) ? (c[q++] = 224 | u >>> 12 & 15, c[q++] = 128 | u >>> 6 & 63) : c[q++] = 192 | u >>> 6 & 31; + c[q++] = 128 | u & 63; } } - return f.subarray(0, q); + return c.subarray(0, q); }; - d.utf8encode = function(b) { - for (var f = 0, q = "";f < b.length;) { - var e = b[f++] & 255; - if (127 >= e) { - q += String.fromCharCode(e); + e.utf8encode = function(d) { + for (var c = 0, q = "";c < d.length;) { + var f = d[c++] & 255; + if (127 >= f) { + q += String.fromCharCode(f); } else { - var d = 192, w = 5; + var u = 192, e = 5; do { - if ((e & (d >> 1 | 128)) === d) { + if ((f & (u >> 1 | 128)) === u) { break; } - d = d >> 1 | 128; - --w; - } while (0 <= w); - if (0 >= w) { - q += String.fromCharCode(e); + u = u >> 1 | 128; + --e; + } while (0 <= e); + if (0 >= e) { + q += String.fromCharCode(f); } else { - for (var e = e & (1 << w) - 1, d = !1, a = 5;a >= w;--a) { - var h = b[f++]; + for (var f = f & (1 << e) - 1, u = !1, a = 5;a >= e;--a) { + var h = d[c++]; if (128 != (h & 192)) { - d = !0; + u = !0; break; } - e = e << 6 | h & 63; + f = f << 6 | h & 63; } - if (d) { - for (w = f - (7 - a);w < f;++w) { - q += String.fromCharCode(b[w] & 255); + if (u) { + for (e = c - (7 - a);e < c;++e) { + q += String.fromCharCode(d[e] & 255); } } else { - q = 65536 <= e ? q + String.fromCharCode(e - 65536 >> 10 & 1023 | 55296, e & 1023 | 56320) : q + String.fromCharCode(e); + q = 65536 <= f ? q + String.fromCharCode(f - 65536 >> 10 & 1023 | 55296, f & 1023 | 56320) : q + String.fromCharCode(f); } } } } return q; }; - d.base64ArrayBuffer = function(b) { + e.base64ArrayBuffer = function(q) { var f = ""; - b = new Uint8Array(b); - for (var q = b.byteLength, e = q % 3, q = q - e, d, w, a, h, G = 0;G < q;G += 3) { - h = b[G] << 16 | b[G + 1] << 8 | b[G + 2], d = (h & 16515072) >> 18, w = (h & 258048) >> 12, a = (h & 4032) >> 6, h &= 63, f += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[w] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[a] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[h]; + q = new Uint8Array(q); + for (var u = q.byteLength, e = u % 3, u = u - e, a, h, I, H, p = 0;p < u;p += 3) { + H = q[p] << 16 | q[p + 1] << 8 | q[p + 2], a = (H & 16515072) >> 18, h = (H & 258048) >> 12, I = (H & 4032) >> 6, H &= 63, f += d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[a], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[h], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[I], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[H]); } - 1 == e ? (h = b[q], f += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(h & 252) >> 2] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(h & 3) << 4] + "==") : 2 == e && (h = b[q] << 8 | b[q + 1], f += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(h & 64512) >> 10] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(h & 1008) >> 4] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(h & 15) << - 2] + "="); + 1 == e ? (H = q[u], f += c("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(H & 252) >> 2], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(H & 3) << 4], "==")) : 2 == e && (H = q[u] << 8 | q[u + 1], f += d("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(H & 64512) >> 10], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(H & 1008) >> 4], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(H & 15) << + 2], "=")); return f; }; - d.escapeString = function(b) { - void 0 !== b && (b = b.replace(/[^\w$]/gi, "$"), /^\d/.test(b) && (b = "$" + b)); - return b; + e.escapeString = function(d) { + void 0 !== d && (d = d.replace(/[^\w$]/gi, "$"), /^\d/.test(d) && (d = "$" + d)); + return d; }; - d.fromCharCodeArray = function(b) { - for (var f = "", q = 0;q < b.length;q += 16384) { - var e = Math.min(b.length - q, 16384), f = f + String.fromCharCode.apply(null, b.subarray(q, q + e)) + e.fromCharCodeArray = function(d) { + for (var c = "", q = 0;q < d.length;q += 16384) { + var f = Math.min(d.length - q, 16384), c = c + String.fromCharCode.apply(null, d.subarray(q, q + f)) } - return f; + return c; }; - d.variableLengthEncodeInt32 = function(b) { - for (var f = 32 - Math.clz32(b), q = Math.ceil(f / 6), f = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[q], q = q - 1;0 <= q;q--) { - f += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[b >> 6 * q & 63]; + e.variableLengthEncodeInt32 = function(d) { + for (var c = 32 - Math.clz32(d), q = Math.ceil(c / 6), c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[q], q = q - 1;0 <= q;q--) { + c += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[d >> 6 * q & 63]; } - return f; + return c; }; - d.toEncoding = function(b) { - return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[b]; + e.toEncoding = function(d) { + return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[d]; }; - d.fromEncoding = function(b) { - if (65 <= b && 90 >= b) { - return b - 65; + e.fromEncoding = function(d) { + if (65 <= d && 90 >= d) { + return d - 65; } - if (97 <= b && 122 >= b) { - return b - 71; + if (97 <= d && 122 >= d) { + return d - 71; } - if (48 <= b && 57 >= b) { - return b + 4; + if (48 <= d && 57 >= d) { + return d + 4; } - if (36 === b) { + if (36 === d) { return 62; } - if (95 === b) { + if (95 === d) { return 63; } }; - d.variableLengthDecodeInt32 = function(b) { - for (var f = d.fromEncoding(b.charCodeAt(0)), q = 0, e = 0;e < f;e++) { - var w = 6 * (f - e - 1), q = q | d.fromEncoding(b.charCodeAt(1 + e)) << w + e.variableLengthDecodeInt32 = function(d) { + for (var c = e.fromEncoding(d.charCodeAt(0)), q = 0, f = 0;f < c;f++) { + var u = 6 * (c - f - 1), q = q | e.fromEncoding(d.charCodeAt(1 + f)) << u } return q; }; - d.trimMiddle = function(b, f) { - if (b.length <= f) { - return b; + e.trimMiddle = function(d, c) { + if (d.length <= c) { + return d; } - var q = f >> 1, e = f - q - 1; - return b.substr(0, q) + "\u2026" + b.substr(b.length - e, e); + var q = c >> 1, f = c - q - 1; + return d.substr(0, q) + "\u2026" + d.substr(d.length - f, f); }; - d.multiple = function(b, f) { - for (var q = "", e = 0;e < f;e++) { - q += b; + e.multiple = function(d, c) { + for (var q = "", f = 0;f < c;f++) { + q += d; } return q; }; - d.indexOfAny = function(b, f, q) { - for (var e = b.length, d = 0;d < f.length;d++) { - var w = b.indexOf(f[d], q); - 0 <= w && (e = Math.min(e, w)); + e.indexOfAny = function(d, c, q) { + for (var f = d.length, u = 0;u < c.length;u++) { + var e = d.indexOf(c[u], q); + 0 <= e && (f = Math.min(f, e)); } - return e === b.length ? -1 : e; + return f === d.length ? -1 : f; }; - var b = Array(3), f = Array(4), q = Array(5), w = Array(6), a = Array(7), h = Array(8), p = Array(9); - d.concat3 = function(f, q, e) { - b[0] = f; - b[1] = q; - b[2] = e; - return b.join(""); - }; - d.concat4 = function(b, q, e, d) { - f[0] = b; - f[1] = q; - f[2] = e; - f[3] = d; - return f.join(""); - }; - d.concat5 = function(b, f, e, d, w) { - q[0] = b; - q[1] = f; - q[2] = e; - q[3] = d; - q[4] = w; - return q.join(""); - }; - d.concat6 = function(b, f, q, e, d, a) { - w[0] = b; - w[1] = f; - w[2] = q; - w[3] = e; - w[4] = d; - w[5] = a; - return w.join(""); - }; - d.concat7 = function(b, f, q, e, d, w, h) { - a[0] = b; - a[1] = f; + var q = Array(3), u = Array(4), a = Array(5), h = Array(6), p = Array(7), m = Array(8), b = Array(9); + e.concat3 = c; + e.concat4 = d; + e.concat5 = function(d, c, q, f, u) { + a[0] = d; + a[1] = c; a[2] = q; - a[3] = e; - a[4] = d; - a[5] = w; - a[6] = h; + a[3] = f; + a[4] = u; return a.join(""); }; - d.concat8 = function(b, f, q, e, d, w, a, G) { - h[0] = b; - h[1] = f; + e.concat6 = function(d, c, q, f, u, e) { + h[0] = d; + h[1] = c; h[2] = q; - h[3] = e; - h[4] = d; - h[5] = w; - h[6] = a; - h[7] = G; + h[3] = f; + h[4] = u; + h[5] = e; return h.join(""); }; - d.concat9 = function(b, f, q, e, d, w, a, h, G) { - p[0] = b; - p[1] = f; + e.concat7 = function(d, c, q, f, u, e, a) { + p[0] = d; + p[1] = c; p[2] = q; - p[3] = e; - p[4] = d; - p[5] = w; + p[3] = f; + p[4] = u; + p[5] = e; p[6] = a; - p[7] = h; - p[8] = G; return p.join(""); }; + e.concat8 = function(d, c, q, f, u, e, a, h) { + m[0] = d; + m[1] = c; + m[2] = q; + m[3] = f; + m[4] = u; + m[5] = e; + m[6] = a; + m[7] = h; + return m.join(""); + }; + e.concat9 = function(d, c, q, f, u, e, a, h, I) { + b[0] = d; + b[1] = c; + b[2] = q; + b[3] = f; + b[4] = u; + b[5] = e; + b[6] = a; + b[7] = h; + b[8] = I; + return b.join(""); + }; })(k.StringUtilities || (k.StringUtilities = {})); - (function(d) { - var e = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]), b = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, + (function(e) { + var f = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]), c = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]); - d.hashBytesTo32BitsMD5 = function(f, q, d) { - var a = 1732584193, h = -271733879, p = -1732584194, m = 271733878, c = d + 72 & -64, l = new Uint8Array(c), n; - for (n = 0;n < d;++n) { - l[n] = f[q++]; + e.hashBytesTo32BitsMD5 = function(d, q, u) { + var e = 1732584193, a = -271733879, h = -1732584194, p = 271733878, m = u + 72 & -64, b = new Uint8Array(m), l; + for (l = 0;l < u;++l) { + b[l] = d[q++]; } - l[n++] = 128; - for (f = c - 8;n < f;) { - l[n++] = 0; + b[l++] = 128; + for (d = m - 8;l < d;) { + b[l++] = 0; } - l[n++] = d << 3 & 255; - l[n++] = d >> 5 & 255; - l[n++] = d >> 13 & 255; - l[n++] = d >> 21 & 255; - l[n++] = d >>> 29 & 255; - l[n++] = 0; - l[n++] = 0; - l[n++] = 0; - f = new Int32Array(16); - for (n = 0;n < c;) { - for (d = 0;16 > d;++d, n += 4) { - f[d] = l[n] | l[n + 1] << 8 | l[n + 2] << 16 | l[n + 3] << 24; + b[l++] = u << 3 & 255; + b[l++] = u >> 5 & 255; + b[l++] = u >> 13 & 255; + b[l++] = u >> 21 & 255; + b[l++] = u >>> 29 & 255; + b[l++] = 0; + b[l++] = 0; + b[l++] = 0; + d = new Int32Array(16); + for (l = 0;l < m;) { + for (u = 0;16 > u;++u, l += 4) { + d[u] = b[l] | b[l + 1] << 8 | b[l + 2] << 16 | b[l + 3] << 24; } - var s = a; - q = h; - var u = p, v = m, g, k; - for (d = 0;64 > d;++d) { - 16 > d ? (g = q & u | ~q & v, k = d) : 32 > d ? (g = v & q | ~v & u, k = 5 * d + 1 & 15) : 48 > d ? (g = q ^ u ^ v, k = 3 * d + 5 & 15) : (g = u ^ (q | ~v), k = 7 * d & 15); - var r = v, s = s + g + b[d] + f[k] | 0; - g = e[d]; - v = u; - u = q; - q = q + (s << g | s >>> 32 - g) | 0; - s = r; + var n = e; + q = a; + var t = h, w = p, x, g; + for (u = 0;64 > u;++u) { + 16 > u ? (x = q & t | ~q & w, g = u) : 32 > u ? (x = w & q | ~w & t, g = 5 * u + 1 & 15) : 48 > u ? (x = q ^ t ^ w, g = 3 * u + 5 & 15) : (x = t ^ (q | ~w), g = 7 * u & 15); + var k = w, n = n + x + c[u] + d[g] | 0; + x = f[u]; + w = t; + t = q; + q = q + (n << x | n >>> 32 - x) | 0; + n = k; } - a = a + s | 0; - h = h + q | 0; - p = p + u | 0; - m = m + v | 0; + e = e + n | 0; + a = a + q | 0; + h = h + t | 0; + p = p + w | 0; } - return a; + return e; }; - d.hashBytesTo32BitsAdler = function(b, q, e) { - var d = 1, a = 0; - for (e = q + e;q < e;++q) { - d = (d + (b[q] & 255)) % 65521, a = (a + d) % 65521; + e.hashBytesTo32BitsAdler = function(d, c, f) { + var e = 1, a = 0; + for (f = c + f;c < f;++c) { + e = (e + (d[c] & 255)) % 65521, a = (a + e) % 65521; } - return a << 16 | d; + return a << 16 | e; }; })(k.HashUtilities || (k.HashUtilities = {})); var p = function() { - function d() { + function e() { } - d.seed = function(e) { - d._state[0] = e; - d._state[1] = e; + e.seed = function(f) { + e._state[0] = f; + e._state[1] = f; }; - d.next = function() { - var e = this._state, b = Math.imul(18273, e[0] & 65535) + (e[0] >>> 16) | 0; - e[0] = b; - var f = Math.imul(36969, e[1] & 65535) + (e[1] >>> 16) | 0; - e[1] = f; - e = (b << 16) + (f & 65535) | 0; - return 2.3283064365386963E-10 * (0 > e ? e + 4294967296 : e); + e.next = function() { + var f = this._state, c = Math.imul(18273, f[0] & 65535) + (f[0] >>> 16) | 0; + f[0] = c; + var d = Math.imul(36969, f[1] & 65535) + (f[1] >>> 16) | 0; + f[1] = d; + f = (c << 16) + (d & 65535) | 0; + return 2.3283064365386963E-10 * (0 > f ? f + 4294967296 : f); }; - d._state = new Uint32Array([57005, 48879]); - return d; + e._state = new Uint32Array([57005, 48879]); + return e; }(); k.Random = p; Math.random = function() { return p.next(); }; (function() { - function d() { - this.id = "$weakmap" + e++; + function e() { + this.id = "$weakmap" + f++; } if ("function" !== typeof jsGlobal.WeakMap) { - var e = 0; - d.prototype = {has:function(b) { - return b.hasOwnProperty(this.id); - }, get:function(b, f) { - return b.hasOwnProperty(this.id) ? b[this.id] : f; - }, set:function(b, f) { - Object.defineProperty(b, this.id, {value:f, enumerable:!1, configurable:!0}); - }, delete:function(b) { - delete b[this.id]; + var f = 0; + e.prototype = {has:function(c) { + return c.hasOwnProperty(this.id); + }, get:function(c, d) { + return c.hasOwnProperty(this.id) ? c[this.id] : d; + }, set:function(c, d) { + Object.defineProperty(c, this.id, {value:d, enumerable:!1, configurable:!0}); + }, delete:function(c) { + delete c[this.id]; }}; - jsGlobal.WeakMap = d; + jsGlobal.WeakMap = e; } })(); a = function() { - function d() { - "undefined" !== typeof netscape && netscape.security.PrivilegeManager ? this._map = new WeakMap : this._list = []; + function e() { + "undefined" !== typeof ShumwayCom && ShumwayCom.getWeakMapKeys ? this._map = new WeakMap : this._list = []; } - d.prototype.clear = function() { + e.prototype.clear = function() { this._map ? this._map.clear() : this._list.length = 0; }; - d.prototype.push = function(e) { - this._map ? this._map.set(e, null) : this._list.push(e); + e.prototype.push = function(f) { + this._map ? this._map.set(f, null) : this._list.push(f); }; - d.prototype.remove = function(e) { - this._map ? this._map.delete(e) : this._list[this._list.indexOf(e)] = null; + e.prototype.remove = function(f) { + this._map ? this._map.delete(f) : this._list[this._list.indexOf(f)] = null; }; - d.prototype.forEach = function(e) { + e.prototype.forEach = function(f) { if (this._map) { - "undefined" !== typeof netscape && netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"), Components.utils.nondeterministicGetWeakMapKeys(this._map).forEach(function(b) { - 0 !== b._referenceCount && e(b); + ShumwayCom.getWeakMapKeys(this._map).forEach(function(d) { + 0 !== d._referenceCount && f(d); }); } else { - for (var b = this._list, f = 0, q = 0;q < b.length;q++) { - var d = b[q]; - d && (0 === d._referenceCount ? (b[q] = null, f++) : e(d)); + for (var c = this._list, d = 0, q = 0;q < c.length;q++) { + var u = c[q]; + u && (0 === u._referenceCount ? (c[q] = null, d++) : f(u)); } - if (16 < f && f > b.length >> 2) { - f = []; - for (q = 0;q < b.length;q++) { - (d = b[q]) && 0 < d._referenceCount && f.push(d); + if (16 < d && d > c.length >> 2) { + d = []; + for (q = 0;q < c.length;q++) { + (u = c[q]) && 0 < u._referenceCount && d.push(u); } - this._list = f; + this._list = d; } } }; - Object.defineProperty(d.prototype, "length", {get:function() { + Object.defineProperty(e.prototype, "length", {get:function() { return this._map ? -1 : this._list.length; }, enumerable:!0, configurable:!0}); - return d; + return e; }(); k.WeakList = a; var l; - (function(d) { - d.pow2 = function(e) { - return e === (e | 0) ? 0 > e ? 1 / (1 << -e) : 1 << e : Math.pow(2, e); + (function(e) { + e.pow2 = function(f) { + return f === (f | 0) ? 0 > f ? 1 / (1 << -f) : 1 << f : Math.pow(2, f); }; - d.clamp = function(e, b, f) { - return Math.max(b, Math.min(f, e)); + e.clamp = function(f, c, d) { + return Math.max(c, Math.min(d, f)); }; - d.roundHalfEven = function(e) { - if (.5 === Math.abs(e % 1)) { - var b = Math.floor(e); - return 0 === b % 2 ? b : Math.ceil(e); + e.roundHalfEven = function(f) { + if (.5 === Math.abs(f % 1)) { + var c = Math.floor(f); + return 0 === c % 2 ? c : Math.ceil(f); } - return Math.round(e); + return Math.round(f); }; - d.altTieBreakRound = function(e, b) { - return.5 !== Math.abs(e % 1) || b ? Math.round(e) : e | 0; + e.altTieBreakRound = function(f, c) { + return .5 !== Math.abs(f % 1) || c ? Math.round(f) : f | 0; }; - d.epsilonEquals = function(e, b) { - return 1E-7 > Math.abs(e - b); + e.epsilonEquals = function(f, c) { + return 1E-7 > Math.abs(f - c); }; })(l = k.NumberUtilities || (k.NumberUtilities = {})); - (function(d) { - d[d.MaxU16 = 65535] = "MaxU16"; - d[d.MaxI16 = 32767] = "MaxI16"; - d[d.MinI16 = -32768] = "MinI16"; + (function(e) { + e[e.MaxU16 = 65535] = "MaxU16"; + e[e.MaxI16 = 32767] = "MaxI16"; + e[e.MinI16 = -32768] = "MinI16"; })(k.Numbers || (k.Numbers = {})); - var u; - (function(d) { - function e(b) { - return 256 * b << 16 >> 16; + var w; + (function(e) { + function f(d) { + return 256 * d << 16 >> 16; } - var b = new ArrayBuffer(8); - d.i8 = new Int8Array(b); - d.u8 = new Uint8Array(b); - d.i32 = new Int32Array(b); - d.f32 = new Float32Array(b); - d.f64 = new Float64Array(b); - d.nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; - d.floatToInt32 = function(b) { - d.f32[0] = b; - return d.i32[0]; + var c = new ArrayBuffer(8); + e.i8 = new Int8Array(c); + e.u8 = new Uint8Array(c); + e.i32 = new Int32Array(c); + e.f32 = new Float32Array(c); + e.f64 = new Float64Array(c); + e.nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; + e.floatToInt32 = function(d) { + e.f32[0] = d; + return e.i32[0]; }; - d.int32ToFloat = function(b) { - d.i32[0] = b; - return d.f32[0]; + e.int32ToFloat = function(d) { + e.i32[0] = d; + return e.f32[0]; }; - d.swap16 = function(b) { - return(b & 255) << 8 | b >> 8 & 255; + e.swap16 = function(d) { + return (d & 255) << 8 | d >> 8 & 255; }; - d.swap32 = function(b) { - return(b & 255) << 24 | (b & 65280) << 8 | b >> 8 & 65280 | b >> 24 & 255; + e.swap32 = function(d) { + return (d & 255) << 24 | (d & 65280) << 8 | d >> 8 & 65280 | d >> 24 & 255; }; - d.toS8U8 = e; - d.fromS8U8 = function(b) { - return b / 256; + e.toS8U8 = f; + e.fromS8U8 = function(d) { + return d / 256; }; - d.clampS8U8 = function(b) { - return e(b) / 256; + e.clampS8U8 = function(d) { + return f(d) / 256; }; - d.toS16 = function(b) { - return b << 16 >> 16; + e.toS16 = function(d) { + return d << 16 >> 16; }; - d.bitCount = function(b) { - b -= b >> 1 & 1431655765; - b = (b & 858993459) + (b >> 2 & 858993459); - return 16843009 * (b + (b >> 4) & 252645135) >> 24; + e.bitCount = function(d) { + d -= d >> 1 & 1431655765; + d = (d & 858993459) + (d >> 2 & 858993459); + return 16843009 * (d + (d >> 4) & 252645135) >> 24; }; - d.ones = function(b) { - b -= b >> 1 & 1431655765; - b = (b & 858993459) + (b >> 2 & 858993459); - return 16843009 * (b + (b >> 4) & 252645135) >> 24; + e.ones = function(d) { + d -= d >> 1 & 1431655765; + d = (d & 858993459) + (d >> 2 & 858993459); + return 16843009 * (d + (d >> 4) & 252645135) >> 24; }; - d.trailingZeros = function(b) { - return d.ones((b & -b) - 1); + e.trailingZeros = function(d) { + return e.ones((d & -d) - 1); }; - d.getFlags = function(b, q) { - var e = ""; - for (b = 0;b < q.length;b++) { - b & 1 << b && (e += q[b] + " "); + e.getFlags = function(d, c) { + var f = ""; + for (d = 0;d < c.length;d++) { + d & 1 << d && (f += c[d] + " "); } - return 0 === e.length ? "" : e.trim(); + return 0 === f.length ? "" : f.trim(); }; - d.isPowerOfTwo = function(b) { - return b && 0 === (b & b - 1); + e.isPowerOfTwo = function(d) { + return d && 0 === (d & d - 1); }; - d.roundToMultipleOfFour = function(b) { - return b + 3 & -4; + e.roundToMultipleOfFour = function(d) { + return d + 3 & -4; }; - d.nearestPowerOfTwo = function(b) { - b--; - b |= b >> 1; - b |= b >> 2; - b |= b >> 4; - b |= b >> 8; - b |= b >> 16; - b++; - return b; + e.nearestPowerOfTwo = function(d) { + d--; + d |= d >> 1; + d |= d >> 2; + d |= d >> 4; + d |= d >> 8; + d |= d >> 16; + d++; + return d; }; - d.roundToMultipleOfPowerOfTwo = function(b, q) { - var e = (1 << q) - 1; - return b + e & ~e; + e.roundToMultipleOfPowerOfTwo = function(d, c) { + var f = (1 << c) - 1; + return d + f & ~f; }; - Math.imul || (Math.imul = function(b, q) { - var e = b & 65535, d = q & 65535; - return e * d + ((b >>> 16 & 65535) * d + e * (q >>> 16 & 65535) << 16 >>> 0) | 0; + Math.imul || (Math.imul = function(d, c) { + var f = d & 65535, e = c & 65535; + return f * e + ((d >>> 16 & 65535) * e + f * (c >>> 16 & 65535) << 16 >>> 0) | 0; }); - Math.clz32 || (Math.clz32 = function(b) { - b |= b >> 1; - b |= b >> 2; - b |= b >> 4; - b |= b >> 8; - return 32 - d.ones(b | b >> 16); + Math.clz32 || (Math.clz32 = function(d) { + d |= d >> 1; + d |= d >> 2; + d |= d >> 4; + d |= d >> 8; + return 32 - e.ones(d | d >> 16); }); - })(u = k.IntegerUtilities || (k.IntegerUtilities = {})); - (function(d) { - function e(b, f, q, e, d, a) { - return(q - b) * (a - f) - (e - f) * (d - b); + })(w = k.IntegerUtilities || (k.IntegerUtilities = {})); + (function(e) { + function f(c, d, q, f, e, a) { + return (q - c) * (a - d) - (f - d) * (e - c); } - d.pointInPolygon = function(b, f, q) { - for (var e = 0, d = q.length - 2, a = 0;a < d;a += 2) { - var h = q[a + 0], p = q[a + 1], m = q[a + 2], l = q[a + 3]; - (p <= f && l > f || p > f && l <= f) && b < h + (f - p) / (l - p) * (m - h) && e++; + e.pointInPolygon = function(c, d, q) { + for (var f = 0, e = q.length - 2, a = 0;a < e;a += 2) { + var h = q[a + 0], p = q[a + 1], m = q[a + 2], b = q[a + 3]; + (p <= d && b > d || p > d && b <= d) && c < h + (d - p) / (b - p) * (m - h) && f++; } - return 1 === (e & 1); + return 1 === (f & 1); }; - d.signedArea = e; - d.counterClockwise = function(b, f, q, d, a, h) { - return 0 < e(b, f, q, d, a, h); + e.signedArea = f; + e.counterClockwise = function(c, d, q, e, a, h) { + return 0 < f(c, d, q, e, a, h); }; - d.clockwise = function(b, f, q, d, a, h) { - return 0 > e(b, f, q, d, a, h); + e.clockwise = function(c, d, q, e, a, h) { + return 0 > f(c, d, q, e, a, h); }; - d.pointInPolygonInt32 = function(b, f, q) { - b |= 0; - f |= 0; - for (var e = 0, d = q.length - 2, a = 0;a < d;a += 2) { - var h = q[a + 0], p = q[a + 1], m = q[a + 2], l = q[a + 3]; - (p <= f && l > f || p > f && l <= f) && b < h + (f - p) / (l - p) * (m - h) && e++; + e.pointInPolygonInt32 = function(c, d, q) { + c |= 0; + d |= 0; + for (var f = 0, e = q.length - 2, a = 0;a < e;a += 2) { + var h = q[a + 0], p = q[a + 1], b = q[a + 2], m = q[a + 3]; + (p <= d && m > d || p > d && m <= d) && c < h + (d - p) / (m - p) * (b - h) && f++; } - return 1 === (e & 1); + return 1 === (f & 1); }; })(k.GeometricUtilities || (k.GeometricUtilities = {})); - (function(d) { - d[d.Error = 1] = "Error"; - d[d.Warn = 2] = "Warn"; - d[d.Debug = 4] = "Debug"; - d[d.Log = 8] = "Log"; - d[d.Info = 16] = "Info"; - d[d.All = 31] = "All"; + (function(e) { + e[e.Error = 1] = "Error"; + e[e.Warn = 2] = "Warn"; + e[e.Debug = 4] = "Debug"; + e[e.Log = 8] = "Log"; + e[e.Info = 16] = "Info"; + e[e.All = 31] = "All"; })(k.LogLevel || (k.LogLevel = {})); a = function() { - function d(e, b) { - void 0 === e && (e = !1); + function e(f, c) { + void 0 === f && (f = !1); this._tab = " "; this._padding = ""; - this._suppressOutput = e; - this._out = b || d._consoleOut; - this._outNoNewline = b || d._consoleOutNoNewline; + this._suppressOutput = f; + this._out = c || e._consoleOut; + this._outNoNewline = c || e._consoleOutNoNewline; } - d.prototype.write = function(e, b) { - void 0 === e && (e = ""); - void 0 === b && (b = !1); - this._suppressOutput || this._outNoNewline((b ? this._padding : "") + e); + e.prototype.write = function(f, c) { + void 0 === f && (f = ""); + void 0 === c && (c = !1); + this._suppressOutput || this._outNoNewline((c ? this._padding : "") + f); }; - d.prototype.writeLn = function(e) { - void 0 === e && (e = ""); - this._suppressOutput || this._out(this._padding + e); + e.prototype.writeLn = function(f) { + void 0 === f && (f = ""); + this._suppressOutput || this._out(this._padding + f); }; - d.prototype.writeObject = function(e, b) { - void 0 === e && (e = ""); - this._suppressOutput || this._out(this._padding + e, b); + e.prototype.writeObject = function(f, c) { + void 0 === f && (f = ""); + this._suppressOutput || this._out(this._padding + f, c); }; - d.prototype.writeTimeLn = function(e) { - void 0 === e && (e = ""); - this._suppressOutput || this._out(this._padding + performance.now().toFixed(2) + " " + e); + e.prototype.writeTimeLn = function(f) { + void 0 === f && (f = ""); + this._suppressOutput || this._out(this._padding + performance.now().toFixed(2) + " " + f); }; - d.prototype.writeComment = function(e) { - e = e.split("\n"); - if (1 === e.length) { - this.writeLn("// " + e[0]); + e.prototype.writeComment = function(f) { + f = f.split("\n"); + if (1 === f.length) { + this.writeLn("// " + f[0]); } else { this.writeLn("/**"); - for (var b = 0;b < e.length;b++) { - this.writeLn(" * " + e[b]); + for (var c = 0;c < f.length;c++) { + this.writeLn(" * " + f[c]); } this.writeLn(" */"); } }; - d.prototype.writeLns = function(e) { - e = e.split("\n"); - for (var b = 0;b < e.length;b++) { - this.writeLn(e[b]); + e.prototype.writeLns = function(f) { + f = f.split("\n"); + for (var c = 0;c < f.length;c++) { + this.writeLn(f[c]); } }; - d.prototype.errorLn = function(e) { - d.logLevel & 1 && this.boldRedLn(e); + e.prototype.errorLn = function(f) { + e.logLevel & 1 && this.boldRedLn(f); }; - d.prototype.warnLn = function(e) { - d.logLevel & 2 && this.yellowLn(e); + e.prototype.warnLn = function(f) { + e.logLevel & 2 && this.yellowLn(f); }; - d.prototype.debugLn = function(e) { - d.logLevel & 4 && this.purpleLn(e); + e.prototype.debugLn = function(f) { + e.logLevel & 4 && this.purpleLn(f); }; - d.prototype.logLn = function(e) { - d.logLevel & 8 && this.writeLn(e); + e.prototype.logLn = function(f) { + e.logLevel & 8 && this.writeLn(f); }; - d.prototype.infoLn = function(e) { - d.logLevel & 16 && this.writeLn(e); + e.prototype.infoLn = function(f) { + e.logLevel & 16 && this.writeLn(f); }; - d.prototype.yellowLn = function(e) { - this.colorLn(d.YELLOW, e); + e.prototype.yellowLn = function(f) { + this.colorLn(e.YELLOW, f); }; - d.prototype.greenLn = function(e) { - this.colorLn(d.GREEN, e); + e.prototype.greenLn = function(f) { + this.colorLn(e.GREEN, f); }; - d.prototype.boldRedLn = function(e) { - this.colorLn(d.BOLD_RED, e); + e.prototype.boldRedLn = function(f) { + this.colorLn(e.BOLD_RED, f); }; - d.prototype.redLn = function(e) { - this.colorLn(d.RED, e); + e.prototype.redLn = function(f) { + this.colorLn(e.RED, f); }; - d.prototype.purpleLn = function(e) { - this.colorLn(d.PURPLE, e); + e.prototype.purpleLn = function(f) { + this.colorLn(e.PURPLE, f); }; - d.prototype.colorLn = function(e, b) { - this._suppressOutput || (inBrowser ? this._out(this._padding + b) : this._out(this._padding + e + b + d.ENDC)); + e.prototype.colorLn = function(f, c) { + this._suppressOutput || (inBrowser ? this._out(this._padding + c) : this._out(this._padding + f + c + e.ENDC)); }; - d.prototype.redLns = function(e) { - this.colorLns(d.RED, e); + e.prototype.redLns = function(f) { + this.colorLns(e.RED, f); }; - d.prototype.colorLns = function(e, b) { - for (var f = b.split("\n"), q = 0;q < f.length;q++) { - this.colorLn(e, f[q]); + e.prototype.colorLns = function(f, c) { + for (var d = c.split("\n"), q = 0;q < d.length;q++) { + this.colorLn(f, d[q]); } }; - d.prototype.enter = function(e) { - this._suppressOutput || this._out(this._padding + e); + e.prototype.enter = function(f) { + this._suppressOutput || this._out(this._padding + f); this.indent(); }; - d.prototype.leaveAndEnter = function(e) { - this.leave(e); + e.prototype.leaveAndEnter = function(f) { + this.leave(f); this.indent(); }; - d.prototype.leave = function(e) { + e.prototype.leave = function(f) { this.outdent(); - !this._suppressOutput && e && this._out(this._padding + e); + !this._suppressOutput && f && this._out(this._padding + f); }; - d.prototype.indent = function() { + e.prototype.indent = function() { this._padding += this._tab; }; - d.prototype.outdent = function() { + e.prototype.outdent = function() { 0 < this._padding.length && (this._padding = this._padding.substring(0, this._padding.length - this._tab.length)); }; - d.prototype.writeArray = function(e, b, f) { - void 0 === b && (b = !1); - void 0 === f && (f = !1); - b = b || !1; - for (var q = 0, d = e.length;q < d;q++) { + e.prototype.writeArray = function(f, c, d) { + void 0 === c && (c = !1); + void 0 === d && (d = !1); + c = c || !1; + for (var q = 0, e = f.length;q < e;q++) { var a = ""; - b && (a = null === e[q] ? "null" : void 0 === e[q] ? "undefined" : e[q].constructor.name, a += " "); - var h = f ? "" : ("" + q).padRight(" ", 4); - this.writeLn(h + a + e[q]); + c && (a = null === f[q] ? "null" : void 0 === f[q] ? "undefined" : f[q].constructor.name, a += " "); + var h = d ? "" : ("" + q).padRight(" ", 4); + this.writeLn(h + a + f[q]); } }; - d.PURPLE = "\u001b[94m"; - d.YELLOW = "\u001b[93m"; - d.GREEN = "\u001b[92m"; - d.RED = "\u001b[91m"; - d.BOLD_RED = "\u001b[1;91m"; - d.ENDC = "\u001b[0m"; - d.logLevel = 31; - d._consoleOut = console.info.bind(console); - d._consoleOutNoNewline = console.info.bind(console); - return d; + e.PURPLE = "\u001b[94m"; + e.YELLOW = "\u001b[93m"; + e.GREEN = "\u001b[92m"; + e.RED = "\u001b[91m"; + e.BOLD_RED = "\u001b[1;91m"; + e.ENDC = "\u001b[0m"; + e.logLevel = 31; + e._consoleOut = console.info.bind(console); + e._consoleOutNoNewline = console.info.bind(console); + return e; }(); k.IndentingWriter = a; var m = function() { - return function(d, e) { - this.value = d; - this.next = e; + return function(e, f) { + this.value = e; + this.next = f; }; }(), a = function() { - function d(e) { - this._compare = e; + function e(f) { + this._compare = f; this._head = null; this._length = 0; } - d.prototype.push = function(e) { + e.prototype.push = function(f) { this._length++; if (this._head) { - var b = this._head, f = null; - e = new m(e, null); - for (var q = this._compare;b;) { - if (0 < q(b.value, e.value)) { - f ? (e.next = b, f.next = e) : (e.next = this._head, this._head = e); + var c = this._head, d = null; + f = new m(f, null); + for (var q = this._compare;c;) { + if (0 < q(c.value, f.value)) { + d ? (f.next = c, d.next = f) : (f.next = this._head, this._head = f); return; } - f = b; - b = b.next; + d = c; + c = c.next; } - f.next = e; + d.next = f; } else { - this._head = new m(e, null); + this._head = new m(f, null); } }; - d.prototype.forEach = function(e) { - for (var b = this._head, f = null;b;) { - var q = e(b.value); - if (q === d.RETURN) { + e.prototype.forEach = function(f) { + for (var c = this._head, d = null;c;) { + var q = f(c.value); + if (q === e.RETURN) { break; } else { - q === d.DELETE ? b = f ? f.next = b.next : this._head = this._head.next : (f = b, b = b.next); + q === e.DELETE ? c = d ? d.next = c.next : this._head = this._head.next : (d = c, c = c.next); } } }; - d.prototype.isEmpty = function() { - return!this._head; + e.prototype.isEmpty = function() { + return !this._head; }; - d.prototype.pop = function() { + e.prototype.pop = function() { if (this._head) { this._length--; - var e = this._head; + var f = this._head; this._head = this._head.next; - return e.value; + return f.value; } }; - d.prototype.contains = function(e) { - for (var b = this._head;b;) { - if (b.value === e) { - return!0; + e.prototype.contains = function(f) { + for (var c = this._head;c;) { + if (c.value === f) { + return !0; } - b = b.next; + c = c.next; } - return!1; + return !1; }; - d.prototype.toString = function() { - for (var e = "[", b = this._head;b;) { - e += b.value.toString(), (b = b.next) && (e += ","); + e.prototype.toString = function() { + for (var f = "[", c = this._head;c;) { + f += c.value.toString(), (c = c.next) && (f += ","); } - return e + "]"; + return f + "]"; }; - d.RETURN = 1; - d.DELETE = 2; - return d; + e.RETURN = 1; + e.DELETE = 2; + return e; }(); k.SortedList = a; a = function() { - function d(e, b) { - void 0 === b && (b = 12); + function e(f, c) { + void 0 === c && (c = 12); this.start = this.index = 0; - this._size = 1 << b; + this._size = 1 << c; this._mask = this._size - 1; - this.array = new e(this._size); + this.array = new f(this._size); } - d.prototype.get = function(e) { - return this.array[e]; + e.prototype.get = function(f) { + return this.array[f]; }; - d.prototype.forEachInReverse = function(e) { + e.prototype.forEachInReverse = function(f) { if (!this.isEmpty()) { - for (var b = 0 === this.index ? this._size - 1 : this.index - 1, f = this.start - 1 & this._mask;b !== f && !e(this.array[b], b);) { - b = 0 === b ? this._size - 1 : b - 1; + for (var c = 0 === this.index ? this._size - 1 : this.index - 1, d = this.start - 1 & this._mask;c !== d && !f(this.array[c], c);) { + c = 0 === c ? this._size - 1 : c - 1; } } }; - d.prototype.write = function(e) { - this.array[this.index] = e; + e.prototype.write = function(f) { + this.array[this.index] = f; this.index = this.index + 1 & this._mask; this.index === this.start && (this.start = this.start + 1 & this._mask); }; - d.prototype.isFull = function() { - return(this.index + 1 & this._mask) === this.start; + e.prototype.isFull = function() { + return (this.index + 1 & this._mask) === this.start; }; - d.prototype.isEmpty = function() { + e.prototype.isEmpty = function() { return this.index === this.start; }; - d.prototype.reset = function() { + e.prototype.reset = function() { this.start = this.index = 0; }; - return d; + return e; }(); k.CircularBuffer = a; - (function(d) { - function e(b) { - return b + (d.BITS_PER_WORD - 1) >> d.ADDRESS_BITS_PER_WORD << d.ADDRESS_BITS_PER_WORD; + (function(e) { + function f(d) { + return d + (e.BITS_PER_WORD - 1) >> e.ADDRESS_BITS_PER_WORD << e.ADDRESS_BITS_PER_WORD; } - function b(b, f) { - b = b || "1"; - f = f || "0"; - for (var q = "", e = 0;e < length;e++) { - q += this.get(e) ? b : f; + function c(d, c) { + d = d || "1"; + c = c || "0"; + for (var q = "", f = 0;f < length;f++) { + q += this.get(f) ? d : c; } return q; } - function f(b) { - for (var f = [], q = 0;q < length;q++) { - this.get(q) && f.push(b ? b[q] : q); + function d(d) { + for (var c = [], q = 0;q < length;q++) { + this.get(q) && c.push(d ? d[q] : q); } - return f.join(", "); + return c.join(", "); } - d.ADDRESS_BITS_PER_WORD = 5; - d.BITS_PER_WORD = 1 << d.ADDRESS_BITS_PER_WORD; - d.BIT_INDEX_MASK = d.BITS_PER_WORD - 1; + e.ADDRESS_BITS_PER_WORD = 5; + e.BITS_PER_WORD = 1 << e.ADDRESS_BITS_PER_WORD; + e.BIT_INDEX_MASK = e.BITS_PER_WORD - 1; var q = function() { - function b(f) { - this.size = e(f); + function d(c) { + this.size = f(c); this.dirty = this.count = 0; - this.length = f; - this.bits = new Uint32Array(this.size >> d.ADDRESS_BITS_PER_WORD); + this.length = c; + this.bits = new Uint32Array(this.size >> e.ADDRESS_BITS_PER_WORD); } - b.prototype.recount = function() { + d.prototype.recount = function() { if (this.dirty) { - for (var b = this.bits, f = 0, q = 0, e = b.length;q < e;q++) { - var d = b[q], d = d - (d >> 1 & 1431655765), d = (d & 858993459) + (d >> 2 & 858993459), f = f + (16843009 * (d + (d >> 4) & 252645135) >> 24) + for (var d = this.bits, c = 0, q = 0, f = d.length;q < f;q++) { + var e = d[q], e = e - (e >> 1 & 1431655765), e = (e & 858993459) + (e >> 2 & 858993459), c = c + (16843009 * (e + (e >> 4) & 252645135) >> 24) } - this.count = f; + this.count = c; this.dirty = 0; } }; - b.prototype.set = function(b) { - var f = b >> d.ADDRESS_BITS_PER_WORD, q = this.bits[f]; - b = q | 1 << (b & d.BIT_INDEX_MASK); - this.bits[f] = b; - this.dirty |= q ^ b; + d.prototype.set = function(d) { + var c = d >> e.ADDRESS_BITS_PER_WORD, q = this.bits[c]; + d = q | 1 << (d & e.BIT_INDEX_MASK); + this.bits[c] = d; + this.dirty |= q ^ d; }; - b.prototype.setAll = function() { - for (var b = this.bits, f = 0, q = b.length;f < q;f++) { - b[f] = 4294967295; + d.prototype.setAll = function() { + for (var d = this.bits, c = 0, q = d.length;c < q;c++) { + d[c] = 4294967295; } this.count = this.size; this.dirty = 0; }; - b.prototype.assign = function(b) { - this.count = b.count; - this.dirty = b.dirty; - this.size = b.size; - for (var f = 0, q = this.bits.length;f < q;f++) { - this.bits[f] = b.bits[f]; + d.prototype.assign = function(d) { + this.count = d.count; + this.dirty = d.dirty; + this.size = d.size; + for (var c = 0, q = this.bits.length;c < q;c++) { + this.bits[c] = d.bits[c]; } }; - b.prototype.clear = function(b) { - var f = b >> d.ADDRESS_BITS_PER_WORD, q = this.bits[f]; - b = q & ~(1 << (b & d.BIT_INDEX_MASK)); - this.bits[f] = b; - this.dirty |= q ^ b; + d.prototype.clear = function(d) { + var c = d >> e.ADDRESS_BITS_PER_WORD, q = this.bits[c]; + d = q & ~(1 << (d & e.BIT_INDEX_MASK)); + this.bits[c] = d; + this.dirty |= q ^ d; }; - b.prototype.get = function(b) { - return 0 !== (this.bits[b >> d.ADDRESS_BITS_PER_WORD] & 1 << (b & d.BIT_INDEX_MASK)); + d.prototype.get = function(d) { + return 0 !== (this.bits[d >> e.ADDRESS_BITS_PER_WORD] & 1 << (d & e.BIT_INDEX_MASK)); }; - b.prototype.clearAll = function() { - for (var b = this.bits, f = 0, q = b.length;f < q;f++) { - b[f] = 0; + d.prototype.clearAll = function() { + for (var d = this.bits, c = 0, q = d.length;c < q;c++) { + d[c] = 0; } this.dirty = this.count = 0; }; - b.prototype._union = function(b) { - var f = this.dirty, q = this.bits; - b = b.bits; - for (var e = 0, d = q.length;e < d;e++) { - var a = q[e], w = a | b[e]; - q[e] = w; - f |= a ^ w; + d.prototype._union = function(d) { + var c = this.dirty, q = this.bits; + d = d.bits; + for (var f = 0, e = q.length;f < e;f++) { + var u = q[f], a = u | d[f]; + q[f] = a; + c |= u ^ a; } - this.dirty = f; + this.dirty = c; }; - b.prototype.intersect = function(b) { - var f = this.dirty, q = this.bits; - b = b.bits; - for (var e = 0, d = q.length;e < d;e++) { - var a = q[e], w = a & b[e]; - q[e] = w; - f |= a ^ w; + d.prototype.intersect = function(d) { + var c = this.dirty, q = this.bits; + d = d.bits; + for (var f = 0, e = q.length;f < e;f++) { + var u = q[f], a = u & d[f]; + q[f] = a; + c |= u ^ a; } - this.dirty = f; + this.dirty = c; }; - b.prototype.subtract = function(b) { - var f = this.dirty, q = this.bits; - b = b.bits; - for (var e = 0, d = q.length;e < d;e++) { - var a = q[e], w = a & ~b[e]; - q[e] = w; - f |= a ^ w; + d.prototype.subtract = function(d) { + var c = this.dirty, q = this.bits; + d = d.bits; + for (var f = 0, e = q.length;f < e;f++) { + var u = q[f], a = u & ~d[f]; + q[f] = a; + c |= u ^ a; } - this.dirty = f; + this.dirty = c; }; - b.prototype.negate = function() { - for (var b = this.dirty, f = this.bits, q = 0, e = f.length;q < e;q++) { - var d = f[q], a = ~d; - f[q] = a; - b |= d ^ a; + d.prototype.negate = function() { + for (var d = this.dirty, c = this.bits, q = 0, f = c.length;q < f;q++) { + var e = c[q], u = ~e; + c[q] = u; + d |= e ^ u; } - this.dirty = b; + this.dirty = d; }; - b.prototype.forEach = function(b) { - for (var f = this.bits, q = 0, e = f.length;q < e;q++) { - var a = f[q]; - if (a) { - for (var w = 0;w < d.BITS_PER_WORD;w++) { - a & 1 << w && b(q * d.BITS_PER_WORD + w); + d.prototype.forEach = function(d) { + for (var c = this.bits, q = 0, f = c.length;q < f;q++) { + var u = c[q]; + if (u) { + for (var a = 0;a < e.BITS_PER_WORD;a++) { + u & 1 << a && d(q * e.BITS_PER_WORD + a); } } } }; - b.prototype.toArray = function() { - for (var b = [], f = this.bits, q = 0, e = f.length;q < e;q++) { - var a = f[q]; - if (a) { - for (var w = 0;w < d.BITS_PER_WORD;w++) { - a & 1 << w && b.push(q * d.BITS_PER_WORD + w); + d.prototype.toArray = function() { + for (var d = [], c = this.bits, q = 0, f = c.length;q < f;q++) { + var u = c[q]; + if (u) { + for (var a = 0;a < e.BITS_PER_WORD;a++) { + u & 1 << a && d.push(q * e.BITS_PER_WORD + a); } } } - return b; + return d; }; - b.prototype.equals = function(b) { - if (this.size !== b.size) { - return!1; + d.prototype.equals = function(d) { + if (this.size !== d.size) { + return !1; } - var f = this.bits; - b = b.bits; - for (var q = 0, e = f.length;q < e;q++) { - if (f[q] !== b[q]) { - return!1; + var c = this.bits; + d = d.bits; + for (var q = 0, f = c.length;q < f;q++) { + if (c[q] !== d[q]) { + return !1; } } - return!0; + return !0; }; - b.prototype.contains = function(b) { - if (this.size !== b.size) { - return!1; + d.prototype.contains = function(d) { + if (this.size !== d.size) { + return !1; } - var f = this.bits; - b = b.bits; - for (var q = 0, e = f.length;q < e;q++) { - if ((f[q] | b[q]) !== f[q]) { - return!1; + var c = this.bits; + d = d.bits; + for (var q = 0, f = c.length;q < f;q++) { + if ((c[q] | d[q]) !== c[q]) { + return !1; } } - return!0; + return !0; }; - b.prototype.isEmpty = function() { + d.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; - b.prototype.clone = function() { - var f = new b(this.length); - f._union(this); - return f; + d.prototype.clone = function() { + var c = new d(this.length); + c._union(this); + return c; }; - return b; + return d; }(); - d.Uint32ArrayBitSet = q; - var a = function() { - function b(f) { + e.Uint32ArrayBitSet = q; + var u = function() { + function d(c) { this.dirty = this.count = 0; - this.size = e(f); + this.size = f(c); this.bits = 0; this.singleWord = !0; - this.length = f; + this.length = c; } - b.prototype.recount = function() { + d.prototype.recount = function() { if (this.dirty) { - var b = this.bits, b = b - (b >> 1 & 1431655765), b = (b & 858993459) + (b >> 2 & 858993459); - this.count = 0 + (16843009 * (b + (b >> 4) & 252645135) >> 24); + var d = this.bits, d = d - (d >> 1 & 1431655765), d = (d & 858993459) + (d >> 2 & 858993459); + this.count = 0 + (16843009 * (d + (d >> 4) & 252645135) >> 24); this.dirty = 0; } }; - b.prototype.set = function(b) { - var f = this.bits; - this.bits = b = f | 1 << (b & d.BIT_INDEX_MASK); - this.dirty |= f ^ b; + d.prototype.set = function(d) { + var c = this.bits; + this.bits = d = c | 1 << (d & e.BIT_INDEX_MASK); + this.dirty |= c ^ d; }; - b.prototype.setAll = function() { + d.prototype.setAll = function() { this.bits = 4294967295; this.count = this.size; this.dirty = 0; }; - b.prototype.assign = function(b) { - this.count = b.count; - this.dirty = b.dirty; - this.size = b.size; - this.bits = b.bits; + d.prototype.assign = function(d) { + this.count = d.count; + this.dirty = d.dirty; + this.size = d.size; + this.bits = d.bits; }; - b.prototype.clear = function(b) { - var f = this.bits; - this.bits = b = f & ~(1 << (b & d.BIT_INDEX_MASK)); - this.dirty |= f ^ b; + d.prototype.clear = function(d) { + var c = this.bits; + this.bits = d = c & ~(1 << (d & e.BIT_INDEX_MASK)); + this.dirty |= c ^ d; }; - b.prototype.get = function(b) { - return 0 !== (this.bits & 1 << (b & d.BIT_INDEX_MASK)); + d.prototype.get = function(d) { + return 0 !== (this.bits & 1 << (d & e.BIT_INDEX_MASK)); }; - b.prototype.clearAll = function() { + d.prototype.clearAll = function() { this.dirty = this.count = this.bits = 0; }; - b.prototype._union = function(b) { - var f = this.bits; - this.bits = b = f | b.bits; - this.dirty = f ^ b; + d.prototype._union = function(d) { + var c = this.bits; + this.bits = d = c | d.bits; + this.dirty = c ^ d; }; - b.prototype.intersect = function(b) { - var f = this.bits; - this.bits = b = f & b.bits; - this.dirty = f ^ b; + d.prototype.intersect = function(d) { + var c = this.bits; + this.bits = d = c & d.bits; + this.dirty = c ^ d; }; - b.prototype.subtract = function(b) { - var f = this.bits; - this.bits = b = f & ~b.bits; - this.dirty = f ^ b; + d.prototype.subtract = function(d) { + var c = this.bits; + this.bits = d = c & ~d.bits; + this.dirty = c ^ d; }; - b.prototype.negate = function() { - var b = this.bits, f = ~b; - this.bits = f; - this.dirty = b ^ f; + d.prototype.negate = function() { + var d = this.bits, c = ~d; + this.bits = c; + this.dirty = d ^ c; }; - b.prototype.forEach = function(b) { - var f = this.bits; - if (f) { - for (var q = 0;q < d.BITS_PER_WORD;q++) { - f & 1 << q && b(q); + d.prototype.forEach = function(d) { + var c = this.bits; + if (c) { + for (var q = 0;q < e.BITS_PER_WORD;q++) { + c & 1 << q && d(q); } } }; - b.prototype.toArray = function() { - var b = [], f = this.bits; - if (f) { - for (var q = 0;q < d.BITS_PER_WORD;q++) { - f & 1 << q && b.push(q); + d.prototype.toArray = function() { + var d = [], c = this.bits; + if (c) { + for (var q = 0;q < e.BITS_PER_WORD;q++) { + c & 1 << q && d.push(q); } } - return b; + return d; }; - b.prototype.equals = function(b) { - return this.bits === b.bits; + d.prototype.equals = function(d) { + return this.bits === d.bits; }; - b.prototype.contains = function(b) { - var f = this.bits; - return(f | b.bits) === f; + d.prototype.contains = function(d) { + var c = this.bits; + return (c | d.bits) === c; }; - b.prototype.isEmpty = function() { + d.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; - b.prototype.clone = function() { - var f = new b(this.length); - f._union(this); - return f; + d.prototype.clone = function() { + var c = new d(this.length); + c._union(this); + return c; }; - return b; + return d; }(); - d.Uint32BitSet = a; - a.prototype.toString = f; - a.prototype.toBitString = b; - q.prototype.toString = f; - q.prototype.toBitString = b; - d.BitSetFunctor = function(b) { - var f = 1 === e(b) >> d.ADDRESS_BITS_PER_WORD ? a : q; + e.Uint32BitSet = u; + u.prototype.toString = d; + u.prototype.toBitString = c; + q.prototype.toString = d; + q.prototype.toBitString = c; + e.BitSetFunctor = function(d) { + var c = 1 === f(d) >> e.ADDRESS_BITS_PER_WORD ? u : q; return function() { - return new f(b); + return new c(d); }; }; })(k.BitSets || (k.BitSets = {})); a = function() { - function d() { + function e() { } - d.randomStyle = function() { - d._randomStyleCache || (d._randomStyleCache = "#ff5e3a #ff9500 #ffdb4c #87fc70 #52edc7 #1ad6fd #c644fc #ef4db6 #4a4a4a #dbddde #ff3b30 #ff9500 #ffcc00 #4cd964 #34aadc #007aff #5856d6 #ff2d55 #8e8e93 #c7c7cc #5ad427 #c86edf #d1eefc #e0f8d8 #fb2b69 #f7f7f7 #1d77ef #d6cec3 #55efcb #ff4981 #ffd3e0 #f7f7f7 #ff1300 #1f1f21 #bdbec2 #ff3a2d".split(" ")); - return d._randomStyleCache[d._nextStyle++ % d._randomStyleCache.length]; + e.randomStyle = function() { + e._randomStyleCache || (e._randomStyleCache = "#ff5e3a #ff9500 #ffdb4c #87fc70 #52edc7 #1ad6fd #c644fc #ef4db6 #4a4a4a #dbddde #ff3b30 #ff9500 #ffcc00 #4cd964 #34aadc #007aff #5856d6 #ff2d55 #8e8e93 #c7c7cc #5ad427 #c86edf #d1eefc #e0f8d8 #fb2b69 #f7f7f7 #1d77ef #d6cec3 #55efcb #ff4981 #ffd3e0 #f7f7f7 #ff1300 #1f1f21 #bdbec2 #ff3a2d".split(" ")); + return e._randomStyleCache[e._nextStyle++ % e._randomStyleCache.length]; }; - d.gradientColor = function(e) { - return d._gradient[d._gradient.length * l.clamp(e, 0, 1) | 0]; + e.gradientColor = function(f) { + return e._gradient[e._gradient.length * l.clamp(f, 0, 1) | 0]; }; - d.contrastStyle = function(e) { - e = parseInt(e.substr(1), 16); - return 128 <= (299 * (e >> 16) + 587 * (e >> 8 & 255) + 114 * (e & 255)) / 1E3 ? "#000000" : "#ffffff"; + e.contrastStyle = function(f) { + f = parseInt(f.substr(1), 16); + return 128 <= (299 * (f >> 16) + 587 * (f >> 8 & 255) + 114 * (f & 255)) / 1E3 ? "#000000" : "#ffffff"; }; - d.reset = function() { - d._nextStyle = 0; + e.reset = function() { + e._nextStyle = 0; }; - d.TabToolbar = "#252c33"; - d.Toolbars = "#343c45"; - d.HighlightBlue = "#1d4f73"; - d.LightText = "#f5f7fa"; - d.ForegroundText = "#b6babf"; - d.Black = "#000000"; - d.VeryDark = "#14171a"; - d.Dark = "#181d20"; - d.Light = "#a9bacb"; - d.Grey = "#8fa1b2"; - d.DarkGrey = "#5f7387"; - d.Blue = "#46afe3"; - d.Purple = "#6b7abb"; - d.Pink = "#df80ff"; - d.Red = "#eb5368"; - d.Orange = "#d96629"; - d.LightOrange = "#d99b28"; - d.Green = "#70bf53"; - d.BlueGrey = "#5e88b0"; - d._nextStyle = 0; - d._gradient = "#FF0000 #FF1100 #FF2300 #FF3400 #FF4600 #FF5700 #FF6900 #FF7B00 #FF8C00 #FF9E00 #FFAF00 #FFC100 #FFD300 #FFE400 #FFF600 #F7FF00 #E5FF00 #D4FF00 #C2FF00 #B0FF00 #9FFF00 #8DFF00 #7CFF00 #6AFF00 #58FF00 #47FF00 #35FF00 #24FF00 #12FF00 #00FF00".split(" "); - return d; + e.TabToolbar = "#252c33"; + e.Toolbars = "#343c45"; + e.HighlightBlue = "#1d4f73"; + e.LightText = "#f5f7fa"; + e.ForegroundText = "#b6babf"; + e.Black = "#000000"; + e.VeryDark = "#14171a"; + e.Dark = "#181d20"; + e.Light = "#a9bacb"; + e.Grey = "#8fa1b2"; + e.DarkGrey = "#5f7387"; + e.Blue = "#46afe3"; + e.Purple = "#6b7abb"; + e.Pink = "#df80ff"; + e.Red = "#eb5368"; + e.Orange = "#d96629"; + e.LightOrange = "#d99b28"; + e.Green = "#70bf53"; + e.BlueGrey = "#5e88b0"; + e._nextStyle = 0; + e._gradient = "#FF0000 #FF1100 #FF2300 #FF3400 #FF4600 #FF5700 #FF6900 #FF7B00 #FF8C00 #FF9E00 #FFAF00 #FFC100 #FFD300 #FFE400 #FFF600 #F7FF00 #E5FF00 #D4FF00 #C2FF00 #B0FF00 #9FFF00 #8DFF00 #7CFF00 #6AFF00 #58FF00 #47FF00 #35FF00 #24FF00 #12FF00 #00FF00".split(" "); + return e; }(); k.ColorStyle = a; a = function() { - function d(e, b, f, q) { - this.xMin = e | 0; - this.yMin = b | 0; - this.xMax = f | 0; + function e(f, c, d, q) { + this.xMin = f | 0; + this.yMin = c | 0; + this.xMax = d | 0; this.yMax = q | 0; } - d.FromUntyped = function(e) { - return new d(e.xMin, e.yMin, e.xMax, e.yMax); + e.FromUntyped = function(f) { + return new e(f.xMin, f.yMin, f.xMax, f.yMax); }; - d.FromRectangle = function(e) { - return new d(20 * e.x | 0, 20 * e.y | 0, 20 * (e.x + e.width) | 0, 20 * (e.y + e.height) | 0); + e.FromRectangle = function(f) { + return new e(20 * f.x | 0, 20 * f.y | 0, 20 * (f.x + f.width) | 0, 20 * (f.y + f.height) | 0); }; - d.prototype.setElements = function(e, b, f, q) { - this.xMin = e; - this.yMin = b; - this.xMax = f; + e.prototype.setElements = function(f, c, d, q) { + this.xMin = f; + this.yMin = c; + this.xMax = d; this.yMax = q; }; - d.prototype.copyFrom = function(e) { - this.setElements(e.xMin, e.yMin, e.xMax, e.yMax); + e.prototype.copyFrom = function(f) { + this.setElements(f.xMin, f.yMin, f.xMax, f.yMax); }; - d.prototype.contains = function(e, b) { - return e < this.xMin !== e < this.xMax && b < this.yMin !== b < this.yMax; + e.prototype.contains = function(f, c) { + return f < this.xMin !== f < this.xMax && c < this.yMin !== c < this.yMax; }; - d.prototype.unionInPlace = function(e) { - e.isEmpty() || (this.extendByPoint(e.xMin, e.yMin), this.extendByPoint(e.xMax, e.yMax)); + e.prototype.unionInPlace = function(f) { + f.isEmpty() || (this.extendByPoint(f.xMin, f.yMin), this.extendByPoint(f.xMax, f.yMax)); }; - d.prototype.extendByPoint = function(e, b) { - this.extendByX(e); - this.extendByY(b); + e.prototype.extendByPoint = function(f, c) { + this.extendByX(f); + this.extendByY(c); }; - d.prototype.extendByX = function(e) { - 134217728 === this.xMin ? this.xMin = this.xMax = e : (this.xMin = Math.min(this.xMin, e), this.xMax = Math.max(this.xMax, e)); + e.prototype.extendByX = function(f) { + 134217728 === this.xMin ? this.xMin = this.xMax = f : (this.xMin = Math.min(this.xMin, f), this.xMax = Math.max(this.xMax, f)); }; - d.prototype.extendByY = function(e) { - 134217728 === this.yMin ? this.yMin = this.yMax = e : (this.yMin = Math.min(this.yMin, e), this.yMax = Math.max(this.yMax, e)); + e.prototype.extendByY = function(f) { + 134217728 === this.yMin ? this.yMin = this.yMax = f : (this.yMin = Math.min(this.yMin, f), this.yMax = Math.max(this.yMax, f)); }; - d.prototype.intersects = function(e) { - return this.contains(e.xMin, e.yMin) || this.contains(e.xMax, e.yMax); + e.prototype.intersects = function(f) { + return this.contains(f.xMin, f.yMin) || this.contains(f.xMax, f.yMax); }; - d.prototype.isEmpty = function() { + e.prototype.isEmpty = function() { return this.xMax <= this.xMin || this.yMax <= this.yMin; }; - Object.defineProperty(d.prototype, "width", {get:function() { + Object.defineProperty(e.prototype, "width", {get:function() { return this.xMax - this.xMin; - }, set:function(e) { - this.xMax = this.xMin + e; + }, set:function(f) { + this.xMax = this.xMin + f; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "height", {get:function() { + Object.defineProperty(e.prototype, "height", {get:function() { return this.yMax - this.yMin; - }, set:function(e) { - this.yMax = this.yMin + e; + }, set:function(f) { + this.yMax = this.yMin + f; }, enumerable:!0, configurable:!0}); - d.prototype.getBaseWidth = function(e) { - return Math.abs(Math.cos(e)) * (this.xMax - this.xMin) + Math.abs(Math.sin(e)) * (this.yMax - this.yMin); + e.prototype.getBaseWidth = function(f) { + return Math.abs(Math.cos(f)) * (this.xMax - this.xMin) + Math.abs(Math.sin(f)) * (this.yMax - this.yMin); }; - d.prototype.getBaseHeight = function(e) { - return Math.abs(Math.sin(e)) * (this.xMax - this.xMin) + Math.abs(Math.cos(e)) * (this.yMax - this.yMin); + e.prototype.getBaseHeight = function(f) { + return Math.abs(Math.sin(f)) * (this.xMax - this.xMin) + Math.abs(Math.cos(f)) * (this.yMax - this.yMin); }; - d.prototype.setEmpty = function() { + e.prototype.setEmpty = function() { this.xMin = this.yMin = this.xMax = this.yMax = 0; }; - d.prototype.setToSentinels = function() { + e.prototype.setToSentinels = function() { this.xMin = this.yMin = this.xMax = this.yMax = 134217728; }; - d.prototype.clone = function() { - return new d(this.xMin, this.yMin, this.xMax, this.yMax); + e.prototype.clone = function() { + return new e(this.xMin, this.yMin, this.xMax, this.yMax); }; - d.prototype.toString = function() { + e.prototype.toString = function() { return "{ xMin: " + this.xMin + ", xMin: " + this.yMin + ", xMax: " + this.xMax + ", xMax: " + this.yMax + " }"; }; - return d; + return e; }(); k.Bounds = a; a = function() { - function d(e, b, f, q) { - n.assert(r(e)); - n.assert(r(b)); + function e(f, c, d, q) { n.assert(r(f)); + n.assert(r(c)); + n.assert(r(d)); n.assert(r(q)); - this._xMin = e | 0; - this._yMin = b | 0; - this._xMax = f | 0; + this._xMin = f | 0; + this._yMin = c | 0; + this._xMax = d | 0; this._yMax = q | 0; } - d.FromUntyped = function(e) { - return new d(e.xMin, e.yMin, e.xMax, e.yMax); + e.FromUntyped = function(f) { + return new e(f.xMin, f.yMin, f.xMax, f.yMax); }; - d.FromRectangle = function(e) { - return new d(20 * e.x | 0, 20 * e.y | 0, 20 * (e.x + e.width) | 0, 20 * (e.y + e.height) | 0); + e.FromRectangle = function(f) { + return new e(20 * f.x | 0, 20 * f.y | 0, 20 * (f.x + f.width) | 0, 20 * (f.y + f.height) | 0); }; - d.prototype.setElements = function(e, b, f, q) { - this.xMin = e; - this.yMin = b; - this.xMax = f; + e.prototype.setElements = function(f, c, d, q) { + this.xMin = f; + this.yMin = c; + this.xMax = d; this.yMax = q; }; - d.prototype.copyFrom = function(e) { - this.setElements(e.xMin, e.yMin, e.xMax, e.yMax); + e.prototype.copyFrom = function(f) { + this.setElements(f.xMin, f.yMin, f.xMax, f.yMax); }; - d.prototype.contains = function(e, b) { - return e < this.xMin !== e < this.xMax && b < this.yMin !== b < this.yMax; + e.prototype.contains = function(f, c) { + return f < this.xMin !== f < this.xMax && c < this.yMin !== c < this.yMax; }; - d.prototype.unionInPlace = function(e) { - e.isEmpty() || (this.extendByPoint(e.xMin, e.yMin), this.extendByPoint(e.xMax, e.yMax)); + e.prototype.unionInPlace = function(f) { + f.isEmpty() || (this.extendByPoint(f.xMin, f.yMin), this.extendByPoint(f.xMax, f.yMax)); }; - d.prototype.extendByPoint = function(e, b) { - this.extendByX(e); - this.extendByY(b); + e.prototype.extendByPoint = function(f, c) { + this.extendByX(f); + this.extendByY(c); }; - d.prototype.extendByX = function(e) { - 134217728 === this.xMin ? this.xMin = this.xMax = e : (this.xMin = Math.min(this.xMin, e), this.xMax = Math.max(this.xMax, e)); + e.prototype.extendByX = function(f) { + 134217728 === this.xMin ? this.xMin = this.xMax = f : (this.xMin = Math.min(this.xMin, f), this.xMax = Math.max(this.xMax, f)); }; - d.prototype.extendByY = function(e) { - 134217728 === this.yMin ? this.yMin = this.yMax = e : (this.yMin = Math.min(this.yMin, e), this.yMax = Math.max(this.yMax, e)); + e.prototype.extendByY = function(f) { + 134217728 === this.yMin ? this.yMin = this.yMax = f : (this.yMin = Math.min(this.yMin, f), this.yMax = Math.max(this.yMax, f)); }; - d.prototype.intersects = function(e) { - return this.contains(e._xMin, e._yMin) || this.contains(e._xMax, e._yMax); + e.prototype.intersects = function(f) { + return this.contains(f._xMin, f._yMin) || this.contains(f._xMax, f._yMax); }; - d.prototype.isEmpty = function() { + e.prototype.isEmpty = function() { return this._xMax <= this._xMin || this._yMax <= this._yMin; }; - Object.defineProperty(d.prototype, "xMin", {get:function() { + Object.defineProperty(e.prototype, "xMin", {get:function() { return this._xMin; - }, set:function(e) { - n.assert(r(e)); - this._xMin = e; + }, set:function(f) { + n.assert(r(f)); + this._xMin = f; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "yMin", {get:function() { + Object.defineProperty(e.prototype, "yMin", {get:function() { return this._yMin; - }, set:function(e) { - n.assert(r(e)); - this._yMin = e | 0; + }, set:function(f) { + n.assert(r(f)); + this._yMin = f | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "xMax", {get:function() { + Object.defineProperty(e.prototype, "xMax", {get:function() { return this._xMax; - }, set:function(e) { - n.assert(r(e)); - this._xMax = e | 0; + }, set:function(f) { + n.assert(r(f)); + this._xMax = f | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "width", {get:function() { + Object.defineProperty(e.prototype, "width", {get:function() { return this._xMax - this._xMin; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "yMax", {get:function() { + Object.defineProperty(e.prototype, "yMax", {get:function() { return this._yMax; - }, set:function(e) { - n.assert(r(e)); - this._yMax = e | 0; + }, set:function(f) { + n.assert(r(f)); + this._yMax = f | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "height", {get:function() { + Object.defineProperty(e.prototype, "height", {get:function() { return this._yMax - this._yMin; }, enumerable:!0, configurable:!0}); - d.prototype.getBaseWidth = function(e) { - return Math.abs(Math.cos(e)) * (this._xMax - this._xMin) + Math.abs(Math.sin(e)) * (this._yMax - this._yMin); + e.prototype.getBaseWidth = function(f) { + return Math.abs(Math.cos(f)) * (this._xMax - this._xMin) + Math.abs(Math.sin(f)) * (this._yMax - this._yMin); }; - d.prototype.getBaseHeight = function(e) { - return Math.abs(Math.sin(e)) * (this._xMax - this._xMin) + Math.abs(Math.cos(e)) * (this._yMax - this._yMin); + e.prototype.getBaseHeight = function(f) { + return Math.abs(Math.sin(f)) * (this._xMax - this._xMin) + Math.abs(Math.cos(f)) * (this._yMax - this._yMin); }; - d.prototype.setEmpty = function() { + e.prototype.setEmpty = function() { this._xMin = this._yMin = this._xMax = this._yMax = 0; }; - d.prototype.clone = function() { - return new d(this.xMin, this.yMin, this.xMax, this.yMax); + e.prototype.clone = function() { + return new e(this.xMin, this.yMin, this.xMax, this.yMax); }; - d.prototype.toString = function() { + e.prototype.toString = function() { return "{ xMin: " + this._xMin + ", xMin: " + this._yMin + ", xMax: " + this._xMax + ", yMax: " + this._yMax + " }"; }; - d.prototype.assertValid = function() { + e.prototype.assertValid = function() { }; - return d; + return e; }(); k.DebugBounds = a; a = function() { - function d(e, b, f, q) { - this.r = e; - this.g = b; - this.b = f; + function e(f, c, d, q) { + this.r = f; + this.g = c; + this.b = d; this.a = q; } - d.FromARGB = function(e) { - return new d((e >> 16 & 255) / 255, (e >> 8 & 255) / 255, (e >> 0 & 255) / 255, (e >> 24 & 255) / 255); + e.FromARGB = function(f) { + return new e((f >> 16 & 255) / 255, (f >> 8 & 255) / 255, (f >> 0 & 255) / 255, (f >> 24 & 255) / 255); }; - d.FromRGBA = function(e) { - return d.FromARGB(s.RGBAToARGB(e)); + e.FromRGBA = function(f) { + return e.FromARGB(t.RGBAToARGB(f)); }; - d.prototype.toRGBA = function() { + e.prototype.toRGBA = function() { return 255 * this.r << 24 | 255 * this.g << 16 | 255 * this.b << 8 | 255 * this.a; }; - d.prototype.toCSSStyle = function() { - return s.rgbaToCSSStyle(this.toRGBA()); + e.prototype.toCSSStyle = function() { + return t.rgbaToCSSStyle(this.toRGBA()); }; - d.prototype.set = function(e) { - this.r = e.r; - this.g = e.g; - this.b = e.b; - this.a = e.a; + e.prototype.set = function(f) { + this.r = f.r; + this.g = f.g; + this.b = f.b; + this.a = f.a; }; - d.randomColor = function() { - var e = .4; - void 0 === e && (e = 1); - return new d(Math.random(), Math.random(), Math.random(), e); + e.randomColor = function() { + var f = .4; + void 0 === f && (f = 1); + return new e(Math.random(), Math.random(), Math.random(), f); }; - d.parseColor = function(e) { - d.colorCache || (d.colorCache = Object.create(null)); - if (d.colorCache[e]) { - return d.colorCache[e]; + e.parseColor = function(f) { + e.colorCache || (e.colorCache = Object.create(null)); + if (e.colorCache[f]) { + return e.colorCache[f]; } - var b = document.createElement("span"); - document.body.appendChild(b); - b.style.backgroundColor = e; - var f = getComputedStyle(b).backgroundColor; - document.body.removeChild(b); - (b = /^rgb\((\d+), (\d+), (\d+)\)$/.exec(f)) || (b = /^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(f)); - f = new d(0, 0, 0, 0); - f.r = parseFloat(b[1]) / 255; - f.g = parseFloat(b[2]) / 255; - f.b = parseFloat(b[3]) / 255; - f.a = b[4] ? parseFloat(b[4]) / 255 : 1; - return d.colorCache[e] = f; + var c = document.createElement("span"); + document.body.appendChild(c); + c.style.backgroundColor = f; + var d = getComputedStyle(c).backgroundColor; + document.body.removeChild(c); + (c = /^rgb\((\d+), (\d+), (\d+)\)$/.exec(d)) || (c = /^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(d)); + d = new e(0, 0, 0, 0); + d.r = parseFloat(c[1]) / 255; + d.g = parseFloat(c[2]) / 255; + d.b = parseFloat(c[3]) / 255; + d.a = c[4] ? parseFloat(c[4]) / 255 : 1; + return e.colorCache[f] = d; }; - d.Red = new d(1, 0, 0, 1); - d.Green = new d(0, 1, 0, 1); - d.Blue = new d(0, 0, 1, 1); - d.None = new d(0, 0, 0, 0); - d.White = new d(1, 1, 1, 1); - d.Black = new d(0, 0, 0, 1); - d.colorCache = {}; - return d; + e.Red = new e(1, 0, 0, 1); + e.Green = new e(0, 1, 0, 1); + e.Blue = new e(0, 0, 1, 1); + e.None = new e(0, 0, 0, 0); + e.White = new e(1, 1, 1, 1); + e.Black = new e(0, 0, 0, 1); + e.colorCache = {}; + return e; }(); k.Color = a; - var s; - (function(d) { - function e(b) { - var f, e, d = b >> 24 & 255; - e = (Math.imul(b >> 16 & 255, d) + 127) / 255 | 0; - f = (Math.imul(b >> 8 & 255, d) + 127) / 255 | 0; - b = (Math.imul(b >> 0 & 255, d) + 127) / 255 | 0; - return d << 24 | e << 16 | f << 8 | b; + var t; + (function(e) { + function f(d) { + var c, f, e = d >> 24 & 255; + f = (Math.imul(d >> 16 & 255, e) + 127) / 255 | 0; + c = (Math.imul(d >> 8 & 255, e) + 127) / 255 | 0; + d = (Math.imul(d >> 0 & 255, e) + 127) / 255 | 0; + return e << 24 | f << 16 | c << 8 | d; } - d.RGBAToARGB = function(b) { - return b >> 8 & 16777215 | (b & 255) << 24; + e.RGBAToARGB = function(d) { + return d >> 8 & 16777215 | (d & 255) << 24; }; - d.ARGBToRGBA = function(b) { - return b << 8 | b >> 24 & 255; + e.ARGBToRGBA = function(d) { + return d << 8 | d >> 24 & 255; }; - d.rgbaToCSSStyle = function(b) { - return k.StringUtilities.concat9("rgba(", b >> 24 & 255, ",", b >> 16 & 255, ",", b >> 8 & 255, ",", (b & 255) / 255, ")"); + e.rgbaToCSSStyle = function(d) { + return k.StringUtilities.concat9("rgba(", d >> 24 & 255, ",", d >> 16 & 255, ",", d >> 8 & 255, ",", (d & 255) / 255, ")"); }; - d.cssStyleToRGBA = function(b) { - if ("#" === b[0]) { - if (7 === b.length) { - return parseInt(b.substring(1), 16) << 8 | 255; + e.cssStyleToRGBA = function(d) { + if ("#" === d[0]) { + if (7 === d.length) { + return parseInt(d.substring(1), 16) << 8 | 255; } } else { - if ("r" === b[0]) { - return b = b.substring(5, b.length - 1).split(","), (parseInt(b[0]) & 255) << 24 | (parseInt(b[1]) & 255) << 16 | (parseInt(b[2]) & 255) << 8 | 255 * parseFloat(b[3]) & 255; + if ("r" === d[0]) { + return d = d.substring(5, d.length - 1).split(","), (parseInt(d[0]) & 255) << 24 | (parseInt(d[1]) & 255) << 16 | (parseInt(d[2]) & 255) << 8 | 255 * parseFloat(d[3]) & 255; } } return 4278190335; }; - d.hexToRGB = function(b) { - return parseInt(b.slice(1), 16); + e.hexToRGB = function(d) { + return parseInt(d.slice(1), 16); }; - d.rgbToHex = function(b) { - return "#" + ("000000" + (b >>> 0).toString(16)).slice(-6); + e.rgbToHex = function(d) { + return "#" + ("000000" + (d >>> 0).toString(16)).slice(-6); }; - d.isValidHexColor = function(b) { - return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(b); + e.isValidHexColor = function(d) { + return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(d); }; - d.clampByte = function(b) { - return Math.max(0, Math.min(255, b)); + e.clampByte = function(d) { + return Math.max(0, Math.min(255, d)); }; - d.unpremultiplyARGB = function(b) { - var f, e, d = b >> 24 & 255; - e = Math.imul(255, b >> 16 & 255) / d & 255; - f = Math.imul(255, b >> 8 & 255) / d & 255; - b = Math.imul(255, b >> 0 & 255) / d & 255; - return d << 24 | e << 16 | f << 8 | b; + e.unpremultiplyARGB = function(d) { + var c, f, e = d >> 24 & 255; + f = Math.imul(255, d >> 16 & 255) / e & 255; + c = Math.imul(255, d >> 8 & 255) / e & 255; + d = Math.imul(255, d >> 0 & 255) / e & 255; + return e << 24 | f << 16 | c << 8 | d; }; - d.premultiplyARGB = e; - var b; - d.ensureUnpremultiplyTable = function() { - if (!b) { - b = new Uint8Array(65536); - for (var f = 0;256 > f;f++) { - for (var e = 0;256 > e;e++) { - b[(e << 8) + f] = Math.imul(255, f) / e; + e.premultiplyARGB = f; + var c; + e.ensureUnpremultiplyTable = function() { + if (!c) { + c = new Uint8Array(65536); + for (var d = 0;256 > d;d++) { + for (var f = 0;256 > f;f++) { + c[(f << 8) + d] = Math.imul(255, d) / f; } } } }; - d.tableLookupUnpremultiplyARGB = function(f) { - f |= 0; - var e = f >> 24 & 255; - if (0 === e) { + e.tableLookupUnpremultiplyARGB = function(d) { + d |= 0; + var f = d >> 24 & 255; + if (0 === f) { return 0; } - if (255 === e) { - return f; + if (255 === f) { + return d; } - var d, a, h = e << 8, p = b; - a = p[h + (f >> 16 & 255)]; - d = p[h + (f >> 8 & 255)]; - f = p[h + (f >> 0 & 255)]; - return e << 24 | a << 16 | d << 8 | f; + var e, a, h = f << 8, p = c; + a = p[h + (d >> 16 & 255)]; + e = p[h + (d >> 8 & 255)]; + d = p[h + (d >> 0 & 255)]; + return f << 24 | a << 16 | e << 8 | d; }; - d.blendPremultipliedBGRA = function(b, f) { - var e, d; - d = 256 - (f & 255); - e = Math.imul(b & 16711935, d) >> 8; - d = Math.imul(b >> 8 & 16711935, d) >> 8; - return((f >> 8 & 16711935) + d & 16711935) << 8 | (f & 16711935) + e & 16711935; + e.blendPremultipliedBGRA = function(d, c) { + var f, e; + e = 256 - (c & 255); + f = Math.imul(d & 16711935, e) >> 8; + e = Math.imul(d >> 8 & 16711935, e) >> 8; + return ((c >> 8 & 16711935) + e & 16711935) << 8 | (c & 16711935) + f & 16711935; }; - var f = u.swap32; - d.convertImage = function(q, d, a, h) { + var d = w.swap32; + e.convertImage = function(q, e, a, h) { var p = a.length; - if (q === d) { + if (q === e) { if (a !== h) { for (q = 0;q < p;q++) { h[q] = a[q]; } } } else { - if (1 === q && 3 === d) { + if (1 === q && 3 === e) { for (k.ColorUtilities.ensureUnpremultiplyTable(), q = 0;q < p;q++) { var m = a[q]; - d = m & 255; - if (0 === d) { + e = m & 255; + if (0 === e) { h[q] = 0; } else { - if (255 === d) { + if (255 === e) { h[q] = 4278190080 | m >> 8 & 16777215; } else { - var l = m >> 24 & 255, c = m >> 16 & 255, m = m >> 8 & 255, s = d << 8, u = b, m = u[s + m], c = u[s + c], l = u[s + l]; - h[q] = d << 24 | l << 16 | c << 8 | m; + var b = m >> 24 & 255, l = m >> 16 & 255, m = m >> 8 & 255, t = e << 8, w = c, m = w[t + m], l = w[t + l], b = w[t + b]; + h[q] = e << 24 | b << 16 | l << 8 | m; } } } } else { - if (2 === q && 3 === d) { + if (2 === q && 3 === e) { for (q = 0;q < p;q++) { - h[q] = f(a[q]); + h[q] = d(a[q]); } } else { - if (3 === q && 1 === d) { + if (3 === q && 1 === e) { for (q = 0;q < p;q++) { - d = a[q], h[q] = f(e(d & 4278255360 | d >> 16 & 255 | (d & 255) << 16)); + e = a[q], h[q] = d(f(e & 4278255360 | e >> 16 & 255 | (e & 255) << 16)); } } else { - for (n.somewhatImplemented("Image Format Conversion: " + v[q] + " -> " + v[d]), q = 0;q < p;q++) { + for (n.somewhatImplemented("Image Format Conversion: " + x[q] + " -> " + x[e]), q = 0;q < p;q++) { h[q] = a[q]; } } @@ -1931,164 +1933,164 @@ var START_TIME = performance.now(); } } }; - })(s = k.ColorUtilities || (k.ColorUtilities = {})); + })(t = k.ColorUtilities || (k.ColorUtilities = {})); a = function() { - function d(e) { - void 0 === e && (e = 32); + function e(f) { + void 0 === f && (f = 32); this._list = []; - this._maxSize = e; + this._maxSize = f; } - d.prototype.acquire = function(e) { - if (d._enabled) { - for (var b = this._list, f = 0;f < b.length;f++) { - var q = b[f]; - if (q.byteLength >= e) { - return b.splice(f, 1), q; + e.prototype.acquire = function(f) { + if (e._enabled) { + for (var c = this._list, d = 0;d < c.length;d++) { + var q = c[d]; + if (q.byteLength >= f) { + return c.splice(d, 1), q; } } } - return new ArrayBuffer(e); + return new ArrayBuffer(f); }; - d.prototype.release = function(e) { - if (d._enabled) { - var b = this._list; - b.length === this._maxSize && b.shift(); - b.push(e); + e.prototype.release = function(f) { + if (e._enabled) { + var c = this._list; + c.length === this._maxSize && c.shift(); + c.push(f); } }; - d.prototype.ensureUint8ArrayLength = function(e, b) { - if (e.length >= b) { - return e; + e.prototype.ensureUint8ArrayLength = function(f, c) { + if (f.length >= c) { + return f; } - var f = Math.max(e.length + b, (3 * e.length >> 1) + 1), f = new Uint8Array(this.acquire(f), 0, f); - f.set(e); - this.release(e.buffer); - return f; + var d = Math.max(f.length + c, (3 * f.length >> 1) + 1), d = new Uint8Array(this.acquire(d), 0, d); + d.set(f); + this.release(f.buffer); + return d; }; - d.prototype.ensureFloat64ArrayLength = function(e, b) { - if (e.length >= b) { - return e; + e.prototype.ensureFloat64ArrayLength = function(f, c) { + if (f.length >= c) { + return f; } - var f = Math.max(e.length + b, (3 * e.length >> 1) + 1), f = new Float64Array(this.acquire(f * Float64Array.BYTES_PER_ELEMENT), 0, f); - f.set(e); - this.release(e.buffer); - return f; + var d = Math.max(f.length + c, (3 * f.length >> 1) + 1), d = new Float64Array(this.acquire(d * Float64Array.BYTES_PER_ELEMENT), 0, d); + d.set(f); + this.release(f.buffer); + return d; }; - d._enabled = !0; - return d; + e._enabled = !0; + return e; }(); k.ArrayBufferPool = a; - (function(d) { - (function(e) { - e[e.EXTERNAL_INTERFACE_FEATURE = 1] = "EXTERNAL_INTERFACE_FEATURE"; - e[e.CLIPBOARD_FEATURE = 2] = "CLIPBOARD_FEATURE"; - e[e.SHAREDOBJECT_FEATURE = 3] = "SHAREDOBJECT_FEATURE"; - e[e.VIDEO_FEATURE = 4] = "VIDEO_FEATURE"; - e[e.SOUND_FEATURE = 5] = "SOUND_FEATURE"; - e[e.NETCONNECTION_FEATURE = 6] = "NETCONNECTION_FEATURE"; - })(d.Feature || (d.Feature = {})); - (function(e) { - e[e.AVM1_ERROR = 1] = "AVM1_ERROR"; - e[e.AVM2_ERROR = 2] = "AVM2_ERROR"; - })(d.ErrorTypes || (d.ErrorTypes = {})); - d.instance; + (function(e) { + (function(f) { + f[f.EXTERNAL_INTERFACE_FEATURE = 1] = "EXTERNAL_INTERFACE_FEATURE"; + f[f.CLIPBOARD_FEATURE = 2] = "CLIPBOARD_FEATURE"; + f[f.SHAREDOBJECT_FEATURE = 3] = "SHAREDOBJECT_FEATURE"; + f[f.VIDEO_FEATURE = 4] = "VIDEO_FEATURE"; + f[f.SOUND_FEATURE = 5] = "SOUND_FEATURE"; + f[f.NETCONNECTION_FEATURE = 6] = "NETCONNECTION_FEATURE"; + })(e.Feature || (e.Feature = {})); + (function(f) { + f[f.AVM1_ERROR = 1] = "AVM1_ERROR"; + f[f.AVM2_ERROR = 2] = "AVM2_ERROR"; + })(e.ErrorTypes || (e.ErrorTypes = {})); + e.instance; })(k.Telemetry || (k.Telemetry = {})); - (function(d) { - d.instance; + (function(e) { + e.instance; })(k.FileLoadingService || (k.FileLoadingService = {})); - (function(d) { - d[d.BuiltinAbc = 0] = "BuiltinAbc"; - d[d.PlayerglobalAbcs = 1] = "PlayerglobalAbcs"; - d[d.PlayerglobalManifest = 2] = "PlayerglobalManifest"; - d[d.ShellAbc = 3] = "ShellAbc"; + (function(e) { + e[e.BuiltinAbc = 0] = "BuiltinAbc"; + e[e.PlayerglobalAbcs = 1] = "PlayerglobalAbcs"; + e[e.PlayerglobalManifest = 2] = "PlayerglobalManifest"; + e[e.ShellAbc = 3] = "ShellAbc"; })(k.SystemResourceId || (k.SystemResourceId = {})); - (function(d) { - d.instance; + (function(e) { + e.instance; })(k.SystemResourcesLoadingService || (k.SystemResourcesLoadingService = {})); - k.registerCSSFont = function(d, e, b) { + k.registerCSSFont = function(e, f, c) { if (inBrowser) { - var f = document.head; - f.insertBefore(document.createElement("style"), f.firstChild); - f = document.styleSheets[0]; - e = "@font-face{font-family:swffont" + d + ";src:url(data:font/opentype;base64," + k.StringUtilities.base64ArrayBuffer(e) + ")}"; - f.insertRule(e, f.cssRules.length); - b && (b = document.createElement("div"), b.style.fontFamily = "swffont" + d, b.innerHTML = "hello", document.body.appendChild(b), document.body.removeChild(b)); + var d = document.head; + d.insertBefore(document.createElement("style"), d.firstChild); + d = document.styleSheets[0]; + f = "@font-face{font-family:swffont" + e + ";src:url(data:font/opentype;base64," + k.StringUtilities.base64ArrayBuffer(f) + ")}"; + d.insertRule(f, d.cssRules.length); + c && (c = document.createElement("div"), c.style.fontFamily = "swffont" + e, c.innerHTML = "hello", document.body.appendChild(c), document.body.removeChild(c)); } }; - (function(d) { - d.instance = {enabled:!1, initJS:function(e) { - }, registerCallback:function(e) { - }, unregisterCallback:function(e) { - }, eval:function(e) { - }, call:function(e) { + (function(e) { + e.instance = {enabled:!1, initJS:function(f) { + }, registerCallback:function(f) { + }, unregisterCallback:function(f) { + }, eval:function(f) { + }, call:function(f) { }, getId:function() { return null; }}; })(k.ExternalInterfaceService || (k.ExternalInterfaceService = {})); - (function(d) { - d.instance = {setClipboard:function(e) { + (function(e) { + e.instance = {setClipboard:function(f) { }}; })(k.ClipboardService || (k.ClipboardService = {})); a = function() { - function d() { + function e() { this._queues = {}; } - d.prototype.register = function(e, b) { - n.assert(e); - n.assert(b); - var f = this._queues[e]; - if (f) { - if (-1 < f.indexOf(b)) { + e.prototype.register = function(f, c) { + n.assert(f); + n.assert(c); + var d = this._queues[f]; + if (d) { + if (-1 < d.indexOf(c)) { return; } } else { - f = this._queues[e] = []; + d = this._queues[f] = []; } - f.push(b); + d.push(c); }; - d.prototype.unregister = function(e, b) { - n.assert(e); - n.assert(b); - var f = this._queues[e]; - if (f) { - var q = f.indexOf(b); - -1 !== q && f.splice(q, 1); - 0 === f.length && (this._queues[e] = null); + e.prototype.unregister = function(f, c) { + n.assert(f); + n.assert(c); + var d = this._queues[f]; + if (d) { + var q = d.indexOf(c); + -1 !== q && d.splice(q, 1); + 0 === d.length && (this._queues[f] = null); } }; - d.prototype.notify = function(e, b) { - var f = this._queues[e]; - if (f) { - f = f.slice(); - b = Array.prototype.slice.call(arguments, 0); - for (var q = 0;q < f.length;q++) { - f[q].apply(null, b); + e.prototype.notify = function(f, c) { + var d = this._queues[f]; + if (d) { + d = d.slice(); + c = Array.prototype.slice.call(arguments, 0); + for (var q = 0;q < d.length;q++) { + d[q].apply(null, c); } } }; - d.prototype.notify1 = function(e, b) { - var f = this._queues[e]; - if (f) { - for (var f = f.slice(), q = 0;q < f.length;q++) { - (0,f[q])(e, b); + e.prototype.notify1 = function(f, c) { + var d = this._queues[f]; + if (d) { + for (var d = d.slice(), q = 0;q < d.length;q++) { + (0,d[q])(f, c); } } }; - return d; + return e; }(); k.Callback = a; - (function(d) { - d[d.None = 0] = "None"; - d[d.PremultipliedAlphaARGB = 1] = "PremultipliedAlphaARGB"; - d[d.StraightAlphaARGB = 2] = "StraightAlphaARGB"; - d[d.StraightAlphaRGBA = 3] = "StraightAlphaRGBA"; - d[d.JPEG = 4] = "JPEG"; - d[d.PNG = 5] = "PNG"; - d[d.GIF = 6] = "GIF"; + (function(e) { + e[e.None = 0] = "None"; + e[e.PremultipliedAlphaARGB = 1] = "PremultipliedAlphaARGB"; + e[e.StraightAlphaARGB = 2] = "StraightAlphaARGB"; + e[e.StraightAlphaRGBA = 3] = "StraightAlphaRGBA"; + e[e.JPEG = 4] = "JPEG"; + e[e.PNG = 5] = "PNG"; + e[e.GIF = 6] = "GIF"; })(k.ImageType || (k.ImageType = {})); - var v = k.ImageType; - k.getMIMETypeForImageType = function(d) { - switch(d) { + var x = k.ImageType; + k.getMIMETypeForImageType = function(e) { + switch(e) { case 4: return "image/jpeg"; case 5: @@ -2099,9 +2101,9 @@ var START_TIME = performance.now(); return "text/plain"; } }; - (function(d) { - d.toCSSCursor = function(e) { - switch(e) { + (function(e) { + e.toCSSCursor = function(f) { + switch(f) { case 0: return "auto"; case 2: @@ -2116,157 +2118,159 @@ var START_TIME = performance.now(); }; })(k.UI || (k.UI = {})); a = function() { - function d() { - this.promise = new Promise(function(e, b) { - this.resolve = e; - this.reject = b; + function e() { + this.promise = new Promise(function(f, c) { + this.resolve = f; + this.reject = c; }.bind(this)); } - d.prototype.then = function(e, b) { - return this.promise.then(e, b); + e.prototype.then = function(f, c) { + return this.promise.then(f, c); }; - return d; + return e; }(); k.PromiseWrapper = a; })(Shumway || (Shumway = {})); (function() { - function k(b) { - if ("function" !== typeof b) { + function k(d) { + if ("function" !== typeof d) { throw new TypeError("Invalid deferred constructor"); } - var f = s(); - b = new b(f); - var e = f.resolve; - if ("function" !== typeof e) { + var c = m(); + d = new d(c); + var f = c.resolve; + if ("function" !== typeof f) { throw new TypeError("Invalid resolve construction function"); } - f = f.reject; - if ("function" !== typeof f) { + c = c.reject; + if ("function" !== typeof c) { throw new TypeError("Invalid reject construction function"); } - return{promise:b, resolve:e, reject:f}; + return {promise:d, resolve:f, reject:c}; } - function r(b, f) { - if ("object" !== typeof b || null === b) { - return!1; + function r(d, c) { + if ("object" !== typeof d || null === d) { + return !1; } try { - var e = b.then; - if ("function" !== typeof e) { - return!1; + var f = d.then; + if ("function" !== typeof f) { + return !1; } - e.call(b, f.resolve, f.reject); - } catch (d) { - e = f.reject, e(d); + f.call(d, c.resolve, c.reject); + } catch (e) { + f = c.reject, f(e); } - return!0; + return !0; } - function g(b) { - return "object" === typeof b && null !== b && "undefined" !== typeof b.promiseStatus; + function g(d) { + return "object" === typeof d && null !== d && "undefined" !== typeof d.promiseStatus; } - function c(b, f) { - if ("unresolved" === b.promiseStatus) { - var e = b.rejectReactions; - b.result = f; - b.resolveReactions = void 0; - b.rejectReactions = void 0; - b.promiseStatus = "has-rejection"; - t(e, f); + function b(d, c) { + if ("unresolved" === d.promiseStatus) { + var f = d.rejectReactions; + d.result = c; + d.resolveReactions = void 0; + d.rejectReactions = void 0; + d.promiseStatus = "has-rejection"; + v(f, c); } } - function t(b, f) { - for (var e = 0;e < b.length;e++) { - n({reaction:b[e], argument:f}); + function v(d, c) { + for (var f = 0;f < d.length;f++) { + n({reaction:d[f], argument:c}); } } - function n(b) { - 0 === f.length && setTimeout(h, 0); - f.push(b); + function n(d) { + 0 === c.length && setTimeout(a, 0); + c.push(d); } - function a(b, f) { - var e = b.deferred, d = b.handler, a, h; - try { - a = d(f); - } catch (p) { - return e = e.reject, e(p); - } - if (a === e.promise) { - return e = e.reject, e(new TypeError("Self resolution")); - } - try { - if (h = r(a, e), !h) { - var m = e.resolve; - return m(a); - } - } catch (l) { - return e = e.reject, e(l); - } - } - function h() { - for (;0 < f.length;) { - var b = f[0]; + function a() { + for (;0 < c.length;) { + var d = c[0]; try { - a(b.reaction, b.argument); - } catch (d) { + a: { + var q = d.reaction, f = q.deferred, a = q.handler, h = void 0, p = void 0; + try { + h = a(d.argument); + } catch (m) { + var b = f.reject; + b(m); + break a; + } + if (h === f.promise) { + b = f.reject, b(new TypeError("Self resolution")); + } else { + try { + if (p = r(h, f), !p) { + var l = f.resolve; + l(h); + } + } catch (n) { + b = f.reject, b(n); + } + } + } + } catch (t) { if ("function" === typeof e.onerror) { - e.onerror(d); + e.onerror(t); } } - f.shift(); + c.shift(); } } - function p(b) { - throw b; + function h(d) { + throw d; } - function l(b) { - return b; + function p(d) { + return d; } - function u(b) { - return function(f) { - c(b, f); + function l(d) { + return function(c) { + b(d, c); }; } - function m(b) { - return function(f) { - if ("unresolved" === b.promiseStatus) { - var e = b.resolveReactions; - b.result = f; - b.resolveReactions = void 0; - b.rejectReactions = void 0; - b.promiseStatus = "has-resolution"; - t(e, f); + function w(d) { + return function(c) { + if ("unresolved" === d.promiseStatus) { + var f = d.resolveReactions; + d.result = c; + d.resolveReactions = void 0; + d.rejectReactions = void 0; + d.promiseStatus = "has-resolution"; + v(f, c); } }; } - function s() { - function b(f, e) { - b.resolve = f; - b.reject = e; + function m() { + function d(c, f) { + d.resolve = c; + d.reject = f; } - return b; + return d; } - function v(b, f, e) { - return function(d) { - if (d === b) { - return e(new TypeError("Self resolution")); + function t(d, c, f) { + return function(e) { + if (e === d) { + return f(new TypeError("Self resolution")); } - var a = b.promiseConstructor; - if (g(d) && d.promiseConstructor === a) { - return d.then(f, e); + var a = d.promiseConstructor; + if (g(e) && e.promiseConstructor === a) { + return e.then(c, f); } a = k(a); - return r(d, a) ? a.promise.then(f, e) : f(d); + return r(e, a) ? a.promise.then(c, f) : c(e); }; } - function d(b, f, e, d) { + function x(d, c, f, e) { return function(a) { - f[b] = a; - d.countdown--; - 0 === d.countdown && e.resolve(f); + c[d] = a; + e.countdown--; + 0 === e.countdown && f.resolve(c); }; } - function e(b) { - if ("function" !== typeof b) { + function e(d) { + if ("function" !== typeof d) { throw new TypeError("resolver is not a function"); } if ("object" !== typeof this) { @@ -2276,142 +2280,142 @@ var START_TIME = performance.now(); this.resolveReactions = []; this.rejectReactions = []; this.result = void 0; - var f = m(this), d = u(this); + var c = w(this), f = l(this); try { - b(f, d); + d(c, f); } catch (a) { - c(this, a); + b(this, a); } this.promiseConstructor = e; return this; } - var b = Function("return this")(); - if (b.Promise) { - "function" !== typeof b.Promise.all && (b.Promise.all = function(f) { - var e = 0, d = [], a, h, p = new b.Promise(function(b, f) { - a = b; - h = f; + var f = Function("return this")(); + if (f.Promise) { + "function" !== typeof f.Promise.all && (f.Promise.all = function(d) { + var c = 0, e = [], a, h, p = new f.Promise(function(d, c) { + a = d; + h = c; }); - f.forEach(function(b, f) { - e++; - b.then(function(b) { - d[f] = b; - e--; - 0 === e && a(d); + d.forEach(function(d, f) { + c++; + d.then(function(d) { + e[f] = d; + c--; + 0 === c && a(e); }, h); }); - 0 === e && a(d); + 0 === c && a(e); return p; - }), "function" !== typeof b.Promise.resolve && (b.Promise.resolve = function(f) { - return new b.Promise(function(b) { - b(f); + }), "function" !== typeof f.Promise.resolve && (f.Promise.resolve = function(d) { + return new f.Promise(function(c) { + c(d); }); }); } else { - var f = []; - e.all = function(b) { - var f = k(this), e = [], a = {countdown:0}, h = 0; - b.forEach(function(b) { - this.cast(b).then(d(h, e, f, a), f.reject); - h++; - a.countdown++; + var c = []; + e.all = function(d) { + var c = k(this), f = [], e = {countdown:0}, a = 0; + d.forEach(function(d) { + this.cast(d).then(x(a, f, c, e), c.reject); + a++; + e.countdown++; }, this); - 0 === h && f.resolve(e); - return f.promise; + 0 === a && c.resolve(f); + return c.promise; }; - e.cast = function(b) { - if (g(b)) { - return b; + e.cast = function(d) { + if (g(d)) { + return d; } - var f = k(this); - f.resolve(b); - return f.promise; + var c = k(this); + c.resolve(d); + return c.promise; }; - e.reject = function(b) { - var f = k(this); - f.reject(b); - return f.promise; + e.reject = function(d) { + var c = k(this); + c.reject(d); + return c.promise; }; - e.resolve = function(b) { - var f = k(this); - f.resolve(b); - return f.promise; + e.resolve = function(d) { + var c = k(this); + c.resolve(d); + return c.promise; }; - e.prototype = {"catch":function(b) { - this.then(void 0, b); - }, then:function(b, f) { + e.prototype = {"catch":function(d) { + this.then(void 0, d); + }, then:function(d, c) { if (!g(this)) { throw new TypeError("this is not a Promises"); } - var e = k(this.promiseConstructor), d = "function" === typeof f ? f : p, a = {deferred:e, handler:v(this, "function" === typeof b ? b : l, d)}, d = {deferred:e, handler:d}; + var f = k(this.promiseConstructor), e = "function" === typeof c ? c : h, a = {deferred:f, handler:t(this, "function" === typeof d ? d : p, e)}, e = {deferred:f, handler:e}; switch(this.promiseStatus) { case "unresolved": this.resolveReactions.push(a); - this.rejectReactions.push(d); + this.rejectReactions.push(e); break; case "has-resolution": n({reaction:a, argument:this.result}); break; case "has-rejection": - n({reaction:d, argument:this.result}); + n({reaction:e, argument:this.result}); } - return e.promise; + return f.promise; }}; - b.Promise = e; + f.Promise = e; } })(); "undefined" !== typeof exports && (exports.Shumway = Shumway); (function() { - function k(k, g, c) { - k[g] || Object.defineProperty(k, g, {value:c, writable:!0, configurable:!0, enumerable:!1}); + function k(k, g, b) { + k[g] || Object.defineProperty(k, g, {value:b, writable:!0, configurable:!0, enumerable:!1}); } k(String.prototype, "padRight", function(k, g) { - var c = this, t = c.replace(/\033\[[0-9]*m/g, "").length; - if (!k || t >= g) { - return c; + var b = this, v = b.replace(/\033\[[0-9]*m/g, "").length; + if (!k || v >= g) { + return b; } - for (var t = (g - t) / k.length, n = 0;n < t;n++) { - c += k; + for (var v = (g - v) / k.length, n = 0;n < v;n++) { + b += k; } - return c; + return b; }); k(String.prototype, "padLeft", function(k, g) { - var c = this, t = c.length; - if (!k || t >= g) { - return c; + var b = this, v = b.length; + if (!k || v >= g) { + return b; } - for (var t = (g - t) / k.length, n = 0;n < t;n++) { - c = k + c; + for (var v = (g - v) / k.length, n = 0;n < v;n++) { + b = k + b; } - return c; + return b; }); k(String.prototype, "trim", function() { return this.replace(/^\s+|\s+$/g, ""); }); k(String.prototype, "endsWith", function(k) { - return-1 !== this.indexOf(k, this.length - k.length); + return -1 !== this.indexOf(k, this.length - k.length); }); k(Array.prototype, "replace", function(k, g) { if (k === g) { return 0; } - for (var c = 0, t = 0;t < this.length;t++) { - this[t] === k && (this[t] = g, c++); + for (var b = 0, v = 0;v < this.length;v++) { + this[v] === k && (this[v] = g, b++); } - return c; + return b; }); })(); (function(k) { (function(r) { - var g = k.isObject, c = function() { - function a(a, p, l, c) { + var g = k.isObject, b = function() { + function a(a, p, b, n) { this.shortName = a; this.longName = p; - this.type = l; - c = c || {}; - this.positional = c.positional; - this.parseFn = c.parse; - this.value = c.defaultValue; + this.type = b; + n = n || {}; + this.positional = n.positional; + this.parseFn = n.parse; + this.value = n.defaultValue; } a.prototype.parse = function(a) { this.value = "boolean" === this.type ? a : "number" === this.type ? parseInt(a, 10) : a; @@ -2419,18 +2423,18 @@ var START_TIME = performance.now(); }; return a; }(); - r.Argument = c; - var t = function() { + r.Argument = b; + var v = function() { function a() { this.args = []; } a.prototype.addArgument = function(a, p, l, n) { - a = new c(a, p, l, n); + a = new b(a, p, l, n); this.args.push(a); return a; }; a.prototype.addBoundOption = function(a) { - this.args.push(new c(a.shortName, a.longName, a.type, {parse:function(p) { + this.args.push(new b(a.shortName, a.longName, a.type, {parse:function(p) { a.value = p; }})); }; @@ -2449,33 +2453,33 @@ var START_TIME = performance.now(); return a; }; a.prototype.parse = function(a) { - var p = {}, l = []; - this.args.forEach(function(d) { - d.positional ? l.push(d) : (p["-" + d.shortName] = d, p["--" + d.longName] = d); + var p = {}, b = []; + this.args.forEach(function(e) { + e.positional ? b.push(e) : (p["-" + e.shortName] = e, p["--" + e.longName] = e); }); - for (var c = [];a.length;) { - var m = a.shift(), n = null, v = m; + for (var n = [];a.length;) { + var m = a.shift(), t = null, x = m; if ("--" == m) { - c = c.concat(a); + n = n.concat(a); break; } else { if ("-" == m.slice(0, 1) || "--" == m.slice(0, 2)) { - n = p[m]; - if (!n) { + t = p[m]; + if (!t) { continue; } - v = "boolean" !== n.type ? a.shift() : !0; + x = "boolean" !== t.type ? a.shift() : !0; } else { - l.length ? n = l.shift() : c.push(v); + b.length ? t = b.shift() : n.push(x); } } - n && n.parse(v); + t && t.parse(x); } - return c; + return n; }; return a; }(); - r.ArgumentParser = t; + r.ArgumentParser = v; var n = function() { function a(a, p) { void 0 === p && (p = null); @@ -2487,9 +2491,9 @@ var START_TIME = performance.now(); a.prototype.register = function(h) { if (h instanceof a) { for (var p = 0;p < this.options.length;p++) { - var c = this.options[p]; - if (c instanceof a && c.name === h.name) { - return c; + var b = this.options[p]; + if (b instanceof a && b.name === h.name) { + return b; } } } @@ -2536,15 +2540,15 @@ var START_TIME = performance.now(); return a; }(); r.OptionSet = n; - t = function() { - function a(a, p, c, n, m, s) { - void 0 === s && (s = null); + v = function() { + function a(a, p, b, n, m, t) { + void 0 === t && (t = null); this.longName = p; this.shortName = a; - this.type = c; + this.type = b; this.value = this.defaultValue = n; this.description = m; - this.config = s; + this.config = t; } a.prototype.parse = function(a) { this.value = a; @@ -2554,7 +2558,7 @@ var START_TIME = performance.now(); }; return a; }(); - r.Option = t; + r.Option = v; })(k.Options || (k.Options = {})); })(Shumway || (Shumway = {})); (function(k) { @@ -2572,99 +2576,99 @@ var START_TIME = performance.now(); (function(k) { (function(r) { var g = function() { - function c(c, n) { - this._parent = c; + function b(b, n) { + this._parent = b; this._timers = k.ObjectUtilities.createMap(); this._name = n; this._count = this._total = this._last = this._begin = 0; } - c.time = function(g, n) { - c.start(g); + b.time = function(g, n) { + b.start(g); n(); - c.stop(); + b.stop(); }; - c.start = function(g) { - c._top = c._top._timers[g] || (c._top._timers[g] = new c(c._top, g)); - c._top.start(); - g = c._flat._timers[g] || (c._flat._timers[g] = new c(c._flat, g)); + b.start = function(g) { + b._top = b._top._timers[g] || (b._top._timers[g] = new b(b._top, g)); + b._top.start(); + g = b._flat._timers[g] || (b._flat._timers[g] = new b(b._flat, g)); g.start(); - c._flatStack.push(g); + b._flatStack.push(g); }; - c.stop = function() { - c._top.stop(); - c._top = c._top._parent; - c._flatStack.pop().stop(); + b.stop = function() { + b._top.stop(); + b._top = b._top._parent; + b._flatStack.pop().stop(); }; - c.stopStart = function(g) { - c.stop(); - c.start(g); + b.stopStart = function(g) { + b.stop(); + b.start(g); }; - c.prototype.start = function() { + b.prototype.start = function() { this._begin = k.getTicks(); }; - c.prototype.stop = function() { + b.prototype.stop = function() { this._last = k.getTicks() - this._begin; this._total += this._last; this._count += 1; }; - c.prototype.toJSON = function() { - return{name:this._name, total:this._total, timers:this._timers}; + b.prototype.toJSON = function() { + return {name:this._name, total:this._total, timers:this._timers}; }; - c.prototype.trace = function(c) { - c.enter(this._name + ": " + this._total.toFixed(2) + " ms, count: " + this._count + ", average: " + (this._total / this._count).toFixed(2) + " ms"); + b.prototype.trace = function(b) { + b.enter(this._name + ": " + this._total.toFixed(2) + " ms, count: " + this._count + ", average: " + (this._total / this._count).toFixed(2) + " ms"); for (var n in this._timers) { - this._timers[n].trace(c); + this._timers[n].trace(b); } - c.outdent(); + b.outdent(); }; - c.trace = function(g) { - c._base.trace(g); - c._flat.trace(g); + b.trace = function(g) { + b._base.trace(g); + b._flat.trace(g); }; - c._base = new c(null, "Total"); - c._top = c._base; - c._flat = new c(null, "Flat"); - c._flatStack = []; - return c; + b._base = new b(null, "Total"); + b._top = b._base; + b._flat = new b(null, "Flat"); + b._flatStack = []; + return b; }(); r.Timer = g; g = function() { - function c(c) { - this._enabled = c; + function b(b) { + this._enabled = b; this.clear(); } - Object.defineProperty(c.prototype, "counts", {get:function() { + Object.defineProperty(b.prototype, "counts", {get:function() { return this._counts; }, enumerable:!0, configurable:!0}); - c.prototype.setEnabled = function(c) { - this._enabled = c; + b.prototype.setEnabled = function(b) { + this._enabled = b; }; - c.prototype.clear = function() { + b.prototype.clear = function() { this._counts = k.ObjectUtilities.createMap(); this._times = k.ObjectUtilities.createMap(); }; - c.prototype.toJSON = function() { - return{counts:this._counts, times:this._times}; + b.prototype.toJSON = function() { + return {counts:this._counts, times:this._times}; }; - c.prototype.count = function(c, n, a) { + b.prototype.count = function(b, n, a) { void 0 === n && (n = 1); void 0 === a && (a = 0); if (this._enabled) { - return void 0 === this._counts[c] && (this._counts[c] = 0, this._times[c] = 0), this._counts[c] += n, this._times[c] += a, this._counts[c]; + return void 0 === this._counts[b] && (this._counts[b] = 0, this._times[b] = 0), this._counts[b] += n, this._times[b] += a, this._counts[b]; } }; - c.prototype.trace = function(c) { + b.prototype.trace = function(b) { for (var n in this._counts) { - c.writeLn(n + ": " + this._counts[n]); + b.writeLn(n + ": " + this._counts[n]); } }; - c.prototype._pairToString = function(c, n) { - var a = n[0], h = n[1], p = c[a], a = a + ": " + h; + b.prototype._pairToString = function(b, n) { + var a = n[0], h = n[1], p = b[a], a = a + ": " + h; p && (a += ", " + p.toFixed(4), 1 < h && (a += " (" + (p / h).toFixed(4) + ")")); return a; }; - c.prototype.toStringSorted = function() { - var c = this, n = this._times, a = [], h; + b.prototype.toStringSorted = function() { + var b = this, n = this._times, a = [], h; for (h in this._counts) { a.push([h, this._counts[h]]); } @@ -2672,10 +2676,10 @@ var START_TIME = performance.now(); return h[1] - a[1]; }); return a.map(function(a) { - return c._pairToString(n, a); + return b._pairToString(n, a); }).join(", "); }; - c.prototype.traceSorted = function(c, n) { + b.prototype.traceSorted = function(b, n) { void 0 === n && (n = !1); var a = this, h = this._times, p = [], l; for (l in this._counts) { @@ -2684,33 +2688,33 @@ var START_TIME = performance.now(); p.sort(function(a, h) { return h[1] - a[1]; }); - n ? c.writeLn(p.map(function(p) { + n ? b.writeLn(p.map(function(p) { return a._pairToString(h, p); }).join(", ")) : p.forEach(function(p) { - c.writeLn(a._pairToString(h, p)); + b.writeLn(a._pairToString(h, p)); }); }; - c.instance = new c(!0); - return c; + b.instance = new b(!0); + return b; }(); r.Counter = g; g = function() { - function c(c) { - this._samples = new Float64Array(c); + function b(b) { + this._samples = new Float64Array(b); this._index = this._count = 0; } - c.prototype.push = function(c) { + b.prototype.push = function(b) { this._count < this._samples.length && this._count++; this._index++; - this._samples[this._index % this._samples.length] = c; + this._samples[this._index % this._samples.length] = b; }; - c.prototype.average = function() { - for (var c = 0, n = 0;n < this._count;n++) { - c += this._samples[n]; + b.prototype.average = function() { + for (var b = 0, n = 0;n < this._count;n++) { + b += this._samples[n]; } - return c / this._count; + return b / this._count; }; - return c; + return b; }(); r.Average = g; })(k.Metrics || (k.Metrics = {})); @@ -2719,154 +2723,154 @@ var __extends = this.__extends || function(k, r) { function g() { this.constructor = k; } - for (var c in r) { - r.hasOwnProperty(c) && (k[c] = r[c]); + for (var b in r) { + r.hasOwnProperty(b) && (k[b] = r[b]); } g.prototype = r.prototype; k.prototype = new g; }; (function(k) { (function(k) { - function g(b) { - for (var f = Math.max.apply(null, b), q = b.length, e = 1 << f, d = new Uint32Array(e), a = f << 16 | 65535, h = 0;h < e;h++) { - d[h] = a; + function g(c) { + for (var d = Math.max.apply(null, c), q = c.length, f = 1 << d, e = new Uint32Array(f), a = d << 16 | 65535, h = 0;h < f;h++) { + e[h] = a; } - for (var a = 0, h = 1, p = 2;h <= f;a <<= 1, ++h, p <<= 1) { - for (var c = 0;c < q;++c) { - if (b[c] === h) { + for (var a = 0, h = 1, p = 2;h <= d;a <<= 1, ++h, p <<= 1) { + for (var b = 0;b < q;++b) { + if (c[b] === h) { for (var m = 0, l = 0;l < h;++l) { m = 2 * m + (a >> l & 1); } - for (l = m;l < e;l += p) { - d[l] = h << 16 | c; + for (l = m;l < f;l += p) { + e[l] = h << 16 | b; } ++a; } } } - return{codes:d, maxBits:f}; + return {codes:e, maxBits:d}; } - var c; - (function(b) { - b[b.INIT = 0] = "INIT"; - b[b.BLOCK_0 = 1] = "BLOCK_0"; - b[b.BLOCK_1 = 2] = "BLOCK_1"; - b[b.BLOCK_2_PRE = 3] = "BLOCK_2_PRE"; - b[b.BLOCK_2 = 4] = "BLOCK_2"; - b[b.DONE = 5] = "DONE"; - b[b.ERROR = 6] = "ERROR"; - b[b.VERIFY_HEADER = 7] = "VERIFY_HEADER"; - })(c || (c = {})); - c = function() { - function b(b) { + var b; + (function(c) { + c[c.INIT = 0] = "INIT"; + c[c.BLOCK_0 = 1] = "BLOCK_0"; + c[c.BLOCK_1 = 2] = "BLOCK_1"; + c[c.BLOCK_2_PRE = 3] = "BLOCK_2_PRE"; + c[c.BLOCK_2 = 4] = "BLOCK_2"; + c[c.DONE = 5] = "DONE"; + c[c.ERROR = 6] = "ERROR"; + c[c.VERIFY_HEADER = 7] = "VERIFY_HEADER"; + })(b || (b = {})); + b = function() { + function c(d) { } - b.prototype.push = function(b) { + c.prototype.push = function(d) { }; - b.prototype.close = function() { + c.prototype.close = function() { }; - b.create = function(b) { - return "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialInflate ? new v(b, ShumwayCom.createSpecialInflate) : new t(b); + c.create = function(d) { + return "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialInflate ? new x(d, ShumwayCom.createSpecialInflate) : new v(d); }; - b.prototype._processZLibHeader = function(b, q, e) { - if (q + 2 > e) { + c.prototype._processZLibHeader = function(d, c, f) { + if (c + 2 > f) { return 0; } - b = b[q] << 8 | b[q + 1]; - q = null; - 2048 !== (b & 3840) ? q = "inflate: unknown compression method" : 0 !== b % 31 ? q = "inflate: bad FCHECK" : 0 !== (b & 32) && (q = "inflate: FDICT bit set"); - if (q) { + d = d[c] << 8 | d[c + 1]; + c = null; + 2048 !== (d & 3840) ? c = "inflate: unknown compression method" : 0 !== d % 31 ? c = "inflate: bad FCHECK" : 0 !== (d & 32) && (c = "inflate: FDICT bit set"); + if (c) { if (this.onError) { - this.onError(q); + this.onError(c); } - return-1; + return -1; } return 2; }; - b.inflate = function(f, q, e) { - var d = new Uint8Array(q), a = 0; - q = b.create(e); - q.onData = function(b) { - var f = Math.min(b.length, d.length - a); - f && k.memCopy(d, b, a, 0, f); - a += f; + c.inflate = function(d, q, f) { + var e = new Uint8Array(q), a = 0; + q = c.create(f); + q.onData = function(d) { + var c = Math.min(d.length, e.length - a); + c && k.memCopy(e, d, a, 0, c); + a += c; }; - q.onError = function(b) { - throw Error(b); + q.onError = function(d) { + throw Error(d); }; - q.push(f); + q.push(d); q.close(); - return d; + return e; }; - return b; + return c; }(); - k.Inflate = c; - var t = function(b) { - function f(f) { - b.call(this, f); + k.Inflate = b; + var v = function(c) { + function d(d) { + c.call(this, d); this._buffer = null; this._bitLength = this._bitBuffer = this._bufferPosition = this._bufferSize = 0; this._window = new Uint8Array(65794); this._windowPosition = 0; - this._state = f ? 7 : 0; + this._state = d ? 7 : 0; this._isFinalBlock = !1; this._distanceTable = this._literalTable = null; this._block0Read = 0; this._block2State = null; this._copyState = {state:0, len:0, lenBits:0, dist:0, distBits:0}; - if (!s) { + if (!t) { n = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); a = new Uint16Array(30); h = new Uint8Array(30); - for (var e = f = 0, d = 1;30 > f;++f) { - a[f] = d, d += 1 << (h[f] = ~~((e += 2 < f ? 1 : 0) / 2)); + for (var f = d = 0, e = 1;30 > d;++d) { + a[d] = e, e += 1 << (h[d] = ~~((f += 2 < d ? 1 : 0) / 2)); } - var c = new Uint8Array(288); - for (f = 0;32 > f;++f) { - c[f] = 5; + var b = new Uint8Array(288); + for (d = 0;32 > d;++d) { + b[d] = 5; } - p = g(c.subarray(0, 32)); + p = g(b.subarray(0, 32)); l = new Uint16Array(29); - u = new Uint8Array(29); - e = f = 0; - for (d = 3;29 > f;++f) { - l[f] = d - (28 == f ? 1 : 0), d += 1 << (u[f] = ~~((e += 4 < f ? 1 : 0) / 4 % 6)); + w = new Uint8Array(29); + f = d = 0; + for (e = 3;29 > d;++d) { + l[d] = e - (28 == d ? 1 : 0), e += 1 << (w[d] = ~~((f += 4 < d ? 1 : 0) / 4 % 6)); } - for (f = 0;288 > f;++f) { - c[f] = 144 > f || 279 < f ? 8 : 256 > f ? 9 : 7; + for (d = 0;288 > d;++d) { + b[d] = 144 > d || 279 < d ? 8 : 256 > d ? 9 : 7; } - m = g(c); - s = !0; + m = g(b); + t = !0; } } - __extends(f, b); - f.prototype.push = function(b) { - if (!this._buffer || this._buffer.length < this._bufferSize + b.length) { - var f = new Uint8Array(this._bufferSize + b.length); - this._buffer && f.set(this._buffer); - this._buffer = f; + __extends(d, c); + d.prototype.push = function(d) { + if (!this._buffer || this._buffer.length < this._bufferSize + d.length) { + var c = new Uint8Array(this._bufferSize + d.length); + this._buffer && c.set(this._buffer); + this._buffer = c; } - this._buffer.set(b, this._bufferSize); - this._bufferSize += b.length; + this._buffer.set(d, this._bufferSize); + this._bufferSize += d.length; this._bufferPosition = 0; - b = !1; + d = !1; do { - f = this._windowPosition; - if (0 === this._state && (b = this._decodeInitState())) { + c = this._windowPosition; + if (0 === this._state && (d = this._decodeInitState())) { break; } switch(this._state) { case 1: - b = this._decodeBlock0(); + d = this._decodeBlock0(); break; case 3: - if (b = this._decodeBlock2Pre()) { + if (d = this._decodeBlock2Pre()) { break; } ; case 2: ; case 4: - b = this._decodeBlock(); + d = this._decodeBlock(); break; case 6: ; @@ -2874,537 +2878,537 @@ var __extends = this.__extends || function(k, r) { this._bufferPosition = this._bufferSize; break; case 7: - var e = this._processZLibHeader(this._buffer, this._bufferPosition, this._bufferSize); - 0 < e ? (this._bufferPosition += e, this._state = 0) : 0 === e ? b = !0 : this._state = 6; + var f = this._processZLibHeader(this._buffer, this._bufferPosition, this._bufferSize); + 0 < f ? (this._bufferPosition += f, this._state = 0) : 0 === f ? d = !0 : this._state = 6; } - if (0 < this._windowPosition - f) { - this.onData(this._window.subarray(f, this._windowPosition)); + if (0 < this._windowPosition - c) { + this.onData(this._window.subarray(c, this._windowPosition)); } 65536 <= this._windowPosition && ("copyWithin" in this._buffer ? this._window.copyWithin(0, this._windowPosition - 32768, this._windowPosition) : this._window.set(this._window.subarray(this._windowPosition - 32768, this._windowPosition)), this._windowPosition = 32768); - } while (!b && this._bufferPosition < this._bufferSize); + } while (!d && this._bufferPosition < this._bufferSize); this._bufferPosition < this._bufferSize ? ("copyWithin" in this._buffer ? this._buffer.copyWithin(0, this._bufferPosition, this._bufferSize) : this._buffer.set(this._buffer.subarray(this._bufferPosition, this._bufferSize)), this._bufferSize -= this._bufferPosition) : this._bufferSize = 0; }; - f.prototype._decodeInitState = function() { + d.prototype._decodeInitState = function() { if (this._isFinalBlock) { return this._state = 5, !1; } - var b = this._buffer, f = this._bufferSize, e = this._bitBuffer, d = this._bitLength, a = this._bufferPosition; - if (3 > (f - a << 3) + d) { - return!0; + var d = this._buffer, c = this._bufferSize, f = this._bitBuffer, e = this._bitLength, a = this._bufferPosition; + if (3 > (c - a << 3) + e) { + return !0; } - 3 > d && (e |= b[a++] << d, d += 8); - var h = e & 7, e = e >> 3, d = d - 3; + 3 > e && (f |= d[a++] << e, e += 8); + var h = f & 7, f = f >> 3, e = e - 3; switch(h >> 1) { case 0: - d = e = 0; - if (4 > f - a) { - return!0; + e = f = 0; + if (4 > c - a) { + return !0; } - var c = b[a] | b[a + 1] << 8, b = b[a + 2] | b[a + 3] << 8, a = a + 4; - if (65535 !== (c ^ b)) { + var b = d[a] | d[a + 1] << 8, d = d[a + 2] | d[a + 3] << 8, a = a + 4; + if (65535 !== (b ^ d)) { this._error("inflate: invalid block 0 length"); - b = 6; + d = 6; break; } - 0 === c ? b = 0 : (this._block0Read = c, b = 1); + 0 === b ? d = 0 : (this._block0Read = b, d = 1); break; case 1: - b = 2; + d = 2; this._literalTable = m; this._distanceTable = p; break; case 2: - if (26 > (f - a << 3) + d) { - return!0; + if (26 > (c - a << 3) + e) { + return !0; } - for (;14 > d;) { - e |= b[a++] << d, d += 8; + for (;14 > e;) { + f |= d[a++] << e, e += 8; } - c = (e >> 10 & 15) + 4; - if ((f - a << 3) + d < 14 + 3 * c) { - return!0; + b = (f >> 10 & 15) + 4; + if ((c - a << 3) + e < 14 + 3 * b) { + return !0; } - for (var f = {numLiteralCodes:(e & 31) + 257, numDistanceCodes:(e >> 5 & 31) + 1, codeLengthTable:void 0, bitLengths:void 0, codesRead:0, dupBits:0}, e = e >> 14, d = d - 14, l = new Uint8Array(19), s = 0;s < c;++s) { - 3 > d && (e |= b[a++] << d, d += 8), l[n[s]] = e & 7, e >>= 3, d -= 3; + for (var c = {numLiteralCodes:(f & 31) + 257, numDistanceCodes:(f >> 5 & 31) + 1, codeLengthTable:void 0, bitLengths:void 0, codesRead:0, dupBits:0}, f = f >> 14, e = e - 14, l = new Uint8Array(19), t = 0;t < b;++t) { + 3 > e && (f |= d[a++] << e, e += 8), l[n[t]] = f & 7, f >>= 3, e -= 3; } - for (;19 > s;s++) { - l[n[s]] = 0; + for (;19 > t;t++) { + l[n[t]] = 0; } - f.bitLengths = new Uint8Array(f.numLiteralCodes + f.numDistanceCodes); - f.codeLengthTable = g(l); - this._block2State = f; - b = 3; + c.bitLengths = new Uint8Array(c.numLiteralCodes + c.numDistanceCodes); + c.codeLengthTable = g(l); + this._block2State = c; + d = 3; break; default: return this._error("inflate: unsupported block type"), !1; } this._isFinalBlock = !!(h & 1); - this._state = b; + this._state = d; this._bufferPosition = a; - this._bitBuffer = e; - this._bitLength = d; - return!1; + this._bitBuffer = f; + this._bitLength = e; + return !1; }; - f.prototype._error = function(b) { + d.prototype._error = function(d) { if (this.onError) { - this.onError(b); + this.onError(d); } }; - f.prototype._decodeBlock0 = function() { - var b = this._bufferPosition, f = this._windowPosition, e = this._block0Read, d = 65794 - f, a = this._bufferSize - b, h = a < e, p = Math.min(d, a, e); - this._window.set(this._buffer.subarray(b, b + p), f); - this._windowPosition = f + p; - this._bufferPosition = b + p; - this._block0Read = e - p; - return e === p ? (this._state = 0, !1) : h && d < a; + d.prototype._decodeBlock0 = function() { + var d = this._bufferPosition, c = this._windowPosition, f = this._block0Read, e = 65794 - c, a = this._bufferSize - d, h = a < f, p = Math.min(e, a, f); + this._window.set(this._buffer.subarray(d, d + p), c); + this._windowPosition = c + p; + this._bufferPosition = d + p; + this._block0Read = f - p; + return f === p ? (this._state = 0, !1) : h && e < a; }; - f.prototype._readBits = function(b) { - var f = this._bitBuffer, e = this._bitLength; - if (b > e) { - var d = this._bufferPosition, a = this._bufferSize; + d.prototype._readBits = function(d) { + var c = this._bitBuffer, f = this._bitLength; + if (d > f) { + var e = this._bufferPosition, a = this._bufferSize; do { - if (d >= a) { - return this._bufferPosition = d, this._bitBuffer = f, this._bitLength = e, -1; + if (e >= a) { + return this._bufferPosition = e, this._bitBuffer = c, this._bitLength = f, -1; } - f |= this._buffer[d++] << e; - e += 8; - } while (b > e); - this._bufferPosition = d; + c |= this._buffer[e++] << f; + f += 8; + } while (d > f); + this._bufferPosition = e; } - this._bitBuffer = f >> b; - this._bitLength = e - b; - return f & (1 << b) - 1; + this._bitBuffer = c >> d; + this._bitLength = f - d; + return c & (1 << d) - 1; }; - f.prototype._readCode = function(b) { - var f = this._bitBuffer, e = this._bitLength, d = b.maxBits; - if (d > e) { + d.prototype._readCode = function(d) { + var c = this._bitBuffer, f = this._bitLength, e = d.maxBits; + if (e > f) { var a = this._bufferPosition, h = this._bufferSize; do { if (a >= h) { - return this._bufferPosition = a, this._bitBuffer = f, this._bitLength = e, -1; + return this._bufferPosition = a, this._bitBuffer = c, this._bitLength = f, -1; } - f |= this._buffer[a++] << e; - e += 8; - } while (d > e); + c |= this._buffer[a++] << f; + f += 8; + } while (e > f); this._bufferPosition = a; } - b = b.codes[f & (1 << d) - 1]; - d = b >> 16; - if (b & 32768) { + d = d.codes[c & (1 << e) - 1]; + e = d >> 16; + if (d & 32768) { return this._error("inflate: invalid encoding"), this._state = 6, -1; } - this._bitBuffer = f >> d; - this._bitLength = e - d; - return b & 65535; + this._bitBuffer = c >> e; + this._bitLength = f - e; + return d & 65535; }; - f.prototype._decodeBlock2Pre = function() { - var b = this._block2State, f = b.numLiteralCodes + b.numDistanceCodes, e = b.bitLengths, d = b.codesRead, a = 0 < d ? e[d - 1] : 0, h = b.codeLengthTable, p; - if (0 < b.dupBits) { - p = this._readBits(b.dupBits); + d.prototype._decodeBlock2Pre = function() { + var d = this._block2State, c = d.numLiteralCodes + d.numDistanceCodes, f = d.bitLengths, e = d.codesRead, a = 0 < e ? f[e - 1] : 0, h = d.codeLengthTable, p; + if (0 < d.dupBits) { + p = this._readBits(d.dupBits); if (0 > p) { - return!0; + return !0; } for (;p--;) { - e[d++] = a; + f[e++] = a; } - b.dupBits = 0; + d.dupBits = 0; } - for (;d < f;) { - var c = this._readCode(h); - if (0 > c) { - return b.codesRead = d, !0; + for (;e < c;) { + var b = this._readCode(h); + if (0 > b) { + return d.codesRead = e, !0; } - if (16 > c) { - e[d++] = a = c; + if (16 > b) { + f[e++] = a = b; } else { var m; - switch(c) { + switch(b) { case 16: m = 2; p = 3; - c = a; + b = a; break; case 17: p = m = 3; - c = 0; + b = 0; break; case 18: - m = 7, p = 11, c = 0; + m = 7, p = 11, b = 0; } for (;p--;) { - e[d++] = c; + f[e++] = b; } p = this._readBits(m); if (0 > p) { - return b.codesRead = d, b.dupBits = m, !0; + return d.codesRead = e, d.dupBits = m, !0; } for (;p--;) { - e[d++] = c; + f[e++] = b; } - a = c; + a = b; } } - this._literalTable = g(e.subarray(0, b.numLiteralCodes)); - this._distanceTable = g(e.subarray(b.numLiteralCodes)); + this._literalTable = g(f.subarray(0, d.numLiteralCodes)); + this._distanceTable = g(f.subarray(d.numLiteralCodes)); this._state = 4; this._block2State = null; - return!1; + return !1; }; - f.prototype._decodeBlock = function() { - var b = this._literalTable, f = this._distanceTable, e = this._window, d = this._windowPosition, p = this._copyState, c, m, n, s; + d.prototype._decodeBlock = function() { + var d = this._literalTable, c = this._distanceTable, f = this._window, e = this._windowPosition, p = this._copyState, b, m, n, t; if (0 !== p.state) { switch(p.state) { case 1: - if (0 > (c = this._readBits(p.lenBits))) { - return!0; + if (0 > (b = this._readBits(p.lenBits))) { + return !0; } - p.len += c; + p.len += b; p.state = 2; case 2: - if (0 > (c = this._readCode(f))) { - return!0; + if (0 > (b = this._readCode(c))) { + return !0; } - p.distBits = h[c]; - p.dist = a[c]; + p.distBits = h[b]; + p.dist = a[b]; p.state = 3; case 3: - c = 0; - if (0 < p.distBits && 0 > (c = this._readBits(p.distBits))) { - return!0; + b = 0; + if (0 < p.distBits && 0 > (b = this._readBits(p.distBits))) { + return !0; } - s = p.dist + c; + t = p.dist + b; m = p.len; - for (c = d - s;m--;) { - e[d++] = e[c++]; + for (b = e - t;m--;) { + f[e++] = f[b++]; } p.state = 0; - if (65536 <= d) { - return this._windowPosition = d, !1; + if (65536 <= e) { + return this._windowPosition = e, !1; } break; } } do { - c = this._readCode(b); - if (0 > c) { - return this._windowPosition = d, !0; + b = this._readCode(d); + if (0 > b) { + return this._windowPosition = e, !0; } - if (256 > c) { - e[d++] = c; + if (256 > b) { + f[e++] = b; } else { - if (256 < c) { - this._windowPosition = d; - c -= 257; - n = u[c]; - m = l[c]; - c = 0 === n ? 0 : this._readBits(n); - if (0 > c) { + if (256 < b) { + this._windowPosition = e; + b -= 257; + n = w[b]; + m = l[b]; + b = 0 === n ? 0 : this._readBits(n); + if (0 > b) { return p.state = 1, p.len = m, p.lenBits = n, !0; } - m += c; - c = this._readCode(f); - if (0 > c) { + m += b; + b = this._readCode(c); + if (0 > b) { return p.state = 2, p.len = m, !0; } - n = h[c]; - s = a[c]; - c = 0 === n ? 0 : this._readBits(n); - if (0 > c) { - return p.state = 3, p.len = m, p.dist = s, p.distBits = n, !0; + n = h[b]; + t = a[b]; + b = 0 === n ? 0 : this._readBits(n); + if (0 > b) { + return p.state = 3, p.len = m, p.dist = t, p.distBits = n, !0; } - s += c; - for (c = d - s;m--;) { - e[d++] = e[c++]; + t += b; + for (b = e - t;m--;) { + f[e++] = f[b++]; } } else { this._state = 0; break; } } - } while (65536 > d); - this._windowPosition = d; - return!1; + } while (65536 > e); + this._windowPosition = e; + return !1; }; - return f; - }(c), n, a, h, p, l, u, m, s = !1, v = function(b) { - function f(f, e) { - b.call(this, f); - this._verifyHeader = f; - this._specialInflate = e(); - this._specialInflate.setDataCallback(function(b) { - this.onData(b); + return d; + }(b), n, a, h, p, l, w, m, t = !1, x = function(c) { + function d(d, f) { + c.call(this, d); + this._verifyHeader = d; + this._specialInflate = f(); + this._specialInflate.setDataCallback(function(d) { + this.onData(d); }.bind(this)); } - __extends(f, b); - f.prototype.push = function(b) { + __extends(d, c); + d.prototype.push = function(d) { if (this._verifyHeader) { - var f; - this._buffer ? (f = new Uint8Array(this._buffer.length + b.length), f.set(this._buffer), f.set(b, this._buffer.length), this._buffer = null) : f = new Uint8Array(b); - var e = this._processZLibHeader(f, 0, f.length); - if (0 === e) { - this._buffer = f; + var c; + this._buffer ? (c = new Uint8Array(this._buffer.length + d.length), c.set(this._buffer), c.set(d, this._buffer.length), this._buffer = null) : c = new Uint8Array(d); + var f = this._processZLibHeader(c, 0, c.length); + if (0 === f) { + this._buffer = c; return; } this._verifyHeader = !0; - 0 < e && (b = f.subarray(e)); + 0 < f && (d = c.subarray(f)); } - this._specialInflate.push(b); + this._specialInflate.push(d); }; - f.prototype.close = function() { + d.prototype.close = function() { this._specialInflate && (this._specialInflate.close(), this._specialInflate = null); }; - return f; - }(c), d; - (function(b) { - b[b.WRITE = 0] = "WRITE"; - b[b.DONE = 1] = "DONE"; - b[b.ZLIB_HEADER = 2] = "ZLIB_HEADER"; - })(d || (d = {})); - var e = function() { - function b() { + return d; + }(b), e; + (function(c) { + c[c.WRITE = 0] = "WRITE"; + c[c.DONE = 1] = "DONE"; + c[c.ZLIB_HEADER = 2] = "ZLIB_HEADER"; + })(e || (e = {})); + var f = function() { + function c() { this.a = 1; this.b = 0; } - b.prototype.update = function(b, e, d) { - for (var a = this.a, h = this.b;e < d;++e) { - a = (a + (b[e] & 255)) % 65521, h = (h + a) % 65521; + c.prototype.update = function(d, c, f) { + for (var e = this.a, a = this.b;c < f;++c) { + e = (e + (d[c] & 255)) % 65521, a = (a + e) % 65521; } - this.a = a; - this.b = h; + this.a = e; + this.b = a; }; - b.prototype.getChecksum = function() { + c.prototype.getChecksum = function() { return this.b << 16 | this.a; }; - return b; + return c; }(); - k.Adler32 = e; - d = function() { - function b(b) { - this._state = (this._writeZlibHeader = b) ? 2 : 0; - this._adler32 = b ? new e : null; + k.Adler32 = f; + e = function() { + function c(d) { + this._state = (this._writeZlibHeader = d) ? 2 : 0; + this._adler32 = d ? new f : null; } - b.prototype.push = function(b) { + c.prototype.push = function(d) { 2 === this._state && (this.onData(new Uint8Array([120, 156])), this._state = 0); - for (var e = b.length, d = new Uint8Array(e + 5 * Math.ceil(e / 65535)), a = 0, h = 0;65535 < e;) { - d.set(new Uint8Array([0, 255, 255, 0, 0]), a), a += 5, d.set(b.subarray(h, h + 65535), a), h += 65535, a += 65535, e -= 65535; + for (var c = d.length, f = new Uint8Array(c + 5 * Math.ceil(c / 65535)), e = 0, a = 0;65535 < c;) { + f.set(new Uint8Array([0, 255, 255, 0, 0]), e), e += 5, f.set(d.subarray(a, a + 65535), e), a += 65535, e += 65535, c -= 65535; } - d.set(new Uint8Array([0, e & 255, e >> 8 & 255, ~e & 255, ~e >> 8 & 255]), a); - d.set(b.subarray(h, e), a + 5); - this.onData(d); - this._adler32 && this._adler32.update(b, 0, e); + f.set(new Uint8Array([0, c & 255, c >> 8 & 255, ~c & 255, ~c >> 8 & 255]), e); + f.set(d.subarray(a, c), e + 5); + this.onData(f); + this._adler32 && this._adler32.update(d, 0, c); }; - b.prototype.close = function() { + c.prototype.close = function() { this._state = 1; this.onData(new Uint8Array([1, 0, 0, 255, 255])); if (this._adler32) { - var b = this._adler32.getChecksum(); - this.onData(new Uint8Array([b & 255, b >> 8 & 255, b >> 16 & 255, b >>> 24 & 255])); + var d = this._adler32.getChecksum(); + this.onData(new Uint8Array([d & 255, d >> 8 & 255, d >> 16 & 255, d >>> 24 & 255])); } }; - return b; + return c; }(); - k.Deflate = d; + k.Deflate = e; })(k.ArrayUtilities || (k.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(k) { (function(k) { - function g(b) { - for (var e = new Uint16Array(b), d = 0;d < b;d++) { - e[d] = 1024; + function g(d) { + for (var c = new Uint16Array(d), f = 0;f < d;f++) { + c[f] = 1024; } - return e; + return c; } - function c(b, e, d, a) { - for (var h = 1, p = 0, c = 0;c < d;c++) { - var m = a.decodeBit(b, h + e), h = (h << 1) + m, p = p | m << c + function b(d, c, f, e) { + for (var a = 1, h = 0, p = 0;p < f;p++) { + var b = e.decodeBit(d, a + c), a = (a << 1) + b, h = h | b << p } - return p; + return h; } - function t(b, e) { - var d = []; - d.length = e; - for (var a = 0;a < e;a++) { - d[a] = new l(b); + function v(d, c) { + var f = []; + f.length = c; + for (var e = 0;e < c;e++) { + f[e] = new l(d); } - return d; + return f; } var n = function() { - function b() { + function d() { this.pos = this.available = 0; this.buffer = new Uint8Array(2E3); } - b.prototype.append = function(b) { - var f = this.pos + this.available, e = f + b.length; - if (e > this.buffer.length) { - for (var d = 2 * this.buffer.length;d < e;) { - d *= 2; + d.prototype.append = function(d) { + var c = this.pos + this.available, f = c + d.length; + if (f > this.buffer.length) { + for (var e = 2 * this.buffer.length;e < f;) { + e *= 2; } - e = new Uint8Array(d); - e.set(this.buffer); - this.buffer = e; + f = new Uint8Array(e); + f.set(this.buffer); + this.buffer = f; } - this.buffer.set(b, f); - this.available += b.length; + this.buffer.set(d, c); + this.available += d.length; }; - b.prototype.compact = function() { + d.prototype.compact = function() { 0 !== this.available && (this.buffer.set(this.buffer.subarray(this.pos, this.pos + this.available), 0), this.pos = 0); }; - b.prototype.readByte = function() { + d.prototype.readByte = function() { if (0 >= this.available) { throw Error("Unexpected end of file"); } this.available--; return this.buffer[this.pos++]; }; - return b; + return d; }(), a = function() { - function b(f) { - this.onData = f; + function d(d) { + this.onData = d; this.processed = 0; } - b.prototype.writeBytes = function(b) { - this.onData.call(null, b); - this.processed += b.length; + d.prototype.writeBytes = function(d) { + this.onData.call(null, d); + this.processed += d.length; }; - return b; + return d; }(), h = function() { - function b(f) { - this.outStream = f; + function d(d) { + this.outStream = d; this.buf = null; this.size = this.pos = 0; this.isFull = !1; this.totalPos = this.writePos = 0; } - b.prototype.create = function(b) { - this.buf = new Uint8Array(b); + d.prototype.create = function(d) { + this.buf = new Uint8Array(d); this.pos = 0; - this.size = b; + this.size = d; this.isFull = !1; this.totalPos = this.writePos = 0; }; - b.prototype.putByte = function(b) { + d.prototype.putByte = function(d) { this.totalPos++; - this.buf[this.pos++] = b; + this.buf[this.pos++] = d; this.pos === this.size && (this.flush(), this.pos = 0, this.isFull = !0); }; - b.prototype.getByte = function(b) { - return this.buf[b <= this.pos ? this.pos - b : this.size - b + this.pos]; + d.prototype.getByte = function(d) { + return this.buf[d <= this.pos ? this.pos - d : this.size - d + this.pos]; }; - b.prototype.flush = function() { + d.prototype.flush = function() { this.writePos < this.pos && (this.outStream.writeBytes(this.buf.subarray(this.writePos, this.pos)), this.writePos = this.pos === this.size ? 0 : this.pos); }; - b.prototype.copyMatch = function(b, f) { - for (var e = this.pos, d = this.size, a = this.buf, h = b <= e ? e - b : d - b + e, p = f;0 < p;) { - for (var c = Math.min(Math.min(p, d - e), d - h), m = 0;m < c;m++) { + d.prototype.copyMatch = function(d, c) { + for (var f = this.pos, e = this.size, a = this.buf, h = d <= f ? f - d : e - d + f, p = c;0 < p;) { + for (var b = Math.min(Math.min(p, e - f), e - h), m = 0;m < b;m++) { var l = a[h++]; - a[e++] = l; + a[f++] = l; } - e === d && (this.pos = e, this.flush(), e = 0, this.isFull = !0); - h === d && (h = 0); - p -= c; + f === e && (this.pos = f, this.flush(), f = 0, this.isFull = !0); + h === e && (h = 0); + p -= b; } - this.pos = e; - this.totalPos += f; + this.pos = f; + this.totalPos += c; }; - b.prototype.checkDistance = function(b) { - return b <= this.pos || this.isFull; + d.prototype.checkDistance = function(d) { + return d <= this.pos || this.isFull; }; - b.prototype.isEmpty = function() { + d.prototype.isEmpty = function() { return 0 === this.pos && !this.isFull; }; - return b; + return d; }(), p = function() { - function b(f) { - this.inStream = f; + function d(d) { + this.inStream = d; this.code = this.range = 0; this.corrupted = !1; } - b.prototype.init = function() { + d.prototype.init = function() { 0 !== this.inStream.readByte() && (this.corrupted = !0); this.range = -1; - for (var b = 0, f = 0;4 > f;f++) { - b = b << 8 | this.inStream.readByte(); + for (var d = 0, c = 0;4 > c;c++) { + d = d << 8 | this.inStream.readByte(); } - b === this.range && (this.corrupted = !0); - this.code = b; + d === this.range && (this.corrupted = !0); + this.code = d; }; - b.prototype.isFinishedOK = function() { + d.prototype.isFinishedOK = function() { return 0 === this.code; }; - b.prototype.decodeDirectBits = function(b) { - var f = 0, e = this.range, d = this.code; + d.prototype.decodeDirectBits = function(d) { + var c = 0, f = this.range, e = this.code; do { - var e = e >>> 1 | 0, d = d - e | 0, a = d >> 31, d = d + (e & a) | 0; - d === e && (this.corrupted = !0); - 0 <= e && 16777216 > e && (e <<= 8, d = d << 8 | this.inStream.readByte()); - f = (f << 1) + a + 1 | 0; - } while (--b); - this.range = e; - this.code = d; - return f; + var f = f >>> 1 | 0, e = e - f | 0, a = e >> 31, e = e + (f & a) | 0; + e === f && (this.corrupted = !0); + 0 <= f && 16777216 > f && (f <<= 8, e = e << 8 | this.inStream.readByte()); + c = (c << 1) + a + 1 | 0; + } while (--d); + this.range = f; + this.code = e; + return c; }; - b.prototype.decodeBit = function(b, f) { - var e = this.range, d = this.code, a = b[f], h = (e >>> 11) * a; - d >>> 0 < h ? (a = a + (2048 - a >> 5) | 0, e = h | 0, h = 0) : (a = a - (a >> 5) | 0, d = d - h | 0, e = e - h | 0, h = 1); - b[f] = a & 65535; - 0 <= e && 16777216 > e && (e <<= 8, d = d << 8 | this.inStream.readByte()); - this.range = e; - this.code = d; + d.prototype.decodeBit = function(d, c) { + var f = this.range, e = this.code, a = d[c], h = (f >>> 11) * a; + e >>> 0 < h ? (a = a + (2048 - a >> 5) | 0, f = h | 0, h = 0) : (a = a - (a >> 5) | 0, e = e - h | 0, f = f - h | 0, h = 1); + d[c] = a & 65535; + 0 <= f && 16777216 > f && (f <<= 8, e = e << 8 | this.inStream.readByte()); + this.range = f; + this.code = e; return h; }; - return b; + return d; }(), l = function() { - function b(f) { - this.numBits = f; - this.probs = g(1 << f); + function d(d) { + this.numBits = d; + this.probs = g(1 << d); } - b.prototype.decode = function(b) { - for (var f = 1, e = 0;e < this.numBits;e++) { - f = (f << 1) + b.decodeBit(this.probs, f); + d.prototype.decode = function(d) { + for (var c = 1, f = 0;f < this.numBits;f++) { + c = (c << 1) + d.decodeBit(this.probs, c); } - return f - (1 << this.numBits); + return c - (1 << this.numBits); }; - b.prototype.reverseDecode = function(b) { - return c(this.probs, 0, this.numBits, b); + d.prototype.reverseDecode = function(d) { + return b(this.probs, 0, this.numBits, d); }; - return b; - }(), u = function() { - function b() { + return d; + }(), w = function() { + function d() { this.choice = g(2); - this.lowCoder = t(3, 16); - this.midCoder = t(3, 16); + this.lowCoder = v(3, 16); + this.midCoder = v(3, 16); this.highCoder = new l(8); } - b.prototype.decode = function(b, f) { - return 0 === b.decodeBit(this.choice, 0) ? this.lowCoder[f].decode(b) : 0 === b.decodeBit(this.choice, 1) ? 8 + this.midCoder[f].decode(b) : 16 + this.highCoder.decode(b); + d.prototype.decode = function(d, c) { + return 0 === d.decodeBit(this.choice, 0) ? this.lowCoder[c].decode(d) : 0 === d.decodeBit(this.choice, 1) ? 8 + this.midCoder[c].decode(d) : 16 + this.highCoder.decode(d); }; - return b; + return d; }(), m = function() { - function b(f, e) { - this.rangeDec = new p(f); - this.outWindow = new h(e); + function d(d, c) { + this.rangeDec = new p(d); + this.outWindow = new h(c); this.markerIsMandatory = !1; this.dictSizeInProperties = this.dictSize = this.lp = this.pb = this.lc = 0; this.leftToUnpack = this.unpackSize = void 0; this.reps = new Int32Array(4); this.state = 0; } - b.prototype.decodeProperties = function(b) { - var f = b[0]; - if (225 <= f) { + d.prototype.decodeProperties = function(d) { + var c = d[0]; + if (225 <= c) { throw Error("Incorrect LZMA properties"); } - this.lc = f % 9; - f = f / 9 | 0; - this.pb = f / 5 | 0; - this.lp = f % 5; - for (f = this.dictSizeInProperties = 0;4 > f;f++) { - this.dictSizeInProperties |= b[f + 1] << 8 * f; + this.lc = c % 9; + c = c / 9 | 0; + this.pb = c / 5 | 0; + this.lp = c % 5; + for (c = this.dictSizeInProperties = 0;4 > c;c++) { + this.dictSizeInProperties |= d[c + 1] << 8 * c; } this.dictSize = this.dictSizeInProperties; 4096 > this.dictSize && (this.dictSize = 4096); }; - b.prototype.create = function() { + d.prototype.create = function() { this.outWindow.create(this.dictSize); this.init(); this.rangeDec.init(); @@ -3414,39 +3418,39 @@ var __extends = this.__extends || function(k, r) { this.state = this.reps[3] = 0; this.leftToUnpack = this.unpackSize; }; - b.prototype.decodeLiteral = function(b, f) { - var e = this.outWindow, d = this.rangeDec, a = 0; - e.isEmpty() || (a = e.getByte(1)); - var h = 1, a = 768 * (((e.totalPos & (1 << this.lp) - 1) << this.lc) + (a >> 8 - this.lc)); - if (7 <= b) { - e = e.getByte(f + 1); + d.prototype.decodeLiteral = function(d, c) { + var f = this.outWindow, e = this.rangeDec, a = 0; + f.isEmpty() || (a = f.getByte(1)); + var h = 1, a = 768 * (((f.totalPos & (1 << this.lp) - 1) << this.lc) + (a >> 8 - this.lc)); + if (7 <= d) { + f = f.getByte(c + 1); do { - var p = e >> 7 & 1, e = e << 1, c = d.decodeBit(this.litProbs, a + ((1 + p << 8) + h)), h = h << 1 | c; - if (p !== c) { + var p = f >> 7 & 1, f = f << 1, b = e.decodeBit(this.litProbs, a + ((1 + p << 8) + h)), h = h << 1 | b; + if (p !== b) { break; } } while (256 > h); } for (;256 > h;) { - h = h << 1 | d.decodeBit(this.litProbs, a + h); + h = h << 1 | e.decodeBit(this.litProbs, a + h); } return h - 256 & 255; }; - b.prototype.decodeDistance = function(b) { - var f = b; - 3 < f && (f = 3); - b = this.rangeDec; - f = this.posSlotDecoder[f].decode(b); - if (4 > f) { - return f; + d.prototype.decodeDistance = function(d) { + var c = d; + 3 < c && (c = 3); + d = this.rangeDec; + c = this.posSlotDecoder[c].decode(d); + if (4 > c) { + return c; } - var e = (f >> 1) - 1, d = (2 | f & 1) << e; - 14 > f ? d = d + c(this.posDecoders, d - f, e, b) | 0 : (d = d + (b.decodeDirectBits(e - 4) << 4) | 0, d = d + this.alignDecoder.reverseDecode(b) | 0); - return d; + var f = (c >> 1) - 1, e = (2 | c & 1) << f; + 14 > c ? e = e + b(this.posDecoders, e - c, f, d) | 0 : (e = e + (d.decodeDirectBits(f - 4) << 4) | 0, e = e + this.alignDecoder.reverseDecode(d) | 0); + return e; }; - b.prototype.init = function() { + d.prototype.init = function() { this.litProbs = g(768 << this.lc + this.lp); - this.posSlotDecoder = t(6, 4); + this.posSlotDecoder = v(6, 4); this.alignDecoder = new l(4); this.posDecoders = g(115); this.isMatch = g(192); @@ -3455,129 +3459,129 @@ var __extends = this.__extends || function(k, r) { this.isRepG1 = g(12); this.isRepG2 = g(12); this.isRep0Long = g(192); - this.lenDecoder = new u; - this.repLenDecoder = new u; + this.lenDecoder = new w; + this.repLenDecoder = new w; }; - b.prototype.decode = function(b) { - for (var f = this.rangeDec, a = this.outWindow, h = this.pb, p = this.dictSize, c = this.markerIsMandatory, m = this.leftToUnpack, l = this.isMatch, n = this.isRep, u = this.isRepG0, g = this.isRepG1, k = this.isRepG2, r = this.isRep0Long, t = this.lenDecoder, y = this.repLenDecoder, z = this.reps[0], B = this.reps[1], x = this.reps[2], E = this.reps[3], A = this.state;;) { - if (b && 48 > f.inStream.available) { + d.prototype.decode = function(d) { + for (var c = this.rangeDec, a = this.outWindow, h = this.pb, p = this.dictSize, b = this.markerIsMandatory, m = this.leftToUnpack, l = this.isMatch, n = this.isRep, w = this.isRepG0, g = this.isRepG1, k = this.isRepG2, r = this.isRep0Long, v = this.lenDecoder, z = this.repLenDecoder, A = this.reps[0], C = this.reps[1], y = this.reps[2], F = this.reps[3], B = this.state;;) { + if (d && 48 > c.inStream.available) { this.outWindow.flush(); break; } - if (0 === m && !c && (this.outWindow.flush(), f.isFinishedOK())) { - return d; + if (0 === m && !b && (this.outWindow.flush(), c.isFinishedOK())) { + return e; } - var D = a.totalPos & (1 << h) - 1; - if (0 === f.decodeBit(l, (A << 4) + D)) { + var E = a.totalPos & (1 << h) - 1; + if (0 === c.decodeBit(l, (B << 4) + E)) { if (0 === m) { - return s; + return t; } - a.putByte(this.decodeLiteral(A, z)); - A = 4 > A ? 0 : 10 > A ? A - 3 : A - 6; + a.putByte(this.decodeLiteral(B, A)); + B = 4 > B ? 0 : 10 > B ? B - 3 : B - 6; m--; } else { - if (0 !== f.decodeBit(n, A)) { + if (0 !== c.decodeBit(n, B)) { if (0 === m || a.isEmpty()) { - return s; + return t; } - if (0 === f.decodeBit(u, A)) { - if (0 === f.decodeBit(r, (A << 4) + D)) { - A = 7 > A ? 9 : 11; - a.putByte(a.getByte(z + 1)); + if (0 === c.decodeBit(w, B)) { + if (0 === c.decodeBit(r, (B << 4) + E)) { + B = 7 > B ? 9 : 11; + a.putByte(a.getByte(A + 1)); m--; continue; } } else { - var F; - 0 === f.decodeBit(g, A) ? F = B : (0 === f.decodeBit(k, A) ? F = x : (F = E, E = x), x = B); - B = z; - z = F; + var G; + 0 === c.decodeBit(g, B) ? G = C : (0 === c.decodeBit(k, B) ? G = y : (G = F, F = y), y = C); + C = A; + A = G; } - D = y.decode(f, D); - A = 7 > A ? 8 : 11; + E = z.decode(c, E); + B = 7 > B ? 8 : 11; } else { - E = x; - x = B; - B = z; - D = t.decode(f, D); - A = 7 > A ? 7 : 10; - z = this.decodeDistance(D); - if (-1 === z) { - return this.outWindow.flush(), f.isFinishedOK() ? v : s; + F = y; + y = C; + C = A; + E = v.decode(c, E); + B = 7 > B ? 7 : 10; + A = this.decodeDistance(E); + if (-1 === A) { + return this.outWindow.flush(), c.isFinishedOK() ? x : t; } - if (0 === m || z >= p || !a.checkDistance(z)) { - return s; + if (0 === m || A >= p || !a.checkDistance(A)) { + return t; } } - D += 2; - F = !1; - void 0 !== m && m < D && (D = m, F = !0); - a.copyMatch(z + 1, D); - m -= D; - if (F) { - return s; + E += 2; + G = !1; + void 0 !== m && m < E && (E = m, G = !0); + a.copyMatch(A + 1, E); + m -= E; + if (G) { + return t; } } } - this.state = A; - this.reps[0] = z; - this.reps[1] = B; - this.reps[2] = x; - this.reps[3] = E; + this.state = B; + this.reps[0] = A; + this.reps[1] = C; + this.reps[2] = y; + this.reps[3] = F; this.leftToUnpack = m; - return e; + return f; }; - b.prototype.flushOutput = function() { + d.prototype.flushOutput = function() { this.outWindow.flush(); }; - return b; - }(), s = 0, v = 1, d = 2, e = 3, b; - (function(b) { - b[b.WAIT_FOR_LZMA_HEADER = 0] = "WAIT_FOR_LZMA_HEADER"; - b[b.WAIT_FOR_SWF_HEADER = 1] = "WAIT_FOR_SWF_HEADER"; - b[b.PROCESS_DATA = 2] = "PROCESS_DATA"; - b[b.CLOSED = 3] = "CLOSED"; - b[b.ERROR = 4] = "ERROR"; - })(b || (b = {})); - b = function() { - function b(f) { - void 0 === f && (f = !1); - this._state = f ? 1 : 0; + return d; + }(), t = 0, x = 1, e = 2, f = 3, c; + (function(d) { + d[d.WAIT_FOR_LZMA_HEADER = 0] = "WAIT_FOR_LZMA_HEADER"; + d[d.WAIT_FOR_SWF_HEADER = 1] = "WAIT_FOR_SWF_HEADER"; + d[d.PROCESS_DATA = 2] = "PROCESS_DATA"; + d[d.CLOSED = 3] = "CLOSED"; + d[d.ERROR = 4] = "ERROR"; + })(c || (c = {})); + c = function() { + function d(d) { + void 0 === d && (d = !1); + this._state = d ? 1 : 0; this.buffer = null; } - b.prototype.push = function(b) { + d.prototype.push = function(d) { if (2 > this._state) { - var f = this.buffer ? this.buffer.length : 0, d = (1 === this._state ? 17 : 13) + 5; - if (f + b.length < d) { - d = new Uint8Array(f + b.length); - 0 < f && d.set(this.buffer); - d.set(b, f); - this.buffer = d; + var c = this.buffer ? this.buffer.length : 0, e = (1 === this._state ? 17 : 13) + 5; + if (c + d.length < e) { + e = new Uint8Array(c + d.length); + 0 < c && e.set(this.buffer); + e.set(d, c); + this.buffer = e; return; } - var h = new Uint8Array(d); - 0 < f && h.set(this.buffer); - h.set(b.subarray(0, d - f), f); + var h = new Uint8Array(e); + 0 < c && h.set(this.buffer); + h.set(d.subarray(0, e - c), c); this._inStream = new n; - this._inStream.append(h.subarray(d - 5)); - this._outStream = new a(function(b) { - this.onData.call(null, b); + this._inStream.append(h.subarray(e - 5)); + this._outStream = new a(function(d) { + this.onData.call(null, d); }.bind(this)); this._decoder = new m(this._inStream, this._outStream); if (1 === this._state) { this._decoder.decodeProperties(h.subarray(12, 17)), this._decoder.markerIsMandatory = !1, this._decoder.unpackSize = ((h[4] | h[5] << 8 | h[6] << 16 | h[7] << 24) >>> 0) - 8; } else { this._decoder.decodeProperties(h.subarray(0, 5)); - for (var f = 0, p = !1, c = 0;8 > c;c++) { - var l = h[5 + c]; + for (var c = 0, p = !1, b = 0;8 > b;b++) { + var l = h[5 + b]; 255 !== l && (p = !0); - f |= l << 8 * c; + c |= l << 8 * b; } this._decoder.markerIsMandatory = !p; - this._decoder.unpackSize = p ? f : void 0; + this._decoder.unpackSize = p ? c : void 0; } this._decoder.create(); - b = b.subarray(d); + d = d.subarray(e); this._state = 2; } else { if (2 !== this._state) { @@ -3585,88 +3589,88 @@ var __extends = this.__extends || function(k, r) { } } try { - this._inStream.append(b); - var s = this._decoder.decode(!0); + this._inStream.append(d); + var t = this._decoder.decode(!0); this._inStream.compact(); - s !== e && this._checkError(s); - } catch (u) { - this._decoder.flushOutput(), this._decoder = null, this._error(u); + t !== f && this._checkError(t); + } catch (w) { + this._decoder.flushOutput(), this._decoder = null, this._error(w); } }; - b.prototype.close = function() { + d.prototype.close = function() { if (2 === this._state) { this._state = 3; try { - var b = this._decoder.decode(!1); - this._checkError(b); - } catch (f) { - this._decoder.flushOutput(), this._error(f); + var d = this._decoder.decode(!1); + this._checkError(d); + } catch (c) { + this._decoder.flushOutput(), this._error(c); } this._decoder = null; } }; - b.prototype._error = function(b) { + d.prototype._error = function(d) { this._state = 4; if (this.onError) { - this.onError(b); + this.onError(d); } }; - b.prototype._checkError = function(b) { - var f; - b === s ? f = "LZMA decoding error" : b === e ? f = "Decoding is not complete" : b === v ? void 0 !== this._decoder.unpackSize && this._decoder.unpackSize !== this._outStream.processed && (f = "Finished with end marker before than specified size") : f = "Internal LZMA Error"; - f && this._error(f); + d.prototype._checkError = function(d) { + var c; + d === t ? c = "LZMA decoding error" : d === f ? c = "Decoding is not complete" : d === x ? void 0 !== this._decoder.unpackSize && this._decoder.unpackSize !== this._outStream.processed && (c = "Finished with end marker before than specified size") : c = "Internal LZMA Error"; + c && this._error(c); }; - return b; + return d; }(); - k.LzmaDecoder = b; + k.LzmaDecoder = c; })(k.ArrayUtilities || (k.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { - function g(a, d) { - a !== h(a, 0, d) && throwError("RangeError", Errors.ParamRangeError); + function g(a, e) { + a !== h(a, 0, e) && throwError("RangeError", Errors.ParamRangeError); } - function c(a) { + function b(a) { return "string" === typeof a ? a : void 0 == a ? null : a + ""; } - var t = k.Debug.notImplemented, n = k.StringUtilities.utf8decode, a = k.StringUtilities.utf8encode, h = k.NumberUtilities.clamp, p = function() { - return function(a, d, e) { + var v = k.Debug.notImplemented, n = k.StringUtilities.utf8decode, a = k.StringUtilities.utf8encode, h = k.NumberUtilities.clamp, p = function() { + return function(a, e, f) { this.buffer = a; - this.length = d; - this.littleEndian = e; + this.length = e; + this.littleEndian = f; }; }(); r.PlainObjectDataBuffer = p; - for (var l = new Uint32Array(33), u = 1, m = 0;32 >= u;u++) { - l[u] = m = m << 1 | 1; + for (var l = new Uint32Array(33), w = 1, m = 0;32 >= w;w++) { + l[w] = m = m << 1 | 1; } - var s; + var t; (function(a) { a[a.U8 = 1] = "U8"; a[a.I32 = 2] = "I32"; a[a.F32 = 4] = "F32"; - })(s || (s = {})); - u = function() { - function m(d) { - void 0 === d && (d = m.INITIAL_SIZE); - this._buffer || (this._buffer = new ArrayBuffer(d), this._position = this._length = 0, this._resetViews(), this._littleEndian = m._nativeLittleEndian, this._bitLength = this._bitBuffer = 0); + })(t || (t = {})); + w = function() { + function m(e) { + void 0 === e && (e = m.INITIAL_SIZE); + this._buffer || (this._buffer = new ArrayBuffer(e), this._position = this._length = 0, this._resetViews(), this._littleEndian = m._nativeLittleEndian, this._bitLength = this._bitBuffer = 0); } - m.FromArrayBuffer = function(d, e) { - void 0 === e && (e = -1); - var b = Object.create(m.prototype); - b._buffer = d; - b._length = -1 === e ? d.byteLength : e; - b._position = 0; - b._resetViews(); - b._littleEndian = m._nativeLittleEndian; - b._bitBuffer = 0; - b._bitLength = 0; - return b; + m.FromArrayBuffer = function(e, f) { + void 0 === f && (f = -1); + var c = Object.create(m.prototype); + c._buffer = e; + c._length = -1 === f ? e.byteLength : f; + c._position = 0; + c._resetViews(); + c._littleEndian = m._nativeLittleEndian; + c._bitBuffer = 0; + c._bitLength = 0; + return c; }; - m.FromPlainObject = function(d) { - var e = m.FromArrayBuffer(d.buffer, d.length); - e._littleEndian = d.littleEndian; - return e; + m.FromPlainObject = function(e) { + var f = m.FromArrayBuffer(e.buffer, e.length); + f._littleEndian = e.littleEndian; + return f; }; m.prototype.toPlainObject = function() { return new p(this._buffer, this._length, this._littleEndian); @@ -3675,24 +3679,24 @@ var __extends = this.__extends || function(k, r) { this._u8 = new Uint8Array(this._buffer); this._f32 = this._i32 = null; }; - m.prototype._requestViews = function(d) { - 0 === (this._buffer.byteLength & 3) && (null === this._i32 && d & 2 && (this._i32 = new Int32Array(this._buffer)), null === this._f32 && d & 4 && (this._f32 = new Float32Array(this._buffer))); + m.prototype._requestViews = function(e) { + 0 === (this._buffer.byteLength & 3) && (null === this._i32 && e & 2 && (this._i32 = new Int32Array(this._buffer)), null === this._f32 && e & 4 && (this._f32 = new Float32Array(this._buffer))); }; m.prototype.getBytes = function() { return new Uint8Array(this._buffer, 0, this._length); }; - m.prototype._ensureCapacity = function(d) { - var e = this._buffer; - if (e.byteLength < d) { - for (var b = Math.max(e.byteLength, 1);b < d;) { - b *= 2; + m.prototype._ensureCapacity = function(e) { + var f = this._buffer; + if (f.byteLength < e) { + for (var c = Math.max(f.byteLength, 1);c < e;) { + c *= 2; } - d = m._arrayBufferPool.acquire(b); - b = this._u8; - this._buffer = d; + e = m._arrayBufferPool.acquire(c); + c = this._u8; + this._buffer = e; this._resetViews(); - this._u8.set(b); - m._arrayBufferPool.release(e); + this._u8.set(c); + m._arrayBufferPool.release(f); } }; m.prototype.clear = function() { @@ -3708,197 +3712,197 @@ var __extends = this.__extends || function(k, r) { this._position + 1 > this._length && throwError("EOFError", Errors.EOFError); return this._u8[this._position++]; }; - m.prototype.readBytes = function(d, e) { - var b = 0; - void 0 === b && (b = 0); - void 0 === e && (e = 0); - var f = this._position; - b || (b = 0); - e || (e = this._length - f); - f + e > this._length && throwError("EOFError", Errors.EOFError); - d.length < b + e && (d._ensureCapacity(b + e), d.length = b + e); - d._u8.set(new Uint8Array(this._buffer, f, e), b); - this._position += e; + m.prototype.readBytes = function(e, f) { + var c = 0; + void 0 === c && (c = 0); + void 0 === f && (f = 0); + var d = this._position; + c || (c = 0); + f || (f = this._length - d); + d + f > this._length && throwError("EOFError", Errors.EOFError); + e.length < c + f && (e._ensureCapacity(c + f), e.length = c + f); + e._u8.set(new Uint8Array(this._buffer, d, f), c); + this._position += f; }; m.prototype.readShort = function() { return this.readUnsignedShort() << 16 >> 16; }; m.prototype.readUnsignedShort = function() { - var d = this._u8, e = this._position; - e + 2 > this._length && throwError("EOFError", Errors.EOFError); - var b = d[e + 0], d = d[e + 1]; - this._position = e + 2; - return this._littleEndian ? d << 8 | b : b << 8 | d; + var e = this._u8, f = this._position; + f + 2 > this._length && throwError("EOFError", Errors.EOFError); + var c = e[f + 0], e = e[f + 1]; + this._position = f + 2; + return this._littleEndian ? e << 8 | c : c << 8 | e; }; m.prototype.readInt = function() { - var d = this._u8, e = this._position; - e + 4 > this._length && throwError("EOFError", Errors.EOFError); - var b = d[e + 0], f = d[e + 1], a = d[e + 2], d = d[e + 3]; - this._position = e + 4; - return this._littleEndian ? d << 24 | a << 16 | f << 8 | b : b << 24 | f << 16 | a << 8 | d; + var e = this._u8, f = this._position; + f + 4 > this._length && throwError("EOFError", Errors.EOFError); + var c = e[f + 0], d = e[f + 1], a = e[f + 2], e = e[f + 3]; + this._position = f + 4; + return this._littleEndian ? e << 24 | a << 16 | d << 8 | c : c << 24 | d << 16 | a << 8 | e; }; m.prototype.readUnsignedInt = function() { return this.readInt() >>> 0; }; m.prototype.readFloat = function() { - var d = this._position; - d + 4 > this._length && throwError("EOFError", Errors.EOFError); - this._position = d + 4; + var e = this._position; + e + 4 > this._length && throwError("EOFError", Errors.EOFError); + this._position = e + 4; this._requestViews(4); - if (this._littleEndian && 0 === (d & 3) && this._f32) { - return this._f32[d >> 2]; + if (this._littleEndian && 0 === (e & 3) && this._f32) { + return this._f32[e >> 2]; } - var e = this._u8, b = k.IntegerUtilities.u8; - this._littleEndian ? (b[0] = e[d + 0], b[1] = e[d + 1], b[2] = e[d + 2], b[3] = e[d + 3]) : (b[3] = e[d + 0], b[2] = e[d + 1], b[1] = e[d + 2], b[0] = e[d + 3]); + var f = this._u8, c = k.IntegerUtilities.u8; + this._littleEndian ? (c[0] = f[e + 0], c[1] = f[e + 1], c[2] = f[e + 2], c[3] = f[e + 3]) : (c[3] = f[e + 0], c[2] = f[e + 1], c[1] = f[e + 2], c[0] = f[e + 3]); return k.IntegerUtilities.f32[0]; }; m.prototype.readDouble = function() { - var d = this._u8, e = this._position; - e + 8 > this._length && throwError("EOFError", Errors.EOFError); - var b = k.IntegerUtilities.u8; - this._littleEndian ? (b[0] = d[e + 0], b[1] = d[e + 1], b[2] = d[e + 2], b[3] = d[e + 3], b[4] = d[e + 4], b[5] = d[e + 5], b[6] = d[e + 6], b[7] = d[e + 7]) : (b[0] = d[e + 7], b[1] = d[e + 6], b[2] = d[e + 5], b[3] = d[e + 4], b[4] = d[e + 3], b[5] = d[e + 2], b[6] = d[e + 1], b[7] = d[e + 0]); - this._position = e + 8; + var e = this._u8, f = this._position; + f + 8 > this._length && throwError("EOFError", Errors.EOFError); + var c = k.IntegerUtilities.u8; + this._littleEndian ? (c[0] = e[f + 0], c[1] = e[f + 1], c[2] = e[f + 2], c[3] = e[f + 3], c[4] = e[f + 4], c[5] = e[f + 5], c[6] = e[f + 6], c[7] = e[f + 7]) : (c[0] = e[f + 7], c[1] = e[f + 6], c[2] = e[f + 5], c[3] = e[f + 4], c[4] = e[f + 3], c[5] = e[f + 2], c[6] = e[f + 1], c[7] = e[f + 0]); + this._position = f + 8; return k.IntegerUtilities.f64[0]; }; - m.prototype.writeBoolean = function(d) { - this.writeByte(d ? 1 : 0); + m.prototype.writeBoolean = function(e) { + this.writeByte(e ? 1 : 0); }; - m.prototype.writeByte = function(d) { - var e = this._position + 1; - this._ensureCapacity(e); - this._u8[this._position++] = d; - e > this._length && (this._length = e); + m.prototype.writeByte = function(e) { + var f = this._position + 1; + this._ensureCapacity(f); + this._u8[this._position++] = e; + f > this._length && (this._length = f); }; - m.prototype.writeUnsignedByte = function(d) { - var e = this._position + 1; - this._ensureCapacity(e); - this._u8[this._position++] = d; - e > this._length && (this._length = e); + m.prototype.writeUnsignedByte = function(e) { + var f = this._position + 1; + this._ensureCapacity(f); + this._u8[this._position++] = e; + f > this._length && (this._length = f); }; - m.prototype.writeRawBytes = function(d) { - var e = this._position + d.length; - this._ensureCapacity(e); - this._u8.set(d, this._position); - this._position = e; - e > this._length && (this._length = e); + m.prototype.writeRawBytes = function(e) { + var f = this._position + e.length; + this._ensureCapacity(f); + this._u8.set(e, this._position); + this._position = f; + f > this._length && (this._length = f); }; - m.prototype.writeBytes = function(d, e, b) { - void 0 === e && (e = 0); - void 0 === b && (b = 0); - k.isNullOrUndefined(d) && throwError("TypeError", Errors.NullPointerError, "bytes"); - 2 > arguments.length && (e = 0); - 3 > arguments.length && (b = 0); - g(e, d.length); - g(e + b, d.length); - 0 === b && (b = d.length - e); - this.writeRawBytes(new Int8Array(d._buffer, e, b)); + m.prototype.writeBytes = function(e, f, c) { + void 0 === f && (f = 0); + void 0 === c && (c = 0); + k.isNullOrUndefined(e) && throwError("TypeError", Errors.NullPointerError, "bytes"); + 2 > arguments.length && (f = 0); + 3 > arguments.length && (c = 0); + g(f, e.length); + g(f + c, e.length); + 0 === c && (c = e.length - f); + this.writeRawBytes(new Int8Array(e._buffer, f, c)); }; - m.prototype.writeShort = function(d) { - this.writeUnsignedShort(d); + m.prototype.writeShort = function(e) { + this.writeUnsignedShort(e); }; - m.prototype.writeUnsignedShort = function(d) { - var e = this._position; - this._ensureCapacity(e + 2); - var b = this._u8; - this._littleEndian ? (b[e + 0] = d, b[e + 1] = d >> 8) : (b[e + 0] = d >> 8, b[e + 1] = d); - this._position = e += 2; - e > this._length && (this._length = e); + m.prototype.writeUnsignedShort = function(e) { + var f = this._position; + this._ensureCapacity(f + 2); + var c = this._u8; + this._littleEndian ? (c[f + 0] = e, c[f + 1] = e >> 8) : (c[f + 0] = e >> 8, c[f + 1] = e); + this._position = f += 2; + f > this._length && (this._length = f); }; - m.prototype.writeInt = function(d) { - this.writeUnsignedInt(d); + m.prototype.writeInt = function(e) { + this.writeUnsignedInt(e); }; - m.prototype.write2Ints = function(d, e) { - this.write2UnsignedInts(d, e); + m.prototype.write2Ints = function(e, f) { + this.write2UnsignedInts(e, f); }; - m.prototype.write4Ints = function(d, e, b, f) { - this.write4UnsignedInts(d, e, b, f); + m.prototype.write4Ints = function(e, f, c, d) { + this.write4UnsignedInts(e, f, c, d); }; - m.prototype.writeUnsignedInt = function(d) { - var e = this._position; - this._ensureCapacity(e + 4); + m.prototype.writeUnsignedInt = function(e) { + var f = this._position; + this._ensureCapacity(f + 4); this._requestViews(2); - if (this._littleEndian === m._nativeLittleEndian && 0 === (e & 3) && this._i32) { - this._i32[e >> 2] = d; + if (this._littleEndian === m._nativeLittleEndian && 0 === (f & 3) && this._i32) { + this._i32[f >> 2] = e; } else { - var b = this._u8; - this._littleEndian ? (b[e + 0] = d, b[e + 1] = d >> 8, b[e + 2] = d >> 16, b[e + 3] = d >> 24) : (b[e + 0] = d >> 24, b[e + 1] = d >> 16, b[e + 2] = d >> 8, b[e + 3] = d); + var c = this._u8; + this._littleEndian ? (c[f + 0] = e, c[f + 1] = e >> 8, c[f + 2] = e >> 16, c[f + 3] = e >> 24) : (c[f + 0] = e >> 24, c[f + 1] = e >> 16, c[f + 2] = e >> 8, c[f + 3] = e); } - this._position = e += 4; - e > this._length && (this._length = e); + this._position = f += 4; + f > this._length && (this._length = f); }; - m.prototype.write2UnsignedInts = function(d, e) { - var b = this._position; - this._ensureCapacity(b + 8); + m.prototype.write2UnsignedInts = function(e, f) { + var c = this._position; + this._ensureCapacity(c + 8); this._requestViews(2); - this._littleEndian === m._nativeLittleEndian && 0 === (b & 3) && this._i32 ? (this._i32[(b >> 2) + 0] = d, this._i32[(b >> 2) + 1] = e, this._position = b += 8, b > this._length && (this._length = b)) : (this.writeUnsignedInt(d), this.writeUnsignedInt(e)); + this._littleEndian === m._nativeLittleEndian && 0 === (c & 3) && this._i32 ? (this._i32[(c >> 2) + 0] = e, this._i32[(c >> 2) + 1] = f, this._position = c += 8, c > this._length && (this._length = c)) : (this.writeUnsignedInt(e), this.writeUnsignedInt(f)); }; - m.prototype.write4UnsignedInts = function(d, e, b, f) { + m.prototype.write4UnsignedInts = function(e, f, c, d) { var a = this._position; this._ensureCapacity(a + 16); this._requestViews(2); - this._littleEndian === m._nativeLittleEndian && 0 === (a & 3) && this._i32 ? (this._i32[(a >> 2) + 0] = d, this._i32[(a >> 2) + 1] = e, this._i32[(a >> 2) + 2] = b, this._i32[(a >> 2) + 3] = f, this._position = a += 16, a > this._length && (this._length = a)) : (this.writeUnsignedInt(d), this.writeUnsignedInt(e), this.writeUnsignedInt(b), this.writeUnsignedInt(f)); + this._littleEndian === m._nativeLittleEndian && 0 === (a & 3) && this._i32 ? (this._i32[(a >> 2) + 0] = e, this._i32[(a >> 2) + 1] = f, this._i32[(a >> 2) + 2] = c, this._i32[(a >> 2) + 3] = d, this._position = a += 16, a > this._length && (this._length = a)) : (this.writeUnsignedInt(e), this.writeUnsignedInt(f), this.writeUnsignedInt(c), this.writeUnsignedInt(d)); }; - m.prototype.writeFloat = function(d) { - var e = this._position; - this._ensureCapacity(e + 4); + m.prototype.writeFloat = function(e) { + var f = this._position; + this._ensureCapacity(f + 4); this._requestViews(4); - if (this._littleEndian === m._nativeLittleEndian && 0 === (e & 3) && this._f32) { - this._f32[e >> 2] = d; + if (this._littleEndian === m._nativeLittleEndian && 0 === (f & 3) && this._f32) { + this._f32[f >> 2] = e; } else { - var b = this._u8; - k.IntegerUtilities.f32[0] = d; - d = k.IntegerUtilities.u8; - this._littleEndian ? (b[e + 0] = d[0], b[e + 1] = d[1], b[e + 2] = d[2], b[e + 3] = d[3]) : (b[e + 0] = d[3], b[e + 1] = d[2], b[e + 2] = d[1], b[e + 3] = d[0]); + var c = this._u8; + k.IntegerUtilities.f32[0] = e; + e = k.IntegerUtilities.u8; + this._littleEndian ? (c[f + 0] = e[0], c[f + 1] = e[1], c[f + 2] = e[2], c[f + 3] = e[3]) : (c[f + 0] = e[3], c[f + 1] = e[2], c[f + 2] = e[1], c[f + 3] = e[0]); } - this._position = e += 4; - e > this._length && (this._length = e); + this._position = f += 4; + f > this._length && (this._length = f); }; - m.prototype.write6Floats = function(d, e, b, f, a, h) { + m.prototype.write6Floats = function(e, f, c, d, a, h) { var p = this._position; this._ensureCapacity(p + 24); this._requestViews(4); - this._littleEndian === m._nativeLittleEndian && 0 === (p & 3) && this._f32 ? (this._f32[(p >> 2) + 0] = d, this._f32[(p >> 2) + 1] = e, this._f32[(p >> 2) + 2] = b, this._f32[(p >> 2) + 3] = f, this._f32[(p >> 2) + 4] = a, this._f32[(p >> 2) + 5] = h, this._position = p += 24, p > this._length && (this._length = p)) : (this.writeFloat(d), this.writeFloat(e), this.writeFloat(b), this.writeFloat(f), this.writeFloat(a), this.writeFloat(h)); + this._littleEndian === m._nativeLittleEndian && 0 === (p & 3) && this._f32 ? (this._f32[(p >> 2) + 0] = e, this._f32[(p >> 2) + 1] = f, this._f32[(p >> 2) + 2] = c, this._f32[(p >> 2) + 3] = d, this._f32[(p >> 2) + 4] = a, this._f32[(p >> 2) + 5] = h, this._position = p += 24, p > this._length && (this._length = p)) : (this.writeFloat(e), this.writeFloat(f), this.writeFloat(c), this.writeFloat(d), this.writeFloat(a), this.writeFloat(h)); }; - m.prototype.writeDouble = function(d) { - var e = this._position; - this._ensureCapacity(e + 8); - var b = this._u8; - k.IntegerUtilities.f64[0] = d; - d = k.IntegerUtilities.u8; - this._littleEndian ? (b[e + 0] = d[0], b[e + 1] = d[1], b[e + 2] = d[2], b[e + 3] = d[3], b[e + 4] = d[4], b[e + 5] = d[5], b[e + 6] = d[6], b[e + 7] = d[7]) : (b[e + 0] = d[7], b[e + 1] = d[6], b[e + 2] = d[5], b[e + 3] = d[4], b[e + 4] = d[3], b[e + 5] = d[2], b[e + 6] = d[1], b[e + 7] = d[0]); - this._position = e += 8; - e > this._length && (this._length = e); + m.prototype.writeDouble = function(e) { + var f = this._position; + this._ensureCapacity(f + 8); + var c = this._u8; + k.IntegerUtilities.f64[0] = e; + e = k.IntegerUtilities.u8; + this._littleEndian ? (c[f + 0] = e[0], c[f + 1] = e[1], c[f + 2] = e[2], c[f + 3] = e[3], c[f + 4] = e[4], c[f + 5] = e[5], c[f + 6] = e[6], c[f + 7] = e[7]) : (c[f + 0] = e[7], c[f + 1] = e[6], c[f + 2] = e[5], c[f + 3] = e[4], c[f + 4] = e[3], c[f + 5] = e[2], c[f + 6] = e[1], c[f + 7] = e[0]); + this._position = f += 8; + f > this._length && (this._length = f); }; m.prototype.readRawBytes = function() { return new Int8Array(this._buffer, 0, this._length); }; - m.prototype.writeUTF = function(d) { - d = c(d); - d = n(d); - this.writeShort(d.length); - this.writeRawBytes(d); + m.prototype.writeUTF = function(e) { + e = b(e); + e = n(e); + this.writeShort(e.length); + this.writeRawBytes(e); }; - m.prototype.writeUTFBytes = function(d) { - d = c(d); - d = n(d); - this.writeRawBytes(d); + m.prototype.writeUTFBytes = function(e) { + e = b(e); + e = n(e); + this.writeRawBytes(e); }; m.prototype.readUTF = function() { return this.readUTFBytes(this.readShort()); }; - m.prototype.readUTFBytes = function(d) { - d >>>= 0; - var e = this._position; - e + d > this._length && throwError("EOFError", Errors.EOFError); - this._position += d; - return a(new Int8Array(this._buffer, e, d)); + m.prototype.readUTFBytes = function(e) { + e >>>= 0; + var f = this._position; + f + e > this._length && throwError("EOFError", Errors.EOFError); + this._position += e; + return a(new Int8Array(this._buffer, f, e)); }; Object.defineProperty(m.prototype, "length", {get:function() { return this._length; - }, set:function(d) { - d >>>= 0; - d > this._buffer.byteLength && this._ensureCapacity(d); - this._length = d; + }, set:function(e) { + e >>>= 0; + e > this._buffer.byteLength && this._ensureCapacity(e); + this._length = e; this._position = h(this._position, 0, this._length); }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "bytesAvailable", {get:function() { @@ -3906,8 +3910,8 @@ var __extends = this.__extends || function(k, r) { }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "position", {get:function() { return this._position; - }, set:function(d) { - this._position = d >>> 0; + }, set:function(e) { + this._position = e >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "buffer", {get:function() { return this._buffer; @@ -3921,37 +3925,37 @@ var __extends = this.__extends || function(k, r) { }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "objectEncoding", {get:function() { return this._objectEncoding; - }, set:function(d) { - this._objectEncoding = d >>> 0; + }, set:function(e) { + this._objectEncoding = e >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(m.prototype, "endian", {get:function() { return this._littleEndian ? "littleEndian" : "bigEndian"; - }, set:function(d) { - d = c(d); - this._littleEndian = "auto" === d ? m._nativeLittleEndian : "littleEndian" === d; + }, set:function(e) { + e = b(e); + this._littleEndian = "auto" === e ? m._nativeLittleEndian : "littleEndian" === e; }, enumerable:!0, configurable:!0}); m.prototype.toString = function() { return a(new Int8Array(this._buffer, 0, this._length)); }; - m.prototype.toBlob = function(d) { - return new Blob([new Int8Array(this._buffer, this._position, this._length)], {type:d}); + m.prototype.toBlob = function(e) { + return new Blob([new Int8Array(this._buffer, this._position, this._length)], {type:e}); }; - m.prototype.writeMultiByte = function(d, e) { - t("packageInternal flash.utils.ObjectOutput::writeMultiByte"); + m.prototype.writeMultiByte = function(e, f) { + v("packageInternal flash.utils.ObjectOutput::writeMultiByte"); }; - m.prototype.readMultiByte = function(d, e) { - t("packageInternal flash.utils.ObjectInput::readMultiByte"); + m.prototype.readMultiByte = function(e, f) { + v("packageInternal flash.utils.ObjectInput::readMultiByte"); }; - m.prototype.getValue = function(d) { - d |= 0; - return d >= this._length ? void 0 : this._u8[d]; + m.prototype.getValue = function(e) { + e |= 0; + return e >= this._length ? void 0 : this._u8[e]; }; - m.prototype.setValue = function(d, e) { - d |= 0; - var b = d + 1; - this._ensureCapacity(b); - this._u8[d] = e; - b > this._length && (this._length = b); + m.prototype.setValue = function(e, f) { + e |= 0; + var c = e + 1; + this._ensureCapacity(c); + this._u8[e] = f; + c > this._length && (this._length = c); }; m.prototype.readFixed = function() { return this.readInt() / 65536; @@ -3960,53 +3964,53 @@ var __extends = this.__extends || function(k, r) { return this.readShort() / 256; }; m.prototype.readFloat16 = function() { - var d = this.readUnsignedShort(), e = d >> 15 ? -1 : 1, b = (d & 31744) >> 10, d = d & 1023; - return b ? 31 === b ? d ? NaN : Infinity * e : e * Math.pow(2, b - 15) * (1 + d / 1024) : d / 1024 * Math.pow(2, -14) * e; + var e = this.readUnsignedShort(), f = e >> 15 ? -1 : 1, c = (e & 31744) >> 10, e = e & 1023; + return c ? 31 === c ? e ? NaN : Infinity * f : f * Math.pow(2, c - 15) * (1 + e / 1024) : e / 1024 * Math.pow(2, -14) * f; }; m.prototype.readEncodedU32 = function() { - var d = this.readUnsignedByte(); - if (!(d & 128)) { - return d; + var e = this.readUnsignedByte(); + if (!(e & 128)) { + return e; } - d = d & 127 | this.readUnsignedByte() << 7; - if (!(d & 16384)) { - return d; + e = e & 127 | this.readUnsignedByte() << 7; + if (!(e & 16384)) { + return e; } - d = d & 16383 | this.readUnsignedByte() << 14; - if (!(d & 2097152)) { - return d; + e = e & 16383 | this.readUnsignedByte() << 14; + if (!(e & 2097152)) { + return e; } - d = d & 2097151 | this.readUnsignedByte() << 21; - return d & 268435456 ? d & 268435455 | this.readUnsignedByte() << 28 : d; + e = e & 2097151 | this.readUnsignedByte() << 21; + return e & 268435456 ? e & 268435455 | this.readUnsignedByte() << 28 : e; }; - m.prototype.readBits = function(d) { - return this.readUnsignedBits(d) << 32 - d >> 32 - d; + m.prototype.readBits = function(e) { + return this.readUnsignedBits(e) << 32 - e >> 32 - e; }; - m.prototype.readUnsignedBits = function(d) { - for (var e = this._bitBuffer, b = this._bitLength;d > b;) { - e = e << 8 | this.readUnsignedByte(), b += 8; + m.prototype.readUnsignedBits = function(e) { + for (var f = this._bitBuffer, c = this._bitLength;e > c;) { + f = f << 8 | this.readUnsignedByte(), c += 8; } - b -= d; - d = e >>> b & l[d]; - this._bitBuffer = e; - this._bitLength = b; - return d; + c -= e; + e = f >>> c & l[e]; + this._bitBuffer = f; + this._bitLength = c; + return e; }; - m.prototype.readFixedBits = function(d) { - return this.readBits(d) / 65536; + m.prototype.readFixedBits = function(e) { + return this.readBits(e) / 65536; }; - m.prototype.readString = function(d) { - var e = this._position; - if (d) { - e + d > this._length && throwError("EOFError", Errors.EOFError), this._position += d; + m.prototype.readString = function(e) { + var f = this._position; + if (e) { + f + e > this._length && throwError("EOFError", Errors.EOFError), this._position += e; } else { - d = 0; - for (var b = e;b < this._length && this._u8[b];b++) { - d++; + e = 0; + for (var c = f;c < this._length && this._u8[c];c++) { + e++; } - this._position += d + 1; + this._position += e + 1; } - return a(new Int8Array(this._buffer, e, d)); + return a(new Int8Array(this._buffer, f, e)); }; m.prototype.align = function() { this._bitLength = this._bitBuffer = 0; @@ -4017,55 +4021,55 @@ var __extends = this.__extends || function(k, r) { m.prototype.inflate = function() { this.uncompress("deflate"); }; - m.prototype.compress = function(d) { - d = 0 === arguments.length ? "zlib" : c(d); - var e; - switch(d) { + m.prototype.compress = function(e) { + e = 0 === arguments.length ? "zlib" : b(e); + var f; + switch(e) { case "zlib": - e = new r.Deflate(!0); + f = new r.Deflate(!0); break; case "deflate": - e = new r.Deflate(!1); + f = new r.Deflate(!1); break; default: return; } - var b = new m; - e.onData = b.writeRawBytes.bind(b); - e.push(this._u8.subarray(0, this._length)); - e.close(); - this._ensureCapacity(b._u8.length); - this._u8.set(b._u8); - this.length = b.length; + var c = new m; + f.onData = c.writeRawBytes.bind(c); + f.push(this._u8.subarray(0, this._length)); + f.close(); + this._ensureCapacity(c._u8.length); + this._u8.set(c._u8); + this.length = c.length; this._position = 0; }; - m.prototype.uncompress = function(d) { - d = 0 === arguments.length ? "zlib" : c(d); - var e; - switch(d) { + m.prototype.uncompress = function(e) { + e = 0 === arguments.length ? "zlib" : b(e); + var f; + switch(e) { case "zlib": - e = r.Inflate.create(!0); + f = r.Inflate.create(!0); break; case "deflate": - e = r.Inflate.create(!1); + f = r.Inflate.create(!1); break; case "lzma": - e = new r.LzmaDecoder(!1); + f = new r.LzmaDecoder(!1); break; default: return; } - var b = new m, f; - e.onData = b.writeRawBytes.bind(b); - e.onError = function(b) { - return f = b; + var c = new m, d; + f.onData = c.writeRawBytes.bind(c); + f.onError = function(c) { + return d = c; }; - e.push(this._u8.subarray(0, this._length)); - f && throwError("IOError", Errors.CompressedDataError); - e.close(); - this._ensureCapacity(b._u8.length); - this._u8.set(b._u8); - this.length = b.length; + f.push(this._u8.subarray(0, this._length)); + d && throwError("IOError", Errors.CompressedDataError); + f.close(); + this._ensureCapacity(c._u8.length); + this._u8.set(c._u8); + this.length = c.length; this._position = 0; }; m._nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; @@ -4073,67 +4077,67 @@ var __extends = this.__extends || function(k, r) { m._arrayBufferPool = new k.ArrayBufferPool; return m; }(); - r.DataBuffer = u; + r.DataBuffer = w; })(k.ArrayUtilities || (k.ArrayUtilities = {})); })(Shumway || (Shumway = {})); (function(k) { var r = k.ArrayUtilities.DataBuffer, g = k.ArrayUtilities.ensureTypedArrayCapacity; - (function(c) { - c[c.BeginSolidFill = 1] = "BeginSolidFill"; - c[c.BeginGradientFill = 2] = "BeginGradientFill"; - c[c.BeginBitmapFill = 3] = "BeginBitmapFill"; - c[c.EndFill = 4] = "EndFill"; - c[c.LineStyleSolid = 5] = "LineStyleSolid"; - c[c.LineStyleGradient = 6] = "LineStyleGradient"; - c[c.LineStyleBitmap = 7] = "LineStyleBitmap"; - c[c.LineEnd = 8] = "LineEnd"; - c[c.MoveTo = 9] = "MoveTo"; - c[c.LineTo = 10] = "LineTo"; - c[c.CurveTo = 11] = "CurveTo"; - c[c.CubicCurveTo = 12] = "CubicCurveTo"; + (function(b) { + b[b.BeginSolidFill = 1] = "BeginSolidFill"; + b[b.BeginGradientFill = 2] = "BeginGradientFill"; + b[b.BeginBitmapFill = 3] = "BeginBitmapFill"; + b[b.EndFill = 4] = "EndFill"; + b[b.LineStyleSolid = 5] = "LineStyleSolid"; + b[b.LineStyleGradient = 6] = "LineStyleGradient"; + b[b.LineStyleBitmap = 7] = "LineStyleBitmap"; + b[b.LineEnd = 8] = "LineEnd"; + b[b.MoveTo = 9] = "MoveTo"; + b[b.LineTo = 10] = "LineTo"; + b[b.CurveTo = 11] = "CurveTo"; + b[b.CubicCurveTo = 12] = "CubicCurveTo"; })(k.PathCommand || (k.PathCommand = {})); - (function(c) { - c[c.Linear = 16] = "Linear"; - c[c.Radial = 18] = "Radial"; + (function(b) { + b[b.Linear = 16] = "Linear"; + b[b.Radial = 18] = "Radial"; })(k.GradientType || (k.GradientType = {})); - (function(c) { - c[c.Pad = 0] = "Pad"; - c[c.Reflect = 1] = "Reflect"; - c[c.Repeat = 2] = "Repeat"; + (function(b) { + b[b.Pad = 0] = "Pad"; + b[b.Reflect = 1] = "Reflect"; + b[b.Repeat = 2] = "Repeat"; })(k.GradientSpreadMethod || (k.GradientSpreadMethod = {})); - (function(c) { - c[c.RGB = 0] = "RGB"; - c[c.LinearRGB = 1] = "LinearRGB"; + (function(b) { + b[b.RGB = 0] = "RGB"; + b[b.LinearRGB = 1] = "LinearRGB"; })(k.GradientInterpolationMethod || (k.GradientInterpolationMethod = {})); - (function(c) { - c[c.None = 0] = "None"; - c[c.Normal = 1] = "Normal"; - c[c.Vertical = 2] = "Vertical"; - c[c.Horizontal = 3] = "Horizontal"; + (function(b) { + b[b.None = 0] = "None"; + b[b.Normal = 1] = "Normal"; + b[b.Vertical = 2] = "Vertical"; + b[b.Horizontal = 3] = "Horizontal"; })(k.LineScaleMode || (k.LineScaleMode = {})); - var c = function() { - return function(c, a, h, p, l, u, m, s, g, d, e) { - this.commands = c; + var b = function() { + return function(b, a, h, p, l, w, m, t, g, e, f) { + this.commands = b; this.commandsPosition = a; this.coordinates = h; this.morphCoordinates = p; this.coordinatesPosition = l; - this.styles = u; + this.styles = w; this.stylesLength = m; - this.morphStyles = s; + this.morphStyles = t; this.morphStylesLength = g; - this.hasFills = d; - this.hasLines = e; + this.hasFills = e; + this.hasLines = f; }; }(); - k.PlainObjectShapeData = c; - var t; - (function(c) { - c[c.Commands = 32] = "Commands"; - c[c.Coordinates = 128] = "Coordinates"; - c[c.Styles = 16] = "Styles"; - })(t || (t = {})); - t = function() { + k.PlainObjectShapeData = b; + var v; + (function(b) { + b[b.Commands = 32] = "Commands"; + b[b.Coordinates = 128] = "Coordinates"; + b[b.Styles = 16] = "Styles"; + })(v || (v = {})); + v = function() { function n(a) { void 0 === a && (a = !0); a && this.clear(); @@ -4164,21 +4168,21 @@ var __extends = this.__extends || function(k, r) { this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = h; }; - n.prototype.curveTo = function(a, h, p, c) { + n.prototype.curveTo = function(a, h, b, l) { this.ensurePathCapacities(1, 4); this.commands[this.commandsPosition++] = 11; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = h; - this.coordinates[this.coordinatesPosition++] = p; - this.coordinates[this.coordinatesPosition++] = c; + this.coordinates[this.coordinatesPosition++] = b; + this.coordinates[this.coordinatesPosition++] = l; }; - n.prototype.cubicCurveTo = function(a, h, p, c, n, m) { + n.prototype.cubicCurveTo = function(a, h, b, l, n, m) { this.ensurePathCapacities(1, 6); this.commands[this.commandsPosition++] = 12; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = h; - this.coordinates[this.coordinatesPosition++] = p; - this.coordinates[this.coordinatesPosition++] = c; + this.coordinates[this.coordinatesPosition++] = b; + this.coordinates[this.coordinatesPosition++] = l; this.coordinates[this.coordinatesPosition++] = n; this.coordinates[this.coordinatesPosition++] = m; }; @@ -4199,64 +4203,64 @@ var __extends = this.__extends || function(k, r) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = 8; }; - n.prototype.lineStyle = function(a, h, p, c, n, m, s) { + n.prototype.lineStyle = function(a, h, b, l, n, m, t) { this.ensurePathCapacities(2, 0); this.commands[this.commandsPosition++] = 5; this.coordinates[this.coordinatesPosition++] = a; a = this.styles; a.writeUnsignedInt(h); - a.writeBoolean(p); - a.writeUnsignedByte(c); + a.writeBoolean(b); + a.writeUnsignedByte(l); a.writeUnsignedByte(n); a.writeUnsignedByte(m); - a.writeUnsignedByte(s); + a.writeUnsignedByte(t); this.hasLines = !0; }; n.prototype.writeMorphLineStyle = function(a, h) { this.morphCoordinates[this.coordinatesPosition - 1] = a; this.morphStyles.writeUnsignedInt(h); }; - n.prototype.beginBitmap = function(a, h, p, c, n) { + n.prototype.beginBitmap = function(a, h, b, l, n) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = a; a = this.styles; a.writeUnsignedInt(h); - this._writeStyleMatrix(p, !1); - a.writeBoolean(c); + this._writeStyleMatrix(b, !1); + a.writeBoolean(l); a.writeBoolean(n); this.hasFills = !0; }; n.prototype.writeMorphBitmap = function(a) { this._writeStyleMatrix(a, !0); }; - n.prototype.beginGradient = function(a, h, p, c, n, m, s, g) { + n.prototype.beginGradient = function(a, h, b, l, n, m, t, g) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = a; a = this.styles; - a.writeUnsignedByte(c); + a.writeUnsignedByte(l); a.writeShort(g); this._writeStyleMatrix(n, !1); - c = h.length; - a.writeByte(c); - for (n = 0;n < c;n++) { - a.writeUnsignedByte(p[n]), a.writeUnsignedInt(h[n]); + l = h.length; + a.writeByte(l); + for (n = 0;n < l;n++) { + a.writeUnsignedByte(b[n]), a.writeUnsignedInt(h[n]); } a.writeUnsignedByte(m); - a.writeUnsignedByte(s); + a.writeUnsignedByte(t); this.hasFills = !0; }; - n.prototype.writeMorphGradient = function(a, h, p) { - this._writeStyleMatrix(p, !0); - p = this.morphStyles; - for (var c = 0;c < a.length;c++) { - p.writeUnsignedByte(h[c]), p.writeUnsignedInt(a[c]); + n.prototype.writeMorphGradient = function(a, h, b) { + this._writeStyleMatrix(b, !0); + b = this.morphStyles; + for (var l = 0;l < a.length;l++) { + b.writeUnsignedByte(h[l]), b.writeUnsignedInt(a[l]); } }; - n.prototype.writeCommandAndCoordinates = function(a, h, c) { + n.prototype.writeCommandAndCoordinates = function(a, h, b) { this.ensurePathCapacities(1, 2); this.commands[this.commandsPosition++] = a; this.coordinates[this.coordinatesPosition++] = h; - this.coordinates[this.coordinatesPosition++] = c; + this.coordinates[this.coordinatesPosition++] = b; }; n.prototype.writeCoordinates = function(a, h) { this.ensurePathCapacities(0, 2); @@ -4293,7 +4297,7 @@ var __extends = this.__extends || function(k, r) { return a; }; n.prototype.toPlainObject = function() { - return new c(this.commands, this.commandsPosition, this.coordinates, this.morphCoordinates, this.coordinatesPosition, this.styles.buffer, this.styles.length, this.morphStyles && this.morphStyles.buffer, this.morphStyles ? this.morphStyles.length : 0, this.hasFills, this.hasLines); + return new b(this.commands, this.commandsPosition, this.coordinates, this.morphCoordinates, this.coordinatesPosition, this.styles.buffer, this.styles.length, this.morphStyles && this.morphStyles.buffer, this.morphStyles ? this.morphStyles.length : 0, this.hasFills, this.hasLines); }; Object.defineProperty(n.prototype, "buffers", {get:function() { var a = [this.commands.buffer, this.coordinates.buffer, this.styles.buffer]; @@ -4310,250 +4314,250 @@ var __extends = this.__extends || function(k, r) { }; return n; }(); - k.ShapeData = t; + k.ShapeData = v; })(Shumway || (Shumway = {})); (function(k) { (function(k) { (function(g) { - (function(c) { - c[c.CODE_END = 0] = "CODE_END"; - c[c.CODE_SHOW_FRAME = 1] = "CODE_SHOW_FRAME"; - c[c.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; - c[c.CODE_FREE_CHARACTER = 3] = "CODE_FREE_CHARACTER"; - c[c.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; - c[c.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; - c[c.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; - c[c.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; - c[c.CODE_JPEG_TABLES = 8] = "CODE_JPEG_TABLES"; - c[c.CODE_SET_BACKGROUND_COLOR = 9] = "CODE_SET_BACKGROUND_COLOR"; - c[c.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; - c[c.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; - c[c.CODE_DO_ACTION = 12] = "CODE_DO_ACTION"; - c[c.CODE_DEFINE_FONT_INFO = 13] = "CODE_DEFINE_FONT_INFO"; - c[c.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; - c[c.CODE_START_SOUND = 15] = "CODE_START_SOUND"; - c[c.CODE_STOP_SOUND = 16] = "CODE_STOP_SOUND"; - c[c.CODE_DEFINE_BUTTON_SOUND = 17] = "CODE_DEFINE_BUTTON_SOUND"; - c[c.CODE_SOUND_STREAM_HEAD = 18] = "CODE_SOUND_STREAM_HEAD"; - c[c.CODE_SOUND_STREAM_BLOCK = 19] = "CODE_SOUND_STREAM_BLOCK"; - c[c.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; - c[c.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; - c[c.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; - c[c.CODE_DEFINE_BUTTON_CXFORM = 23] = "CODE_DEFINE_BUTTON_CXFORM"; - c[c.CODE_PROTECT = 24] = "CODE_PROTECT"; - c[c.CODE_PATHS_ARE_POSTSCRIPT = 25] = "CODE_PATHS_ARE_POSTSCRIPT"; - c[c.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; - c[c.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; - c[c.CODE_SYNC_FRAME = 29] = "CODE_SYNC_FRAME"; - c[c.CODE_FREE_ALL = 31] = "CODE_FREE_ALL"; - c[c.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; - c[c.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; - c[c.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; - c[c.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; - c[c.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; - c[c.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; - c[c.CODE_DEFINE_VIDEO = 38] = "CODE_DEFINE_VIDEO"; - c[c.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; - c[c.CODE_NAME_CHARACTER = 40] = "CODE_NAME_CHARACTER"; - c[c.CODE_PRODUCT_INFO = 41] = "CODE_PRODUCT_INFO"; - c[c.CODE_DEFINE_TEXT_FORMAT = 42] = "CODE_DEFINE_TEXT_FORMAT"; - c[c.CODE_FRAME_LABEL = 43] = "CODE_FRAME_LABEL"; - c[c.CODE_DEFINE_BEHAVIOUR = 44] = "CODE_DEFINE_BEHAVIOUR"; - c[c.CODE_SOUND_STREAM_HEAD2 = 45] = "CODE_SOUND_STREAM_HEAD2"; - c[c.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; - c[c.CODE_GENERATE_FRAME = 47] = "CODE_GENERATE_FRAME"; - c[c.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; - c[c.CODE_GEN_COMMAND = 49] = "CODE_GEN_COMMAND"; - c[c.CODE_DEFINE_COMMAND_OBJECT = 50] = "CODE_DEFINE_COMMAND_OBJECT"; - c[c.CODE_CHARACTER_SET = 51] = "CODE_CHARACTER_SET"; - c[c.CODE_EXTERNAL_FONT = 52] = "CODE_EXTERNAL_FONT"; - c[c.CODE_DEFINE_FUNCTION = 53] = "CODE_DEFINE_FUNCTION"; - c[c.CODE_PLACE_FUNCTION = 54] = "CODE_PLACE_FUNCTION"; - c[c.CODE_GEN_TAG_OBJECTS = 55] = "CODE_GEN_TAG_OBJECTS"; - c[c.CODE_EXPORT_ASSETS = 56] = "CODE_EXPORT_ASSETS"; - c[c.CODE_IMPORT_ASSETS = 57] = "CODE_IMPORT_ASSETS"; - c[c.CODE_ENABLE_DEBUGGER = 58] = "CODE_ENABLE_DEBUGGER"; - c[c.CODE_DO_INIT_ACTION = 59] = "CODE_DO_INIT_ACTION"; - c[c.CODE_DEFINE_VIDEO_STREAM = 60] = "CODE_DEFINE_VIDEO_STREAM"; - c[c.CODE_VIDEO_FRAME = 61] = "CODE_VIDEO_FRAME"; - c[c.CODE_DEFINE_FONT_INFO2 = 62] = "CODE_DEFINE_FONT_INFO2"; - c[c.CODE_DEBUG_ID = 63] = "CODE_DEBUG_ID"; - c[c.CODE_ENABLE_DEBUGGER2 = 64] = "CODE_ENABLE_DEBUGGER2"; - c[c.CODE_SCRIPT_LIMITS = 65] = "CODE_SCRIPT_LIMITS"; - c[c.CODE_SET_TAB_INDEX = 66] = "CODE_SET_TAB_INDEX"; - c[c.CODE_FILE_ATTRIBUTES = 69] = "CODE_FILE_ATTRIBUTES"; - c[c.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; - c[c.CODE_IMPORT_ASSETS2 = 71] = "CODE_IMPORT_ASSETS2"; - c[c.CODE_DO_ABC_DEFINE = 72] = "CODE_DO_ABC_DEFINE"; - c[c.CODE_DEFINE_FONT_ALIGN_ZONES = 73] = "CODE_DEFINE_FONT_ALIGN_ZONES"; - c[c.CODE_CSM_TEXT_SETTINGS = 74] = "CODE_CSM_TEXT_SETTINGS"; - c[c.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; - c[c.CODE_SYMBOL_CLASS = 76] = "CODE_SYMBOL_CLASS"; - c[c.CODE_METADATA = 77] = "CODE_METADATA"; - c[c.CODE_DEFINE_SCALING_GRID = 78] = "CODE_DEFINE_SCALING_GRID"; - c[c.CODE_DO_ABC = 82] = "CODE_DO_ABC"; - c[c.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; - c[c.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; - c[c.CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA = 86] = "CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA"; - c[c.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; - c[c.CODE_DEFINE_FONT_NAME = 88] = "CODE_DEFINE_FONT_NAME"; - c[c.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; - c[c.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; - c[c.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; + (function(b) { + b[b.CODE_END = 0] = "CODE_END"; + b[b.CODE_SHOW_FRAME = 1] = "CODE_SHOW_FRAME"; + b[b.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; + b[b.CODE_FREE_CHARACTER = 3] = "CODE_FREE_CHARACTER"; + b[b.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; + b[b.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; + b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; + b[b.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; + b[b.CODE_JPEG_TABLES = 8] = "CODE_JPEG_TABLES"; + b[b.CODE_SET_BACKGROUND_COLOR = 9] = "CODE_SET_BACKGROUND_COLOR"; + b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; + b[b.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; + b[b.CODE_DO_ACTION = 12] = "CODE_DO_ACTION"; + b[b.CODE_DEFINE_FONT_INFO = 13] = "CODE_DEFINE_FONT_INFO"; + b[b.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; + b[b.CODE_START_SOUND = 15] = "CODE_START_SOUND"; + b[b.CODE_STOP_SOUND = 16] = "CODE_STOP_SOUND"; + b[b.CODE_DEFINE_BUTTON_SOUND = 17] = "CODE_DEFINE_BUTTON_SOUND"; + b[b.CODE_SOUND_STREAM_HEAD = 18] = "CODE_SOUND_STREAM_HEAD"; + b[b.CODE_SOUND_STREAM_BLOCK = 19] = "CODE_SOUND_STREAM_BLOCK"; + b[b.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; + b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; + b[b.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; + b[b.CODE_DEFINE_BUTTON_CXFORM = 23] = "CODE_DEFINE_BUTTON_CXFORM"; + b[b.CODE_PROTECT = 24] = "CODE_PROTECT"; + b[b.CODE_PATHS_ARE_POSTSCRIPT = 25] = "CODE_PATHS_ARE_POSTSCRIPT"; + b[b.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; + b[b.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; + b[b.CODE_SYNC_FRAME = 29] = "CODE_SYNC_FRAME"; + b[b.CODE_FREE_ALL = 31] = "CODE_FREE_ALL"; + b[b.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; + b[b.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; + b[b.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; + b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; + b[b.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; + b[b.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; + b[b.CODE_DEFINE_VIDEO = 38] = "CODE_DEFINE_VIDEO"; + b[b.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; + b[b.CODE_NAME_CHARACTER = 40] = "CODE_NAME_CHARACTER"; + b[b.CODE_PRODUCT_INFO = 41] = "CODE_PRODUCT_INFO"; + b[b.CODE_DEFINE_TEXT_FORMAT = 42] = "CODE_DEFINE_TEXT_FORMAT"; + b[b.CODE_FRAME_LABEL = 43] = "CODE_FRAME_LABEL"; + b[b.CODE_DEFINE_BEHAVIOUR = 44] = "CODE_DEFINE_BEHAVIOUR"; + b[b.CODE_SOUND_STREAM_HEAD2 = 45] = "CODE_SOUND_STREAM_HEAD2"; + b[b.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; + b[b.CODE_GENERATE_FRAME = 47] = "CODE_GENERATE_FRAME"; + b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; + b[b.CODE_GEN_COMMAND = 49] = "CODE_GEN_COMMAND"; + b[b.CODE_DEFINE_COMMAND_OBJECT = 50] = "CODE_DEFINE_COMMAND_OBJECT"; + b[b.CODE_CHARACTER_SET = 51] = "CODE_CHARACTER_SET"; + b[b.CODE_EXTERNAL_FONT = 52] = "CODE_EXTERNAL_FONT"; + b[b.CODE_DEFINE_FUNCTION = 53] = "CODE_DEFINE_FUNCTION"; + b[b.CODE_PLACE_FUNCTION = 54] = "CODE_PLACE_FUNCTION"; + b[b.CODE_GEN_TAG_OBJECTS = 55] = "CODE_GEN_TAG_OBJECTS"; + b[b.CODE_EXPORT_ASSETS = 56] = "CODE_EXPORT_ASSETS"; + b[b.CODE_IMPORT_ASSETS = 57] = "CODE_IMPORT_ASSETS"; + b[b.CODE_ENABLE_DEBUGGER = 58] = "CODE_ENABLE_DEBUGGER"; + b[b.CODE_DO_INIT_ACTION = 59] = "CODE_DO_INIT_ACTION"; + b[b.CODE_DEFINE_VIDEO_STREAM = 60] = "CODE_DEFINE_VIDEO_STREAM"; + b[b.CODE_VIDEO_FRAME = 61] = "CODE_VIDEO_FRAME"; + b[b.CODE_DEFINE_FONT_INFO2 = 62] = "CODE_DEFINE_FONT_INFO2"; + b[b.CODE_DEBUG_ID = 63] = "CODE_DEBUG_ID"; + b[b.CODE_ENABLE_DEBUGGER2 = 64] = "CODE_ENABLE_DEBUGGER2"; + b[b.CODE_SCRIPT_LIMITS = 65] = "CODE_SCRIPT_LIMITS"; + b[b.CODE_SET_TAB_INDEX = 66] = "CODE_SET_TAB_INDEX"; + b[b.CODE_FILE_ATTRIBUTES = 69] = "CODE_FILE_ATTRIBUTES"; + b[b.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; + b[b.CODE_IMPORT_ASSETS2 = 71] = "CODE_IMPORT_ASSETS2"; + b[b.CODE_DO_ABC_DEFINE = 72] = "CODE_DO_ABC_DEFINE"; + b[b.CODE_DEFINE_FONT_ALIGN_ZONES = 73] = "CODE_DEFINE_FONT_ALIGN_ZONES"; + b[b.CODE_CSM_TEXT_SETTINGS = 74] = "CODE_CSM_TEXT_SETTINGS"; + b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; + b[b.CODE_SYMBOL_CLASS = 76] = "CODE_SYMBOL_CLASS"; + b[b.CODE_METADATA = 77] = "CODE_METADATA"; + b[b.CODE_DEFINE_SCALING_GRID = 78] = "CODE_DEFINE_SCALING_GRID"; + b[b.CODE_DO_ABC = 82] = "CODE_DO_ABC"; + b[b.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; + b[b.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; + b[b.CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA = 86] = "CODE_DEFINE_SCENE_AND_FRAME_LABEL_DATA"; + b[b.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; + b[b.CODE_DEFINE_FONT_NAME = 88] = "CODE_DEFINE_FONT_NAME"; + b[b.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; + b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; + b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; })(g.SwfTag || (g.SwfTag = {})); - (function(c) { - c[c.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; - c[c.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; - c[c.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; - c[c.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; - c[c.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; - c[c.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; - c[c.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; - c[c.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; - c[c.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; - c[c.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; - c[c.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; - c[c.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; - c[c.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; - c[c.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; - c[c.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; - c[c.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; - c[c.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; - c[c.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; - c[c.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; - c[c.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; - c[c.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; - c[c.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; - c[c.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; - c[c.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; + (function(b) { + b[b.CODE_DEFINE_SHAPE = 2] = "CODE_DEFINE_SHAPE"; + b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; + b[b.CODE_DEFINE_BUTTON = 7] = "CODE_DEFINE_BUTTON"; + b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; + b[b.CODE_DEFINE_TEXT = 11] = "CODE_DEFINE_TEXT"; + b[b.CODE_DEFINE_SOUND = 14] = "CODE_DEFINE_SOUND"; + b[b.CODE_DEFINE_BITS_LOSSLESS = 20] = "CODE_DEFINE_BITS_LOSSLESS"; + b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; + b[b.CODE_DEFINE_SHAPE2 = 22] = "CODE_DEFINE_SHAPE2"; + b[b.CODE_DEFINE_SHAPE3 = 32] = "CODE_DEFINE_SHAPE3"; + b[b.CODE_DEFINE_TEXT2 = 33] = "CODE_DEFINE_TEXT2"; + b[b.CODE_DEFINE_BUTTON2 = 34] = "CODE_DEFINE_BUTTON2"; + b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; + b[b.CODE_DEFINE_BITS_LOSSLESS2 = 36] = "CODE_DEFINE_BITS_LOSSLESS2"; + b[b.CODE_DEFINE_EDIT_TEXT = 37] = "CODE_DEFINE_EDIT_TEXT"; + b[b.CODE_DEFINE_SPRITE = 39] = "CODE_DEFINE_SPRITE"; + b[b.CODE_DEFINE_MORPH_SHAPE = 46] = "CODE_DEFINE_MORPH_SHAPE"; + b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; + b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; + b[b.CODE_DEFINE_SHAPE4 = 83] = "CODE_DEFINE_SHAPE4"; + b[b.CODE_DEFINE_MORPH_SHAPE2 = 84] = "CODE_DEFINE_MORPH_SHAPE2"; + b[b.CODE_DEFINE_BINARY_DATA = 87] = "CODE_DEFINE_BINARY_DATA"; + b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; + b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; })(g.DefinitionTags || (g.DefinitionTags = {})); - (function(c) { - c[c.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; - c[c.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; - c[c.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; - c[c.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; + (function(b) { + b[b.CODE_DEFINE_BITS = 6] = "CODE_DEFINE_BITS"; + b[b.CODE_DEFINE_BITS_JPEG2 = 21] = "CODE_DEFINE_BITS_JPEG2"; + b[b.CODE_DEFINE_BITS_JPEG3 = 35] = "CODE_DEFINE_BITS_JPEG3"; + b[b.CODE_DEFINE_BITS_JPEG4 = 90] = "CODE_DEFINE_BITS_JPEG4"; })(g.ImageDefinitionTags || (g.ImageDefinitionTags = {})); - (function(c) { - c[c.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; - c[c.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; - c[c.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; - c[c.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; + (function(b) { + b[b.CODE_DEFINE_FONT = 10] = "CODE_DEFINE_FONT"; + b[b.CODE_DEFINE_FONT2 = 48] = "CODE_DEFINE_FONT2"; + b[b.CODE_DEFINE_FONT3 = 75] = "CODE_DEFINE_FONT3"; + b[b.CODE_DEFINE_FONT4 = 91] = "CODE_DEFINE_FONT4"; })(g.FontDefinitionTags || (g.FontDefinitionTags = {})); - (function(c) { - c[c.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; - c[c.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; - c[c.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; - c[c.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; - c[c.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; - c[c.CODE_START_SOUND = 15] = "CODE_START_SOUND"; - c[c.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; - c[c.CODE_VIDEO_FRAME = 61] = "CODE_VIDEO_FRAME"; + (function(b) { + b[b.CODE_PLACE_OBJECT = 4] = "CODE_PLACE_OBJECT"; + b[b.CODE_PLACE_OBJECT2 = 26] = "CODE_PLACE_OBJECT2"; + b[b.CODE_PLACE_OBJECT3 = 70] = "CODE_PLACE_OBJECT3"; + b[b.CODE_REMOVE_OBJECT = 5] = "CODE_REMOVE_OBJECT"; + b[b.CODE_REMOVE_OBJECT2 = 28] = "CODE_REMOVE_OBJECT2"; + b[b.CODE_START_SOUND = 15] = "CODE_START_SOUND"; + b[b.CODE_START_SOUND2 = 89] = "CODE_START_SOUND2"; + b[b.CODE_VIDEO_FRAME = 61] = "CODE_VIDEO_FRAME"; })(g.ControlTags || (g.ControlTags = {})); - (function(c) { - c[c.Move = 1] = "Move"; - c[c.HasCharacter = 2] = "HasCharacter"; - c[c.HasMatrix = 4] = "HasMatrix"; - c[c.HasColorTransform = 8] = "HasColorTransform"; - c[c.HasRatio = 16] = "HasRatio"; - c[c.HasName = 32] = "HasName"; - c[c.HasClipDepth = 64] = "HasClipDepth"; - c[c.HasClipActions = 128] = "HasClipActions"; - c[c.HasFilterList = 256] = "HasFilterList"; - c[c.HasBlendMode = 512] = "HasBlendMode"; - c[c.HasCacheAsBitmap = 1024] = "HasCacheAsBitmap"; - c[c.HasClassName = 2048] = "HasClassName"; - c[c.HasImage = 4096] = "HasImage"; - c[c.HasVisible = 8192] = "HasVisible"; - c[c.OpaqueBackground = 16384] = "OpaqueBackground"; - c[c.Reserved = 32768] = "Reserved"; + (function(b) { + b[b.Move = 1] = "Move"; + b[b.HasCharacter = 2] = "HasCharacter"; + b[b.HasMatrix = 4] = "HasMatrix"; + b[b.HasColorTransform = 8] = "HasColorTransform"; + b[b.HasRatio = 16] = "HasRatio"; + b[b.HasName = 32] = "HasName"; + b[b.HasClipDepth = 64] = "HasClipDepth"; + b[b.HasClipActions = 128] = "HasClipActions"; + b[b.HasFilterList = 256] = "HasFilterList"; + b[b.HasBlendMode = 512] = "HasBlendMode"; + b[b.HasCacheAsBitmap = 1024] = "HasCacheAsBitmap"; + b[b.HasClassName = 2048] = "HasClassName"; + b[b.HasImage = 4096] = "HasImage"; + b[b.HasVisible = 8192] = "HasVisible"; + b[b.OpaqueBackground = 16384] = "OpaqueBackground"; + b[b.Reserved = 32768] = "Reserved"; })(g.PlaceObjectFlags || (g.PlaceObjectFlags = {})); - (function(c) { - c[c.Load = 1] = "Load"; - c[c.EnterFrame = 2] = "EnterFrame"; - c[c.Unload = 4] = "Unload"; - c[c.MouseMove = 8] = "MouseMove"; - c[c.MouseDown = 16] = "MouseDown"; - c[c.MouseUp = 32] = "MouseUp"; - c[c.KeyDown = 64] = "KeyDown"; - c[c.KeyUp = 128] = "KeyUp"; - c[c.Data = 256] = "Data"; - c[c.Initialize = 512] = "Initialize"; - c[c.Press = 1024] = "Press"; - c[c.Release = 2048] = "Release"; - c[c.ReleaseOutside = 4096] = "ReleaseOutside"; - c[c.RollOver = 8192] = "RollOver"; - c[c.RollOut = 16384] = "RollOut"; - c[c.DragOver = 32768] = "DragOver"; - c[c.DragOut = 65536] = "DragOut"; - c[c.KeyPress = 131072] = "KeyPress"; - c[c.Construct = 262144] = "Construct"; + (function(b) { + b[b.Load = 1] = "Load"; + b[b.EnterFrame = 2] = "EnterFrame"; + b[b.Unload = 4] = "Unload"; + b[b.MouseMove = 8] = "MouseMove"; + b[b.MouseDown = 16] = "MouseDown"; + b[b.MouseUp = 32] = "MouseUp"; + b[b.KeyDown = 64] = "KeyDown"; + b[b.KeyUp = 128] = "KeyUp"; + b[b.Data = 256] = "Data"; + b[b.Initialize = 512] = "Initialize"; + b[b.Press = 1024] = "Press"; + b[b.Release = 2048] = "Release"; + b[b.ReleaseOutside = 4096] = "ReleaseOutside"; + b[b.RollOver = 8192] = "RollOver"; + b[b.RollOut = 16384] = "RollOut"; + b[b.DragOver = 32768] = "DragOver"; + b[b.DragOut = 65536] = "DragOut"; + b[b.KeyPress = 131072] = "KeyPress"; + b[b.Construct = 262144] = "Construct"; })(g.AVM1ClipEvents || (g.AVM1ClipEvents = {})); })(k.Parser || (k.Parser = {})); })(k.SWF || (k.SWF = {})); })(Shumway || (Shumway = {})); (function(k) { var r = k.Debug.unexpected, g = function() { - function c(c, n, a, h) { - this.url = c; + function b(b, n, a, h) { + this.url = b; this.method = n; this.mimeType = a; this.data = h; } - c.prototype.readAll = function(c, n) { + b.prototype.readAll = function(b, n) { var a = this.url, h = new XMLHttpRequest({mozSystem:!0}); h.open(this.method || "GET", this.url, !0); h.responseType = "arraybuffer"; - c && (h.onprogress = function(a) { - c(h.response, a.loaded, a.total); + b && (h.onprogress = function(a) { + b(h.response, a.loaded, a.total); }); - h.onreadystatechange = function(c) { + h.onreadystatechange = function(b) { 4 === h.readyState && (200 !== h.status && 0 !== h.status || null === h.response ? (r("Path: " + a + " not found."), n(null, h.statusText)) : n(h.response)); }; this.mimeType && h.setRequestHeader("Content-Type", this.mimeType); h.send(this.data || null); }; - c.prototype.readChunked = function(c, n, a, h, p, l) { - if (0 >= c) { + b.prototype.readChunked = function(b, n, a, h, p, l) { + if (0 >= b) { this.readAsync(n, a, h, p, l); } else { - var g = 0, m = new Uint8Array(c), s = 0, k; - this.readAsync(function(d, e) { - k = e.total; - for (var b = d.length, f = 0;g + b >= c;) { - var a = c - g; - m.set(d.subarray(f, f + a), g); - f += a; - b -= a; - s += c; - n(m, {loaded:s, total:k}); - g = 0; + var w = 0, m = new Uint8Array(b), t = 0, g; + this.readAsync(function(e, f) { + g = f.total; + for (var c = e.length, d = 0;w + c >= b;) { + var a = b - w; + m.set(e.subarray(d, d + a), w); + d += a; + c -= a; + t += b; + n(m, {loaded:t, total:g}); + w = 0; } - m.set(d.subarray(f), g); - g += b; + m.set(e.subarray(d), w); + w += c; }, a, h, function() { - 0 < g && (s += g, n(m.subarray(0, g), {loaded:s, total:k}), g = 0); + 0 < w && (t += w, n(m.subarray(0, w), {loaded:t, total:g}), w = 0); p && p(); }, l); } }; - c.prototype.readAsync = function(c, n, a, h, p) { - var l = new XMLHttpRequest({mozSystem:!0}), g = this.url, m = 0, s = 0; + b.prototype.readAsync = function(b, n, a, h, p) { + var l = new XMLHttpRequest({mozSystem:!0}), g = this.url, m = 0, t = 0; l.open(this.method || "GET", g, !0); l.responseType = "moz-chunked-arraybuffer"; var k = "moz-chunked-arraybuffer" !== l.responseType; k && (l.responseType = "arraybuffer"); - l.onprogress = function(d) { - k || (m = d.loaded, s = d.total, c(new Uint8Array(l.response), {loaded:m, total:s})); + l.onprogress = function(e) { + k || (m = e.loaded, t = e.total, b(new Uint8Array(l.response), {loaded:m, total:t})); }; - l.onreadystatechange = function(d) { + l.onreadystatechange = function(e) { 2 === l.readyState && p && p(g, l.status, l.getAllResponseHeaders()); - 4 === l.readyState && (200 !== l.status && 0 !== l.status || null === l.response && (0 === s || m !== s) ? n(l.statusText) : (k && (d = l.response, c(new Uint8Array(d), {loaded:0, total:d.byteLength})), h && h())); + 4 === l.readyState && (200 !== l.status && 0 !== l.status || null === l.response && (0 === t || m !== t) ? n(l.statusText) : (k && (e = l.response, b(new Uint8Array(e), {loaded:0, total:e.byteLength})), h && h())); }; this.mimeType && l.setRequestHeader("Content-Type", this.mimeType); l.send(this.data || null); a && a(); }; - return c; + return b; }(); k.BinaryFileReader = g; })(Shumway || (Shumway = {})); @@ -4661,102 +4665,102 @@ var throwError, Errors; (function(k) { (function(k) { (function(g) { - var c = function() { - function c() { + var b = function() { + function b() { } - c.toRGBA = function(a, h, c, l) { + b.toRGBA = function(a, h, b, l) { void 0 === l && (l = 1); - return "rgba(" + a + "," + h + "," + c + "," + l + ")"; + return "rgba(" + a + "," + h + "," + b + "," + l + ")"; }; - return c; + return b; }(); - g.UI = c; + g.UI = b; var k = function() { function n() { } n.prototype.tabToolbar = function(a) { void 0 === a && (a = 1); - return c.toRGBA(37, 44, 51, a); + return b.toRGBA(37, 44, 51, a); }; n.prototype.toolbars = function(a) { void 0 === a && (a = 1); - return c.toRGBA(52, 60, 69, a); + return b.toRGBA(52, 60, 69, a); }; n.prototype.selectionBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(29, 79, 115, a); + return b.toRGBA(29, 79, 115, a); }; n.prototype.selectionText = function(a) { void 0 === a && (a = 1); - return c.toRGBA(245, 247, 250, a); + return b.toRGBA(245, 247, 250, a); }; n.prototype.splitters = function(a) { void 0 === a && (a = 1); - return c.toRGBA(0, 0, 0, a); + return b.toRGBA(0, 0, 0, a); }; n.prototype.bodyBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(17, 19, 21, a); + return b.toRGBA(17, 19, 21, a); }; n.prototype.sidebarBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(24, 29, 32, a); + return b.toRGBA(24, 29, 32, a); }; n.prototype.attentionBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(161, 134, 80, a); + return b.toRGBA(161, 134, 80, a); }; n.prototype.bodyText = function(a) { void 0 === a && (a = 1); - return c.toRGBA(143, 161, 178, a); + return b.toRGBA(143, 161, 178, a); }; n.prototype.foregroundTextGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(182, 186, 191, a); + return b.toRGBA(182, 186, 191, a); }; n.prototype.contentTextHighContrast = function(a) { void 0 === a && (a = 1); - return c.toRGBA(169, 186, 203, a); + return b.toRGBA(169, 186, 203, a); }; n.prototype.contentTextGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(143, 161, 178, a); + return b.toRGBA(143, 161, 178, a); }; n.prototype.contentTextDarkGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(95, 115, 135, a); + return b.toRGBA(95, 115, 135, a); }; n.prototype.blueHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(70, 175, 227, a); + return b.toRGBA(70, 175, 227, a); }; n.prototype.purpleHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(107, 122, 187, a); + return b.toRGBA(107, 122, 187, a); }; n.prototype.pinkHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(223, 128, 255, a); + return b.toRGBA(223, 128, 255, a); }; n.prototype.redHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(235, 83, 104, a); + return b.toRGBA(235, 83, 104, a); }; n.prototype.orangeHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(217, 102, 41, a); + return b.toRGBA(217, 102, 41, a); }; n.prototype.lightOrangeHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(217, 155, 40, a); + return b.toRGBA(217, 155, 40, a); }; n.prototype.greenHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(112, 191, 83, a); + return b.toRGBA(112, 191, 83, a); }; n.prototype.blueGreyHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(94, 136, 176, a); + return b.toRGBA(94, 136, 176, a); }; return n; }(); @@ -4766,87 +4770,87 @@ var throwError, Errors; } n.prototype.tabToolbar = function(a) { void 0 === a && (a = 1); - return c.toRGBA(235, 236, 237, a); + return b.toRGBA(235, 236, 237, a); }; n.prototype.toolbars = function(a) { void 0 === a && (a = 1); - return c.toRGBA(240, 241, 242, a); + return b.toRGBA(240, 241, 242, a); }; n.prototype.selectionBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(76, 158, 217, a); + return b.toRGBA(76, 158, 217, a); }; n.prototype.selectionText = function(a) { void 0 === a && (a = 1); - return c.toRGBA(245, 247, 250, a); + return b.toRGBA(245, 247, 250, a); }; n.prototype.splitters = function(a) { void 0 === a && (a = 1); - return c.toRGBA(170, 170, 170, a); + return b.toRGBA(170, 170, 170, a); }; n.prototype.bodyBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(252, 252, 252, a); + return b.toRGBA(252, 252, 252, a); }; n.prototype.sidebarBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(247, 247, 247, a); + return b.toRGBA(247, 247, 247, a); }; n.prototype.attentionBackground = function(a) { void 0 === a && (a = 1); - return c.toRGBA(161, 134, 80, a); + return b.toRGBA(161, 134, 80, a); }; n.prototype.bodyText = function(a) { void 0 === a && (a = 1); - return c.toRGBA(24, 25, 26, a); + return b.toRGBA(24, 25, 26, a); }; n.prototype.foregroundTextGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(88, 89, 89, a); + return b.toRGBA(88, 89, 89, a); }; n.prototype.contentTextHighContrast = function(a) { void 0 === a && (a = 1); - return c.toRGBA(41, 46, 51, a); + return b.toRGBA(41, 46, 51, a); }; n.prototype.contentTextGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(143, 161, 178, a); + return b.toRGBA(143, 161, 178, a); }; n.prototype.contentTextDarkGrey = function(a) { void 0 === a && (a = 1); - return c.toRGBA(102, 115, 128, a); + return b.toRGBA(102, 115, 128, a); }; n.prototype.blueHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(0, 136, 204, a); + return b.toRGBA(0, 136, 204, a); }; n.prototype.purpleHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(91, 95, 255, a); + return b.toRGBA(91, 95, 255, a); }; n.prototype.pinkHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(184, 46, 229, a); + return b.toRGBA(184, 46, 229, a); }; n.prototype.redHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(237, 38, 85, a); + return b.toRGBA(237, 38, 85, a); }; n.prototype.orangeHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(241, 60, 0, a); + return b.toRGBA(241, 60, 0, a); }; n.prototype.lightOrangeHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(217, 126, 0, a); + return b.toRGBA(217, 126, 0, a); }; n.prototype.greenHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(44, 187, 15, a); + return b.toRGBA(44, 187, 15, a); }; n.prototype.blueGreyHighlight = function(a) { void 0 === a && (a = 1); - return c.toRGBA(95, 136, 176, a); + return b.toRGBA(95, 136, 176, a); }; return n; }(); @@ -4857,77 +4861,77 @@ var throwError, Errors; (function(k) { (function(k) { (function(g) { - var c = function() { - function c(n, a) { + var b = function() { + function b(n, a) { this._buffers = n || []; this._snapshots = []; this._windowStart = this._startTime = a; this._maxDepth = 0; } - c.prototype.addBuffer = function(c) { - this._buffers.push(c); + b.prototype.addBuffer = function(b) { + this._buffers.push(b); }; - c.prototype.getSnapshotAt = function(c) { - return this._snapshots[c]; + b.prototype.getSnapshotAt = function(b) { + return this._snapshots[b]; }; - Object.defineProperty(c.prototype, "hasSnapshots", {get:function() { + Object.defineProperty(b.prototype, "hasSnapshots", {get:function() { return 0 < this.snapshotCount; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "snapshotCount", {get:function() { + Object.defineProperty(b.prototype, "snapshotCount", {get:function() { return this._snapshots.length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "startTime", {get:function() { + Object.defineProperty(b.prototype, "startTime", {get:function() { return this._startTime; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "endTime", {get:function() { + Object.defineProperty(b.prototype, "endTime", {get:function() { return this._endTime; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "totalTime", {get:function() { + Object.defineProperty(b.prototype, "totalTime", {get:function() { return this.endTime - this.startTime; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "windowStart", {get:function() { + Object.defineProperty(b.prototype, "windowStart", {get:function() { return this._windowStart; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "windowEnd", {get:function() { + Object.defineProperty(b.prototype, "windowEnd", {get:function() { return this._windowEnd; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "windowLength", {get:function() { + Object.defineProperty(b.prototype, "windowLength", {get:function() { return this.windowEnd - this.windowStart; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "maxDepth", {get:function() { + Object.defineProperty(b.prototype, "maxDepth", {get:function() { return this._maxDepth; }, enumerable:!0, configurable:!0}); - c.prototype.forEachSnapshot = function(c) { + b.prototype.forEachSnapshot = function(b) { for (var a = 0, h = this.snapshotCount;a < h;a++) { - c(this._snapshots[a], a); + b(this._snapshots[a], a); } }; - c.prototype.createSnapshots = function() { - var c = Number.MIN_VALUE, a = 0; + b.prototype.createSnapshots = function() { + var b = Number.MIN_VALUE, a = 0; for (this._snapshots = [];0 < this._buffers.length;) { var h = this._buffers.shift().createSnapshot(); - h && (c < h.endTime && (c = h.endTime), a < h.maxDepth && (a = h.maxDepth), this._snapshots.push(h)); + h && (b < h.endTime && (b = h.endTime), a < h.maxDepth && (a = h.maxDepth), this._snapshots.push(h)); } - this._windowEnd = this._endTime = c; + this._windowEnd = this._endTime = b; this._maxDepth = a; }; - c.prototype.setWindow = function(c, a) { - if (c > a) { - var h = c; - c = a; + b.prototype.setWindow = function(b, a) { + if (b > a) { + var h = b; + b = a; a = h; } - h = Math.min(a - c, this.totalTime); - c < this._startTime ? (c = this._startTime, a = this._startTime + h) : a > this._endTime && (c = this._endTime - h, a = this._endTime); - this._windowStart = c; + h = Math.min(a - b, this.totalTime); + b < this._startTime ? (b = this._startTime, a = this._startTime + h) : a > this._endTime && (b = this._endTime - h, a = this._endTime); + this._windowStart = b; this._windowEnd = a; }; - c.prototype.moveWindowTo = function(c) { - this.setWindow(c - this.windowLength / 2, c + this.windowLength / 2); + b.prototype.moveWindowTo = function(b) { + this.setWindow(b - this.windowLength / 2, b + this.windowLength / 2); }; - return c; + return b; }(); - g.Profile = c; + g.Profile = b; })(k.Profiler || (k.Profiler = {})); })(k.Tools || (k.Tools = {})); })(Shumway || (Shumway = {})); @@ -4935,8 +4939,8 @@ __extends = this.__extends || function(k, r) { function g() { this.constructor = k; } - for (var c in r) { - r.hasOwnProperty(c) && (k[c] = r[c]); + for (var b in r) { + r.hasOwnProperty(b) && (k[b] = r[b]); } g.prototype = r.prototype; k.prototype = new g; @@ -4944,18 +4948,18 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - var c = function() { - return function(c) { - this.kind = c; + var b = function() { + return function(b) { + this.kind = b; this.totalTime = this.selfTime = this.count = 0; }; }(); - g.TimelineFrameStatistics = c; + g.TimelineFrameStatistics = b; var k = function() { - function n(a, h, c, l, n, m) { + function n(a, h, b, l, n, m) { this.parent = a; this.kind = h; - this.startData = c; + this.startData = b; this.endData = l; this.startTime = n; this.endTime = m; @@ -4967,25 +4971,25 @@ __extends = this.__extends || function(k, r) { Object.defineProperty(n.prototype, "selfTime", {get:function() { var a = this.totalTime; if (this.children) { - for (var h = 0, c = this.children.length;h < c;h++) { + for (var h = 0, b = this.children.length;h < b;h++) { var l = this.children[h], a = a - (l.endTime - l.startTime) } } return a; }, enumerable:!0, configurable:!0}); n.prototype.getChildIndex = function(a) { - for (var h = this.children, c = 0;c < h.length;c++) { - if (h[c].endTime > a) { - return c; + for (var h = this.children, b = 0;b < h.length;b++) { + if (h[b].endTime > a) { + return b; } } return 0; }; n.prototype.getChildRange = function(a, h) { if (this.children && a <= this.endTime && h >= this.startTime && h >= a) { - var c = this._getNearestChild(a), l = this._getNearestChildReverse(h); - if (c <= l) { - return a = this.children[c].startTime, h = this.children[l].endTime, {startIndex:c, endIndex:l, startTime:a, endTime:h, totalTime:h - a}; + var b = this._getNearestChild(a), l = this._getNearestChildReverse(h); + if (b <= l) { + return a = this.children[b].startTime, h = this.children[l].endTime, {startIndex:b, endIndex:l, startTime:a, endTime:h, totalTime:h - a}; } } return null; @@ -4996,13 +5000,13 @@ __extends = this.__extends || function(k, r) { if (a <= h[0].endTime) { return 0; } - for (var c, l = 0, n = h.length - 1;n > l;) { - c = (l + n) / 2 | 0; - var m = h[c]; + for (var b, l = 0, n = h.length - 1;n > l;) { + b = (l + n) / 2 | 0; + var m = h[b]; if (a >= m.startTime && a <= m.endTime) { - return c; + return b; } - a > m.endTime ? l = c + 1 : n = c; + a > m.endTime ? l = b + 1 : n = b; } return Math.ceil((l + n) / 2); } @@ -5011,19 +5015,19 @@ __extends = this.__extends || function(k, r) { n.prototype._getNearestChildReverse = function(a) { var h = this.children; if (h && h.length) { - var c = h.length - 1; - if (a >= h[c].startTime) { - return c; + var b = h.length - 1; + if (a >= h[b].startTime) { + return b; } - for (var l, n = 0;c > n;) { - l = Math.ceil((n + c) / 2); + for (var l, n = 0;b > n;) { + l = Math.ceil((n + b) / 2); var m = h[l]; if (a >= m.startTime && a <= m.endTime) { return l; } - a > m.endTime ? n = l : c = l - 1; + a > m.endTime ? n = l : b = l - 1; } - return(n + c) / 2 | 0; + return (n + b) / 2 | 0; } return 0; }; @@ -5033,17 +5037,17 @@ __extends = this.__extends || function(k, r) { } var h = this.children; if (h && 0 < h.length) { - for (var c, l = 0, n = h.length - 1;n > l;) { + for (var b, l = 0, n = h.length - 1;n > l;) { var m = (l + n) / 2 | 0; - c = h[m]; - if (a >= c.startTime && a <= c.endTime) { - return c.query(a); + b = h[m]; + if (a >= b.startTime && a <= b.endTime) { + return b.query(a); } - a > c.endTime ? l = m + 1 : n = m; + a > b.endTime ? l = m + 1 : n = m; } - c = h[n]; - if (a >= c.startTime && a <= c.endTime) { - return c.query(a); + b = h[n]; + if (a >= b.startTime && a <= b.endTime) { + return b.query(a); } } return this; @@ -5067,7 +5071,7 @@ __extends = this.__extends || function(k, r) { n.prototype.calculateStatistics = function() { function a(p) { if (p.kind) { - var l = h[p.kind.id] || (h[p.kind.id] = new c(p.kind)); + var l = h[p.kind.id] || (h[p.kind.id] = new b(p.kind)); l.count++; l.selfTime += p.selfTime; l.totalTime += p.totalTime; @@ -5092,12 +5096,12 @@ __extends = this.__extends || function(k, r) { return n; }(); g.TimelineFrame = k; - k = function(c) { + k = function(b) { function a(a) { - c.call(this, null, null, null, null, NaN, NaN); + b.call(this, null, null, null, null, NaN, NaN); this.name = a; } - __extends(a, c); + __extends(a, b); return a; }(k); g.TimelineBufferSnapshot = k; @@ -5107,22 +5111,22 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = function() { - function c(n, a) { + var b = function() { + function b(n, a) { void 0 === n && (n = ""); this.name = n || ""; this._startTime = k.isNullOrUndefined(a) ? jsGlobal.START_TIME : a; } - c.prototype.getKind = function(c) { - return this._kinds[c]; + b.prototype.getKind = function(b) { + return this._kinds[b]; }; - Object.defineProperty(c.prototype, "kinds", {get:function() { + Object.defineProperty(b.prototype, "kinds", {get:function() { return this._kinds.concat(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "depth", {get:function() { + Object.defineProperty(b.prototype, "depth", {get:function() { return this._depth; }, enumerable:!0, configurable:!0}); - c.prototype._initialize = function() { + b.prototype._initialize = function() { this._depth = 0; this._stack = []; this._data = []; @@ -5131,74 +5135,74 @@ __extends = this.__extends || function(k, r) { this._marks = new k.CircularBuffer(Int32Array, 20); this._times = new k.CircularBuffer(Float64Array, 20); }; - c.prototype._getKindId = function(n) { - var a = c.MAX_KINDID; + b.prototype._getKindId = function(n) { + var a = b.MAX_KINDID; if (void 0 === this._kindNameMap[n]) { - if (a = this._kinds.length, a < c.MAX_KINDID) { + if (a = this._kinds.length, a < b.MAX_KINDID) { var h = {id:a, name:n, visible:!0}; this._kinds.push(h); this._kindNameMap[n] = h; } else { - a = c.MAX_KINDID; + a = b.MAX_KINDID; } } else { a = this._kindNameMap[n].id; } return a; }; - c.prototype._getMark = function(n, a, h) { - var p = c.MAX_DATAID; - k.isNullOrUndefined(h) || a === c.MAX_KINDID || (p = this._data.length, p < c.MAX_DATAID ? this._data.push(h) : p = c.MAX_DATAID); + b.prototype._getMark = function(n, a, h) { + var p = b.MAX_DATAID; + k.isNullOrUndefined(h) || a === b.MAX_KINDID || (p = this._data.length, p < b.MAX_DATAID ? this._data.push(h) : p = b.MAX_DATAID); return n | p << 16 | a; }; - c.prototype.enter = function(n, a, h) { + b.prototype.enter = function(n, a, h) { h = (k.isNullOrUndefined(h) ? performance.now() : h) - this._startTime; this._marks || this._initialize(); this._depth++; n = this._getKindId(n); - this._marks.write(this._getMark(c.ENTER, n, a)); + this._marks.write(this._getMark(b.ENTER, n, a)); this._times.write(h); this._stack.push(n); }; - c.prototype.leave = function(n, a, h) { + b.prototype.leave = function(n, a, h) { h = (k.isNullOrUndefined(h) ? performance.now() : h) - this._startTime; var p = this._stack.pop(); n && (p = this._getKindId(n)); - this._marks.write(this._getMark(c.LEAVE, p, a)); + this._marks.write(this._getMark(b.LEAVE, p, a)); this._times.write(h); this._depth--; }; - c.prototype.count = function(c, a, h) { + b.prototype.count = function(b, a, h) { }; - c.prototype.createSnapshot = function() { + b.prototype.createSnapshot = function() { var n; void 0 === n && (n = Number.MAX_VALUE); if (!this._marks) { return null; } - var a = this._times, h = this._kinds, p = this._data, l = new g.TimelineBufferSnapshot(this.name), u = [l], m = 0; + var a = this._times, h = this._kinds, p = this._data, l = new g.TimelineBufferSnapshot(this.name), w = [l], m = 0; this._marks || this._initialize(); - this._marks.forEachInReverse(function(l, v) { - var d = p[l >>> 16 & c.MAX_DATAID], e = h[l & c.MAX_KINDID]; - if (k.isNullOrUndefined(e) || e.visible) { - var b = l & 2147483648, f = a.get(v), q = u.length; - if (b === c.LEAVE) { + this._marks.forEachInReverse(function(l, x) { + var e = p[l >>> 16 & b.MAX_DATAID], f = h[l & b.MAX_KINDID]; + if (k.isNullOrUndefined(f) || f.visible) { + var c = l & 2147483648, d = a.get(x), q = w.length; + if (c === b.LEAVE) { if (1 === q && (m++, m > n)) { - return!0; + return !0; } - u.push(new g.TimelineFrame(u[q - 1], e, null, d, NaN, f)); + w.push(new g.TimelineFrame(w[q - 1], f, null, e, NaN, d)); } else { - if (b === c.ENTER) { - if (e = u.pop(), b = u[u.length - 1]) { - for (b.children ? b.children.unshift(e) : b.children = [e], b = u.length, e.depth = b, e.startData = d, e.startTime = f;e;) { - if (e.maxDepth < b) { - e.maxDepth = b, e = e.parent; + if (c === b.ENTER) { + if (f = w.pop(), c = w[w.length - 1]) { + for (c.children ? c.children.unshift(f) : c.children = [f], c = w.length, f.depth = c, f.startData = e, f.startTime = d;f;) { + if (f.maxDepth < c) { + f.maxDepth = c, f = f.parent; } else { break; } } } else { - return!0; + return !0; } } } @@ -5207,82 +5211,82 @@ __extends = this.__extends || function(k, r) { l.children && l.children.length && (l.startTime = l.children[0].startTime, l.endTime = l.children[l.children.length - 1].endTime); return l; }; - c.prototype.reset = function(c) { - this._startTime = k.isNullOrUndefined(c) ? performance.now() : c; + b.prototype.reset = function(b) { + this._startTime = k.isNullOrUndefined(b) ? performance.now() : b; this._marks ? (this._depth = 0, this._data = [], this._marks.reset(), this._times.reset()) : this._initialize(); }; - c.FromFirefoxProfile = function(n, a) { - for (var h = n.profile.threads[0].samples, p = new c(a, h[0].time), l = [], g, m = 0;m < h.length;m++) { + b.FromFirefoxProfile = function(n, a) { + for (var h = n.profile.threads[0].samples, p = new b(a, h[0].time), l = [], g, m = 0;m < h.length;m++) { g = h[m]; - var s = g.time, k = g.frames, d = 0; - for (g = Math.min(k.length, l.length);d < g && k[d].location === l[d].location;) { - d++; + var t = g.time, k = g.frames, e = 0; + for (g = Math.min(k.length, l.length);e < g && k[e].location === l[e].location;) { + e++; } - for (var e = l.length - d, b = 0;b < e;b++) { - g = l.pop(), p.leave(g.location, null, s); + for (var f = l.length - e, c = 0;c < f;c++) { + g = l.pop(), p.leave(g.location, null, t); } - for (;d < k.length;) { - g = k[d++], p.enter(g.location, null, s); + for (;e < k.length;) { + g = k[e++], p.enter(g.location, null, t); } l = k; } for (;g = l.pop();) { - p.leave(g.location, null, s); + p.leave(g.location, null, t); } return p; }; - c.FromChromeProfile = function(n, a) { - var h = n.timestamps, p = n.samples, l = new c(a, h[0] / 1E3), g = [], m = {}, s; - c._resolveIds(n.head, m); + b.FromChromeProfile = function(n, a) { + var h = n.timestamps, p = n.samples, l = new b(a, h[0] / 1E3), g = [], m = {}, t; + b._resolveIds(n.head, m); for (var k = 0;k < h.length;k++) { - var d = h[k] / 1E3, e = []; - for (s = m[p[k]];s;) { - e.unshift(s), s = s.parent; + var e = h[k] / 1E3, f = []; + for (t = m[p[k]];t;) { + f.unshift(t), t = t.parent; } - var b = 0; - for (s = Math.min(e.length, g.length);b < s && e[b] === g[b];) { - b++; + var c = 0; + for (t = Math.min(f.length, g.length);c < t && f[c] === g[c];) { + c++; } - for (var f = g.length - b, q = 0;q < f;q++) { - s = g.pop(), l.leave(s.functionName, null, d); + for (var d = g.length - c, q = 0;q < d;q++) { + t = g.pop(), l.leave(t.functionName, null, e); } - for (;b < e.length;) { - s = e[b++], l.enter(s.functionName, null, d); + for (;c < f.length;) { + t = f[c++], l.enter(t.functionName, null, e); } - g = e; + g = f; } - for (;s = g.pop();) { - l.leave(s.functionName, null, d); + for (;t = g.pop();) { + l.leave(t.functionName, null, e); } return l; }; - c._resolveIds = function(n, a) { + b._resolveIds = function(n, a) { a[n.id] = n; if (n.children) { for (var h = 0;h < n.children.length;h++) { - n.children[h].parent = n, c._resolveIds(n.children[h], a); + n.children[h].parent = n, b._resolveIds(n.children[h], a); } } }; - c.ENTER = 0; - c.LEAVE = -2147483648; - c.MAX_KINDID = 65535; - c.MAX_DATAID = 32767; - return c; + b.ENTER = 0; + b.LEAVE = -2147483648; + b.MAX_KINDID = 65535; + b.MAX_DATAID = 32767; + return b; }(); - g.TimelineBuffer = c; + g.TimelineBuffer = b; })(r.Profiler || (r.Profiler = {})); })(k.Tools || (k.Tools = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - (function(c) { - c[c.DARK = 0] = "DARK"; - c[c.LIGHT = 1] = "LIGHT"; + (function(b) { + b[b.DARK = 0] = "DARK"; + b[b.LIGHT = 1] = "LIGHT"; })(g.UIThemeType || (g.UIThemeType = {})); - var c = function() { - function c(n, a) { + var b = function() { + function b(n, a) { void 0 === a && (a = 0); this._container = n; this._headers = []; @@ -5292,44 +5296,44 @@ __extends = this.__extends || function(k, r) { this.themeType = a; this._tooltip = this._createTooltip(); } - c.prototype.createProfile = function(c, a) { - var h = new g.Profile(c, a); + b.prototype.createProfile = function(b, a) { + var h = new g.Profile(b, a); h.createSnapshots(); this._profiles.push(h); this.activateProfile(h); return h; }; - c.prototype.activateProfile = function(c) { + b.prototype.activateProfile = function(b) { this.deactivateProfile(); - this._activeProfile = c; + this._activeProfile = b; this._createViews(); this._initializeViews(); }; - c.prototype.activateProfileAt = function(c) { - this.activateProfile(this.getProfileAt(c)); + b.prototype.activateProfileAt = function(b) { + this.activateProfile(this.getProfileAt(b)); }; - c.prototype.deactivateProfile = function() { + b.prototype.deactivateProfile = function() { this._activeProfile && (this._destroyViews(), this._activeProfile = null); }; - c.prototype.resize = function() { + b.prototype.resize = function() { this._onResize(); }; - c.prototype.getProfileAt = function(c) { - return this._profiles[c]; + b.prototype.getProfileAt = function(b) { + return this._profiles[b]; }; - Object.defineProperty(c.prototype, "activeProfile", {get:function() { + Object.defineProperty(b.prototype, "activeProfile", {get:function() { return this._activeProfile; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "profileCount", {get:function() { + Object.defineProperty(b.prototype, "profileCount", {get:function() { return this._profiles.length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "container", {get:function() { + Object.defineProperty(b.prototype, "container", {get:function() { return this._container; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "themeType", {get:function() { + Object.defineProperty(b.prototype, "themeType", {get:function() { return this._themeType; - }, set:function(c) { - switch(c) { + }, set:function(b) { + switch(b) { case 0: this._theme = new r.Theme.UIThemeDark; break; @@ -5337,25 +5341,25 @@ __extends = this.__extends || function(k, r) { this._theme = new r.Theme.UIThemeLight; } }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "theme", {get:function() { + Object.defineProperty(b.prototype, "theme", {get:function() { return this._theme; }, enumerable:!0, configurable:!0}); - c.prototype.getSnapshotAt = function(c) { - return this._activeProfile.getSnapshotAt(c); + b.prototype.getSnapshotAt = function(b) { + return this._activeProfile.getSnapshotAt(b); }; - c.prototype._createViews = function() { + b.prototype._createViews = function() { if (this._activeProfile) { - var c = this; + var b = this; this._overviewHeader = new g.FlameChartHeader(this, 0); this._overview = new g.FlameChartOverview(this, 0); this._activeProfile.forEachSnapshot(function(a, h) { - c._headers.push(new g.FlameChartHeader(c, 1)); - c._charts.push(new g.FlameChart(c, a)); + b._headers.push(new g.FlameChartHeader(b, 1)); + b._charts.push(new g.FlameChart(b, a)); }); window.addEventListener("resize", this._onResize.bind(this)); } }; - c.prototype._destroyViews = function() { + b.prototype._destroyViews = function() { if (this._activeProfile) { this._overviewHeader.destroy(); for (this._overview.destroy();this._headers.length;) { @@ -5367,72 +5371,72 @@ __extends = this.__extends || function(k, r) { window.removeEventListener("resize", this._onResize.bind(this)); } }; - c.prototype._initializeViews = function() { + b.prototype._initializeViews = function() { if (this._activeProfile) { - var c = this, a = this._activeProfile.startTime, h = this._activeProfile.endTime; + var b = this, a = this._activeProfile.startTime, h = this._activeProfile.endTime; this._overviewHeader.initialize(a, h); this._overview.initialize(a, h); this._activeProfile.forEachSnapshot(function(p, l) { - c._headers[l].initialize(a, h); - c._charts[l].initialize(a, h); + b._headers[l].initialize(a, h); + b._charts[l].initialize(a, h); }); } }; - c.prototype._onResize = function() { + b.prototype._onResize = function() { if (this._activeProfile) { - var c = this, a = this._container.offsetWidth; + var b = this, a = this._container.offsetWidth; this._overviewHeader.setSize(a); this._overview.setSize(a); this._activeProfile.forEachSnapshot(function(h, p) { - c._headers[p].setSize(a); - c._charts[p].setSize(a); + b._headers[p].setSize(a); + b._charts[p].setSize(a); }); } }; - c.prototype._updateViews = function() { + b.prototype._updateViews = function() { if (this._activeProfile) { - var c = this, a = this._activeProfile.windowStart, h = this._activeProfile.windowEnd; + var b = this, a = this._activeProfile.windowStart, h = this._activeProfile.windowEnd; this._overviewHeader.setWindow(a, h); this._overview.setWindow(a, h); this._activeProfile.forEachSnapshot(function(p, l) { - c._headers[l].setWindow(a, h); - c._charts[l].setWindow(a, h); + b._headers[l].setWindow(a, h); + b._charts[l].setWindow(a, h); }); } }; - c.prototype._drawViews = function() { + b.prototype._drawViews = function() { }; - c.prototype._createTooltip = function() { - var c = document.createElement("div"); - c.classList.add("profiler-tooltip"); - c.style.display = "none"; - this._container.insertBefore(c, this._container.firstChild); - return c; + b.prototype._createTooltip = function() { + var b = document.createElement("div"); + b.classList.add("profiler-tooltip"); + b.style.display = "none"; + this._container.insertBefore(b, this._container.firstChild); + return b; }; - c.prototype.setWindow = function(c, a) { - this._activeProfile.setWindow(c, a); + b.prototype.setWindow = function(b, a) { + this._activeProfile.setWindow(b, a); this._updateViews(); }; - c.prototype.moveWindowTo = function(c) { - this._activeProfile.moveWindowTo(c); + b.prototype.moveWindowTo = function(b) { + this._activeProfile.moveWindowTo(b); this._updateViews(); }; - c.prototype.showTooltip = function(c, a, h, p) { + b.prototype.showTooltip = function(b, a, h, p) { this.removeTooltipContent(); - this._tooltip.appendChild(this.createTooltipContent(c, a)); + this._tooltip.appendChild(this.createTooltipContent(b, a)); this._tooltip.style.display = "block"; var l = this._tooltip.firstChild; a = l.clientWidth; l = l.clientHeight; - h += h + a >= c.canvas.clientWidth - 50 ? -(a + 20) : 25; - p += c.canvas.offsetTop - l / 2; + h += h + a >= b.canvas.clientWidth - 50 ? -(a + 20) : 25; + p += b.canvas.offsetTop - l / 2; this._tooltip.style.left = h + "px"; this._tooltip.style.top = p + "px"; }; - c.prototype.hideTooltip = function() { + b.prototype.hideTooltip = function() { this._tooltip.style.display = "none"; }; - c.prototype.createTooltipContent = function(c, a) { + b.prototype.createTooltipContent = function(b, a) { var h = Math.round(1E5 * a.totalTime) / 1E5, p = Math.round(1E5 * a.selfTime) / 1E5, l = Math.round(1E4 * a.selfTime / a.totalTime) / 100, g = document.createElement("div"), m = document.createElement("h1"); m.textContent = a.kind.name; g.appendChild(m); @@ -5442,41 +5446,41 @@ __extends = this.__extends || function(k, r) { h = document.createElement("p"); h.textContent = "Self: " + p + " ms (" + l + "%)"; g.appendChild(h); - if (p = c.getStatistics(a.kind)) { - l = document.createElement("p"), l.textContent = "Count: " + p.count, g.appendChild(l), l = Math.round(1E5 * p.totalTime) / 1E5, h = document.createElement("p"), h.textContent = "All Total: " + l + " ms", g.appendChild(h), p = Math.round(1E5 * p.selfTime) / 1E5, l = document.createElement("p"), l.textContent = "All Self: " + p + " ms", g.appendChild(l); + if (p = b.getStatistics(a.kind)) { + l = document.createElement("p"), l.textContent = "Count: " + p.count, g.appendChild(l), l = document.createElement("p"), l.textContent = "All Total: " + Math.round(1E5 * p.totalTime) / 1E5 + " ms", g.appendChild(l), l = document.createElement("p"), l.textContent = "All Self: " + Math.round(1E5 * p.selfTime) / 1E5 + " ms", g.appendChild(l); } this.appendDataElements(g, a.startData); this.appendDataElements(g, a.endData); return g; }; - c.prototype.appendDataElements = function(c, a) { + b.prototype.appendDataElements = function(b, a) { if (!k.isNullOrUndefined(a)) { - c.appendChild(document.createElement("hr")); + b.appendChild(document.createElement("hr")); var h; if (k.isObject(a)) { for (var p in a) { - h = document.createElement("p"), h.textContent = p + ": " + a[p], c.appendChild(h); + h = document.createElement("p"), h.textContent = p + ": " + a[p], b.appendChild(h); } } else { - h = document.createElement("p"), h.textContent = a.toString(), c.appendChild(h); + h = document.createElement("p"), h.textContent = a.toString(), b.appendChild(h); } } }; - c.prototype.removeTooltipContent = function() { - for (var c = this._tooltip;c.firstChild;) { - c.removeChild(c.firstChild); + b.prototype.removeTooltipContent = function() { + for (var b = this._tooltip;b.firstChild;) { + b.removeChild(b.firstChild); } }; - return c; + return b; }(); - g.Controller = c; + g.Controller = b; })(r.Profiler || (r.Profiler = {})); })(k.Tools || (k.Tools = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.NumberUtilities.clamp, r = function() { + var b = k.NumberUtilities.clamp, r = function() { function a(a) { this.value = a; } @@ -5521,9 +5525,9 @@ __extends = this.__extends || function(k, r) { }(); g.MouseCursor = r; var n = function() { - function a(a, c) { + function a(a, b) { this._target = a; - this._eventTarget = c; + this._eventTarget = b; this._wheelDisabled = !1; this._boundOnMouseDown = this._onMouseDown.bind(this); this._boundOnMouseUp = this._onMouseUp.bind(this); @@ -5532,10 +5536,10 @@ __extends = this.__extends || function(k, r) { this._boundOnMouseMove = this._onMouseMove.bind(this); this._boundOnMouseWheel = this._onMouseWheel.bind(this); this._boundOnDrag = this._onDrag.bind(this); - c.addEventListener("mousedown", this._boundOnMouseDown, !1); - c.addEventListener("mouseover", this._boundOnMouseOver, !1); - c.addEventListener("mouseout", this._boundOnMouseOut, !1); - c.addEventListener("onwheel" in document ? "wheel" : "mousewheel", this._boundOnMouseWheel, !1); + b.addEventListener("mousedown", this._boundOnMouseDown, !1); + b.addEventListener("mouseover", this._boundOnMouseOver, !1); + b.addEventListener("mouseout", this._boundOnMouseOut, !1); + b.addEventListener("onwheel" in document ? "wheel" : "mousewheel", this._boundOnMouseWheel, !1); } a.prototype.destroy = function() { var a = this._eventTarget; @@ -5548,11 +5552,11 @@ __extends = this.__extends || function(k, r) { this._killHoverCheck(); this._target = this._eventTarget = null; }; - a.prototype.updateCursor = function(h) { + a.prototype.updateCursor = function(b) { if (!a._cursorOwner || a._cursorOwner === this._target) { - var c = this._eventTarget.parentElement; - a._cursor !== h && (a._cursor = h, ["", "-moz-", "-webkit-"].forEach(function(a) { - c.style.cursor = a + h; + var p = this._eventTarget.parentElement; + a._cursor !== b && (a._cursor = b, ["", "-moz-", "-webkit-"].forEach(function(a) { + p.style.cursor = a + b; })); a._cursorOwner = a._cursor === r.DEFAULT ? null : this._target; } @@ -5560,26 +5564,26 @@ __extends = this.__extends || function(k, r) { a.prototype._onMouseDown = function(a) { this._killHoverCheck(); if (0 === a.button) { - var c = this._getTargetMousePos(a, a.target); - this._dragInfo = {start:c, current:c, delta:{x:0, y:0}, hasMoved:!1, originalTarget:a.target}; + var b = this._getTargetMousePos(a, a.target); + this._dragInfo = {start:b, current:b, delta:{x:0, y:0}, hasMoved:!1, originalTarget:a.target}; window.addEventListener("mousemove", this._boundOnDrag, !1); window.addEventListener("mouseup", this._boundOnMouseUp, !1); - this._target.onMouseDown(c.x, c.y); + this._target.onMouseDown(b.x, b.y); } }; a.prototype._onDrag = function(a) { - var c = this._dragInfo; - a = this._getTargetMousePos(a, c.originalTarget); - var l = {x:a.x - c.start.x, y:a.y - c.start.y}; - c.current = a; - c.delta = l; - c.hasMoved = !0; - this._target.onDrag(c.start.x, c.start.y, a.x, a.y, l.x, l.y); + var b = this._dragInfo; + a = this._getTargetMousePos(a, b.originalTarget); + var l = {x:a.x - b.start.x, y:a.y - b.start.y}; + b.current = a; + b.delta = l; + b.hasMoved = !0; + this._target.onDrag(b.start.x, b.start.y, a.x, a.y, l.x, l.y); }; a.prototype._onMouseUp = function(a) { window.removeEventListener("mousemove", this._boundOnDrag); window.removeEventListener("mouseup", this._boundOnMouseUp); - var c = this; + var b = this; a = this._dragInfo; if (a.hasMoved) { this._target.onDragEnd(a.start.x, a.start.y, a.current.x, a.current.y, a.delta.x, a.delta.y); @@ -5589,14 +5593,14 @@ __extends = this.__extends || function(k, r) { this._dragInfo = null; this._wheelDisabled = !0; setTimeout(function() { - c._wheelDisabled = !1; + b._wheelDisabled = !1; }, 500); }; a.prototype._onMouseOver = function(a) { a.target.addEventListener("mousemove", this._boundOnMouseMove, !1); if (!this._dragInfo) { - var c = this._getTargetMousePos(a, a.target); - this._target.onMouseOver(c.x, c.y); + var b = this._getTargetMousePos(a, a.target); + this._target.onMouseOver(b.x, b.y); this._startHoverCheck(a); } }; @@ -5609,8 +5613,8 @@ __extends = this.__extends || function(k, r) { }; a.prototype._onMouseMove = function(a) { if (!this._dragInfo) { - var c = this._getTargetMousePos(a, a.target); - this._target.onMouseMove(c.x, c.y); + var b = this._getTargetMousePos(a, a.target); + this._target.onMouseMove(b.x, b.y); this._killHoverCheck(); this._startHoverCheck(a); } @@ -5618,12 +5622,12 @@ __extends = this.__extends || function(k, r) { a.prototype._onMouseWheel = function(a) { if (!(a.altKey || a.metaKey || a.ctrlKey || a.shiftKey || (a.preventDefault(), this._dragInfo || this._wheelDisabled))) { var p = this._getTargetMousePos(a, a.target); - a = c("undefined" !== typeof a.deltaY ? a.deltaY / 16 : -a.wheelDelta / 40, -1, 1); + a = b("undefined" !== typeof a.deltaY ? a.deltaY / 16 : -a.wheelDelta / 40, -1, 1); this._target.onMouseWheel(p.x, p.y, Math.pow(1.2, a) - 1); } }; - a.prototype._startHoverCheck = function(c) { - this._hoverInfo = {isHovering:!1, timeoutHandle:setTimeout(this._onMouseMoveIdleHandler.bind(this), a.HOVER_TIMEOUT), pos:this._getTargetMousePos(c, c.target)}; + a.prototype._startHoverCheck = function(b) { + this._hoverInfo = {isHovering:!1, timeoutHandle:setTimeout(this._onMouseMoveIdleHandler.bind(this), a.HOVER_TIMEOUT), pos:this._getTargetMousePos(b, b.target)}; }; a.prototype._killHoverCheck = function() { if (this._hoverInfo) { @@ -5639,9 +5643,9 @@ __extends = this.__extends || function(k, r) { a.isHovering = !0; this._target.onHoverStart(a.pos.x, a.pos.y); }; - a.prototype._getTargetMousePos = function(a, c) { - var l = c.getBoundingClientRect(); - return{x:a.clientX - l.left, y:a.clientY - l.top}; + a.prototype._getTargetMousePos = function(a, b) { + var l = b.getBoundingClientRect(); + return {x:a.clientX - l.left, y:a.clientY - l.top}; }; a.HOVER_TIMEOUT = 500; a._cursor = r.DEFAULT; @@ -5654,15 +5658,15 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - (function(c) { - c[c.NONE = 0] = "NONE"; - c[c.WINDOW = 1] = "WINDOW"; - c[c.HANDLE_LEFT = 2] = "HANDLE_LEFT"; - c[c.HANDLE_RIGHT = 3] = "HANDLE_RIGHT"; - c[c.HANDLE_BOTH = 4] = "HANDLE_BOTH"; + (function(b) { + b[b.NONE = 0] = "NONE"; + b[b.WINDOW = 1] = "WINDOW"; + b[b.HANDLE_LEFT = 2] = "HANDLE_LEFT"; + b[b.HANDLE_RIGHT = 3] = "HANDLE_RIGHT"; + b[b.HANDLE_BOTH = 4] = "HANDLE_BOTH"; })(g.FlameChartDragTarget || (g.FlameChartDragTarget = {})); - var c = function() { - function c(n) { + var b = function() { + function b(n) { this._controller = n; this._initialized = !1; this._canvas = document.createElement("canvas"); @@ -5673,127 +5677,127 @@ __extends = this.__extends || function(k, r) { n = n.getBoundingClientRect(); this.setSize(n.width); } - Object.defineProperty(c.prototype, "canvas", {get:function() { + Object.defineProperty(b.prototype, "canvas", {get:function() { return this._canvas; }, enumerable:!0, configurable:!0}); - c.prototype.setSize = function(c, a) { + b.prototype.setSize = function(b, a) { void 0 === a && (a = 20); - this._width = c; + this._width = b; this._height = a; this._resetCanvas(); this.draw(); }; - c.prototype.initialize = function(c, a) { + b.prototype.initialize = function(b, a) { this._initialized = !0; - this.setRange(c, a); - this.setWindow(c, a, !1); + this.setRange(b, a); + this.setWindow(b, a, !1); this.draw(); }; - c.prototype.setWindow = function(c, a, h) { + b.prototype.setWindow = function(b, a, h) { void 0 === h && (h = !0); - this._windowStart = c; + this._windowStart = b; this._windowEnd = a; !h || this.draw(); }; - c.prototype.setRange = function(c, a) { + b.prototype.setRange = function(b, a) { var h = !1; void 0 === h && (h = !0); - this._rangeStart = c; + this._rangeStart = b; this._rangeEnd = a; !h || this.draw(); }; - c.prototype.destroy = function() { + b.prototype.destroy = function() { this._mouseController.destroy(); this._mouseController = null; this._controller.container.removeChild(this._canvas); this._controller = null; }; - c.prototype._resetCanvas = function() { - var c = window.devicePixelRatio, a = this._canvas; - a.width = this._width * c; - a.height = this._height * c; + b.prototype._resetCanvas = function() { + var b = window.devicePixelRatio, a = this._canvas; + a.width = this._width * b; + a.height = this._height * b; a.style.width = this._width + "px"; a.style.height = this._height + "px"; }; - c.prototype.draw = function() { + b.prototype.draw = function() { }; - c.prototype._almostEq = function(c, a) { + b.prototype._almostEq = function(b, a) { var h; void 0 === h && (h = 10); - return Math.abs(c - a) < 1 / Math.pow(10, h); + return Math.abs(b - a) < 1 / Math.pow(10, h); }; - c.prototype._windowEqRange = function() { + b.prototype._windowEqRange = function() { return this._almostEq(this._windowStart, this._rangeStart) && this._almostEq(this._windowEnd, this._rangeEnd); }; - c.prototype._decimalPlaces = function(c) { - return(+c).toFixed(10).replace(/^-?\d*\.?|0+$/g, "").length; + b.prototype._decimalPlaces = function(b) { + return (+b).toFixed(10).replace(/^-?\d*\.?|0+$/g, "").length; }; - c.prototype._toPixelsRelative = function(c) { + b.prototype._toPixelsRelative = function(b) { return 0; }; - c.prototype._toPixels = function(c) { + b.prototype._toPixels = function(b) { return 0; }; - c.prototype._toTimeRelative = function(c) { + b.prototype._toTimeRelative = function(b) { return 0; }; - c.prototype._toTime = function(c) { + b.prototype._toTime = function(b) { return 0; }; - c.prototype.onMouseWheel = function(g, a, h) { + b.prototype.onMouseWheel = function(g, a, h) { g = this._toTime(g); a = this._windowStart; var p = this._windowEnd, l = p - a; - h = Math.max((c.MIN_WINDOW_LEN - l) / l, h); + h = Math.max((b.MIN_WINDOW_LEN - l) / l, h); this._controller.setWindow(a + (a - g) * h, p + (p - g) * h); this.onHoverEnd(); }; - c.prototype.onMouseDown = function(c, a) { + b.prototype.onMouseDown = function(b, a) { }; - c.prototype.onMouseMove = function(c, a) { + b.prototype.onMouseMove = function(b, a) { }; - c.prototype.onMouseOver = function(c, a) { + b.prototype.onMouseOver = function(b, a) { }; - c.prototype.onMouseOut = function() { + b.prototype.onMouseOut = function() { }; - c.prototype.onDrag = function(c, a, h, p, l, g) { + b.prototype.onDrag = function(b, a, h, p, l, g) { }; - c.prototype.onDragEnd = function(c, a, h, p, l, g) { + b.prototype.onDragEnd = function(b, a, h, p, l, g) { }; - c.prototype.onClick = function(c, a) { + b.prototype.onClick = function(b, a) { }; - c.prototype.onHoverStart = function(c, a) { + b.prototype.onHoverStart = function(b, a) { }; - c.prototype.onHoverEnd = function() { + b.prototype.onHoverEnd = function() { }; - c.DRAGHANDLE_WIDTH = 4; - c.MIN_WINDOW_LEN = .1; - return c; + b.DRAGHANDLE_WIDTH = 4; + b.MIN_WINDOW_LEN = .1; + return b; }(); - g.FlameChartBase = c; + g.FlameChartBase = b; })(k.Profiler || (k.Profiler = {})); })(k.Tools || (k.Tools = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.StringUtilities.trimMiddle, r = function(n) { - function a(a, c) { + var b = k.StringUtilities.trimMiddle, r = function(n) { + function a(a, b) { n.call(this, a); this._textWidth = {}; this._minFrameWidthInPixels = 1; - this._snapshot = c; + this._snapshot = b; this._kindStyle = Object.create(null); } __extends(a, n); - a.prototype.setSize = function(a, c) { - n.prototype.setSize.call(this, a, c || this._initialized ? 12.5 * this._maxDepth : 100); + a.prototype.setSize = function(a, b) { + n.prototype.setSize.call(this, a, b || this._initialized ? 12.5 * this._maxDepth : 100); }; - a.prototype.initialize = function(a, c) { + a.prototype.initialize = function(a, b) { this._initialized = !0; this._maxDepth = this._snapshot.maxDepth; - this.setRange(a, c); - this.setWindow(a, c, !1); + this.setRange(a, b); + this.setWindow(a, b, !1); this.setSize(this._width, 12.5 * this._maxDepth); }; a.prototype.destroy = function() { @@ -5801,39 +5805,39 @@ __extends = this.__extends || function(k, r) { this._snapshot = null; }; a.prototype.draw = function() { - var a = this._context, c = window.devicePixelRatio; + var a = this._context, b = window.devicePixelRatio; k.ColorStyle.reset(); a.save(); - a.scale(c, c); + a.scale(b, b); a.fillStyle = this._controller.theme.bodyBackground(1); a.fillRect(0, 0, this._width, this._height); this._initialized && this._drawChildren(this._snapshot); a.restore(); }; - a.prototype._drawChildren = function(a, c) { - void 0 === c && (c = 0); + a.prototype._drawChildren = function(a, b) { + void 0 === b && (b = 0); var l = a.getChildRange(this._windowStart, this._windowEnd); if (l) { for (var g = l.startIndex;g <= l.endIndex;g++) { var m = a.children[g]; - this._drawFrame(m, c) && this._drawChildren(m, c + 1); + this._drawFrame(m, b) && this._drawChildren(m, b + 1); } } }; - a.prototype._drawFrame = function(a, c) { - var l = this._context, g = this._toPixels(a.startTime), m = this._toPixels(a.endTime), s = m - g; - if (s <= this._minFrameWidthInPixels) { - return l.fillStyle = this._controller.theme.tabToolbar(1), l.fillRect(g, 12.5 * c, this._minFrameWidthInPixels, 12 + 12.5 * (a.maxDepth - a.depth)), !1; + a.prototype._drawFrame = function(a, b) { + var l = this._context, g = this._toPixels(a.startTime), m = this._toPixels(a.endTime), t = m - g; + if (t <= this._minFrameWidthInPixels) { + return l.fillStyle = this._controller.theme.tabToolbar(1), l.fillRect(g, 12.5 * b, this._minFrameWidthInPixels, 12 + 12.5 * (a.maxDepth - a.depth)), !1; } - 0 > g && (m = s + g, g = 0); + 0 > g && (m = t + g, g = 0); var m = m - g, n = this._kindStyle[a.kind.id]; n || (n = k.ColorStyle.randomStyle(), n = this._kindStyle[a.kind.id] = {bgColor:n, textColor:k.ColorStyle.contrastStyle(n)}); l.save(); l.fillStyle = n.bgColor; - l.fillRect(g, 12.5 * c, m, 12); - 12 < s && (s = a.kind.name) && s.length && (s = this._prepareText(l, s, m - 4), s.length && (l.fillStyle = n.textColor, l.textBaseline = "bottom", l.fillText(s, g + 2, 12.5 * (c + 1) - 1))); + l.fillRect(g, 12.5 * b, m, 12); + 12 < t && (t = a.kind.name) && t.length && (t = this._prepareText(l, t, m - 4), t.length && (l.fillStyle = n.textColor, l.textBaseline = "bottom", l.fillText(t, g + 2, 12.5 * (b + 1) - 1))); l.restore(); - return!0; + return !0; }; a.prototype._prepareText = function(a, p, l) { var g = this._measureWidth(a, p); @@ -5841,16 +5845,16 @@ __extends = this.__extends || function(k, r) { return p; } for (var g = 3, m = p.length;g < m;) { - var s = g + m >> 1; - this._measureWidth(a, c(p, s)) < l ? g = s + 1 : m = s; + var t = g + m >> 1; + this._measureWidth(a, b(p, t)) < l ? g = t + 1 : m = t; } - p = c(p, m - 1); + p = b(p, m - 1); g = this._measureWidth(a, p); return g <= l ? p : ""; }; - a.prototype._measureWidth = function(a, c) { - var l = this._textWidth[c]; - l || (l = a.measureText(c).width, this._textWidth[c] = l); + a.prototype._measureWidth = function(a, b) { + var l = this._textWidth[b]; + l || (l = a.measureText(b).width, this._textWidth[b] = l); return l; }; a.prototype._toPixelsRelative = function(a) { @@ -5865,8 +5869,8 @@ __extends = this.__extends || function(k, r) { a.prototype._toTime = function(a) { return this._toTimeRelative(a) + this._windowStart; }; - a.prototype._getFrameAtPosition = function(a, c) { - var l = 1 + c / 12.5 | 0, g = this._snapshot.query(this._toTime(a)); + a.prototype._getFrameAtPosition = function(a, b) { + var l = 1 + b / 12.5 | 0, g = this._snapshot.query(this._toTime(a)); if (g && g.depth >= l) { for (;g && g.depth > l;) { g = g.parent; @@ -5875,39 +5879,39 @@ __extends = this.__extends || function(k, r) { } return null; }; - a.prototype.onMouseDown = function(a, c) { + a.prototype.onMouseDown = function(a, b) { this._windowEqRange() || (this._mouseController.updateCursor(g.MouseCursor.ALL_SCROLL), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:1}); }; - a.prototype.onMouseMove = function(a, c) { + a.prototype.onMouseMove = function(a, b) { }; - a.prototype.onMouseOver = function(a, c) { + a.prototype.onMouseOver = function(a, b) { }; a.prototype.onMouseOut = function() { }; - a.prototype.onDrag = function(a, c, l, g, m, s) { + a.prototype.onDrag = function(a, b, l, g, m, t) { if (a = this._dragInfo) { m = this._toTimeRelative(-m), this._controller.setWindow(a.windowStartInitial + m, a.windowEndInitial + m); } }; - a.prototype.onDragEnd = function(a, c, l, n, m, s) { + a.prototype.onDragEnd = function(a, b, l, n, m, t) { this._dragInfo = null; this._mouseController.updateCursor(g.MouseCursor.DEFAULT); }; - a.prototype.onClick = function(a, c) { + a.prototype.onClick = function(a, b) { this._dragInfo = null; this._mouseController.updateCursor(g.MouseCursor.DEFAULT); }; - a.prototype.onHoverStart = function(a, c) { - var l = this._getFrameAtPosition(a, c); - l && (this._hoveredFrame = l, this._controller.showTooltip(this, l, a, c)); + a.prototype.onHoverStart = function(a, b) { + var l = this._getFrameAtPosition(a, b); + l && (this._hoveredFrame = l, this._controller.showTooltip(this, l, a, b)); }; a.prototype.onHoverEnd = function() { this._hoveredFrame && (this._hoveredFrame = null, this._controller.hideTooltip()); }; a.prototype.getStatistics = function(a) { - var c = this._snapshot; - c.statistics || c.calculateStatistics(); - return c.statistics[a.id]; + var b = this._snapshot; + b.statistics || b.calculateStatistics(); + return b.statistics[a.id]; }; return a; }(g.FlameChartBase); @@ -5918,24 +5922,24 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.NumberUtilities.clamp; - (function(c) { - c[c.OVERLAY = 0] = "OVERLAY"; - c[c.STACK = 1] = "STACK"; - c[c.UNION = 2] = "UNION"; + var b = k.NumberUtilities.clamp; + (function(b) { + b[b.OVERLAY = 0] = "OVERLAY"; + b[b.STACK = 1] = "STACK"; + b[b.UNION = 2] = "UNION"; })(g.FlameChartOverviewMode || (g.FlameChartOverviewMode = {})); var r = function(k) { - function a(a, c) { - void 0 === c && (c = 1); - this._mode = c; + function a(a, b) { + void 0 === b && (b = 1); + this._mode = b; this._overviewCanvasDirty = !0; this._overviewCanvas = document.createElement("canvas"); this._overviewContext = this._overviewCanvas.getContext("2d"); k.call(this, a); } __extends(a, k); - a.prototype.setSize = function(a, c) { - k.prototype.setSize.call(this, a, c || 64); + a.prototype.setSize = function(a, b) { + k.prototype.setSize.call(this, a, b || 64); }; Object.defineProperty(a.prototype, "mode", {set:function(a) { this._mode = a; @@ -5948,60 +5952,60 @@ __extends = this.__extends || function(k, r) { this._overviewCanvasDirty = !0; }; a.prototype.draw = function() { - var a = this._context, c = window.devicePixelRatio, l = this._width, g = this._height; + var a = this._context, b = window.devicePixelRatio, l = this._width, g = this._height; a.save(); - a.scale(c, c); + a.scale(b, b); a.fillStyle = this._controller.theme.bodyBackground(1); a.fillRect(0, 0, l, g); a.restore(); this._initialized && (this._overviewCanvasDirty && (this._drawChart(), this._overviewCanvasDirty = !1), a.drawImage(this._overviewCanvas, 0, 0), this._drawSelection()); }; a.prototype._drawSelection = function() { - var a = this._context, c = this._height, l = window.devicePixelRatio, g = this._selection ? this._selection.left : this._toPixels(this._windowStart), m = this._selection ? this._selection.right : this._toPixels(this._windowEnd), s = this._controller.theme; + var a = this._context, b = this._height, l = window.devicePixelRatio, g = this._selection ? this._selection.left : this._toPixels(this._windowStart), m = this._selection ? this._selection.right : this._toPixels(this._windowEnd), t = this._controller.theme; a.save(); a.scale(l, l); - this._selection ? (a.fillStyle = s.selectionText(.15), a.fillRect(g, 1, m - g, c - 1), a.fillStyle = "rgba(133, 0, 0, 1)", a.fillRect(g + .5, 0, m - g - 1, 4), a.fillRect(g + .5, c - 4, m - g - 1, 4)) : (a.fillStyle = s.bodyBackground(.4), a.fillRect(0, 1, g, c - 1), a.fillRect(m, 1, this._width, c - 1)); + this._selection ? (a.fillStyle = t.selectionText(.15), a.fillRect(g, 1, m - g, b - 1), a.fillStyle = "rgba(133, 0, 0, 1)", a.fillRect(g + .5, 0, m - g - 1, 4), a.fillRect(g + .5, b - 4, m - g - 1, 4)) : (a.fillStyle = t.bodyBackground(.4), a.fillRect(0, 1, g, b - 1), a.fillRect(m, 1, this._width, b - 1)); a.beginPath(); a.moveTo(g, 0); - a.lineTo(g, c); + a.lineTo(g, b); a.moveTo(m, 0); - a.lineTo(m, c); + a.lineTo(m, b); a.lineWidth = .5; - a.strokeStyle = s.foregroundTextGrey(1); + a.strokeStyle = t.foregroundTextGrey(1); a.stroke(); - c = Math.abs((this._selection ? this._toTime(this._selection.right) : this._windowEnd) - (this._selection ? this._toTime(this._selection.left) : this._windowStart)); - a.fillStyle = s.selectionText(.5); + b = Math.abs((this._selection ? this._toTime(this._selection.right) : this._windowEnd) - (this._selection ? this._toTime(this._selection.left) : this._windowStart)); + a.fillStyle = t.selectionText(.5); a.font = "8px sans-serif"; a.textBaseline = "alphabetic"; a.textAlign = "end"; - a.fillText(c.toFixed(2), Math.min(g, m) - 4, 10); - a.fillText((c / 60).toFixed(2), Math.min(g, m) - 4, 20); + a.fillText(b.toFixed(2), Math.min(g, m) - 4, 10); + a.fillText((b / 60).toFixed(2), Math.min(g, m) - 4, 20); a.restore(); }; a.prototype._drawChart = function() { - var a = window.devicePixelRatio, c = this._height, l = this._controller.activeProfile, g = 4 * this._width, m = l.totalTime / g, s = this._overviewContext, k = this._controller.theme.blueHighlight(1); - s.save(); - s.translate(0, a * c); - var d = -a * c / (l.maxDepth - 1); - s.scale(a / 4, d); - s.clearRect(0, 0, g, l.maxDepth - 1); - 1 == this._mode && s.scale(1, 1 / l.snapshotCount); - for (var e = 0, b = l.snapshotCount;e < b;e++) { - var f = l.getSnapshotAt(e); - if (f) { - var q = null, w = 0; - s.beginPath(); - s.moveTo(0, 0); - for (var G = 0;G < g;G++) { - w = l.startTime + G * m, w = (q = q ? q.queryNext(w) : f.query(w)) ? q.getDepth() - 1 : 0, s.lineTo(G, w); + var a = window.devicePixelRatio, b = this._height, l = this._controller.activeProfile, g = 4 * this._width, m = l.totalTime / g, t = this._overviewContext, k = this._controller.theme.blueHighlight(1); + t.save(); + t.translate(0, a * b); + var e = -a * b / (l.maxDepth - 1); + t.scale(a / 4, e); + t.clearRect(0, 0, g, l.maxDepth - 1); + 1 == this._mode && t.scale(1, 1 / l.snapshotCount); + for (var f = 0, c = l.snapshotCount;f < c;f++) { + var d = l.getSnapshotAt(f); + if (d) { + var q = null, u = 0; + t.beginPath(); + t.moveTo(0, 0); + for (var I = 0;I < g;I++) { + u = l.startTime + I * m, u = (q = q ? q.queryNext(u) : d.query(u)) ? q.getDepth() - 1 : 0, t.lineTo(I, u); } - s.lineTo(G, 0); - s.fillStyle = k; - s.fill(); - 1 == this._mode && s.translate(0, -c * a / d); + t.lineTo(I, 0); + t.fillStyle = k; + t.fill(); + 1 == this._mode && t.translate(0, -b * a / e); } } - s.restore(); + t.restore(); }; a.prototype._toPixelsRelative = function(a) { return a * this._width / (this._rangeEnd - this._rangeStart); @@ -6015,13 +6019,13 @@ __extends = this.__extends || function(k, r) { a.prototype._toTime = function(a) { return this._toTimeRelative(a) + this._rangeStart; }; - a.prototype._getDragTargetUnderCursor = function(a, c) { - if (0 <= c && c < this._height) { - var l = this._toPixels(this._windowStart), k = this._toPixels(this._windowEnd), m = 2 + g.FlameChartBase.DRAGHANDLE_WIDTH / 2, s = a >= l - m && a <= l + m, n = a >= k - m && a <= k + m; - if (s && n) { + a.prototype._getDragTargetUnderCursor = function(a, b) { + if (0 <= b && b < this._height) { + var l = this._toPixels(this._windowStart), k = this._toPixels(this._windowEnd), m = 2 + g.FlameChartBase.DRAGHANDLE_WIDTH / 2, t = a >= l - m && a <= l + m, n = a >= k - m && a <= k + m; + if (t && n) { return 4; } - if (s) { + if (t) { return 2; } if (n) { @@ -6033,24 +6037,24 @@ __extends = this.__extends || function(k, r) { } return 0; }; - a.prototype.onMouseDown = function(a, c) { - var l = this._getDragTargetUnderCursor(a, c); + a.prototype.onMouseDown = function(a, b) { + var l = this._getDragTargetUnderCursor(a, b); 0 === l ? (this._selection = {left:a, right:a}, this.draw()) : (1 === l && this._mouseController.updateCursor(g.MouseCursor.GRABBING), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:l}); }; - a.prototype.onMouseMove = function(a, c) { - var l = g.MouseCursor.DEFAULT, k = this._getDragTargetUnderCursor(a, c); + a.prototype.onMouseMove = function(a, b) { + var l = g.MouseCursor.DEFAULT, k = this._getDragTargetUnderCursor(a, b); 0 === k || this._selection || (l = 1 === k ? g.MouseCursor.GRAB : g.MouseCursor.EW_RESIZE); this._mouseController.updateCursor(l); }; - a.prototype.onMouseOver = function(a, c) { - this.onMouseMove(a, c); + a.prototype.onMouseOver = function(a, b) { + this.onMouseMove(a, b); }; a.prototype.onMouseOut = function() { this._mouseController.updateCursor(g.MouseCursor.DEFAULT); }; - a.prototype.onDrag = function(a, p, l, k, m, s) { + a.prototype.onDrag = function(a, p, l, k, m, t) { if (this._selection) { - this._selection = {left:a, right:c(l, 0, this._width - 1)}, this.draw(); + this._selection = {left:a, right:b(l, 0, this._width - 1)}, this.draw(); } else { a = this._dragInfo; if (4 === a.target) { @@ -6069,10 +6073,10 @@ __extends = this.__extends || function(k, r) { l = a.windowEndInitial + m; break; case 2: - p = c(a.windowStartInitial + m, this._rangeStart, l - g.FlameChartBase.MIN_WINDOW_LEN); + p = b(a.windowStartInitial + m, this._rangeStart, l - g.FlameChartBase.MIN_WINDOW_LEN); break; case 3: - l = c(a.windowEndInitial + m, p + g.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); + l = b(a.windowEndInitial + m, p + g.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; @@ -6080,17 +6084,17 @@ __extends = this.__extends || function(k, r) { this._controller.setWindow(p, l); } }; - a.prototype.onDragEnd = function(a, c, l, g, m, s) { + a.prototype.onDragEnd = function(a, b, l, g, m, t) { this._selection && (this._selection = null, this._controller.setWindow(this._toTime(a), this._toTime(l))); this._dragInfo = null; this.onMouseMove(l, g); }; - a.prototype.onClick = function(a, c) { + a.prototype.onClick = function(a, b) { this._selection = this._dragInfo = null; - this._windowEqRange() || (0 === this._getDragTargetUnderCursor(a, c) && this._controller.moveWindowTo(this._toTime(a)), this.onMouseMove(a, c)); + this._windowEqRange() || (0 === this._getDragTargetUnderCursor(a, b) && this._controller.moveWindowTo(this._toTime(a)), this.onMouseMove(a, b)); this.draw(); }; - a.prototype.onHoverStart = function(a, c) { + a.prototype.onHoverStart = function(a, b) { }; a.prototype.onHoverEnd = function() { }; @@ -6103,65 +6107,65 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.NumberUtilities.clamp; - (function(c) { - c[c.OVERVIEW = 0] = "OVERVIEW"; - c[c.CHART = 1] = "CHART"; + var b = k.NumberUtilities.clamp; + (function(b) { + b[b.OVERVIEW = 0] = "OVERVIEW"; + b[b.CHART = 1] = "CHART"; })(g.FlameChartHeaderType || (g.FlameChartHeaderType = {})); var r = function(k) { - function a(a, c) { - this._type = c; + function a(a, b) { + this._type = b; k.call(this, a); } __extends(a, k); a.prototype.draw = function() { - var a = this._context, c = window.devicePixelRatio, l = this._width, g = this._height; + var a = this._context, b = window.devicePixelRatio, l = this._width, g = this._height; a.save(); - a.scale(c, c); + a.scale(b, b); a.fillStyle = this._controller.theme.tabToolbar(1); a.fillRect(0, 0, l, g); - this._initialized && (0 == this._type ? (c = this._toPixels(this._windowStart), l = this._toPixels(this._windowEnd), a.fillStyle = this._controller.theme.bodyBackground(1), a.fillRect(c, 0, l - c, g), this._drawLabels(this._rangeStart, this._rangeEnd), this._drawDragHandle(c), this._drawDragHandle(l)) : this._drawLabels(this._windowStart, this._windowEnd)); + this._initialized && (0 == this._type ? (b = this._toPixels(this._windowStart), l = this._toPixels(this._windowEnd), a.fillStyle = this._controller.theme.bodyBackground(1), a.fillRect(b, 0, l - b, g), this._drawLabels(this._rangeStart, this._rangeEnd), this._drawDragHandle(b), this._drawDragHandle(l)) : this._drawLabels(this._windowStart, this._windowEnd)); a.restore(); }; - a.prototype._drawLabels = function(c, p) { - var l = this._context, g = this._calculateTickInterval(c, p), m = Math.ceil(c / g) * g, s = 500 <= g, k = s ? 1E3 : 1, d = this._decimalPlaces(g / k), s = s ? "s" : "ms", e = this._toPixels(m), b = this._height / 2, f = this._controller.theme; + a.prototype._drawLabels = function(b, p) { + var l = this._context, g = this._calculateTickInterval(b, p), m = Math.ceil(b / g) * g, t = 500 <= g, k = t ? 1E3 : 1, e = this._decimalPlaces(g / k), t = t ? "s" : "ms", f = this._toPixels(m), c = this._height / 2, d = this._controller.theme; l.lineWidth = 1; - l.strokeStyle = f.contentTextDarkGrey(.5); - l.fillStyle = f.contentTextDarkGrey(1); + l.strokeStyle = d.contentTextDarkGrey(.5); + l.fillStyle = d.contentTextDarkGrey(1); l.textAlign = "right"; l.textBaseline = "middle"; l.font = "11px sans-serif"; - for (f = this._width + a.TICK_MAX_WIDTH;e < f;) { - l.fillText((m / k).toFixed(d) + " " + s, e - 7, b + 1), l.beginPath(), l.moveTo(e, 0), l.lineTo(e, this._height + 1), l.closePath(), l.stroke(), m += g, e = this._toPixels(m); + for (d = this._width + a.TICK_MAX_WIDTH;f < d;) { + l.fillText((m / k).toFixed(e) + " " + t, f - 7, c + 1), l.beginPath(), l.moveTo(f, 0), l.lineTo(f, this._height + 1), l.closePath(), l.stroke(), m += g, f = this._toPixels(m); } }; - a.prototype._calculateTickInterval = function(c, p) { - var l = (p - c) / (this._width / a.TICK_MAX_WIDTH), g = Math.pow(10, Math.floor(Math.log(l) / Math.LN10)), l = l / g; + a.prototype._calculateTickInterval = function(b, p) { + var l = (p - b) / (this._width / a.TICK_MAX_WIDTH), g = Math.pow(10, Math.floor(Math.log(l) / Math.LN10)), l = l / g; return 5 < l ? 10 * g : 2 < l ? 5 * g : 1 < l ? 2 * g : g; }; a.prototype._drawDragHandle = function(a) { - var c = this._context; - c.lineWidth = 2; - c.strokeStyle = this._controller.theme.bodyBackground(1); - c.fillStyle = this._controller.theme.foregroundTextGrey(.7); - this._drawRoundedRect(c, a - g.FlameChartBase.DRAGHANDLE_WIDTH / 2, g.FlameChartBase.DRAGHANDLE_WIDTH, this._height - 2); + var b = this._context; + b.lineWidth = 2; + b.strokeStyle = this._controller.theme.bodyBackground(1); + b.fillStyle = this._controller.theme.foregroundTextGrey(.7); + this._drawRoundedRect(b, a - g.FlameChartBase.DRAGHANDLE_WIDTH / 2, g.FlameChartBase.DRAGHANDLE_WIDTH, this._height - 2); }; - a.prototype._drawRoundedRect = function(a, c, l, g) { - var m, s = !0; - void 0 === s && (s = !0); + a.prototype._drawRoundedRect = function(a, b, l, g) { + var m, t = !0; + void 0 === t && (t = !0); void 0 === m && (m = !0); a.beginPath(); - a.moveTo(c + 2, 1); - a.lineTo(c + l - 2, 1); - a.quadraticCurveTo(c + l, 1, c + l, 3); - a.lineTo(c + l, 1 + g - 2); - a.quadraticCurveTo(c + l, 1 + g, c + l - 2, 1 + g); - a.lineTo(c + 2, 1 + g); - a.quadraticCurveTo(c, 1 + g, c, 1 + g - 2); - a.lineTo(c, 3); - a.quadraticCurveTo(c, 1, c + 2, 1); + a.moveTo(b + 2, 1); + a.lineTo(b + l - 2, 1); + a.quadraticCurveTo(b + l, 1, b + l, 3); + a.lineTo(b + l, 1 + g - 2); + a.quadraticCurveTo(b + l, 1 + g, b + l - 2, 1 + g); + a.lineTo(b + 2, 1 + g); + a.quadraticCurveTo(b, 1 + g, b, 1 + g - 2); + a.lineTo(b, 3); + a.quadraticCurveTo(b, 1, b + 2, 1); a.closePath(); - s && a.stroke(); + t && a.stroke(); m && a.fill(); }; a.prototype._toPixelsRelative = function(a) { @@ -6176,8 +6180,8 @@ __extends = this.__extends || function(k, r) { a.prototype._toTime = function(a) { return this._toTimeRelative(a) + (0 === this._type ? this._rangeStart : this._windowStart); }; - a.prototype._getDragTargetUnderCursor = function(a, c) { - if (0 <= c && c < this._height) { + a.prototype._getDragTargetUnderCursor = function(a, b) { + if (0 <= b && b < this._height) { if (0 === this._type) { var l = this._toPixels(this._windowStart), k = this._toPixels(this._windowEnd), m = 2 + g.FlameChartBase.DRAGHANDLE_WIDTH / 2, l = a >= l - m && a <= l + m, k = a >= k - m && a <= k + m; if (l && k) { @@ -6196,23 +6200,23 @@ __extends = this.__extends || function(k, r) { } return 0; }; - a.prototype.onMouseDown = function(a, c) { - var l = this._getDragTargetUnderCursor(a, c); + a.prototype.onMouseDown = function(a, b) { + var l = this._getDragTargetUnderCursor(a, b); 1 === l && this._mouseController.updateCursor(g.MouseCursor.GRABBING); this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:l}; }; - a.prototype.onMouseMove = function(a, c) { - var l = g.MouseCursor.DEFAULT, k = this._getDragTargetUnderCursor(a, c); + a.prototype.onMouseMove = function(a, b) { + var l = g.MouseCursor.DEFAULT, k = this._getDragTargetUnderCursor(a, b); 0 !== k && (1 !== k ? l = g.MouseCursor.EW_RESIZE : 1 !== k || this._windowEqRange() || (l = g.MouseCursor.GRAB)); this._mouseController.updateCursor(l); }; - a.prototype.onMouseOver = function(a, c) { - this.onMouseMove(a, c); + a.prototype.onMouseOver = function(a, b) { + this.onMouseMove(a, b); }; a.prototype.onMouseOut = function() { this._mouseController.updateCursor(g.MouseCursor.DEFAULT); }; - a.prototype.onDrag = function(a, p, l, k, m, s) { + a.prototype.onDrag = function(a, p, l, k, m, t) { a = this._dragInfo; if (4 === a.target) { if (0 !== m) { @@ -6231,24 +6235,24 @@ __extends = this.__extends || function(k, r) { l = a.windowEndInitial + l * m; break; case 2: - p = c(a.windowStartInitial + m, this._rangeStart, l - g.FlameChartBase.MIN_WINDOW_LEN); + p = b(a.windowStartInitial + m, this._rangeStart, l - g.FlameChartBase.MIN_WINDOW_LEN); break; case 3: - l = c(a.windowEndInitial + m, p + g.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); + l = b(a.windowEndInitial + m, p + g.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; } this._controller.setWindow(p, l); }; - a.prototype.onDragEnd = function(a, c, l, g, m, s) { + a.prototype.onDragEnd = function(a, b, l, g, m, t) { this._dragInfo = null; this.onMouseMove(l, g); }; - a.prototype.onClick = function(a, c) { + a.prototype.onClick = function(a, b) { 1 === this._dragInfo.target && this._mouseController.updateCursor(g.MouseCursor.GRAB); }; - a.prototype.onHoverStart = function(a, c) { + a.prototype.onHoverStart = function(a, b) { }; a.prototype.onHoverEnd = function() { }; @@ -6262,39 +6266,39 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - (function(c) { + (function(b) { var g = function() { - function a(a, c, g, k, m) { + function a(a, b, l, g, m) { this.pageLoaded = a; - this.threadsTotal = c; - this.threadsLoaded = g; - this.threadFilesTotal = k; + this.threadsTotal = b; + this.threadsLoaded = l; + this.threadFilesTotal = g; this.threadFilesLoaded = m; } a.prototype.toString = function() { - return "[" + ["pageLoaded", "threadsTotal", "threadsLoaded", "threadFilesTotal", "threadFilesLoaded"].map(function(a, c, g) { + return "[" + ["pageLoaded", "threadsTotal", "threadsLoaded", "threadFilesTotal", "threadFilesLoaded"].map(function(a, b, l) { return a + ":" + this[a]; }, this).join(", ") + "]"; }; return a; }(); - c.TraceLoggerProgressInfo = g; + b.TraceLoggerProgressInfo = g; var k = function() { function a(a) { this._baseUrl = a; this._threads = []; this._progressInfo = null; } - a.prototype.loadPage = function(a, c, l) { + a.prototype.loadPage = function(a, b, l) { this._threads = []; - this._pageLoadCallback = c; + this._pageLoadCallback = b; this._pageLoadProgressCallback = l; this._progressInfo = new g(!1, 0, 0, 0, 0); this._loadData([a], this._onLoadPage.bind(this)); }; Object.defineProperty(a.prototype, "buffers", {get:function() { - for (var a = [], c = 0, g = this._threads.length;c < g;c++) { - a.push(this._threads[c].buffer); + for (var a = [], b = 0, l = this._threads.length;b < l;b++) { + a.push(this._threads[b].buffer); } return a; }, enumerable:!0, configurable:!0}); @@ -6310,12 +6314,12 @@ __extends = this.__extends || function(k, r) { this._progressInfo.pageLoaded = !0; this._progressInfo.threadsTotal = k; for (var m = 0;m < a.length;m++) { - var s = a[m], n = [s.dict, s.tree]; - s.corrections && n.push(s.corrections); + var t = a[m], n = [t.dict, t.tree]; + t.corrections && n.push(t.corrections); this._progressInfo.threadFilesTotal += n.length; this._loadData(n, function(a) { - return function(e) { - e && (e = new c.Thread(e), e.buffer.name = "Thread " + a, g._threads[a] = e); + return function(f) { + f && (f = new b.Thread(f), f.buffer.name = "Thread " + a, g._threads[a] = f); l++; g._progressInfo.threadsLoaded++; g._onProgress(); @@ -6331,40 +6335,40 @@ __extends = this.__extends || function(k, r) { this._pageLoadCallback.call(this, "Error loading page.", null); } }; - a.prototype._loadData = function(a, c, g) { - var k = 0, m = 0, s = a.length, n = []; - n.length = s; - for (var d = 0;d < s;d++) { - var e = this._baseUrl + a[d], b = new XMLHttpRequest, f = /\.tl$/i.test(e) ? "arraybuffer" : "json"; - b.open("GET", e, !0); - b.responseType = f; - b.onload = function(b, f) { + a.prototype._loadData = function(a, b, l) { + var g = 0, m = 0, t = a.length, k = []; + k.length = t; + for (var e = 0;e < t;e++) { + var f = this._baseUrl + a[e], c = new XMLHttpRequest, d = /\.tl$/i.test(f) ? "arraybuffer" : "json"; + c.open("GET", f, !0); + c.responseType = d; + c.onload = function(d, c) { return function(a) { - if ("json" === f) { + if ("json" === c) { if (a = this.response, "string" === typeof a) { try { - a = JSON.parse(a), n[b] = a; - } catch (e) { + a = JSON.parse(a), k[d] = a; + } catch (f) { m++; } } else { - n[b] = a; + k[d] = a; } } else { - n[b] = this.response; + k[d] = this.response; } - ++k; - g && g(k); - k === s && c(n); + ++g; + l && l(g); + g === t && b(k); }; - }(d, f); - b.send(); + }(e, d); + c.send(); } }; a.colors = "#0044ff #8c4b00 #cc5c33 #ff80c4 #ffbfd9 #ff8800 #8c5e00 #adcc33 #b380ff #bfd9ff #ffaa00 #8c0038 #bf8f30 #f780ff #cc99c9 #aaff00 #000073 #452699 #cc8166 #cca799 #000066 #992626 #cc6666 #ccc299 #ff6600 #526600 #992663 #cc6681 #99ccc2 #ff0066 #520066 #269973 #61994d #739699 #ffcc00 #006629 #269199 #94994d #738299 #ff0000 #590000 #234d8c #8c6246 #7d7399 #ee00ff #00474d #8c2385 #8c7546 #7c8c69 #eeff00 #4d003d #662e1a #62468c #8c6969 #6600ff #4c2900 #1a6657 #8c464f #8c6981 #44ff00 #401100 #1a2466 #663355 #567365 #d90074 #403300 #101d40 #59562d #66614d #cc0000 #002b40 #234010 #4c2626 #4d5e66 #00a3cc #400011 #231040 #4c3626 #464359 #0000bf #331b00 #80e6ff #311a33 #4d3939 #a69b00 #003329 #80ffb2 #331a20 #40303d #00a658 #40ffd9 #ffc480 #ffe1bf #332b26 #8c2500 #9933cc #80fff6 #ffbfbf #303326 #005e8c #33cc47 #b2ff80 #c8bfff #263332 #00708c #cc33ad #ffe680 #f2ffbf #262a33 #388c00 #335ccc #8091ff #bfffd9".split(" "); return a; }(); - c.TraceLogger = k; + b.TraceLogger = k; })(g.TraceLogger || (g.TraceLogger = {})); })(k.Profiler || (k.Profiler = {})); })(k.Tools || (k.Tools = {})); @@ -6372,37 +6376,37 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - (function(c) { + (function(b) { var k; - (function(c) { - c[c.START_HI = 0] = "START_HI"; - c[c.START_LO = 4] = "START_LO"; - c[c.STOP_HI = 8] = "STOP_HI"; - c[c.STOP_LO = 12] = "STOP_LO"; - c[c.TEXTID = 16] = "TEXTID"; - c[c.NEXTID = 20] = "NEXTID"; + (function(b) { + b[b.START_HI = 0] = "START_HI"; + b[b.START_LO = 4] = "START_LO"; + b[b.STOP_HI = 8] = "STOP_HI"; + b[b.STOP_LO = 12] = "STOP_LO"; + b[b.TEXTID = 16] = "TEXTID"; + b[b.NEXTID = 20] = "NEXTID"; })(k || (k = {})); k = function() { - function c(a) { + function b(a) { 2 <= a.length && (this._text = a[0], this._data = new DataView(a[1]), this._buffer = new g.TimelineBuffer, this._walkTree(0)); } - Object.defineProperty(c.prototype, "buffer", {get:function() { + Object.defineProperty(b.prototype, "buffer", {get:function() { return this._buffer; }, enumerable:!0, configurable:!0}); - c.prototype._walkTree = function(a) { + b.prototype._walkTree = function(a) { var h = this._data, g = this._buffer; do { - var l = a * c.ITEM_SIZE, k = 4294967295 * h.getUint32(l + 0) + h.getUint32(l + 4), m = 4294967295 * h.getUint32(l + 8) + h.getUint32(l + 12), s = h.getUint32(l + 16), l = h.getUint32(l + 20), v = 1 === (s & 1), s = s >>> 1, s = this._text[s]; - g.enter(s, null, k / 1E6); - v && this._walkTree(a + 1); - g.leave(s, null, m / 1E6); + var l = a * b.ITEM_SIZE, k = 4294967295 * h.getUint32(l + 0) + h.getUint32(l + 4), m = 4294967295 * h.getUint32(l + 8) + h.getUint32(l + 12), t = h.getUint32(l + 16), l = h.getUint32(l + 20), x = 1 === (t & 1), t = t >>> 1, t = this._text[t]; + g.enter(t, null, k / 1E6); + x && this._walkTree(a + 1); + g.leave(t, null, m / 1E6); a = l; } while (0 !== a); }; - c.ITEM_SIZE = 24; - return c; + b.ITEM_SIZE = 24; + return b; }(); - c.Thread = k; + b.Thread = k; })(g.TraceLogger || (g.TraceLogger = {})); })(k.Profiler || (k.Profiler = {})); })(k.Tools || (k.Tools = {})); @@ -6410,7 +6414,7 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.NumberUtilities.clamp, r = function() { + var b = k.NumberUtilities.clamp, r = function() { function a() { this.length = 0; this.lines = []; @@ -6419,9 +6423,9 @@ __extends = this.__extends || function(k, r) { this.repeat = []; this.length = 0; } - a.prototype.append = function(a, c) { - var g = this.lines; - 0 < g.length && g[g.length - 1] === a ? this.repeat[g.length - 1]++ : (this.lines.push(a), this.repeat.push(1), this.format.push(c ? {backgroundFillStyle:c} : void 0), this.time.push(performance.now()), this.length++); + a.prototype.append = function(a, b) { + var l = this.lines; + 0 < l.length && l[l.length - 1] === a ? this.repeat[l.length - 1]++ : (this.lines.push(a), this.repeat.push(1), this.format.push(b ? {backgroundFillStyle:b} : void 0), this.time.push(performance.now()), this.length++); }; a.prototype.get = function(a) { return this.lines[a]; @@ -6468,50 +6472,50 @@ __extends = this.__extends || function(k, r) { case q: this.showLineNumbers = !this.showLineNumbers; break; - case w: + case u: this.showLineTime = !this.showLineTime; break; - case s: + case t: h = -1; break; - case n: + case k: h = 1; break; - case c: + case b: h = -this.pageLineCount; break; - case g: + case l: h = this.pageLineCount; break; - case k: + case g: h = -this.lineIndex; break; case m: h = this.buffer.length - this.lineIndex; break; - case d: + case e: this.columnIndex -= a.metaKey ? 10 : 1; 0 > this.columnIndex && (this.columnIndex = 0); a.preventDefault(); break; - case e: + case f: this.columnIndex += a.metaKey ? 10 : 1; a.preventDefault(); break; - case b: + case c: a.metaKey && (this.selection = {start:0, end:this.buffer.length}, a.preventDefault()); break; - case f: + case d: if (a.metaKey) { - var V = ""; + var n = ""; if (this.selection) { - for (var Q = this.selection.start;Q <= this.selection.end;Q++) { - V += this.buffer.get(Q) + "\n"; + for (var R = this.selection.start;R <= this.selection.end;R++) { + n += this.buffer.get(R) + "\n"; } } else { - V = this.buffer.get(this.lineIndex); + n = this.buffer.get(this.lineIndex); } - alert(V); + alert(n); } ; } @@ -6520,24 +6524,24 @@ __extends = this.__extends || function(k, r) { h && a.shiftKey ? this.selection ? this.lineIndex > this.selection.start ? this.selection.end = this.lineIndex : this.selection.start = this.lineIndex : 0 < h ? this.selection = {start:this.lineIndex - h, end:this.lineIndex} : 0 > h && (this.selection = {start:this.lineIndex, end:this.lineIndex - h}) : h && (this.selection = null); this.paint(); }.bind(this), !1); - a.addEventListener("focus", function(b) { + a.addEventListener("focus", function(d) { this.hasFocus = !0; }.bind(this), !1); - a.addEventListener("blur", function(b) { + a.addEventListener("blur", function(d) { this.hasFocus = !1; }.bind(this), !1); - var c = 33, g = 34, k = 36, m = 35, s = 38, n = 40, d = 37, e = 39, b = 65, f = 67, q = 78, w = 84; + var b = 33, l = 34, g = 36, m = 35, t = 38, k = 40, e = 37, f = 39, c = 65, d = 67, q = 78, u = 84; } a.prototype.resize = function() { this._resizeHandler(); }; a.prototype._resizeHandler = function() { - var a = this.canvas.parentElement, c = a.clientWidth, a = a.clientHeight - 1, g = window.devicePixelRatio || 1; - 1 !== g ? (this.ratio = g / 1, this.canvas.width = c * this.ratio, this.canvas.height = a * this.ratio, this.canvas.style.width = c + "px", this.canvas.style.height = a + "px") : (this.ratio = 1, this.canvas.width = c, this.canvas.height = a); + var a = this.canvas.parentElement, b = a.clientWidth, a = a.clientHeight - 1, l = window.devicePixelRatio || 1; + 1 !== l ? (this.ratio = l / 1, this.canvas.width = b * this.ratio, this.canvas.height = a * this.ratio, this.canvas.style.width = b + "px", this.canvas.style.height = a + "px") : (this.ratio = 1, this.canvas.width = b, this.canvas.height = a); this.pageLineCount = Math.floor(this.canvas.height / this.lineHeight); }; a.prototype.gotoLine = function(a) { - this.lineIndex = c(a, 0, this.buffer.length - 1); + this.lineIndex = b(a, 0, this.buffer.length - 1); }; a.prototype.scrollIntoView = function() { this.lineIndex < this.pageIndex ? this.pageIndex = this.lineIndex : this.lineIndex >= this.pageIndex + this.pageLineCount && (this.pageIndex = this.lineIndex - this.pageLineCount + 1); @@ -6549,34 +6553,34 @@ __extends = this.__extends || function(k, r) { a.prototype.paint = function() { var a = this.pageLineCount; this.pageIndex + a > this.buffer.length && (a = this.buffer.length - this.pageIndex); - var c = this.textMarginLeft, g = c + (this.showLineNumbers ? 5 * (String(this.buffer.length).length + 2) : 0), k = g + (this.showLineTime ? 40 : 10), m = k + 25; + var b = this.textMarginLeft, l = b + (this.showLineNumbers ? 5 * (String(this.buffer.length).length + 2) : 0), g = l + (this.showLineTime ? 40 : 10), m = g + 25; this.context.font = this.fontSize + 'px Consolas, "Liberation Mono", Courier, monospace'; this.context.setTransform(this.ratio, 0, 0, this.ratio, 0, 0); - for (var s = this.canvas.width, n = this.lineHeight, d = 0;d < a;d++) { - var e = d * this.lineHeight, b = this.pageIndex + d, f = this.buffer.get(b), q = this.buffer.getFormat(b), w = this.buffer.getRepeat(b), G = 1 < b ? this.buffer.getTime(b) - this.buffer.getTime(0) : 0; - this.context.fillStyle = b % 2 ? this.lineColor : this.alternateLineColor; + for (var t = this.canvas.width, k = this.lineHeight, e = 0;e < a;e++) { + var f = e * this.lineHeight, c = this.pageIndex + e, d = this.buffer.get(c), q = this.buffer.getFormat(c), u = this.buffer.getRepeat(c), I = 1 < c ? this.buffer.getTime(c) - this.buffer.getTime(0) : 0; + this.context.fillStyle = c % 2 ? this.lineColor : this.alternateLineColor; q && q.backgroundFillStyle && (this.context.fillStyle = q.backgroundFillStyle); - this.context.fillRect(0, e, s, n); + this.context.fillRect(0, f, t, k); this.context.fillStyle = this.selectionTextColor; this.context.fillStyle = this.textColor; - this.selection && b >= this.selection.start && b <= this.selection.end && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, e, s, n), this.context.fillStyle = this.selectionTextColor); - this.hasFocus && b === this.lineIndex && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, e, s, n), this.context.fillStyle = this.selectionTextColor); - 0 < this.columnIndex && (f = f.substring(this.columnIndex)); - e = (d + 1) * this.lineHeight - this.textMarginBottom; - this.showLineNumbers && this.context.fillText(String(b), c, e); - this.showLineTime && this.context.fillText(G.toFixed(1).padLeft(" ", 6), g, e); - 1 < w && this.context.fillText(String(w).padLeft(" ", 3), k, e); - this.context.fillText(f, m, e); + this.selection && c >= this.selection.start && c <= this.selection.end && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, f, t, k), this.context.fillStyle = this.selectionTextColor); + this.hasFocus && c === this.lineIndex && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, f, t, k), this.context.fillStyle = this.selectionTextColor); + 0 < this.columnIndex && (d = d.substring(this.columnIndex)); + f = (e + 1) * this.lineHeight - this.textMarginBottom; + this.showLineNumbers && this.context.fillText(String(c), b, f); + this.showLineTime && this.context.fillText(I.toFixed(1).padLeft(" ", 6), l, f); + 1 < u && this.context.fillText(String(u).padLeft(" ", 3), g, f); + this.context.fillText(d, m, f); } }; a.prototype.refreshEvery = function(a) { - function c() { - g.paint(); - g.refreshFrequency && setTimeout(c, g.refreshFrequency); + function b() { + l.paint(); + l.refreshFrequency && setTimeout(b, l.refreshFrequency); } - var g = this; + var l = this; this.refreshFrequency = a; - g.refreshFrequency && setTimeout(c, g.refreshFrequency); + l.refreshFrequency && setTimeout(b, l.refreshFrequency); }; a.prototype.isScrolledToBottom = function() { return this.lineIndex === this.buffer.length - 1; @@ -6590,8 +6594,8 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - var c = function() { - function c(g) { + var b = function() { + function b(g) { this._lastWeightedTime = this._lastTime = this._index = 0; this._gradient = "#FF0000 #FF1100 #FF2300 #FF3400 #FF4600 #FF5700 #FF6900 #FF7B00 #FF8C00 #FF9E00 #FFAF00 #FFC100 #FFD300 #FFE400 #FFF600 #F7FF00 #E5FF00 #D4FF00 #C2FF00 #B0FF00 #9FFF00 #8DFF00 #7CFF00 #6AFF00 #58FF00 #47FF00 #35FF00 #24FF00 #12FF00 #00FF00".split(" "); this._container = g; @@ -6600,54 +6604,54 @@ __extends = this.__extends || function(k, r) { this._context = this._canvas.getContext("2d"); this._listenForContainerSizeChanges(); } - c.prototype._listenForContainerSizeChanges = function() { - var c = this._containerWidth, a = this._containerHeight; + b.prototype._listenForContainerSizeChanges = function() { + var b = this._containerWidth, a = this._containerHeight; this._onContainerSizeChanged(); var h = this; setInterval(function() { - if (c !== h._containerWidth || a !== h._containerHeight) { - h._onContainerSizeChanged(), c = h._containerWidth, a = h._containerHeight; + if (b !== h._containerWidth || a !== h._containerHeight) { + h._onContainerSizeChanged(), b = h._containerWidth, a = h._containerHeight; } }, 10); }; - c.prototype._onContainerSizeChanged = function() { - var c = this._containerWidth, a = this._containerHeight, h = window.devicePixelRatio || 1; - 1 !== h ? (this._ratio = h / 1, this._canvas.width = c * this._ratio, this._canvas.height = a * this._ratio, this._canvas.style.width = c + "px", this._canvas.style.height = a + "px") : (this._ratio = 1, this._canvas.width = c, this._canvas.height = a); + b.prototype._onContainerSizeChanged = function() { + var b = this._containerWidth, a = this._containerHeight, h = window.devicePixelRatio || 1; + 1 !== h ? (this._ratio = h / 1, this._canvas.width = b * this._ratio, this._canvas.height = a * this._ratio, this._canvas.style.width = b + "px", this._canvas.style.height = a + "px") : (this._ratio = 1, this._canvas.width = b, this._canvas.height = a); }; - Object.defineProperty(c.prototype, "_containerWidth", {get:function() { + Object.defineProperty(b.prototype, "_containerWidth", {get:function() { return this._container.clientWidth; }, enumerable:!0, configurable:!0}); - Object.defineProperty(c.prototype, "_containerHeight", {get:function() { + Object.defineProperty(b.prototype, "_containerHeight", {get:function() { return this._container.clientHeight; }, enumerable:!0, configurable:!0}); - c.prototype.tickAndRender = function(c, a) { - void 0 === c && (c = !1); + b.prototype.tickAndRender = function(b, a) { + void 0 === b && (b = !1); void 0 === a && (a = 0); if (0 === this._lastTime) { this._lastTime = performance.now(); } else { var h = 1 * (performance.now() - this._lastTime) + 0 * this._lastWeightedTime, g = this._context, l = 2 * this._ratio, k = 30 * this._ratio, m = performance; m.memory && (k += 30 * this._ratio); - var s = (this._canvas.width - k) / (l + 1) | 0, v = this._index++; - this._index > s && (this._index = 0); - s = this._canvas.height; + var t = (this._canvas.width - k) / (l + 1) | 0, x = this._index++; + this._index > t && (this._index = 0); + t = this._canvas.height; g.globalAlpha = 1; g.fillStyle = "black"; - g.fillRect(k + v * (l + 1), 0, 4 * l, this._canvas.height); - var d = Math.min(1E3 / 60 / h, 1); + g.fillRect(k + x * (l + 1), 0, 4 * l, this._canvas.height); + var e = Math.min(1E3 / 60 / h, 1); g.fillStyle = "#00FF00"; - g.globalAlpha = c ? .5 : 1; - d = s / 2 * d | 0; - g.fillRect(k + v * (l + 1), s - d, l, d); - a && (d = Math.min(1E3 / 240 / a, 1), g.fillStyle = "#FF6347", d = s / 2 * d | 0, g.fillRect(k + v * (l + 1), s / 2 - d, l, d)); - 0 === v % 16 && (g.globalAlpha = 1, g.fillStyle = "black", g.fillRect(0, 0, k, this._canvas.height), g.fillStyle = "white", g.font = 8 * this._ratio + "px Arial", g.textBaseline = "middle", l = (1E3 / h).toFixed(0), a && (l += " " + a.toFixed(0)), m.memory && (l += " " + (m.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)), g.fillText(l, 2 * this._ratio, this._containerHeight / 2 * this._ratio)); + g.globalAlpha = b ? .5 : 1; + e = t / 2 * e | 0; + g.fillRect(k + x * (l + 1), t - e, l, e); + a && (e = Math.min(1E3 / 240 / a, 1), g.fillStyle = "#FF6347", e = t / 2 * e | 0, g.fillRect(k + x * (l + 1), t / 2 - e, l, e)); + 0 === x % 16 && (g.globalAlpha = 1, g.fillStyle = "black", g.fillRect(0, 0, k, this._canvas.height), g.fillStyle = "white", g.font = 8 * this._ratio + "px Arial", g.textBaseline = "middle", l = (1E3 / h).toFixed(0), a && (l += " " + a.toFixed(0)), m.memory && (l += " " + (m.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)), g.fillText(l, 2 * this._ratio, this._containerHeight / 2 * this._ratio)); this._lastTime = performance.now(); this._lastWeightedTime = h; } }; - return c; + return b; }(); - g.FPS = c; + g.FPS = b; })(k.Mini || (k.Mini = {})); })(k.Tools || (k.Tools = {})); })(Shumway || (Shumway = {})); @@ -6655,342 +6659,361 @@ console.timeEnd("Load Shared Dependencies"); console.time("Load GFX Dependencies"); (function(k) { (function(r) { - function g(b, f, a) { - return p && a ? "string" === typeof f ? (b = k.ColorUtilities.cssStyleToRGBA(f), k.ColorUtilities.rgbaToCSSStyle(a.transformRGBA(b))) : f instanceof CanvasGradient && f._template ? f._template.createCanvasGradient(b, a) : f : f; + function g(d, c, a) { + return p && a ? "string" === typeof c ? (d = k.ColorUtilities.cssStyleToRGBA(c), k.ColorUtilities.rgbaToCSSStyle(a.transformRGBA(d))) : c instanceof CanvasGradient && c._template ? c._template.createCanvasGradient(d, a) : c : c; } - var c = k.NumberUtilities.clamp; - (function(b) { - b[b.None = 0] = "None"; - b[b.Brief = 1] = "Brief"; - b[b.Verbose = 2] = "Verbose"; + var b = k.NumberUtilities.clamp; + (function(d) { + d[d.None = 0] = "None"; + d[d.Brief = 1] = "Brief"; + d[d.Verbose = 2] = "Verbose"; })(r.TraceLevel || (r.TraceLevel = {})); - var t = k.Metrics.Counter.instance; + var v = k.Metrics.Counter.instance; r.frameCounter = new k.Metrics.Counter(!0); r.traceLevel = 2; r.writer = null; - r.frameCount = function(b) { - t.count(b); - r.frameCounter.count(b); + r.frameCount = function(d) { + v.count(d); + r.frameCounter.count(d); }; r.timelineBuffer = new k.Tools.Profiler.TimelineBuffer("GFX"); - r.enterTimeline = function(b, f) { + r.enterTimeline = function(d, c) { }; - r.leaveTimeline = function(b, f) { + r.leaveTimeline = function(d, c) { }; var n = null, a = null, h = null, p = !0; - p && "undefined" !== typeof CanvasRenderingContext2D && (n = CanvasGradient.prototype.addColorStop, a = CanvasRenderingContext2D.prototype.createLinearGradient, h = CanvasRenderingContext2D.prototype.createRadialGradient, CanvasRenderingContext2D.prototype.createLinearGradient = function(b, f, a, e) { - return(new u(b, f, a, e)).createCanvasGradient(this, null); - }, CanvasRenderingContext2D.prototype.createRadialGradient = function(b, f, a, e, d, c) { - return(new m(b, f, a, e, d, c)).createCanvasGradient(this, null); - }, CanvasGradient.prototype.addColorStop = function(b, f) { - n.call(this, b, f); - this._template.addColorStop(b, f); + p && "undefined" !== typeof CanvasRenderingContext2D && (n = CanvasGradient.prototype.addColorStop, a = CanvasRenderingContext2D.prototype.createLinearGradient, h = CanvasRenderingContext2D.prototype.createRadialGradient, CanvasRenderingContext2D.prototype.createLinearGradient = function(d, c, a, f) { + return (new w(d, c, a, f)).createCanvasGradient(this, null); + }, CanvasRenderingContext2D.prototype.createRadialGradient = function(d, c, a, f, e, b) { + return (new m(d, c, a, f, e, b)).createCanvasGradient(this, null); + }, CanvasGradient.prototype.addColorStop = function(d, c) { + n.call(this, d, c); + this._template.addColorStop(d, c); }); var l = function() { - return function(b, f) { - this.offset = b; - this.color = f; + return function(d, c) { + this.offset = d; + this.color = c; }; - }(), u = function() { - function b(f, a, e, d) { - this.x0 = f; + }(), w = function() { + function d(c, a, f, e) { + this.x0 = c; this.y0 = a; - this.x1 = e; - this.y1 = d; + this.x1 = f; + this.y1 = e; this.colorStops = []; } - b.prototype.addColorStop = function(b, f) { - this.colorStops.push(new l(b, f)); + d.prototype.addColorStop = function(d, c) { + this.colorStops.push(new l(d, c)); }; - b.prototype.createCanvasGradient = function(b, f) { - for (var e = a.call(b, this.x0, this.y0, this.x1, this.y1), d = this.colorStops, c = 0;c < d.length;c++) { - var q = d[c], w = q.offset, q = q.color, q = f ? g(b, q, f) : q; - n.call(e, w, q); + d.prototype.createCanvasGradient = function(d, c) { + for (var f = a.call(d, this.x0, this.y0, this.x1, this.y1), e = this.colorStops, b = 0;b < e.length;b++) { + var q = e[b], u = q.offset, q = q.color, q = c ? g(d, q, c) : q; + n.call(f, u, q); } - e._template = this; - e._transform = this._transform; - return e; + f._template = this; + f._transform = this._transform; + return f; }; - return b; + return d; }(), m = function() { - function b(f, a, e, d, c, q) { - this.x0 = f; + function d(c, a, f, e, b, q) { + this.x0 = c; this.y0 = a; - this.r0 = e; - this.x1 = d; - this.y1 = c; + this.r0 = f; + this.x1 = e; + this.y1 = b; this.r1 = q; this.colorStops = []; } - b.prototype.addColorStop = function(b, f) { - this.colorStops.push(new l(b, f)); + d.prototype.addColorStop = function(d, c) { + this.colorStops.push(new l(d, c)); }; - b.prototype.createCanvasGradient = function(b, f) { - for (var a = h.call(b, this.x0, this.y0, this.r0, this.x1, this.y1, this.r1), e = this.colorStops, d = 0;d < e.length;d++) { - var c = e[d], q = c.offset, c = c.color, c = f ? g(b, c, f) : c; - n.call(a, q, c); + d.prototype.createCanvasGradient = function(d, c) { + for (var a = h.call(d, this.x0, this.y0, this.r0, this.x1, this.y1, this.r1), f = this.colorStops, e = 0;e < f.length;e++) { + var b = f[e], q = b.offset, b = b.color, b = c ? g(d, b, c) : b; + n.call(a, q, b); } a._template = this; a._transform = this._transform; return a; }; - return b; - }(), s; - (function(b) { - b[b.ClosePath = 1] = "ClosePath"; - b[b.MoveTo = 2] = "MoveTo"; - b[b.LineTo = 3] = "LineTo"; - b[b.QuadraticCurveTo = 4] = "QuadraticCurveTo"; - b[b.BezierCurveTo = 5] = "BezierCurveTo"; - b[b.ArcTo = 6] = "ArcTo"; - b[b.Rect = 7] = "Rect"; - b[b.Arc = 8] = "Arc"; - b[b.Save = 9] = "Save"; - b[b.Restore = 10] = "Restore"; - b[b.Transform = 11] = "Transform"; - })(s || (s = {})); - var v = function() { - function b(f) { - this._commands = new Uint8Array(b._arrayBufferPool.acquire(8), 0, 8); + return d; + }(), t; + (function(d) { + d[d.ClosePath = 1] = "ClosePath"; + d[d.MoveTo = 2] = "MoveTo"; + d[d.LineTo = 3] = "LineTo"; + d[d.QuadraticCurveTo = 4] = "QuadraticCurveTo"; + d[d.BezierCurveTo = 5] = "BezierCurveTo"; + d[d.ArcTo = 6] = "ArcTo"; + d[d.Rect = 7] = "Rect"; + d[d.Arc = 8] = "Arc"; + d[d.Save = 9] = "Save"; + d[d.Restore = 10] = "Restore"; + d[d.Transform = 11] = "Transform"; + })(t || (t = {})); + var x = function() { + function d(c) { + this._commands = new Uint8Array(d._arrayBufferPool.acquire(8), 0, 8); this._commandPosition = 0; - this._data = new Float64Array(b._arrayBufferPool.acquire(8 * Float64Array.BYTES_PER_ELEMENT), 0, 8); + this._data = new Float64Array(d._arrayBufferPool.acquire(8 * Float64Array.BYTES_PER_ELEMENT), 0, 8); this._dataPosition = 0; - f instanceof b && this.addPath(f); + c instanceof d && this.addPath(c); } - b._apply = function(b, f) { - var a = b._commands, e = b._data, d = 0, c = 0; - f.beginPath(); - for (var q = b._commandPosition;d < q;) { - switch(a[d++]) { + d._apply = function(d, c) { + var a = d._commands, f = d._data, e = 0, b = 0; + c.beginPath(); + for (var q = d._commandPosition;e < q;) { + switch(a[e++]) { case 1: - f.closePath(); + c.closePath(); break; case 2: - f.moveTo(e[c++], e[c++]); + c.moveTo(f[b++], f[b++]); break; case 3: - f.lineTo(e[c++], e[c++]); + c.lineTo(f[b++], f[b++]); break; case 4: - f.quadraticCurveTo(e[c++], e[c++], e[c++], e[c++]); + c.quadraticCurveTo(f[b++], f[b++], f[b++], f[b++]); break; case 5: - f.bezierCurveTo(e[c++], e[c++], e[c++], e[c++], e[c++], e[c++]); + c.bezierCurveTo(f[b++], f[b++], f[b++], f[b++], f[b++], f[b++]); break; case 6: - f.arcTo(e[c++], e[c++], e[c++], e[c++], e[c++]); + c.arcTo(f[b++], f[b++], f[b++], f[b++], f[b++]); break; case 7: - f.rect(e[c++], e[c++], e[c++], e[c++]); + c.rect(f[b++], f[b++], f[b++], f[b++]); break; case 8: - f.arc(e[c++], e[c++], e[c++], e[c++], e[c++], !!e[c++]); + c.arc(f[b++], f[b++], f[b++], f[b++], f[b++], !!f[b++]); break; case 9: - f.save(); + c.save(); break; case 10: - f.restore(); + c.restore(); break; case 11: - f.transform(e[c++], e[c++], e[c++], e[c++], e[c++], e[c++]); + c.transform(f[b++], f[b++], f[b++], f[b++], f[b++], f[b++]); } } }; - b.prototype._ensureCommandCapacity = function(f) { - this._commands = b._arrayBufferPool.ensureUint8ArrayLength(this._commands, f); + d.prototype._ensureCommandCapacity = function(c) { + this._commands = d._arrayBufferPool.ensureUint8ArrayLength(this._commands, c); }; - b.prototype._ensureDataCapacity = function(f) { - this._data = b._arrayBufferPool.ensureFloat64ArrayLength(this._data, f); + d.prototype._ensureDataCapacity = function(c) { + this._data = d._arrayBufferPool.ensureFloat64ArrayLength(this._data, c); }; - b.prototype._writeCommand = function(b) { + d.prototype._writeCommand = function(d) { this._commandPosition >= this._commands.length && this._ensureCommandCapacity(this._commandPosition + 1); - this._commands[this._commandPosition++] = b; + this._commands[this._commandPosition++] = d; }; - b.prototype._writeData = function(b, f, a, e, d, c) { + d.prototype._writeData = function(d, c, a, f, b, e) { var q = arguments.length; this._dataPosition + q >= this._data.length && this._ensureDataCapacity(this._dataPosition + q); - var w = this._data, h = this._dataPosition; - w[h] = b; - w[h + 1] = f; - 2 < q && (w[h + 2] = a, w[h + 3] = e, 4 < q && (w[h + 4] = d, 6 === q && (w[h + 5] = c))); + var u = this._data, m = this._dataPosition; + u[m] = d; + u[m + 1] = c; + 2 < q && (u[m + 2] = a, u[m + 3] = f, 4 < q && (u[m + 4] = b, 6 === q && (u[m + 5] = e))); this._dataPosition += q; }; - b.prototype.closePath = function() { + d.prototype.closePath = function() { this._writeCommand(1); }; - b.prototype.moveTo = function(b, f) { + d.prototype.moveTo = function(d, c) { this._writeCommand(2); - this._writeData(b, f); + this._writeData(d, c); }; - b.prototype.lineTo = function(b, f) { + d.prototype.lineTo = function(d, c) { this._writeCommand(3); - this._writeData(b, f); + this._writeData(d, c); }; - b.prototype.quadraticCurveTo = function(b, f, a, e) { + d.prototype.quadraticCurveTo = function(d, c, a, f) { this._writeCommand(4); - this._writeData(b, f, a, e); + this._writeData(d, c, a, f); }; - b.prototype.bezierCurveTo = function(b, f, a, e, d, c) { + d.prototype.bezierCurveTo = function(d, c, a, f, b, e) { this._writeCommand(5); - this._writeData(b, f, a, e, d, c); + this._writeData(d, c, a, f, b, e); }; - b.prototype.arcTo = function(b, f, a, e, d) { + d.prototype.arcTo = function(d, c, a, f, b) { this._writeCommand(6); - this._writeData(b, f, a, e, d); + this._writeData(d, c, a, f, b); }; - b.prototype.rect = function(b, f, a, e) { + d.prototype.rect = function(d, c, a, f) { this._writeCommand(7); - this._writeData(b, f, a, e); + this._writeData(d, c, a, f); }; - b.prototype.arc = function(b, f, a, e, d, c) { + d.prototype.arc = function(d, c, a, f, b, e) { this._writeCommand(8); - this._writeData(b, f, a, e, d, +c); + this._writeData(d, c, a, f, b, +e); }; - b.prototype.addPath = function(b, f) { - f && (this._writeCommand(9), this._writeCommand(11), this._writeData(f.a, f.b, f.c, f.d, f.e, f.f)); - var a = this._commandPosition + b._commandPosition; + d.prototype.addPath = function(d, c) { + c && (this._writeCommand(9), this._writeCommand(11), this._writeData(c.a, c.b, c.c, c.d, c.e, c.f)); + var a = this._commandPosition + d._commandPosition; a >= this._commands.length && this._ensureCommandCapacity(a); - for (var e = this._commands, d = b._commands, c = this._commandPosition, q = 0;c < a;c++) { - e[c] = d[q++]; + for (var f = this._commands, b = d._commands, e = this._commandPosition, q = 0;e < a;e++) { + f[e] = b[q++]; } this._commandPosition = a; - a = this._dataPosition + b._dataPosition; + a = this._dataPosition + d._dataPosition; a >= this._data.length && this._ensureDataCapacity(a); - e = this._data; - d = b._data; - c = this._dataPosition; - for (q = 0;c < a;c++) { - e[c] = d[q++]; + f = this._data; + b = d._data; + e = this._dataPosition; + for (q = 0;e < a;e++) { + f[e] = b[q++]; } this._dataPosition = a; - f && this._writeCommand(10); + c && this._writeCommand(10); }; - b._arrayBufferPool = new k.ArrayBufferPool; - return b; + d._arrayBufferPool = new k.ArrayBufferPool; + return d; }(); - r.Path = v; + r.Path = x; if ("undefined" !== typeof CanvasRenderingContext2D && ("undefined" === typeof Path2D || !Path2D.prototype.addPath)) { - var d = CanvasRenderingContext2D.prototype.fill; - CanvasRenderingContext2D.prototype.fill = function(b, f) { - arguments.length && (b instanceof v ? v._apply(b, this) : f = b); - f ? d.call(this, f) : d.call(this); + var e = CanvasRenderingContext2D.prototype.fill; + CanvasRenderingContext2D.prototype.fill = function(d, c) { + arguments.length && (d instanceof x ? x._apply(d, this) : c = d); + c ? e.call(this, c) : e.call(this); }; - var e = CanvasRenderingContext2D.prototype.stroke; - CanvasRenderingContext2D.prototype.stroke = function(b, f) { - arguments.length && (b instanceof v ? v._apply(b, this) : f = b); - f ? e.call(this, f) : e.call(this); + var f = CanvasRenderingContext2D.prototype.stroke; + CanvasRenderingContext2D.prototype.stroke = function(d, c) { + arguments.length && (d instanceof x ? x._apply(d, this) : c = d); + c ? f.call(this, c) : f.call(this); }; - var b = CanvasRenderingContext2D.prototype.clip; - CanvasRenderingContext2D.prototype.clip = function(f, a) { - arguments.length && (f instanceof v ? v._apply(f, this) : a = f); - a ? b.call(this, a) : b.call(this); + var c = CanvasRenderingContext2D.prototype.clip; + CanvasRenderingContext2D.prototype.clip = function(d, a) { + arguments.length && (d instanceof x ? x._apply(d, this) : a = d); + a ? c.call(this, a) : c.call(this); }; - window.Path2D = v; + window.Path2D = x; } if ("undefined" !== typeof CanvasPattern && Path2D.prototype.addPath) { - s = function(b) { - this._transform = b; - this._template && (this._template._transform = b); + t = function(d) { + this._transform = d; + this._template && (this._template._transform = d); }; - CanvasPattern.prototype.setTransform || (CanvasPattern.prototype.setTransform = s); - CanvasGradient.prototype.setTransform || (CanvasGradient.prototype.setTransform = s); - var f = CanvasRenderingContext2D.prototype.fill, q = CanvasRenderingContext2D.prototype.stroke; - CanvasRenderingContext2D.prototype.fill = function(b, a) { - var e = !!this.fillStyle._transform; - if ((this.fillStyle instanceof CanvasPattern || this.fillStyle instanceof CanvasGradient) && e && b instanceof Path2D) { - var e = this.fillStyle._transform, d; + CanvasPattern.prototype.setTransform || (CanvasPattern.prototype.setTransform = t); + CanvasGradient.prototype.setTransform || (CanvasGradient.prototype.setTransform = t); + var d = CanvasRenderingContext2D.prototype.fill, q = CanvasRenderingContext2D.prototype.stroke; + CanvasRenderingContext2D.prototype.fill = function(c, a) { + var f = !!this.fillStyle._transform; + if ((this.fillStyle instanceof CanvasPattern || this.fillStyle instanceof CanvasGradient) && f && c instanceof Path2D) { + var f = this.fillStyle._transform, b; try { - d = e.inverse(); - } catch (c) { - d = e = r.Geometry.Matrix.createIdentitySVGMatrix(); + b = f.inverse(); + } catch (e) { + b = f = r.Geometry.Matrix.createIdentitySVGMatrix(); } - this.transform(e.a, e.b, e.c, e.d, e.e, e.f); - e = new Path2D; - e.addPath(b, d); - f.call(this, e, a); - this.transform(d.a, d.b, d.c, d.d, d.e, d.f); + this.transform(f.a, f.b, f.c, f.d, f.e, f.f); + f = new Path2D; + f.addPath(c, b); + d.call(this, f, a); + this.transform(b.a, b.b, b.c, b.d, b.e, b.f); } else { - 0 === arguments.length ? f.call(this) : 1 === arguments.length ? f.call(this, b) : 2 === arguments.length && f.call(this, b, a); + 0 === arguments.length ? d.call(this) : 1 === arguments.length ? d.call(this, c) : 2 === arguments.length && d.call(this, c, a); } }; - CanvasRenderingContext2D.prototype.stroke = function(b) { - var f = !!this.strokeStyle._transform; - if ((this.strokeStyle instanceof CanvasPattern || this.strokeStyle instanceof CanvasGradient) && f && b instanceof Path2D) { - var a = this.strokeStyle._transform, f = a.inverse(); + CanvasRenderingContext2D.prototype.stroke = function(d) { + var c = !!this.strokeStyle._transform; + if ((this.strokeStyle instanceof CanvasPattern || this.strokeStyle instanceof CanvasGradient) && c && d instanceof Path2D) { + var a = this.strokeStyle._transform, c = a.inverse(); this.transform(a.a, a.b, a.c, a.d, a.e, a.f); a = new Path2D; - a.addPath(b, f); - var e = this.lineWidth; - this.lineWidth *= (f.a + f.d) / 2; + a.addPath(d, c); + var f = this.lineWidth; + this.lineWidth *= (c.a + c.d) / 2; q.call(this, a); - this.transform(f.a, f.b, f.c, f.d, f.e, f.f); - this.lineWidth = e; + this.transform(c.a, c.b, c.c, c.d, c.e, c.f); + this.lineWidth = f; } else { - 0 === arguments.length ? q.call(this) : 1 === arguments.length && q.call(this, b); + 0 === arguments.length ? q.call(this) : 1 === arguments.length && q.call(this, d); } }; } "undefined" !== typeof CanvasRenderingContext2D && function() { - function b() { + function d() { return r.Geometry.Matrix.createSVGMatrixFromArray(this.mozCurrentTransform); } - CanvasRenderingContext2D.prototype.flashStroke = function(b, f) { - var a = this.currentTransform; - if (a) { - var e = new Path2D; - e.addPath(b, a); - var d = this.lineWidth; + var c = "currentTransform" in CanvasRenderingContext2D.prototype; + CanvasRenderingContext2D.prototype.flashStroke = function(d, a) { + if (c) { + var f = this.currentTransform, e = new Path2D; + e.addPath(d, f); + var q = this.lineWidth; this.setTransform(1, 0, 0, 1, 0, 0); - switch(f) { + switch(a) { case 1: - this.lineWidth = c(d * (k.getScaleX(a) + k.getScaleY(a)) / 2, 1, 1024); + this.lineWidth = b(q * (k.getScaleX(f) + k.getScaleY(f)) / 2, 1, 1024); break; case 2: - this.lineWidth = c(d * k.getScaleY(a), 1, 1024); + this.lineWidth = b(q * k.getScaleY(f), 1, 1024); break; case 3: - this.lineWidth = c(d * k.getScaleX(a), 1, 1024); + this.lineWidth = b(q * k.getScaleX(f), 1, 1024); } this.stroke(e); - this.setTransform(a.a, a.b, a.c, a.d, a.e, a.f); - this.lineWidth = d; + this.setTransform(f.a, f.b, f.c, f.d, f.e, f.f); + this.lineWidth = q; } else { - this.stroke(b); + this.stroke(d); } }; - !("currentTransform" in CanvasRenderingContext2D.prototype) && "mozCurrentTransform" in CanvasRenderingContext2D.prototype && Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:b}); + if (!c) { + if ("mozCurrentTransform" in CanvasRenderingContext2D.prototype) { + Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:d}), c = !0; + } else { + var a = CanvasRenderingContext2D.prototype.setTransform; + CanvasRenderingContext2D.prototype.setTransform = function(d, c, f, b, e, q) { + var u = this.currentTransform; + u.a = d; + u.b = c; + u.c = f; + u.d = b; + u.e = e; + u.f = q; + a.call(this, d, c, f, b, e, q); + }; + Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:function() { + return this._currentTransform || (this._currentTransform = r.Geometry.Matrix.createIdentitySVGMatrix()); + }}); + } + } }(); if ("undefined" !== typeof CanvasRenderingContext2D && void 0 === CanvasRenderingContext2D.prototype.globalColorMatrix) { - var w = CanvasRenderingContext2D.prototype.fill, G = CanvasRenderingContext2D.prototype.stroke, U = CanvasRenderingContext2D.prototype.fillText, V = CanvasRenderingContext2D.prototype.strokeText; + var u = CanvasRenderingContext2D.prototype.fill, I = CanvasRenderingContext2D.prototype.stroke, H = CanvasRenderingContext2D.prototype.fillText, ea = CanvasRenderingContext2D.prototype.strokeText; Object.defineProperty(CanvasRenderingContext2D.prototype, "globalColorMatrix", {get:function() { return this._globalColorMatrix ? this._globalColorMatrix.clone() : null; - }, set:function(b) { - b ? this._globalColorMatrix ? this._globalColorMatrix.set(b) : this._globalColorMatrix = b.clone() : this._globalColorMatrix = null; + }, set:function(d) { + d ? this._globalColorMatrix ? this._globalColorMatrix.set(d) : this._globalColorMatrix = d.clone() : this._globalColorMatrix = null; }, enumerable:!0, configurable:!0}); - CanvasRenderingContext2D.prototype.fill = function(b, f) { + CanvasRenderingContext2D.prototype.fill = function(d, c) { var a = null; this._globalColorMatrix && (a = this.fillStyle, this.fillStyle = g(this, this.fillStyle, this._globalColorMatrix)); - 0 === arguments.length ? w.call(this) : 1 === arguments.length ? w.call(this, b) : 2 === arguments.length && w.call(this, b, f); + 0 === arguments.length ? u.call(this) : 1 === arguments.length ? u.call(this, d) : 2 === arguments.length && u.call(this, d, c); a && (this.fillStyle = a); }; - CanvasRenderingContext2D.prototype.stroke = function(b, f) { + CanvasRenderingContext2D.prototype.stroke = function(d, c) { var a = null; this._globalColorMatrix && (a = this.strokeStyle, this.strokeStyle = g(this, this.strokeStyle, this._globalColorMatrix)); - 0 === arguments.length ? G.call(this) : 1 === arguments.length && G.call(this, b); + 0 === arguments.length ? I.call(this) : 1 === arguments.length && I.call(this, d); a && (this.strokeStyle = a); }; - CanvasRenderingContext2D.prototype.fillText = function(b, f, a, e) { - var d = null; - this._globalColorMatrix && (d = this.fillStyle, this.fillStyle = g(this, this.fillStyle, this._globalColorMatrix)); - 3 === arguments.length ? U.call(this, b, f, a) : 4 === arguments.length ? U.call(this, b, f, a, e) : k.Debug.unexpected(); - d && (this.fillStyle = d); + CanvasRenderingContext2D.prototype.fillText = function(d, c, a, f) { + var b = null; + this._globalColorMatrix && (b = this.fillStyle, this.fillStyle = g(this, this.fillStyle, this._globalColorMatrix)); + 3 === arguments.length ? H.call(this, d, c, a) : 4 === arguments.length ? H.call(this, d, c, a, f) : k.Debug.unexpected(); + b && (this.fillStyle = b); }; - CanvasRenderingContext2D.prototype.strokeText = function(b, f, a, e) { - var d = null; - this._globalColorMatrix && (d = this.strokeStyle, this.strokeStyle = g(this, this.strokeStyle, this._globalColorMatrix)); - 3 === arguments.length ? V.call(this, b, f, a) : 4 === arguments.length ? V.call(this, b, f, a, e) : k.Debug.unexpected(); - d && (this.strokeStyle = d); + CanvasRenderingContext2D.prototype.strokeText = function(d, c, a, f) { + var b = null; + this._globalColorMatrix && (b = this.strokeStyle, this.strokeStyle = g(this, this.strokeStyle, this._globalColorMatrix)); + 3 === arguments.length ? ea.call(this, d, c, a) : 4 === arguments.length ? ea.call(this, d, c, a, f) : k.Debug.unexpected(); + b && (this.strokeStyle = b); }; } })(k.GFX || (k.GFX = {})); @@ -6998,9 +7021,9 @@ console.time("Load GFX Dependencies"); (function(k) { (function(k) { k.ScreenShot = function() { - return function(g, c, k) { + return function(g, b, k) { this.dataURL = g; - this.w = c; + this.w = b; this.h = k; }; }(); @@ -7018,29 +7041,29 @@ console.time("Load GFX Dependencies"); Object.defineProperty(g.prototype, "head", {get:function() { return this._head; }, enumerable:!0, configurable:!0}); - g.prototype._unshift = function(c) { - 0 === this._count ? this._head = this._tail = c : (c.next = this._head, this._head = c.next.previous = c); + g.prototype._unshift = function(b) { + 0 === this._count ? this._head = this._tail = b : (b.next = this._head, this._head = b.next.previous = b); this._count++; }; - g.prototype._remove = function(c) { - c === this._head && c === this._tail ? this._head = this._tail = null : c === this._head ? (this._head = c.next, this._head.previous = null) : c == this._tail ? (this._tail = c.previous, this._tail.next = null) : (c.previous.next = c.next, c.next.previous = c.previous); - c.previous = c.next = null; + g.prototype._remove = function(b) { + b === this._head && b === this._tail ? this._head = this._tail = null : b === this._head ? (this._head = b.next, this._head.previous = null) : b == this._tail ? (this._tail = b.previous, this._tail.next = null) : (b.previous.next = b.next, b.next.previous = b.previous); + b.previous = b.next = null; this._count--; }; - g.prototype.use = function(c) { - this._head !== c && ((c.next || c.previous || this._tail === c) && this._remove(c), this._unshift(c)); + g.prototype.use = function(b) { + this._head !== b && ((b.next || b.previous || this._tail === b) && this._remove(b), this._unshift(b)); }; g.prototype.pop = function() { if (!this._tail) { return null; } - var c = this._tail; - this._remove(c); - return c; + var b = this._tail; + this._remove(b); + return b; }; - g.prototype.visit = function(c, g) { + g.prototype.visit = function(b, g) { void 0 === g && (g = !0); - for (var k = g ? this._head : this._tail;k && c(k);) { + for (var k = g ? this._head : this._tail;k && b(k);) { k = g ? k.next : k.previous; } }; @@ -7054,57 +7077,57 @@ console.time("Load GFX Dependencies"); return g.d; }; })(Shumway || (Shumway = {})); -var Shumway$$inline_28 = Shumway || (Shumway = {}), GFX$$inline_29 = Shumway$$inline_28.GFX || (Shumway$$inline_28.GFX = {}), Option$$inline_30 = Shumway$$inline_28.Options.Option, OptionSet$$inline_31 = Shumway$$inline_28.Options.OptionSet, shumwayOptions$$inline_32 = Shumway$$inline_28.Settings.shumwayOptions, rendererOptions$$inline_33 = shumwayOptions$$inline_32.register(new OptionSet$$inline_31("Renderer Options")); -GFX$$inline_29.imageUpdateOption = rendererOptions$$inline_33.register(new Option$$inline_30("", "imageUpdate", "boolean", !0, "Enable image updating.")); -GFX$$inline_29.imageConvertOption = rendererOptions$$inline_33.register(new Option$$inline_30("", "imageConvert", "boolean", !0, "Enable image conversion.")); -GFX$$inline_29.stageOptions = shumwayOptions$$inline_32.register(new OptionSet$$inline_31("Stage Renderer Options")); -GFX$$inline_29.forcePaint = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "forcePaint", "boolean", !1, "Force repainting.")); -GFX$$inline_29.ignoreViewport = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "ignoreViewport", "boolean", !1, "Cull elements outside of the viewport.")); -GFX$$inline_29.viewportLoupeDiameter = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "viewportLoupeDiameter", "number", 256, "Size of the viewport loupe.", {range:{min:1, max:1024, step:1}})); -GFX$$inline_29.disableClipping = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "disableClipping", "boolean", !1, "Disable clipping.")); -GFX$$inline_29.debugClipping = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "debugClipping", "boolean", !1, "Disable clipping.")); -GFX$$inline_29.hud = GFX$$inline_29.stageOptions.register(new Option$$inline_30("", "hud", "boolean", !1, "Enable HUD.")); -var webGLOptions$$inline_34 = GFX$$inline_29.stageOptions.register(new OptionSet$$inline_31("WebGL Options")); -GFX$$inline_29.perspectiveCamera = webGLOptions$$inline_34.register(new Option$$inline_30("", "pc", "boolean", !1, "Use perspective camera.")); -GFX$$inline_29.perspectiveCameraFOV = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcFOV", "number", 60, "Perspective Camera FOV.")); -GFX$$inline_29.perspectiveCameraDistance = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcDistance", "number", 2, "Perspective Camera Distance.")); -GFX$$inline_29.perspectiveCameraAngle = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcAngle", "number", 0, "Perspective Camera Angle.")); -GFX$$inline_29.perspectiveCameraAngleRotate = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcRotate", "boolean", !1, "Rotate Use perspective camera.")); -GFX$$inline_29.perspectiveCameraSpacing = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcSpacing", "number", .01, "Element Spacing.")); -GFX$$inline_29.perspectiveCameraSpacingInflate = webGLOptions$$inline_34.register(new Option$$inline_30("", "pcInflate", "boolean", !1, "Rotate Use perspective camera.")); -GFX$$inline_29.drawTiles = webGLOptions$$inline_34.register(new Option$$inline_30("", "drawTiles", "boolean", !1, "Draw WebGL Tiles")); -GFX$$inline_29.drawSurfaces = webGLOptions$$inline_34.register(new Option$$inline_30("", "drawSurfaces", "boolean", !1, "Draw WebGL Surfaces.")); -GFX$$inline_29.drawSurface = webGLOptions$$inline_34.register(new Option$$inline_30("", "drawSurface", "number", -1, "Draw WebGL Surface #")); -GFX$$inline_29.drawElements = webGLOptions$$inline_34.register(new Option$$inline_30("", "drawElements", "boolean", !0, "Actually call gl.drawElements. This is useful to test if the GPU is the bottleneck.")); -GFX$$inline_29.disableSurfaceUploads = webGLOptions$$inline_34.register(new Option$$inline_30("", "disableSurfaceUploads", "boolean", !1, "Disable surface uploads.")); -GFX$$inline_29.premultipliedAlpha = webGLOptions$$inline_34.register(new Option$$inline_30("", "premultipliedAlpha", "boolean", !1, "Set the premultipliedAlpha flag on getContext().")); -GFX$$inline_29.unpackPremultiplyAlpha = webGLOptions$$inline_34.register(new Option$$inline_30("", "unpackPremultiplyAlpha", "boolean", !0, "Use UNPACK_PREMULTIPLY_ALPHA_WEBGL in pixelStorei.")); -var factorChoices$$inline_35 = {ZERO:0, ONE:1, SRC_COLOR:768, ONE_MINUS_SRC_COLOR:769, DST_COLOR:774, ONE_MINUS_DST_COLOR:775, SRC_ALPHA:770, ONE_MINUS_SRC_ALPHA:771, DST_ALPHA:772, ONE_MINUS_DST_ALPHA:773, SRC_ALPHA_SATURATE:776, CONSTANT_COLOR:32769, ONE_MINUS_CONSTANT_COLOR:32770, CONSTANT_ALPHA:32771, ONE_MINUS_CONSTANT_ALPHA:32772}; -GFX$$inline_29.sourceBlendFactor = webGLOptions$$inline_34.register(new Option$$inline_30("", "sourceBlendFactor", "number", factorChoices$$inline_35.ONE, "", {choices:factorChoices$$inline_35})); -GFX$$inline_29.destinationBlendFactor = webGLOptions$$inline_34.register(new Option$$inline_30("", "destinationBlendFactor", "number", factorChoices$$inline_35.ONE_MINUS_SRC_ALPHA, "", {choices:factorChoices$$inline_35})); -var canvas2DOptions$$inline_36 = GFX$$inline_29.stageOptions.register(new OptionSet$$inline_31("Canvas2D Options")); -GFX$$inline_29.clipDirtyRegions = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "clipDirtyRegions", "boolean", !1, "Clip dirty regions.")); -GFX$$inline_29.clipCanvas = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "clipCanvas", "boolean", !1, "Clip Regions.")); -GFX$$inline_29.cull = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "cull", "boolean", !1, "Enable culling.")); -GFX$$inline_29.snapToDevicePixels = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "snapToDevicePixels", "boolean", !1, "")); -GFX$$inline_29.imageSmoothing = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "imageSmoothing", "boolean", !1, "")); -GFX$$inline_29.masking = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "masking", "boolean", !0, "Composite Mask.")); -GFX$$inline_29.blending = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "blending", "boolean", !0, "")); -GFX$$inline_29.debugLayers = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "debugLayers", "boolean", !1, "")); -GFX$$inline_29.filters = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "filters", "boolean", !1, "")); -GFX$$inline_29.cacheShapes = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "cacheShapes", "boolean", !0, "")); -GFX$$inline_29.cacheShapesMaxSize = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "cacheShapesMaxSize", "number", 256, "", {range:{min:1, max:1024, step:1}})); -GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Option$$inline_30("", "cacheShapesThreshold", "number", 256, "", {range:{min:1, max:1024, step:1}})); +var Shumway$$inline_39 = Shumway || (Shumway = {}), GFX$$inline_40 = Shumway$$inline_39.GFX || (Shumway$$inline_39.GFX = {}), Option$$inline_41 = Shumway$$inline_39.Options.Option, OptionSet$$inline_42 = Shumway$$inline_39.Options.OptionSet, shumwayOptions$$inline_43 = Shumway$$inline_39.Settings.shumwayOptions, rendererOptions$$inline_44 = shumwayOptions$$inline_43.register(new OptionSet$$inline_42("Renderer Options")); +GFX$$inline_40.imageUpdateOption = rendererOptions$$inline_44.register(new Option$$inline_41("", "imageUpdate", "boolean", !0, "Enable image updating.")); +GFX$$inline_40.imageConvertOption = rendererOptions$$inline_44.register(new Option$$inline_41("", "imageConvert", "boolean", !0, "Enable image conversion.")); +GFX$$inline_40.stageOptions = shumwayOptions$$inline_43.register(new OptionSet$$inline_42("Stage Renderer Options")); +GFX$$inline_40.forcePaint = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "forcePaint", "boolean", !1, "Force repainting.")); +GFX$$inline_40.ignoreViewport = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "ignoreViewport", "boolean", !1, "Cull elements outside of the viewport.")); +GFX$$inline_40.viewportLoupeDiameter = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "viewportLoupeDiameter", "number", 256, "Size of the viewport loupe.", {range:{min:1, max:1024, step:1}})); +GFX$$inline_40.disableClipping = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "disableClipping", "boolean", !1, "Disable clipping.")); +GFX$$inline_40.debugClipping = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "debugClipping", "boolean", !1, "Disable clipping.")); +GFX$$inline_40.hud = GFX$$inline_40.stageOptions.register(new Option$$inline_41("", "hud", "boolean", !1, "Enable HUD.")); +var webGLOptions$$inline_45 = GFX$$inline_40.stageOptions.register(new OptionSet$$inline_42("WebGL Options")); +GFX$$inline_40.perspectiveCamera = webGLOptions$$inline_45.register(new Option$$inline_41("", "pc", "boolean", !1, "Use perspective camera.")); +GFX$$inline_40.perspectiveCameraFOV = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcFOV", "number", 60, "Perspective Camera FOV.")); +GFX$$inline_40.perspectiveCameraDistance = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcDistance", "number", 2, "Perspective Camera Distance.")); +GFX$$inline_40.perspectiveCameraAngle = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcAngle", "number", 0, "Perspective Camera Angle.")); +GFX$$inline_40.perspectiveCameraAngleRotate = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcRotate", "boolean", !1, "Rotate Use perspective camera.")); +GFX$$inline_40.perspectiveCameraSpacing = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcSpacing", "number", .01, "Element Spacing.")); +GFX$$inline_40.perspectiveCameraSpacingInflate = webGLOptions$$inline_45.register(new Option$$inline_41("", "pcInflate", "boolean", !1, "Rotate Use perspective camera.")); +GFX$$inline_40.drawTiles = webGLOptions$$inline_45.register(new Option$$inline_41("", "drawTiles", "boolean", !1, "Draw WebGL Tiles")); +GFX$$inline_40.drawSurfaces = webGLOptions$$inline_45.register(new Option$$inline_41("", "drawSurfaces", "boolean", !1, "Draw WebGL Surfaces.")); +GFX$$inline_40.drawSurface = webGLOptions$$inline_45.register(new Option$$inline_41("", "drawSurface", "number", -1, "Draw WebGL Surface #")); +GFX$$inline_40.drawElements = webGLOptions$$inline_45.register(new Option$$inline_41("", "drawElements", "boolean", !0, "Actually call gl.drawElements. This is useful to test if the GPU is the bottleneck.")); +GFX$$inline_40.disableSurfaceUploads = webGLOptions$$inline_45.register(new Option$$inline_41("", "disableSurfaceUploads", "boolean", !1, "Disable surface uploads.")); +GFX$$inline_40.premultipliedAlpha = webGLOptions$$inline_45.register(new Option$$inline_41("", "premultipliedAlpha", "boolean", !1, "Set the premultipliedAlpha flag on getContext().")); +GFX$$inline_40.unpackPremultiplyAlpha = webGLOptions$$inline_45.register(new Option$$inline_41("", "unpackPremultiplyAlpha", "boolean", !0, "Use UNPACK_PREMULTIPLY_ALPHA_WEBGL in pixelStorei.")); +var factorChoices$$inline_46 = {ZERO:0, ONE:1, SRC_COLOR:768, ONE_MINUS_SRC_COLOR:769, DST_COLOR:774, ONE_MINUS_DST_COLOR:775, SRC_ALPHA:770, ONE_MINUS_SRC_ALPHA:771, DST_ALPHA:772, ONE_MINUS_DST_ALPHA:773, SRC_ALPHA_SATURATE:776, CONSTANT_COLOR:32769, ONE_MINUS_CONSTANT_COLOR:32770, CONSTANT_ALPHA:32771, ONE_MINUS_CONSTANT_ALPHA:32772}; +GFX$$inline_40.sourceBlendFactor = webGLOptions$$inline_45.register(new Option$$inline_41("", "sourceBlendFactor", "number", factorChoices$$inline_46.ONE, "", {choices:factorChoices$$inline_46})); +GFX$$inline_40.destinationBlendFactor = webGLOptions$$inline_45.register(new Option$$inline_41("", "destinationBlendFactor", "number", factorChoices$$inline_46.ONE_MINUS_SRC_ALPHA, "", {choices:factorChoices$$inline_46})); +var canvas2DOptions$$inline_47 = GFX$$inline_40.stageOptions.register(new OptionSet$$inline_42("Canvas2D Options")); +GFX$$inline_40.clipDirtyRegions = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "clipDirtyRegions", "boolean", !1, "Clip dirty regions.")); +GFX$$inline_40.clipCanvas = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "clipCanvas", "boolean", !1, "Clip Regions.")); +GFX$$inline_40.cull = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "cull", "boolean", !1, "Enable culling.")); +GFX$$inline_40.snapToDevicePixels = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "snapToDevicePixels", "boolean", !1, "")); +GFX$$inline_40.imageSmoothing = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "imageSmoothing", "boolean", !1, "")); +GFX$$inline_40.masking = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "masking", "boolean", !0, "Composite Mask.")); +GFX$$inline_40.blending = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "blending", "boolean", !0, "")); +GFX$$inline_40.debugLayers = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "debugLayers", "boolean", !1, "")); +GFX$$inline_40.filters = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "filters", "boolean", !1, "")); +GFX$$inline_40.cacheShapes = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "cacheShapes", "boolean", !0, "")); +GFX$$inline_40.cacheShapesMaxSize = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "cacheShapesMaxSize", "number", 256, "", {range:{min:1, max:1024, step:1}})); +GFX$$inline_40.cacheShapesThreshold = canvas2DOptions$$inline_47.register(new Option$$inline_41("", "cacheShapesThreshold", "number", 256, "", {range:{min:1, max:1024, step:1}})); (function(k) { (function(r) { (function(g) { - function c(a, b, f, d) { - var c = 1 - d; - return a * c * c + 2 * b * c * d + f * d * d; + function b(a, c, d, b) { + var e = 1 - b; + return a * e * e + 2 * c * e * b + d * b * b; } - function t(a, b, f, d, c) { - var h = c * c, m = 1 - c, g = m * m; - return a * m * g + 3 * b * c * g + 3 * f * m * h + d * c * h; + function v(a, c, d, b, e) { + var m = e * e, h = 1 - e, g = h * h; + return a * h * g + 3 * c * e * g + 3 * d * h * m + b * e * m; } var n = k.NumberUtilities.clamp, a = k.NumberUtilities.pow2, h = k.NumberUtilities.epsilonEquals; g.radianToDegrees = function(a) { @@ -7113,209 +7136,209 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op g.degreesToRadian = function(a) { return a * Math.PI / 180; }; - g.quadraticBezier = c; - g.quadraticBezierExtreme = function(a, b, f) { - var d = (a - b) / (a - 2 * b + f); - return 0 > d ? a : 1 < d ? f : c(a, b, f, d); + g.quadraticBezier = b; + g.quadraticBezierExtreme = function(a, c, d) { + var e = (a - c) / (a - 2 * c + d); + return 0 > e ? a : 1 < e ? d : b(a, c, d, e); }; - g.cubicBezier = t; - g.cubicBezierExtremes = function(a, b, f, d) { - var c = b - a, h; - h = 2 * (f - b); - var m = d - f; - c + m === h && (m *= 1.0001); - var g = 2 * c - h, l = h - 2 * c, l = Math.sqrt(l * l - 4 * c * (c - h + m)); - h = 2 * (c - h + m); - c = (g + l) / h; - g = (g - l) / h; + g.cubicBezier = v; + g.cubicBezierExtremes = function(a, c, d, b) { + var e = c - a, m; + m = 2 * (d - c); + var h = b - d; + e + h === m && (h *= 1.0001); + var g = 2 * e - m, l = m - 2 * e, l = Math.sqrt(l * l - 4 * e * (e - m + h)); + m = 2 * (e - m + h); + e = (g + l) / m; + g = (g - l) / m; l = []; - 0 <= c && 1 >= c && l.push(t(a, b, f, d, c)); - 0 <= g && 1 >= g && l.push(t(a, b, f, d, g)); + 0 <= e && 1 >= e && l.push(v(a, c, d, b, e)); + 0 <= g && 1 >= g && l.push(v(a, c, d, b, g)); return l; }; var p = function() { - function a(b, f) { - this.x = b; - this.y = f; + function a(c, d) { + this.x = c; + this.y = d; } - a.prototype.setElements = function(b, f) { - this.x = b; - this.y = f; + a.prototype.setElements = function(c, d) { + this.x = c; + this.y = d; return this; }; - a.prototype.set = function(b) { - this.x = b.x; - this.y = b.y; + a.prototype.set = function(c) { + this.x = c.x; + this.y = c.y; return this; }; - a.prototype.dot = function(b) { - return this.x * b.x + this.y * b.y; + a.prototype.dot = function(c) { + return this.x * c.x + this.y * c.y; }; a.prototype.squaredLength = function() { return this.dot(this); }; - a.prototype.distanceTo = function(b) { - return Math.sqrt(this.dot(b)); + a.prototype.distanceTo = function(c) { + return Math.sqrt(this.dot(c)); }; - a.prototype.sub = function(b) { - this.x -= b.x; - this.y -= b.y; + a.prototype.sub = function(c) { + this.x -= c.x; + this.y -= c.y; return this; }; - a.prototype.mul = function(b) { - this.x *= b; - this.y *= b; + a.prototype.mul = function(c) { + this.x *= c; + this.y *= c; return this; }; a.prototype.clone = function() { return new a(this.x, this.y); }; - a.prototype.toString = function(b) { - void 0 === b && (b = 2); - return "{x: " + this.x.toFixed(b) + ", y: " + this.y.toFixed(b) + "}"; + a.prototype.toString = function(c) { + void 0 === c && (c = 2); + return "{x: " + this.x.toFixed(c) + ", y: " + this.y.toFixed(c) + "}"; }; - a.prototype.inTriangle = function(b, f, a) { - var e = b.y * a.x - b.x * a.y + (a.y - b.y) * this.x + (b.x - a.x) * this.y, d = b.x * f.y - b.y * f.x + (b.y - f.y) * this.x + (f.x - b.x) * this.y; - if (0 > e != 0 > d) { - return!1; + a.prototype.inTriangle = function(c, d, a) { + var f = c.y * a.x - c.x * a.y + (a.y - c.y) * this.x + (c.x - a.x) * this.y, b = c.x * d.y - c.y * d.x + (c.y - d.y) * this.x + (d.x - c.x) * this.y; + if (0 > f != 0 > b) { + return !1; } - b = -f.y * a.x + b.y * (a.x - f.x) + b.x * (f.y - a.y) + f.x * a.y; - 0 > b && (e = -e, d = -d, b = -b); - return 0 < e && 0 < d && e + d < b; + c = -d.y * a.x + c.y * (a.x - d.x) + c.x * (d.y - a.y) + d.x * a.y; + 0 > c && (f = -f, b = -b, c = -c); + return 0 < f && 0 < b && f + b < c; }; a.createEmpty = function() { return new a(0, 0); }; - a.createEmptyPoints = function(b) { - for (var f = [], d = 0;d < b;d++) { - f.push(new a(0, 0)); + a.createEmptyPoints = function(c) { + for (var d = [], b = 0;b < c;b++) { + d.push(new a(0, 0)); } - return f; + return d; }; return a; }(); g.Point = p; var l = function() { - function a(b, f, e) { - this.x = b; - this.y = f; - this.z = e; + function a(c, d, f) { + this.x = c; + this.y = d; + this.z = f; } - a.prototype.setElements = function(b, f, a) { - this.x = b; - this.y = f; + a.prototype.setElements = function(c, d, a) { + this.x = c; + this.y = d; this.z = a; return this; }; - a.prototype.set = function(b) { - this.x = b.x; - this.y = b.y; - this.z = b.z; + a.prototype.set = function(c) { + this.x = c.x; + this.y = c.y; + this.z = c.z; return this; }; - a.prototype.dot = function(b) { - return this.x * b.x + this.y * b.y + this.z * b.z; + a.prototype.dot = function(c) { + return this.x * c.x + this.y * c.y + this.z * c.z; }; - a.prototype.cross = function(b) { - var f = this.z * b.x - this.x * b.z, a = this.x * b.y - this.y * b.x; - this.x = this.y * b.z - this.z * b.y; - this.y = f; + a.prototype.cross = function(c) { + var d = this.z * c.x - this.x * c.z, a = this.x * c.y - this.y * c.x; + this.x = this.y * c.z - this.z * c.y; + this.y = d; this.z = a; return this; }; a.prototype.squaredLength = function() { return this.dot(this); }; - a.prototype.sub = function(b) { - this.x -= b.x; - this.y -= b.y; - this.z -= b.z; + a.prototype.sub = function(c) { + this.x -= c.x; + this.y -= c.y; + this.z -= c.z; return this; }; - a.prototype.mul = function(b) { - this.x *= b; - this.y *= b; - this.z *= b; + a.prototype.mul = function(c) { + this.x *= c; + this.y *= c; + this.z *= c; return this; }; a.prototype.normalize = function() { - var b = Math.sqrt(this.squaredLength()); - 1E-5 < b ? this.mul(1 / b) : this.setElements(0, 0, 0); + var c = Math.sqrt(this.squaredLength()); + 1E-5 < c ? this.mul(1 / c) : this.setElements(0, 0, 0); return this; }; a.prototype.clone = function() { return new a(this.x, this.y, this.z); }; - a.prototype.toString = function(b) { - void 0 === b && (b = 2); - return "{x: " + this.x.toFixed(b) + ", y: " + this.y.toFixed(b) + ", z: " + this.z.toFixed(b) + "}"; + a.prototype.toString = function(c) { + void 0 === c && (c = 2); + return "{x: " + this.x.toFixed(c) + ", y: " + this.y.toFixed(c) + ", z: " + this.z.toFixed(c) + "}"; }; a.createEmpty = function() { return new a(0, 0, 0); }; - a.createEmptyPoints = function(b) { - for (var f = [], d = 0;d < b;d++) { - f.push(new a(0, 0, 0)); + a.createEmptyPoints = function(c) { + for (var d = [], b = 0;b < c;b++) { + d.push(new a(0, 0, 0)); } - return f; + return d; }; return a; }(); g.Point3D = l; - var u = function() { - function a(b, f, d, c) { - this.setElements(b, f, d, c); + var w = function() { + function a(c, d, b, e) { + this.setElements(c, d, b, e); a.allocationCount++; } - a.prototype.setElements = function(b, f, a, e) { - this.x = b; - this.y = f; + a.prototype.setElements = function(c, d, a, f) { + this.x = c; + this.y = d; this.w = a; - this.h = e; + this.h = f; }; - a.prototype.set = function(b) { - this.x = b.x; - this.y = b.y; - this.w = b.w; - this.h = b.h; + a.prototype.set = function(c) { + this.x = c.x; + this.y = c.y; + this.w = c.w; + this.h = c.h; }; - a.prototype.contains = function(b) { - var f = b.x + b.w, a = b.y + b.h, e = this.x + this.w, d = this.y + this.h; - return b.x >= this.x && b.x < e && b.y >= this.y && b.y < d && f > this.x && f <= e && a > this.y && a <= d; + a.prototype.contains = function(c) { + var d = c.x + c.w, a = c.y + c.h, f = this.x + this.w, b = this.y + this.h; + return c.x >= this.x && c.x < f && c.y >= this.y && c.y < b && d > this.x && d <= f && a > this.y && a <= b; }; - a.prototype.containsPoint = function(b) { - return b.x >= this.x && b.x < this.x + this.w && b.y >= this.y && b.y < this.y + this.h; + a.prototype.containsPoint = function(c) { + return c.x >= this.x && c.x < this.x + this.w && c.y >= this.y && c.y < this.y + this.h; }; - a.prototype.isContained = function(b) { - for (var f = 0;f < b.length;f++) { - if (b[f].contains(this)) { - return!0; + a.prototype.isContained = function(c) { + for (var d = 0;d < c.length;d++) { + if (c[d].contains(this)) { + return !0; } } - return!1; + return !1; }; - a.prototype.isSmallerThan = function(b) { - return this.w < b.w && this.h < b.h; + a.prototype.isSmallerThan = function(c) { + return this.w < c.w && this.h < c.h; }; - a.prototype.isLargerThan = function(b) { - return this.w > b.w && this.h > b.h; + a.prototype.isLargerThan = function(c) { + return this.w > c.w && this.h > c.h; }; - a.prototype.union = function(b) { + a.prototype.union = function(c) { if (this.isEmpty()) { - this.set(b); + this.set(c); } else { - if (!b.isEmpty()) { - var f = this.x, a = this.y; - this.x > b.x && (f = b.x); - this.y > b.y && (a = b.y); - var e = this.x + this.w; - e < b.x + b.w && (e = b.x + b.w); - var d = this.y + this.h; - d < b.y + b.h && (d = b.y + b.h); - this.x = f; + if (!c.isEmpty()) { + var d = this.x, a = this.y; + this.x > c.x && (d = c.x); + this.y > c.y && (a = c.y); + var f = this.x + this.w; + f < c.x + c.w && (f = c.x + c.w); + var b = this.y + this.h; + b < c.y + c.h && (b = c.y + c.h); + this.x = d; this.y = a; - this.w = e - f; - this.h = d - a; + this.w = f - d; + this.h = b - a; } } }; @@ -7325,83 +7348,83 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op a.prototype.setEmpty = function() { this.h = this.w = this.y = this.x = 0; }; - a.prototype.intersect = function(b) { - var f = a.createEmpty(); - if (this.isEmpty() || b.isEmpty()) { - return f.setEmpty(), f; + a.prototype.intersect = function(c) { + var d = a.createEmpty(); + if (this.isEmpty() || c.isEmpty()) { + return d.setEmpty(), d; } - f.x = Math.max(this.x, b.x); - f.y = Math.max(this.y, b.y); - f.w = Math.min(this.x + this.w, b.x + b.w) - f.x; - f.h = Math.min(this.y + this.h, b.y + b.h) - f.y; - f.isEmpty() && f.setEmpty(); - this.set(f); + d.x = Math.max(this.x, c.x); + d.y = Math.max(this.y, c.y); + d.w = Math.min(this.x + this.w, c.x + c.w) - d.x; + d.h = Math.min(this.y + this.h, c.y + c.h) - d.y; + d.isEmpty() && d.setEmpty(); + this.set(d); }; - a.prototype.intersects = function(b) { - if (this.isEmpty() || b.isEmpty()) { - return!1; + a.prototype.intersects = function(c) { + if (this.isEmpty() || c.isEmpty()) { + return !1; } - var f = Math.max(this.x, b.x), a = Math.max(this.y, b.y), f = Math.min(this.x + this.w, b.x + b.w) - f; - b = Math.min(this.y + this.h, b.y + b.h) - a; - return!(0 >= f || 0 >= b); + var d = Math.max(this.x, c.x), a = Math.max(this.y, c.y), d = Math.min(this.x + this.w, c.x + c.w) - d; + c = Math.min(this.y + this.h, c.y + c.h) - a; + return !(0 >= d || 0 >= c); }; - a.prototype.intersectsTransformedAABB = function(b, f) { - var d = a._temporary; - d.set(b); - f.transformRectangleAABB(d); - return this.intersects(d); + a.prototype.intersectsTransformedAABB = function(c, d) { + var b = a._temporary; + b.set(c); + d.transformRectangleAABB(b); + return this.intersects(b); }; - a.prototype.intersectsTranslated = function(b, f, a) { - if (this.isEmpty() || b.isEmpty()) { - return!1; + a.prototype.intersectsTranslated = function(c, d, a) { + if (this.isEmpty() || c.isEmpty()) { + return !1; } - var e = Math.max(this.x, b.x + f), d = Math.max(this.y, b.y + a); - f = Math.min(this.x + this.w, b.x + f + b.w) - e; - b = Math.min(this.y + this.h, b.y + a + b.h) - d; - return!(0 >= f || 0 >= b); + var f = Math.max(this.x, c.x + d), b = Math.max(this.y, c.y + a); + d = Math.min(this.x + this.w, c.x + d + c.w) - f; + c = Math.min(this.y + this.h, c.y + a + c.h) - b; + return !(0 >= d || 0 >= c); }; a.prototype.area = function() { return this.w * this.h; }; a.prototype.clone = function() { - var b = a.allocate(); - b.set(this); - return b; + var c = a.allocate(); + c.set(this); + return c; }; a.allocate = function() { - var b = a._dirtyStack; - return b.length ? b.pop() : new a(12345, 67890, 12345, 67890); + var c = a._dirtyStack; + return c.length ? c.pop() : new a(12345, 67890, 12345, 67890); }; a.prototype.free = function() { a._dirtyStack.push(this); }; a.prototype.snap = function() { - var b = Math.ceil(this.x + this.w), f = Math.ceil(this.y + this.h); + var c = Math.ceil(this.x + this.w), d = Math.ceil(this.y + this.h); this.x = Math.floor(this.x); this.y = Math.floor(this.y); - this.w = b - this.x; - this.h = f - this.y; + this.w = c - this.x; + this.h = d - this.y; return this; }; - a.prototype.scale = function(b, f) { - this.x *= b; - this.y *= f; - this.w *= b; - this.h *= f; + a.prototype.scale = function(c, d) { + this.x *= c; + this.y *= d; + this.w *= c; + this.h *= d; return this; }; - a.prototype.offset = function(b, f) { - this.x += b; - this.y += f; + a.prototype.offset = function(c, d) { + this.x += c; + this.y += d; return this; }; - a.prototype.resize = function(b, f) { - this.w += b; - this.h += f; + a.prototype.resize = function(c, d) { + this.w += c; + this.h += d; return this; }; - a.prototype.expand = function(b, f) { - this.offset(-b, -f).resize(2 * b, 2 * f); + a.prototype.expand = function(c, d) { + this.offset(-c, -d).resize(2 * c, 2 * d); return this; }; a.prototype.getCenter = function() { @@ -7410,14 +7433,14 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op a.prototype.getAbsoluteBounds = function() { return new a(0, 0, this.w, this.h); }; - a.prototype.toString = function(b) { - void 0 === b && (b = 2); - return "{" + this.x.toFixed(b) + ", " + this.y.toFixed(b) + ", " + this.w.toFixed(b) + ", " + this.h.toFixed(b) + "}"; + a.prototype.toString = function(c) { + void 0 === c && (c = 2); + return "{" + this.x.toFixed(c) + ", " + this.y.toFixed(c) + ", " + this.w.toFixed(c) + ", " + this.h.toFixed(c) + "}"; }; a.createEmpty = function() { - var b = a.allocate(); - b.setEmpty(); - return b; + var c = a.allocate(); + c.setEmpty(); + return c; }; a.createSquare = function() { return new a(-512, -512, 1024, 1024); @@ -7428,60 +7451,60 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op a.prototype.setMaxI16 = function() { this.setElements(-32768, -32768, 65535, 65535); }; - a.prototype.getCorners = function(b) { - b[0].x = this.x; - b[0].y = this.y; - b[1].x = this.x + this.w; - b[1].y = this.y; - b[2].x = this.x + this.w; - b[2].y = this.y + this.h; - b[3].x = this.x; - b[3].y = this.y + this.h; + a.prototype.getCorners = function(c) { + c[0].x = this.x; + c[0].y = this.y; + c[1].x = this.x + this.w; + c[1].y = this.y; + c[2].x = this.x + this.w; + c[2].y = this.y + this.h; + c[3].x = this.x; + c[3].y = this.y + this.h; }; a.allocationCount = 0; a._temporary = new a(0, 0, 0, 0); a._dirtyStack = []; return a; }(); - g.Rectangle = u; + g.Rectangle = w; var m = function() { - function a(b) { - this.corners = b.map(function(b) { - return b.clone(); + function a(c) { + this.corners = c.map(function(d) { + return d.clone(); }); - this.axes = [b[1].clone().sub(b[0]), b[3].clone().sub(b[0])]; + this.axes = [c[1].clone().sub(c[0]), c[3].clone().sub(c[0])]; this.origins = []; - for (var f = 0;2 > f;f++) { - this.axes[f].mul(1 / this.axes[f].squaredLength()), this.origins.push(b[0].dot(this.axes[f])); + for (var d = 0;2 > d;d++) { + this.axes[d].mul(1 / this.axes[d].squaredLength()), this.origins.push(c[0].dot(this.axes[d])); } } a.prototype.getBounds = function() { return a.getBounds(this.corners); }; - a.getBounds = function(b) { - for (var f = new p(Number.MAX_VALUE, Number.MAX_VALUE), a = new p(Number.MIN_VALUE, Number.MIN_VALUE), e = 0;4 > e;e++) { - var d = b[e].x, c = b[e].y; - f.x = Math.min(f.x, d); - f.y = Math.min(f.y, c); - a.x = Math.max(a.x, d); - a.y = Math.max(a.y, c); + a.getBounds = function(c) { + for (var d = new p(Number.MAX_VALUE, Number.MAX_VALUE), a = new p(Number.MIN_VALUE, Number.MIN_VALUE), f = 0;4 > f;f++) { + var b = c[f].x, e = c[f].y; + d.x = Math.min(d.x, b); + d.y = Math.min(d.y, e); + a.x = Math.max(a.x, b); + a.y = Math.max(a.y, e); } - return new u(f.x, f.y, a.x - f.x, a.y - f.y); + return new w(d.x, d.y, a.x - d.x, a.y - d.y); }; - a.prototype.intersects = function(b) { - return this.intersectsOneWay(b) && b.intersectsOneWay(this); + a.prototype.intersects = function(c) { + return this.intersectsOneWay(c) && c.intersectsOneWay(this); }; - a.prototype.intersectsOneWay = function(b) { - for (var f = 0;2 > f;f++) { + a.prototype.intersectsOneWay = function(c) { + for (var d = 0;2 > d;d++) { for (var a = 0;4 > a;a++) { - var e = b.corners[a].dot(this.axes[f]), d, c; - 0 === a ? c = d = e : e < d ? d = e : e > c && (c = e); + var f = c.corners[a].dot(this.axes[d]), b, e; + 0 === a ? e = b = f : f < b ? b = f : f > e && (e = f); } - if (d > 1 + this.origins[f] || c < this.origins[f]) { - return!1; + if (b > 1 + this.origins[d] || e < this.origins[d]) { + return !1; } } - return!0; + return !0; }; return a; }(); @@ -7491,292 +7514,292 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op a[a.Identity = 1] = "Identity"; a[a.Translation = 2] = "Translation"; })(g.MatrixType || (g.MatrixType = {})); - var s = function() { - function a(b, f, d, c, h, m) { + var t = function() { + function a(c, d, b, e, m, h) { this._data = new Float64Array(6); this._type = 0; - this.setElements(b, f, d, c, h, m); + this.setElements(c, d, b, e, m, h); a.allocationCount++; } Object.defineProperty(a.prototype, "a", {get:function() { return this._data[0]; - }, set:function(b) { - this._data[0] = b; + }, set:function(c) { + this._data[0] = c; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "b", {get:function() { return this._data[1]; - }, set:function(b) { - this._data[1] = b; + }, set:function(c) { + this._data[1] = c; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "c", {get:function() { return this._data[2]; - }, set:function(b) { - this._data[2] = b; + }, set:function(c) { + this._data[2] = c; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "d", {get:function() { return this._data[3]; - }, set:function(b) { - this._data[3] = b; + }, set:function(c) { + this._data[3] = c; this._type = 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "tx", {get:function() { return this._data[4]; - }, set:function(b) { - this._data[4] = b; + }, set:function(c) { + this._data[4] = c; 1 === this._type && (this._type = 2); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ty", {get:function() { return this._data[5]; - }, set:function(b) { - this._data[5] = b; + }, set:function(c) { + this._data[5] = c; 1 === this._type && (this._type = 2); }, enumerable:!0, configurable:!0}); a._createSVGMatrix = function() { a._svg || (a._svg = document.createElementNS("http://www.w3.org/2000/svg", "svg")); return a._svg.createSVGMatrix(); }; - a.prototype.setElements = function(b, a, d, e, c, h) { + a.prototype.setElements = function(c, d, a, b, f, e) { var m = this._data; - m[0] = b; - m[1] = a; - m[2] = d; - m[3] = e; - m[4] = c; - m[5] = h; + m[0] = c; + m[1] = d; + m[2] = a; + m[3] = b; + m[4] = f; + m[5] = e; this._type = 0; }; - a.prototype.set = function(b) { - var a = this._data, d = b._data; - a[0] = d[0]; - a[1] = d[1]; - a[2] = d[2]; - a[3] = d[3]; - a[4] = d[4]; - a[5] = d[5]; - this._type = b._type; + a.prototype.set = function(c) { + var d = this._data, a = c._data; + d[0] = a[0]; + d[1] = a[1]; + d[2] = a[2]; + d[3] = a[3]; + d[4] = a[4]; + d[5] = a[5]; + this._type = c._type; }; - a.prototype.emptyArea = function(b) { - b = this._data; - return 0 === b[0] || 0 === b[3] ? !0 : !1; + a.prototype.emptyArea = function(c) { + c = this._data; + return 0 === c[0] || 0 === c[3] ? !0 : !1; }; - a.prototype.infiniteArea = function(b) { - b = this._data; - return Infinity === Math.abs(b[0]) || Infinity === Math.abs(b[3]) ? !0 : !1; + a.prototype.infiniteArea = function(c) { + c = this._data; + return Infinity === Math.abs(c[0]) || Infinity === Math.abs(c[3]) ? !0 : !1; }; - a.prototype.isEqual = function(b) { - if (1 === this._type && 1 === b._type) { - return!0; + a.prototype.isEqual = function(c) { + if (1 === this._type && 1 === c._type) { + return !0; } - var a = this._data; - b = b._data; - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; + var d = this._data; + c = c._data; + return d[0] === c[0] && d[1] === c[1] && d[2] === c[2] && d[3] === c[3] && d[4] === c[4] && d[5] === c[5]; }; a.prototype.clone = function() { - var b = a.allocate(); - b.set(this); - return b; + var c = a.allocate(); + c.set(this); + return c; }; a.allocate = function() { - var b = a._dirtyStack; - return b.length ? b.pop() : new a(12345, 12345, 12345, 12345, 12345, 12345); + var c = a._dirtyStack; + return c.length ? c.pop() : new a(12345, 12345, 12345, 12345, 12345, 12345); }; a.prototype.free = function() { a._dirtyStack.push(this); }; - a.prototype.transform = function(b, a, d, e, c, h) { - var m = this._data, g = m[0], l = m[1], p = m[2], k = m[3], s = m[4], n = m[5]; - m[0] = g * b + p * a; - m[1] = l * b + k * a; - m[2] = g * d + p * e; - m[3] = l * d + k * e; - m[4] = g * c + p * h + s; - m[5] = l * c + k * h + n; + a.prototype.transform = function(c, d, a, b, f, e) { + var m = this._data, h = m[0], g = m[1], l = m[2], p = m[3], k = m[4], t = m[5]; + m[0] = h * c + l * d; + m[1] = g * c + p * d; + m[2] = h * a + l * b; + m[3] = g * a + p * b; + m[4] = h * f + l * e + k; + m[5] = g * f + p * e + t; this._type = 0; return this; }; - a.prototype.transformRectangle = function(b, a) { - var d = this._data, e = d[0], c = d[1], m = d[2], h = d[3], g = d[4], d = d[5], l = b.x, p = b.y, k = b.w, s = b.h; - a[0].x = e * l + m * p + g; - a[0].y = c * l + h * p + d; - a[1].x = e * (l + k) + m * p + g; - a[1].y = c * (l + k) + h * p + d; - a[2].x = e * (l + k) + m * (p + s) + g; - a[2].y = c * (l + k) + h * (p + s) + d; - a[3].x = e * l + m * (p + s) + g; - a[3].y = c * l + h * (p + s) + d; + a.prototype.transformRectangle = function(c, d) { + var a = this._data, b = a[0], f = a[1], e = a[2], m = a[3], h = a[4], a = a[5], g = c.x, l = c.y, p = c.w, k = c.h; + d[0].x = b * g + e * l + h; + d[0].y = f * g + m * l + a; + d[1].x = b * (g + p) + e * l + h; + d[1].y = f * (g + p) + m * l + a; + d[2].x = b * (g + p) + e * (l + k) + h; + d[2].y = f * (g + p) + m * (l + k) + a; + d[3].x = b * g + e * (l + k) + h; + d[3].y = f * g + m * (l + k) + a; }; a.prototype.isTranslationOnly = function() { if (2 === this._type) { - return!0; + return !0; } - var b = this._data; - return 1 === b[0] && 0 === b[1] && 0 === b[2] && 1 === b[3] || h(b[0], 1) && h(b[1], 0) && h(b[2], 0) && h(b[3], 1) ? (this._type = 2, !0) : !1; + var c = this._data; + return 1 === c[0] && 0 === c[1] && 0 === c[2] && 1 === c[3] || h(c[0], 1) && h(c[1], 0) && h(c[2], 0) && h(c[3], 1) ? (this._type = 2, !0) : !1; }; - a.prototype.transformRectangleAABB = function(b) { - var a = this._data; + a.prototype.transformRectangleAABB = function(c) { + var d = this._data; if (1 !== this._type) { if (2 === this._type) { - b.x += a[4], b.y += a[5]; + c.x += d[4], c.y += d[5]; } else { - var d = a[0], e = a[1], c = a[2], m = a[3], h = a[4], g = a[5], l = b.x, p = b.y, k = b.w, s = b.h, a = d * l + c * p + h, n = e * l + m * p + g, v = d * (l + k) + c * p + h, u = e * (l + k) + m * p + g, r = d * (l + k) + c * (p + s) + h, k = e * (l + k) + m * (p + s) + g, d = d * l + c * (p + s) + h, e = e * l + m * (p + s) + g, m = 0; - a > v && (m = a, a = v, v = m); - r > d && (m = r, r = d, d = m); - b.x = a < r ? a : r; - b.w = (v > d ? v : d) - b.x; - n > u && (m = n, n = u, u = m); - k > e && (m = k, k = e, e = m); - b.y = n < k ? n : k; - b.h = (u > e ? u : e) - b.y; + var a = d[0], b = d[1], f = d[2], e = d[3], m = d[4], h = d[5], g = c.x, l = c.y, p = c.w, k = c.h, d = a * g + f * l + m, t = b * g + e * l + h, n = a * (g + p) + f * l + m, x = b * (g + p) + e * l + h, w = a * (g + p) + f * (l + k) + m, p = b * (g + p) + e * (l + k) + h, a = a * g + f * (l + k) + m, b = b * g + e * (l + k) + h, e = 0; + d > n && (e = d, d = n, n = e); + w > a && (e = w, w = a, a = e); + c.x = d < w ? d : w; + c.w = (n > a ? n : a) - c.x; + t > x && (e = t, t = x, x = e); + p > b && (e = p, p = b, b = e); + c.y = t < p ? t : p; + c.h = (x > b ? x : b) - c.y; } } }; - a.prototype.scale = function(b, a) { - var d = this._data; - d[0] *= b; - d[1] *= a; - d[2] *= b; - d[3] *= a; - d[4] *= b; - d[5] *= a; + a.prototype.scale = function(c, d) { + var a = this._data; + a[0] *= c; + a[1] *= d; + a[2] *= c; + a[3] *= d; + a[4] *= c; + a[5] *= d; this._type = 0; return this; }; - a.prototype.scaleClone = function(b, a) { - return 1 === b && 1 === a ? this : this.clone().scale(b, a); + a.prototype.scaleClone = function(c, d) { + return 1 === c && 1 === d ? this : this.clone().scale(c, d); }; - a.prototype.rotate = function(b) { - var a = this._data, d = a[0], e = a[1], c = a[2], m = a[3], h = a[4], g = a[5], l = Math.cos(b); - b = Math.sin(b); - a[0] = l * d - b * e; - a[1] = b * d + l * e; - a[2] = l * c - b * m; - a[3] = b * c + l * m; - a[4] = l * h - b * g; - a[5] = b * h + l * g; + a.prototype.rotate = function(c) { + var d = this._data, a = d[0], b = d[1], f = d[2], e = d[3], m = d[4], h = d[5], g = Math.cos(c); + c = Math.sin(c); + d[0] = g * a - c * b; + d[1] = c * a + g * b; + d[2] = g * f - c * e; + d[3] = c * f + g * e; + d[4] = g * m - c * h; + d[5] = c * m + g * h; this._type = 0; return this; }; - a.prototype.concat = function(b) { - if (1 === b._type) { + a.prototype.concat = function(c) { + if (1 === c._type) { return this; } - var a = this._data; - b = b._data; - var d = a[0] * b[0], e = 0, c = 0, m = a[3] * b[3], h = a[4] * b[0] + b[4], g = a[5] * b[3] + b[5]; - if (0 !== a[1] || 0 !== a[2] || 0 !== b[1] || 0 !== b[2]) { - d += a[1] * b[2], m += a[2] * b[1], e += a[0] * b[1] + a[1] * b[3], c += a[2] * b[0] + a[3] * b[2], h += a[5] * b[2], g += a[4] * b[1]; + var d = this._data; + c = c._data; + var a = d[0] * c[0], b = 0, f = 0, e = d[3] * c[3], m = d[4] * c[0] + c[4], h = d[5] * c[3] + c[5]; + if (0 !== d[1] || 0 !== d[2] || 0 !== c[1] || 0 !== c[2]) { + a += d[1] * c[2], e += d[2] * c[1], b += d[0] * c[1] + d[1] * c[3], f += d[2] * c[0] + d[3] * c[2], m += d[5] * c[2], h += d[4] * c[1]; } - a[0] = d; - a[1] = e; - a[2] = c; - a[3] = m; - a[4] = h; - a[5] = g; + d[0] = a; + d[1] = b; + d[2] = f; + d[3] = e; + d[4] = m; + d[5] = h; this._type = 0; return this; }; - a.prototype.concatClone = function(b) { - return this.clone().concat(b); + a.prototype.concatClone = function(c) { + return this.clone().concat(c); }; - a.prototype.preMultiply = function(b) { - var a = this._data, d = b._data; - if (2 === b._type && this._type & 3) { - a[4] += d[4], a[5] += d[5], this._type = 2; + a.prototype.preMultiply = function(c) { + var d = this._data, a = c._data; + if (2 === c._type && this._type & 3) { + d[4] += a[4], d[5] += a[5], this._type = 2; } else { - if (1 !== b._type) { - b = d[0] * a[0]; - var e = 0, c = 0, m = d[3] * a[3], h = d[4] * a[0] + a[4], g = d[5] * a[3] + a[5]; - if (0 !== d[1] || 0 !== d[2] || 0 !== a[1] || 0 !== a[2]) { - b += d[1] * a[2], m += d[2] * a[1], e += d[0] * a[1] + d[1] * a[3], c += d[2] * a[0] + d[3] * a[2], h += d[5] * a[2], g += d[4] * a[1]; + if (1 !== c._type) { + c = a[0] * d[0]; + var b = 0, f = 0, e = a[3] * d[3], m = a[4] * d[0] + d[4], h = a[5] * d[3] + d[5]; + if (0 !== a[1] || 0 !== a[2] || 0 !== d[1] || 0 !== d[2]) { + c += a[1] * d[2], e += a[2] * d[1], b += a[0] * d[1] + a[1] * d[3], f += a[2] * d[0] + a[3] * d[2], m += a[5] * d[2], h += a[4] * d[1]; } - a[0] = b; - a[1] = e; - a[2] = c; - a[3] = m; - a[4] = h; - a[5] = g; + d[0] = c; + d[1] = b; + d[2] = f; + d[3] = e; + d[4] = m; + d[5] = h; this._type = 0; } } }; - a.prototype.translate = function(b, a) { - var d = this._data; - d[4] += b; - d[5] += a; + a.prototype.translate = function(c, d) { + var a = this._data; + a[4] += c; + a[5] += d; 1 === this._type && (this._type = 2); return this; }; a.prototype.setIdentity = function() { - var b = this._data; - b[0] = 1; - b[1] = 0; - b[2] = 0; - b[3] = 1; - b[4] = 0; - b[5] = 0; + var c = this._data; + c[0] = 1; + c[1] = 0; + c[2] = 0; + c[3] = 1; + c[4] = 0; + c[5] = 0; this._type = 1; }; a.prototype.isIdentity = function() { if (1 === this._type) { - return!0; + return !0; } - var b = this._data; - return 1 === b[0] && 0 === b[1] && 0 === b[2] && 1 === b[3] && 0 === b[4] && 0 === b[5]; + var c = this._data; + return 1 === c[0] && 0 === c[1] && 0 === c[2] && 1 === c[3] && 0 === c[4] && 0 === c[5]; }; - a.prototype.transformPoint = function(b) { + a.prototype.transformPoint = function(c) { if (1 !== this._type) { - var a = this._data, d = b.x, e = b.y; - b.x = a[0] * d + a[2] * e + a[4]; - b.y = a[1] * d + a[3] * e + a[5]; + var d = this._data, a = c.x, b = c.y; + c.x = d[0] * a + d[2] * b + d[4]; + c.y = d[1] * a + d[3] * b + d[5]; } }; - a.prototype.transformPoints = function(b) { + a.prototype.transformPoints = function(c) { if (1 !== this._type) { - for (var a = 0;a < b.length;a++) { - this.transformPoint(b[a]); + for (var d = 0;d < c.length;d++) { + this.transformPoint(c[d]); } } }; - a.prototype.deltaTransformPoint = function(b) { + a.prototype.deltaTransformPoint = function(c) { if (1 !== this._type) { - var a = this._data, d = b.x, e = b.y; - b.x = a[0] * d + a[2] * e; - b.y = a[1] * d + a[3] * e; + var d = this._data, a = c.x, b = c.y; + c.x = d[0] * a + d[2] * b; + c.y = d[1] * a + d[3] * b; } }; - a.prototype.inverse = function(b) { - var a = this._data, d = b._data; + a.prototype.inverse = function(c) { + var d = this._data, a = c._data; if (1 === this._type) { - b.setIdentity(); + c.setIdentity(); } else { if (2 === this._type) { - d[0] = 1, d[1] = 0, d[2] = 0, d[3] = 1, d[4] = -a[4], d[5] = -a[5], b._type = 2; + a[0] = 1, a[1] = 0, a[2] = 0, a[3] = 1, a[4] = -d[4], a[5] = -d[5], c._type = 2; } else { - var e = a[1], c = a[2], m = a[4], h = a[5]; - if (0 === e && 0 === c) { - var g = d[0] = 1 / a[0], a = d[3] = 1 / a[3]; - d[1] = 0; - d[2] = 0; - d[4] = -g * m; - d[5] = -a * h; + var b = d[1], f = d[2], e = d[4], m = d[5]; + if (0 === b && 0 === f) { + var h = a[0] = 1 / d[0], d = a[3] = 1 / d[3]; + a[1] = 0; + a[2] = 0; + a[4] = -h * e; + a[5] = -d * m; } else { - var g = a[0], a = a[3], l = g * a - e * c; - if (0 === l) { - b.setIdentity(); + var h = d[0], d = d[3], g = h * d - b * f; + if (0 === g) { + c.setIdentity(); return; } - l = 1 / l; - d[0] = a * l; - e = d[1] = -e * l; - c = d[2] = -c * l; - a = d[3] = g * l; - d[4] = -(d[0] * m + c * h); - d[5] = -(e * m + a * h); + g = 1 / g; + a[0] = d * g; + b = a[1] = -b * g; + f = a[2] = -f * g; + d = a[3] = h * g; + a[4] = -(a[0] * e + f * m); + a[5] = -(b * e + d * m); } - b._type = 0; + c._type = 0; } } }; @@ -7787,23 +7810,23 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op return this._data[4]; }; a.prototype.getScaleX = function() { - var b = this._data; - if (1 === b[0] && 0 === b[1]) { + var c = this._data; + if (1 === c[0] && 0 === c[1]) { return 1; } - var a = Math.sqrt(b[0] * b[0] + b[1] * b[1]); - return 0 < b[0] ? a : -a; + var d = Math.sqrt(c[0] * c[0] + c[1] * c[1]); + return 0 < c[0] ? d : -d; }; a.prototype.getScaleY = function() { - var b = this._data; - if (0 === b[2] && 1 === b[3]) { + var c = this._data; + if (0 === c[2] && 1 === c[3]) { return 1; } - var a = Math.sqrt(b[2] * b[2] + b[3] * b[3]); - return 0 < b[3] ? a : -a; + var d = Math.sqrt(c[2] * c[2] + c[3] * c[3]); + return 0 < c[3] ? d : -d; }; a.prototype.getScale = function() { - return(this.getScaleX() + this.getScaleY()) / 2; + return (this.getScaleX() + this.getScaleY()) / 2; }; a.prototype.getAbsoluteScaleX = function() { return Math.abs(this.getScaleX()); @@ -7812,258 +7835,258 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op return Math.abs(this.getScaleY()); }; a.prototype.getRotation = function() { - var b = this._data; - return 180 * Math.atan(b[1] / b[0]) / Math.PI; + var c = this._data; + return 180 * Math.atan(c[1] / c[0]) / Math.PI; }; a.prototype.isScaleOrRotation = function() { - var b = this._data; - return.01 > Math.abs(b[0] * b[2] + b[1] * b[3]); + var c = this._data; + return .01 > Math.abs(c[0] * c[2] + c[1] * c[3]); }; - a.prototype.toString = function(b) { - void 0 === b && (b = 2); - var a = this._data; - return "{" + a[0].toFixed(b) + ", " + a[1].toFixed(b) + ", " + a[2].toFixed(b) + ", " + a[3].toFixed(b) + ", " + a[4].toFixed(b) + ", " + a[5].toFixed(b) + "}"; + a.prototype.toString = function(c) { + void 0 === c && (c = 2); + var d = this._data; + return "{" + d[0].toFixed(c) + ", " + d[1].toFixed(c) + ", " + d[2].toFixed(c) + ", " + d[3].toFixed(c) + ", " + d[4].toFixed(c) + ", " + d[5].toFixed(c) + "}"; }; a.prototype.toWebGLMatrix = function() { - var b = this._data; - return new Float32Array([b[0], b[1], 0, b[2], b[3], 0, b[4], b[5], 1]); + var c = this._data; + return new Float32Array([c[0], c[1], 0, c[2], c[3], 0, c[4], c[5], 1]); }; a.prototype.toCSSTransform = function() { - var b = this._data; - return "matrix(" + b[0] + ", " + b[1] + ", " + b[2] + ", " + b[3] + ", " + b[4] + ", " + b[5] + ")"; + var c = this._data; + return "matrix(" + c[0] + ", " + c[1] + ", " + c[2] + ", " + c[3] + ", " + c[4] + ", " + c[5] + ")"; }; a.createIdentity = function() { - var b = a.allocate(); - b.setIdentity(); - return b; + var c = a.allocate(); + c.setIdentity(); + return c; }; a.prototype.toSVGMatrix = function() { - var b = this._data, f = a._createSVGMatrix(); - f.a = b[0]; - f.b = b[1]; - f.c = b[2]; - f.d = b[3]; - f.e = b[4]; - f.f = b[5]; - return f; + var c = this._data, d = a._createSVGMatrix(); + d.a = c[0]; + d.b = c[1]; + d.c = c[2]; + d.d = c[3]; + d.e = c[4]; + d.f = c[5]; + return d; }; a.prototype.snap = function() { - var b = this._data; - return this.isTranslationOnly() ? (b[0] = 1, b[1] = 0, b[2] = 0, b[3] = 1, b[4] = Math.round(b[4]), b[5] = Math.round(b[5]), this._type = 2, !0) : !1; + var c = this._data; + return this.isTranslationOnly() ? (c[0] = 1, c[1] = 0, c[2] = 0, c[3] = 1, c[4] = Math.round(c[4]), c[5] = Math.round(c[5]), this._type = 2, !0) : !1; }; a.createIdentitySVGMatrix = function() { return a._createSVGMatrix(); }; - a.createSVGMatrixFromArray = function(b) { - var f = a._createSVGMatrix(); - f.a = b[0]; - f.b = b[1]; - f.c = b[2]; - f.d = b[3]; - f.e = b[4]; - f.f = b[5]; - return f; + a.createSVGMatrixFromArray = function(c) { + var d = a._createSVGMatrix(); + d.a = c[0]; + d.b = c[1]; + d.c = c[2]; + d.d = c[3]; + d.e = c[4]; + d.f = c[5]; + return d; }; a.allocationCount = 0; a._dirtyStack = []; - a.multiply = function(b, a) { - var d = a._data; - b.transform(d[0], d[1], d[2], d[3], d[4], d[5]); + a.multiply = function(c, d) { + var a = d._data; + c.transform(a[0], a[1], a[2], a[3], a[4], a[5]); }; return a; }(); - g.Matrix = s; - s = function() { - function a(b) { - this._m = new Float32Array(b); + g.Matrix = t; + t = function() { + function a(c) { + this._m = new Float32Array(c); } a.prototype.asWebGLMatrix = function() { return this._m; }; - a.createCameraLookAt = function(b, f, d) { - f = b.clone().sub(f).normalize(); - d = d.clone().cross(f).normalize(); - var c = f.clone().cross(d); - return new a([d.x, d.y, d.z, 0, c.x, c.y, c.z, 0, f.x, f.y, f.z, 0, b.x, b.y, b.z, 1]); + a.createCameraLookAt = function(c, d, b) { + d = c.clone().sub(d).normalize(); + b = b.clone().cross(d).normalize(); + var e = d.clone().cross(b); + return new a([b.x, b.y, b.z, 0, e.x, e.y, e.z, 0, d.x, d.y, d.z, 0, c.x, c.y, c.z, 1]); }; - a.createLookAt = function(b, f, d) { - f = b.clone().sub(f).normalize(); - d = d.clone().cross(f).normalize(); - var c = f.clone().cross(d); - return new a([d.x, c.x, f.x, 0, c.x, c.y, f.y, 0, f.x, c.z, f.z, 0, -d.dot(b), -c.dot(b), -f.dot(b), 1]); + a.createLookAt = function(c, d, b) { + d = c.clone().sub(d).normalize(); + b = b.clone().cross(d).normalize(); + var e = d.clone().cross(b); + return new a([b.x, e.x, d.x, 0, e.x, e.y, d.y, 0, d.x, e.z, d.z, 0, -b.dot(c), -e.dot(c), -d.dot(c), 1]); }; - a.prototype.mul = function(b) { - b = [b.x, b.y, b.z, 0]; - for (var a = this._m, d = [], e = 0;4 > e;e++) { - d[e] = 0; - for (var c = 4 * e, m = 0;4 > m;m++) { - d[e] += a[c + m] * b[m]; + a.prototype.mul = function(c) { + c = [c.x, c.y, c.z, 0]; + for (var d = this._m, a = [], b = 0;4 > b;b++) { + a[b] = 0; + for (var e = 4 * b, f = 0;4 > f;f++) { + a[b] += d[e + f] * c[f]; } } - return new l(d[0], d[1], d[2]); + return new l(a[0], a[1], a[2]); }; - a.create2DProjection = function(b, f, d) { - return new a([2 / b, 0, 0, 0, 0, -2 / f, 0, 0, 0, 0, 2 / d, 0, -1, 1, 0, 1]); + a.create2DProjection = function(c, d, b) { + return new a([2 / c, 0, 0, 0, 0, -2 / d, 0, 0, 0, 0, 2 / b, 0, -1, 1, 0, 1]); }; - a.createPerspective = function(b) { - b = Math.tan(.5 * Math.PI - .5 * b); - var f = 1 / -4999.9; - return new a([b / 1, 0, 0, 0, 0, b, 0, 0, 0, 0, 5000.1 * f, -1, 0, 0, 1E3 * f, 0]); + a.createPerspective = function(c) { + c = Math.tan(.5 * Math.PI - .5 * c); + var d = 1 / -4999.9; + return new a([c / 1, 0, 0, 0, 0, c, 0, 0, 0, 0, 5000.1 * d, -1, 0, 0, 1E3 * d, 0]); }; a.createIdentity = function() { return a.createTranslation(0, 0); }; - a.createTranslation = function(b, f) { - return new a([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, b, f, 0, 1]); + a.createTranslation = function(c, d) { + return new a([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, c, d, 0, 1]); }; - a.createXRotation = function(b) { - var f = Math.cos(b); - b = Math.sin(b); - return new a([1, 0, 0, 0, 0, f, b, 0, 0, -b, f, 0, 0, 0, 0, 1]); + a.createXRotation = function(c) { + var d = Math.cos(c); + c = Math.sin(c); + return new a([1, 0, 0, 0, 0, d, c, 0, 0, -c, d, 0, 0, 0, 0, 1]); }; - a.createYRotation = function(b) { - var f = Math.cos(b); - b = Math.sin(b); - return new a([f, 0, -b, 0, 0, 1, 0, 0, b, 0, f, 0, 0, 0, 0, 1]); + a.createYRotation = function(c) { + var d = Math.cos(c); + c = Math.sin(c); + return new a([d, 0, -c, 0, 0, 1, 0, 0, c, 0, d, 0, 0, 0, 0, 1]); }; - a.createZRotation = function(b) { - var f = Math.cos(b); - b = Math.sin(b); - return new a([f, b, 0, 0, -b, f, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); + a.createZRotation = function(c) { + var d = Math.cos(c); + c = Math.sin(c); + return new a([d, c, 0, 0, -c, d, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); }; - a.createScale = function(b, f, d) { - return new a([b, 0, 0, 0, 0, f, 0, 0, 0, 0, d, 0, 0, 0, 0, 1]); + a.createScale = function(c, d, b) { + return new a([c, 0, 0, 0, 0, d, 0, 0, 0, 0, b, 0, 0, 0, 0, 1]); }; - a.createMultiply = function(b, f) { - var d = b._m, c = f._m, m = d[0], h = d[1], g = d[2], l = d[3], p = d[4], k = d[5], s = d[6], n = d[7], v = d[8], u = d[9], r = d[10], t = d[11], y = d[12], z = d[13], B = d[14], d = d[15], x = c[0], E = c[1], A = c[2], D = c[3], F = c[4], I = c[5], J = c[6], K = c[7], L = c[8], M = c[9], N = c[10], O = c[11], R = c[12], S = c[13], T = c[14], c = c[15]; - return new a([m * x + h * F + g * L + l * R, m * E + h * I + g * M + l * S, m * A + h * J + g * N + l * T, m * D + h * K + g * O + l * c, p * x + k * F + s * L + n * R, p * E + k * I + s * M + n * S, p * A + k * J + s * N + n * T, p * D + k * K + s * O + n * c, v * x + u * F + r * L + t * R, v * E + u * I + r * M + t * S, v * A + u * J + r * N + t * T, v * D + u * K + r * O + t * c, y * x + z * F + B * L + d * R, y * E + z * I + B * M + d * S, y * A + z * J + B * N + d * T, y * D + z * - K + B * O + d * c]); + a.createMultiply = function(c, d) { + var b = c._m, e = d._m, m = b[0], h = b[1], g = b[2], l = b[3], p = b[4], k = b[5], t = b[6], n = b[7], x = b[8], w = b[9], r = b[10], v = b[11], z = b[12], A = b[13], C = b[14], b = b[15], y = e[0], F = e[1], B = e[2], E = e[3], G = e[4], J = e[5], K = e[6], L = e[7], M = e[8], N = e[9], O = e[10], P = e[11], S = e[12], T = e[13], U = e[14], e = e[15]; + return new a([m * y + h * G + g * M + l * S, m * F + h * J + g * N + l * T, m * B + h * K + g * O + l * U, m * E + h * L + g * P + l * e, p * y + k * G + t * M + n * S, p * F + k * J + t * N + n * T, p * B + k * K + t * O + n * U, p * E + k * L + t * P + n * e, x * y + w * G + r * M + v * S, x * F + w * J + r * N + v * T, x * B + w * K + r * O + v * U, x * E + w * L + r * P + v * e, z * y + A * G + C * M + b * S, z * F + A * J + C * N + b * T, z * B + A * K + C * O + b * U, z * E + A * + L + C * P + b * e]); }; - a.createInverse = function(b) { - var f = b._m; - b = f[0]; - var d = f[1], c = f[2], m = f[3], h = f[4], g = f[5], l = f[6], p = f[7], k = f[8], s = f[9], n = f[10], v = f[11], u = f[12], r = f[13], t = f[14], f = f[15], y = n * f, z = t * v, B = l * f, x = t * p, E = l * v, A = n * p, D = c * f, F = t * m, I = c * v, J = n * m, K = c * p, L = l * m, M = k * r, N = u * s, O = h * r, R = u * g, S = h * s, T = k * g, X = b * r, Y = u * d, Z = b * s, $ = k * d, aa = b * g, ba = h * d, da = y * g + x * s + E * r - (z * g + B * s + A * r), ea = z * d + - D * s + J * r - (y * d + F * s + I * r), r = B * d + F * g + K * r - (x * d + D * g + L * r), d = A * d + I * g + L * s - (E * d + J * g + K * s), g = 1 / (b * da + h * ea + k * r + u * d); - return new a([g * da, g * ea, g * r, g * d, g * (z * h + B * k + A * u - (y * h + x * k + E * u)), g * (y * b + F * k + I * u - (z * b + D * k + J * u)), g * (x * b + D * h + L * u - (B * b + F * h + K * u)), g * (E * b + J * h + K * k - (A * b + I * h + L * k)), g * (M * p + R * v + S * f - (N * p + O * v + T * f)), g * (N * m + X * v + $ * f - (M * m + Y * v + Z * f)), g * (O * m + Y * p + aa * f - (R * m + X * p + ba * f)), g * (T * m + Z * p + ba * v - (S * m + $ * p + aa * v)), g * - (O * n + T * t + N * l - (S * t + M * l + R * n)), g * (Z * t + M * c + Y * n - (X * n + $ * t + N * c)), g * (X * l + ba * t + R * c - (aa * t + O * c + Y * l)), g * (aa * n + S * c + $ * l - (Z * l + ba * n + T * c))]); + a.createInverse = function(c) { + var d = c._m; + c = d[0]; + var b = d[1], e = d[2], m = d[3], h = d[4], g = d[5], l = d[6], p = d[7], k = d[8], t = d[9], n = d[10], x = d[11], w = d[12], r = d[13], v = d[14], d = d[15], z = n * d, A = v * x, C = l * d, y = v * p, F = l * x, B = n * p, E = e * d, G = v * m, J = e * x, K = n * m, L = e * p, M = l * m, N = k * r, O = w * t, P = h * r, S = w * g, T = h * t, U = k * g, X = c * r, Y = w * b, Z = c * t, aa = k * b, ba = c * g, ca = h * b, fa = z * g + y * t + F * r - (A * g + C * t + B * r), ga = A * b + + E * t + K * r - (z * b + G * t + J * r), r = C * b + G * g + L * r - (y * b + E * g + M * r), b = B * b + J * g + M * t - (F * b + K * g + L * t), g = 1 / (c * fa + h * ga + k * r + w * b); + return new a([g * fa, g * ga, g * r, g * b, g * (A * h + C * k + B * w - (z * h + y * k + F * w)), g * (z * c + G * k + J * w - (A * c + E * k + K * w)), g * (y * c + E * h + M * w - (C * c + G * h + L * w)), g * (F * c + K * h + L * k - (B * c + J * h + M * k)), g * (N * p + S * x + T * d - (O * p + P * x + U * d)), g * (O * m + X * x + aa * d - (N * m + Y * x + Z * d)), g * (P * m + Y * p + ba * d - (S * m + X * p + ca * d)), g * (U * m + Z * p + ca * x - (T * m + aa * p + ba * x)), g * + (P * n + U * v + O * l - (T * v + N * l + S * n)), g * (Z * v + N * e + Y * n - (X * n + aa * v + O * e)), g * (X * l + ca * v + S * e - (ba * v + P * e + Y * l)), g * (ba * n + T * e + aa * l - (Z * l + ca * n + U * e))]); }; return a; }(); - g.Matrix3D = s; - s = function() { - function a(b, f, d) { - void 0 === d && (d = 7); - var c = this.size = 1 << d; - this.sizeInBits = d; - this.w = b; - this.h = f; - this.c = Math.ceil(b / c); - this.r = Math.ceil(f / c); + g.Matrix3D = t; + t = function() { + function a(c, d, b) { + void 0 === b && (b = 7); + var e = this.size = 1 << b; + this.sizeInBits = b; + this.w = c; + this.h = d; + this.c = Math.ceil(c / e); + this.r = Math.ceil(d / e); this.grid = []; - for (b = 0;b < this.r;b++) { - for (this.grid.push([]), f = 0;f < this.c;f++) { - this.grid[b][f] = new a.Cell(new u(f * c, b * c, c, c)); + for (c = 0;c < this.r;c++) { + for (this.grid.push([]), d = 0;d < this.c;d++) { + this.grid[c][d] = new a.Cell(new w(d * e, c * e, e, e)); } } } a.prototype.clear = function() { - for (var b = 0;b < this.r;b++) { - for (var a = 0;a < this.c;a++) { - this.grid[b][a].clear(); + for (var c = 0;c < this.r;c++) { + for (var d = 0;d < this.c;d++) { + this.grid[c][d].clear(); } } }; a.prototype.getBounds = function() { - return new u(0, 0, this.w, this.h); + return new w(0, 0, this.w, this.h); }; - a.prototype.addDirtyRectangle = function(b) { - var a = b.x >> this.sizeInBits, d = b.y >> this.sizeInBits; - if (!(a >= this.c || d >= this.r)) { - 0 > a && (a = 0); + a.prototype.addDirtyRectangle = function(c) { + var d = c.x >> this.sizeInBits, a = c.y >> this.sizeInBits; + if (!(d >= this.c || a >= this.r)) { 0 > d && (d = 0); - var c = this.grid[d][a]; - b = b.clone(); - b.snap(); - if (c.region.contains(b)) { - c.bounds.isEmpty() ? c.bounds.set(b) : c.bounds.contains(b) || c.bounds.union(b); + 0 > a && (a = 0); + var b = this.grid[a][d]; + c = c.clone(); + c.snap(); + if (b.region.contains(c)) { + b.bounds.isEmpty() ? b.bounds.set(c) : b.bounds.contains(c) || b.bounds.union(c); } else { - for (var e = Math.min(this.c, Math.ceil((b.x + b.w) / this.size)) - a, m = Math.min(this.r, Math.ceil((b.y + b.h) / this.size)) - d, h = 0;h < e;h++) { - for (var g = 0;g < m;g++) { - c = this.grid[d + g][a + h], c = c.region.clone(), c.intersect(b), c.isEmpty() || this.addDirtyRectangle(c); + for (var e = Math.min(this.c, Math.ceil((c.x + c.w) / this.size)) - d, f = Math.min(this.r, Math.ceil((c.y + c.h) / this.size)) - a, m = 0;m < e;m++) { + for (var h = 0;h < f;h++) { + b = this.grid[a + h][d + m], b = b.region.clone(), b.intersect(c), b.isEmpty() || this.addDirtyRectangle(b); } } } } }; - a.prototype.gatherRegions = function(b) { - for (var a = 0;a < this.r;a++) { - for (var d = 0;d < this.c;d++) { - this.grid[a][d].bounds.isEmpty() || b.push(this.grid[a][d].bounds); + a.prototype.gatherRegions = function(c) { + for (var d = 0;d < this.r;d++) { + for (var a = 0;a < this.c;a++) { + this.grid[d][a].bounds.isEmpty() || c.push(this.grid[d][a].bounds); } } }; - a.prototype.gatherOptimizedRegions = function(b) { - this.gatherRegions(b); + a.prototype.gatherOptimizedRegions = function(c) { + this.gatherRegions(c); }; a.prototype.getDirtyRatio = function() { - var b = this.w * this.h; - if (0 === b) { + var c = this.w * this.h; + if (0 === c) { return 0; } - for (var a = 0, d = 0;d < this.r;d++) { - for (var c = 0;c < this.c;c++) { - a += this.grid[d][c].region.area(); + for (var d = 0, a = 0;a < this.r;a++) { + for (var b = 0;b < this.c;b++) { + d += this.grid[a][b].region.area(); } } - return a / b; + return d / c; }; - a.prototype.render = function(b, a) { - function d(a) { - b.rect(a.x, a.y, a.w, a.h); + a.prototype.render = function(c, d) { + function a(d) { + c.rect(d.x, d.y, d.w, d.h); } - if (a && a.drawGrid) { - b.strokeStyle = "white"; - for (var c = 0;c < this.r;c++) { + if (d && d.drawGrid) { + c.strokeStyle = "white"; + for (var b = 0;b < this.r;b++) { for (var e = 0;e < this.c;e++) { - var m = this.grid[c][e]; - b.beginPath(); - d(m.region); - b.closePath(); - b.stroke(); + var f = this.grid[b][e]; + c.beginPath(); + a(f.region); + c.closePath(); + c.stroke(); } } } - b.strokeStyle = "#E0F8D8"; - for (c = 0;c < this.r;c++) { + c.strokeStyle = "#E0F8D8"; + for (b = 0;b < this.r;b++) { for (e = 0;e < this.c;e++) { - m = this.grid[c][e], b.beginPath(), d(m.bounds), b.closePath(), b.stroke(); + f = this.grid[b][e], c.beginPath(), a(f.bounds), c.closePath(), c.stroke(); } } }; - a.tmpRectangle = u.createEmpty(); + a.tmpRectangle = w.createEmpty(); return a; }(); - g.DirtyRegion = s; + g.DirtyRegion = t; (function(a) { - var b = function() { - function b(a) { - this.region = a; - this.bounds = u.createEmpty(); + var c = function() { + function d(d) { + this.region = d; + this.bounds = w.createEmpty(); } - b.prototype.clear = function() { + d.prototype.clear = function() { this.bounds.setEmpty(); }; - return b; + return d; }(); - a.Cell = b; - })(s = g.DirtyRegion || (g.DirtyRegion = {})); - var v = function() { - function a(b, f, d, c, e, m) { - this.index = b; - this.x = f; - this.y = d; + a.Cell = c; + })(t = g.DirtyRegion || (g.DirtyRegion = {})); + var x = function() { + function a(c, d, b, e, f, m) { + this.index = c; + this.x = d; + this.y = b; this.scale = m; - this.bounds = new u(f * c, d * e, c, e); + this.bounds = new w(d * e, b * f, e, f); } a.prototype.getOBB = function() { if (this._obb) { @@ -8075,71 +8098,71 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op a.corners = p.createEmptyPoints(4); return a; }(); - g.Tile = v; - var d = function() { - function a(b, f, d, c, e) { - this.tileW = d; - this.tileH = c; - this.scale = e; - this.w = b; - this.h = f; - this.rows = Math.ceil(f / c); - this.columns = Math.ceil(b / d); + g.Tile = x; + var e = function() { + function a(c, d, b, e, f) { + this.tileW = b; + this.tileH = e; + this.scale = f; + this.w = c; + this.h = d; + this.rows = Math.ceil(d / e); + this.columns = Math.ceil(c / b); this.tiles = []; - for (f = b = 0;f < this.rows;f++) { + for (d = c = 0;d < this.rows;d++) { for (var m = 0;m < this.columns;m++) { - this.tiles.push(new v(b++, m, f, d, c, e)); + this.tiles.push(new x(c++, m, d, b, e, f)); } } } - a.prototype.getTiles = function(b, a) { - if (a.emptyArea(b)) { - return[]; + a.prototype.getTiles = function(c, d) { + if (d.emptyArea(c)) { + return []; } - if (a.infiniteArea(b)) { + if (d.infiniteArea(c)) { return this.tiles; } - var d = this.columns * this.rows; - return 40 > d && a.isScaleOrRotation() ? this.getFewTiles(b, a, 10 < d) : this.getManyTiles(b, a); + var a = this.columns * this.rows; + return 40 > a && d.isScaleOrRotation() ? this.getFewTiles(c, d, 10 < a) : this.getManyTiles(c, d); }; - a.prototype.getFewTiles = function(b, f, d) { - void 0 === d && (d = !0); - if (f.isTranslationOnly() && 1 === this.tiles.length) { - return this.tiles[0].bounds.intersectsTranslated(b, f.tx, f.ty) ? [this.tiles[0]] : []; + a.prototype.getFewTiles = function(c, d, b) { + void 0 === b && (b = !0); + if (d.isTranslationOnly() && 1 === this.tiles.length) { + return this.tiles[0].bounds.intersectsTranslated(c, d.tx, d.ty) ? [this.tiles[0]] : []; } - f.transformRectangle(b, a._points); - var c; - b = new u(0, 0, this.w, this.h); - d && (c = new m(a._points)); - b.intersect(m.getBounds(a._points)); - if (b.isEmpty()) { - return[]; + d.transformRectangle(c, a._points); + var e; + c = new w(0, 0, this.w, this.h); + b && (e = new m(a._points)); + c.intersect(m.getBounds(a._points)); + if (c.isEmpty()) { + return []; } - var h = b.x / this.tileW | 0; - f = b.y / this.tileH | 0; - var g = Math.ceil((b.x + b.w) / this.tileW) | 0, l = Math.ceil((b.y + b.h) / this.tileH) | 0, h = n(h, 0, this.columns), g = n(g, 0, this.columns); - f = n(f, 0, this.rows); + var h = c.x / this.tileW | 0; + d = c.y / this.tileH | 0; + var g = Math.ceil((c.x + c.w) / this.tileW) | 0, l = Math.ceil((c.y + c.h) / this.tileH) | 0, h = n(h, 0, this.columns), g = n(g, 0, this.columns); + d = n(d, 0, this.rows); for (var l = n(l, 0, this.rows), p = [];h < g;h++) { - for (var k = f;k < l;k++) { - var s = this.tiles[k * this.columns + h]; - s.bounds.intersects(b) && (d ? s.getOBB().intersects(c) : 1) && p.push(s); + for (var k = d;k < l;k++) { + var t = this.tiles[k * this.columns + h]; + t.bounds.intersects(c) && (b ? t.getOBB().intersects(e) : 1) && p.push(t); } } return p; }; - a.prototype.getManyTiles = function(b, f) { - function d(b, a, f) { - return(b - a.x) * (f.y - a.y) / (f.x - a.x) + a.y; + a.prototype.getManyTiles = function(c, d) { + function b(d, c, a) { + return (d - c.x) * (a.y - c.y) / (a.x - c.x) + c.y; } - function c(b, a, f, d, e) { - if (!(0 > f || f >= a.columns)) { - for (d = n(d, 0, a.rows), e = n(e + 1, 0, a.rows);d < e;d++) { - b.push(a.tiles[d * a.columns + f]); + function e(d, c, a, b, f) { + if (!(0 > a || a >= c.columns)) { + for (b = n(b, 0, c.rows), f = n(f + 1, 0, c.rows);b < f;b++) { + d.push(c.tiles[b * c.columns + a]); } } } var m = a._points; - f.transformRectangle(b, m); + d.transformRectangle(c, m); for (var h = m[0].x < m[1].x ? 0 : 1, g = m[2].x < m[3].x ? 2 : 3, g = m[h].x < m[g].x ? h : g, h = [], l = 0;5 > l;l++, g++) { h.push(m[g % 4]); } @@ -8148,110 +8171,110 @@ GFX$$inline_29.cacheShapesThreshold = canvas2DOptions$$inline_36.register(new Op if (h[2].x < l) { p = Math.min(h[0].y, h[1].y, h[2].y, h[3].y); k = Math.max(h[0].y, h[1].y, h[2].y, h[3].y); - var s = Math.floor(p / this.tileH), v = Math.floor(k / this.tileH); - c(m, this, g, s, v); + var t = Math.floor(p / this.tileH), x = Math.floor(k / this.tileH); + e(m, this, g, t, x); return m; } - var u = 0, r = 4, t = !1; + var w = 0, r = 4, v = !1; if (h[0].x === h[1].x || h[0].x === h[3].x) { - h[0].x === h[1].x ? (t = !0, u++) : r--, p = d(l, h[u], h[u + 1]), k = d(l, h[r], h[r - 1]), s = Math.floor(h[u].y / this.tileH), v = Math.floor(h[r].y / this.tileH), c(m, this, g, s, v), g++; + h[0].x === h[1].x ? (v = !0, w++) : r--, p = b(l, h[w], h[w + 1]), k = b(l, h[r], h[r - 1]), t = Math.floor(h[w].y / this.tileH), x = Math.floor(h[r].y / this.tileH), e(m, this, g, t, x), g++; } do { - var C, y, z, B; - h[u + 1].x < l ? (C = h[u + 1].y, z = !0) : (C = d(l, h[u], h[u + 1]), z = !1); - h[r - 1].x < l ? (y = h[r - 1].y, B = !0) : (y = d(l, h[r], h[r - 1]), B = !1); - s = Math.floor((h[u].y < h[u + 1].y ? p : C) / this.tileH); - v = Math.floor((h[r].y > h[r - 1].y ? k : y) / this.tileH); - c(m, this, g, s, v); - if (z && t) { + var D, z, A, C; + h[w + 1].x < l ? (D = h[w + 1].y, A = !0) : (D = b(l, h[w], h[w + 1]), A = !1); + h[r - 1].x < l ? (z = h[r - 1].y, C = !0) : (z = b(l, h[r], h[r - 1]), C = !1); + t = Math.floor((h[w].y < h[w + 1].y ? p : D) / this.tileH); + x = Math.floor((h[r].y > h[r - 1].y ? k : z) / this.tileH); + e(m, this, g, t, x); + if (A && v) { break; } - z ? (t = !0, u++, p = d(l, h[u], h[u + 1])) : p = C; - B ? (r--, k = d(l, h[r], h[r - 1])) : k = y; + A ? (v = !0, w++, p = b(l, h[w], h[w + 1])) : p = D; + C ? (r--, k = b(l, h[r], h[r - 1])) : k = z; g++; l = (g + 1) * this.tileW; - } while (u < r); + } while (w < r); return m; }; a._points = p.createEmptyPoints(4); return a; }(); - g.TileCache = d; - s = function() { - function c(b, a, d) { + g.TileCache = e; + t = function() { + function b(c, d, a) { this._cacheLevels = []; - this._source = b; - this._tileSize = a; - this._minUntiledSize = d; + this._source = c; + this._tileSize = d; + this._minUntiledSize = a; } - c.prototype._getTilesAtScale = function(b, f, c) { - var e = Math.max(f.getAbsoluteScaleX(), f.getAbsoluteScaleY()), h = 0; - 1 !== e && (h = n(Math.round(Math.log(1 / e) / Math.LN2), -5, 3)); - e = a(h); + b.prototype._getTilesAtScale = function(c, d, b) { + var f = Math.max(d.getAbsoluteScaleX(), d.getAbsoluteScaleY()), m = 0; + 1 !== f && (m = n(Math.round(Math.log(1 / f) / Math.LN2), -5, 3)); + f = a(m); if (this._source.hasFlags(1048576)) { for (;;) { - e = a(h); - if (c.contains(this._source.getBounds().getAbsoluteBounds().clone().scale(e, e))) { + f = a(m); + if (b.contains(this._source.getBounds().getAbsoluteBounds().clone().scale(f, f))) { break; } - h--; + m--; } } - this._source.hasFlags(2097152) || (h = n(h, -5, 0)); - e = a(h); - c = 5 + h; - h = this._cacheLevels[c]; - if (!h) { - var h = this._source.getBounds().getAbsoluteBounds().clone().scale(e, e), m, g; - this._source.hasFlags(1048576) || !this._source.hasFlags(4194304) || Math.max(h.w, h.h) <= this._minUntiledSize ? (m = h.w, g = h.h) : m = g = this._tileSize; - h = this._cacheLevels[c] = new d(h.w, h.h, m, g, e); + this._source.hasFlags(2097152) || (m = n(m, -5, 0)); + f = a(m); + b = 5 + m; + m = this._cacheLevels[b]; + if (!m) { + var m = this._source.getBounds().getAbsoluteBounds().clone().scale(f, f), h, g; + this._source.hasFlags(1048576) || !this._source.hasFlags(4194304) || Math.max(m.w, m.h) <= this._minUntiledSize ? (h = m.w, g = m.h) : h = g = this._tileSize; + m = this._cacheLevels[b] = new e(m.w, m.h, h, g, f); } - return h.getTiles(b, f.scaleClone(e, e)); + return m.getTiles(c, d.scaleClone(f, f)); }; - c.prototype.fetchTiles = function(b, a, d, c) { - var e = new u(0, 0, d.canvas.width, d.canvas.height); - b = this._getTilesAtScale(b, a, e); - var h; - a = this._source; - for (var m = 0;m < b.length;m++) { - var g = b[m]; - g.cachedSurfaceRegion && g.cachedSurfaceRegion.surface && !a.hasFlags(1048592) || (h || (h = []), h.push(g)); + b.prototype.fetchTiles = function(c, d, a, b) { + var e = new w(0, 0, a.canvas.width, a.canvas.height); + c = this._getTilesAtScale(c, d, e); + var f; + d = this._source; + for (var m = 0;m < c.length;m++) { + var h = c[m]; + h.cachedSurfaceRegion && h.cachedSurfaceRegion.surface && !d.hasFlags(1048592) || (f || (f = []), f.push(h)); } - h && this._cacheTiles(d, h, c, e); - a.removeFlags(16); - return b; + f && this._cacheTiles(a, f, b, e); + d.removeFlags(16); + return c; }; - c.prototype._getTileBounds = function(b) { - for (var a = u.createEmpty(), d = 0;d < b.length;d++) { - a.union(b[d].bounds); + b.prototype._getTileBounds = function(c) { + for (var d = w.createEmpty(), a = 0;a < c.length;a++) { + d.union(c[a].bounds); } - return a; + return d; }; - c.prototype._cacheTiles = function(b, a, d, c, e) { + b.prototype._cacheTiles = function(c, d, a, b, e) { void 0 === e && (e = 4); - var h = this._getTileBounds(a); - b.save(); - b.setTransform(1, 0, 0, 1, 0, 0); - b.clearRect(0, 0, c.w, c.h); - b.translate(-h.x, -h.y); - b.scale(a[0].scale, a[0].scale); + var f = this._getTileBounds(d); + c.save(); + c.setTransform(1, 0, 0, 1, 0, 0); + c.clearRect(0, 0, b.w, b.h); + c.translate(-f.x, -f.y); + c.scale(d[0].scale, d[0].scale); var m = this._source.getBounds(); - b.translate(-m.x, -m.y); - 2 <= r.traceLevel && r.writer && r.writer.writeLn("Rendering Tiles: " + h); - this._source.render(b, 0); - b.restore(); - for (var m = null, g = 0;g < a.length;g++) { - var l = a[g], p = l.bounds.clone(); - p.x -= h.x; - p.y -= h.y; - c.contains(p) || (m || (m = []), m.push(l)); - l.cachedSurfaceRegion = d(l.cachedSurfaceRegion, b, p); + c.translate(-m.x, -m.y); + 2 <= r.traceLevel && r.writer && r.writer.writeLn("Rendering Tiles: " + f); + this._source.render(c, 0); + c.restore(); + for (var m = null, h = 0;h < d.length;h++) { + var g = d[h], l = g.bounds.clone(); + l.x -= f.x; + l.y -= f.y; + b.contains(l) || (m || (m = []), m.push(g)); + g.cachedSurfaceRegion = a(g.cachedSurfaceRegion, c, l); } - m && (2 <= m.length ? (a = m.slice(0, m.length / 2 | 0), h = m.slice(a.length), this._cacheTiles(b, a, d, c, e - 1), this._cacheTiles(b, h, d, c, e - 1)) : this._cacheTiles(b, m, d, c, e - 1)); + m && (2 <= m.length ? (d = m.slice(0, m.length / 2 | 0), f = m.slice(d.length), this._cacheTiles(c, d, a, b, e - 1), this._cacheTiles(c, f, a, b, e - 1)) : this._cacheTiles(c, m, a, b, e - 1)); }; - return c; + return b; }(); - g.RenderableTileCache = s; + g.RenderableTileCache = t; })(r.Geometry || (r.Geometry = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); @@ -8259,34 +8282,34 @@ __extends = this.__extends || function(k, r) { function g() { this.constructor = k; } - for (var c in r) { - r.hasOwnProperty(c) && (k[c] = r[c]); + for (var b in r) { + r.hasOwnProperty(b) && (k[b] = r[b]); } g.prototype = r.prototype; k.prototype = new g; }; (function(k) { (function(r) { - var g = k.IntegerUtilities.roundToMultipleOfPowerOfTwo, c = r.Geometry.Rectangle; + var g = k.IntegerUtilities.roundToMultipleOfPowerOfTwo, b = r.Geometry.Rectangle; (function(k) { var n = function(a) { - function c() { + function b() { a.apply(this, arguments); } - __extends(c, a); - return c; + __extends(b, a); + return b; }(r.Geometry.Rectangle); k.Region = n; var a = function() { - function a(c, d) { - this._root = new h(0, 0, c | 0, d | 0, !1); + function a(b, e) { + this._root = new h(0, 0, b | 0, e | 0, !1); } - a.prototype.allocate = function(a, d) { + a.prototype.allocate = function(a, b) { a = Math.ceil(a); - d = Math.ceil(d); - var c = this._root.insert(a, d); - c && (c.allocator = this, c.allocated = !0); - return c; + b = Math.ceil(b); + var f = this._root.insert(a, b); + f && (f.allocator = this, f.allocated = !0); + return f; }; a.prototype.free = function(a) { a.clear(); @@ -8297,53 +8320,53 @@ __extends = this.__extends || function(k, r) { return a; }(); k.CompactAllocator = a; - var h = function(c) { - function h(a, e, b, f, q) { - c.call(this, a, e, b, f); + var h = function(b) { + function m(a, f, c, d, q) { + b.call(this, a, f, c, d); this._children = null; this._horizontal = q; this.allocated = !1; } - __extends(h, c); - h.prototype.clear = function() { + __extends(m, b); + m.prototype.clear = function() { this._children = null; this.allocated = !1; }; - h.prototype.insert = function(a, c) { - return this._insert(a, c, 0); + m.prototype.insert = function(a, b) { + return this._insert(a, b, 0); }; - h.prototype._insert = function(d, c, b) { - if (!(b > a.MAX_DEPTH || this.allocated || this.w < d || this.h < c)) { + m.prototype._insert = function(b, f, c) { + if (!(c > a.MAX_DEPTH || this.allocated || this.w < b || this.h < f)) { if (this._children) { - var f; - if ((f = this._children[0]._insert(d, c, b + 1)) || (f = this._children[1]._insert(d, c, b + 1))) { - return f; + var d; + if ((d = this._children[0]._insert(b, f, c + 1)) || (d = this._children[1]._insert(b, f, c + 1))) { + return d; } } else { - return f = !this._horizontal, a.RANDOM_ORIENTATION && (f = .5 <= Math.random()), this._children = this._horizontal ? [new h(this.x, this.y, this.w, c, !1), new h(this.x, this.y + c, this.w, this.h - c, f)] : [new h(this.x, this.y, d, this.h, !0), new h(this.x + d, this.y, this.w - d, this.h, f)], f = this._children[0], f.w === d && f.h === c ? (f.allocated = !0, f) : this._insert(d, c, b + 1); + return d = !this._horizontal, a.RANDOM_ORIENTATION && (d = .5 <= Math.random()), this._children = this._horizontal ? [new m(this.x, this.y, this.w, f, !1), new m(this.x, this.y + f, this.w, this.h - f, d)] : [new m(this.x, this.y, b, this.h, !0), new m(this.x + b, this.y, this.w - b, this.h, d)], d = this._children[0], d.w === b && d.h === f ? (d.allocated = !0, d) : this._insert(b, f, c + 1); } } }; - return h; + return m; }(k.Region), p = function() { - function a(c, d, e, b) { - this._columns = c / e | 0; - this._rows = d / b | 0; - this._sizeW = e; - this._sizeH = b; + function a(b, e, f, c) { + this._columns = b / f | 0; + this._rows = e / c | 0; + this._sizeW = f; + this._sizeH = c; this._freeList = []; this._index = 0; this._total = this._columns * this._rows; } - a.prototype.allocate = function(a, d) { + a.prototype.allocate = function(a, b) { a = Math.ceil(a); - d = Math.ceil(d); - var c = this._sizeW, b = this._sizeH; - if (a > c || d > b) { + b = Math.ceil(b); + var f = this._sizeW, c = this._sizeH; + if (a > f || b > c) { return null; } - var f = this._freeList, q = this._index; - return 0 < f.length ? (c = f.pop(), c.w = a, c.h = d, c.allocated = !0, c) : q < this._total ? (f = q / this._columns | 0, c = new l((q - f * this._columns) * c, f * b, a, d), c.index = q, c.allocator = this, c.allocated = !0, this._index++, c) : null; + var d = this._freeList, q = this._index; + return 0 < d.length ? (f = d.pop(), f.w = a, f.h = b, f.allocated = !0, f) : q < this._total ? (d = q / this._columns | 0, f = new l((q - d * this._columns) * f, d * c, a, b), f.index = q, f.allocator = this, f.allocated = !0, this._index++, f) : null; }; a.prototype.free = function(a) { a.allocated = !1; @@ -8353,63 +8376,63 @@ __extends = this.__extends || function(k, r) { }(); k.GridAllocator = p; var l = function(a) { - function c(d, e, b, f) { - a.call(this, d, e, b, f); + function b(e, f, c, d) { + a.call(this, e, f, c, d); this.index = -1; } - __extends(c, a); - return c; + __extends(b, a); + return b; }(k.Region); k.GridCell = l; - var u = function() { - return function(a, c, d) { + var w = function() { + return function(a, b, e) { this.size = a; - this.region = c; - this.allocator = d; + this.region = b; + this.allocator = e; }; }(), m = function(a) { - function c(d, e, b, f, q) { - a.call(this, d, e, b, f); + function b(e, f, c, d, q) { + a.call(this, e, f, c, d); this.region = q; } - __extends(c, a); - return c; + __extends(b, a); + return b; }(k.Region); k.BucketCell = m; n = function() { - function a(c, d) { + function a(b, e) { this._buckets = []; - this._w = c | 0; - this._h = d | 0; + this._w = b | 0; + this._h = e | 0; this._filled = 0; } - a.prototype.allocate = function(a, d) { + a.prototype.allocate = function(a, e) { a = Math.ceil(a); - d = Math.ceil(d); - var e = Math.max(a, d); - if (a > this._w || d > this._h) { + e = Math.ceil(e); + var f = Math.max(a, e); + if (a > this._w || e > this._h) { return null; } - var b = null, f, q = this._buckets; + var c = null, d, q = this._buckets; do { - for (var h = 0;h < q.length && !(q[h].size >= e && (f = q[h], b = f.allocator.allocate(a, d)));h++) { + for (var h = 0;h < q.length && !(q[h].size >= f && (d = q[h], c = d.allocator.allocate(a, e)));h++) { } - if (!b) { + if (!c) { var l = this._h - this._filled; - if (l < d) { + if (l < e) { return null; } - var h = g(e, 8), k = 2 * h; + var h = g(f, 8), k = 2 * h; k > l && (k = l); if (k < h) { return null; } - l = new c(0, this._filled, this._w, k); - this._buckets.push(new u(h, l, new p(l.w, l.h, h, h))); + l = new b(0, this._filled, this._w, k); + this._buckets.push(new w(h, l, new p(l.w, l.h, h, h))); this._filled += k; } - } while (!b); - return new m(f.region.x + b.x, f.region.y + b.y, b.w, b.h, b); + } while (!c); + return new m(d.region.x + c.x, d.region.y + c.y, c.w, c.h, c); }; a.prototype.free = function(a) { a.region.allocator.free(a.region); @@ -8418,7 +8441,7 @@ __extends = this.__extends || function(k, r) { }(); k.BucketAllocator = n; })(r.RegionAllocator || (r.RegionAllocator = {})); - (function(c) { + (function(b) { var g = function() { function a(a) { this._createSurface = a; @@ -8427,112 +8450,112 @@ __extends = this.__extends || function(k, r) { Object.defineProperty(a.prototype, "surfaces", {get:function() { return this._surfaces; }, enumerable:!0, configurable:!0}); - a.prototype._createNewSurface = function(a, c) { - var g = this._createSurface(a, c); + a.prototype._createNewSurface = function(a, b) { + var g = this._createSurface(a, b); this._surfaces.push(g); return g; }; a.prototype.addSurface = function(a) { this._surfaces.push(a); }; - a.prototype.allocate = function(a, c, g) { + a.prototype.allocate = function(a, b, g) { for (var k = 0;k < this._surfaces.length;k++) { var m = this._surfaces[k]; - if (m !== g && (m = m.allocate(a, c))) { + if (m !== g && (m = m.allocate(a, b))) { return m; } } - return this._createNewSurface(a, c).allocate(a, c); + return this._createNewSurface(a, b).allocate(a, b); }; a.prototype.free = function(a) { }; return a; }(); - c.SimpleAllocator = g; + b.SimpleAllocator = g; })(r.SurfaceRegionAllocator || (r.SurfaceRegionAllocator = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { - var g = r.Geometry.Rectangle, c = r.Geometry.Matrix, t = r.Geometry.DirtyRegion; - (function(b) { - b[b.Normal = 1] = "Normal"; - b[b.Layer = 2] = "Layer"; - b[b.Multiply = 3] = "Multiply"; - b[b.Screen = 4] = "Screen"; - b[b.Lighten = 5] = "Lighten"; - b[b.Darken = 6] = "Darken"; - b[b.Difference = 7] = "Difference"; - b[b.Add = 8] = "Add"; - b[b.Subtract = 9] = "Subtract"; - b[b.Invert = 10] = "Invert"; - b[b.Alpha = 11] = "Alpha"; - b[b.Erase = 12] = "Erase"; - b[b.Overlay = 13] = "Overlay"; - b[b.HardLight = 14] = "HardLight"; + var g = r.Geometry.Rectangle, b = r.Geometry.Matrix, v = r.Geometry.DirtyRegion; + (function(a) { + a[a.Normal = 1] = "Normal"; + a[a.Layer = 2] = "Layer"; + a[a.Multiply = 3] = "Multiply"; + a[a.Screen = 4] = "Screen"; + a[a.Lighten = 5] = "Lighten"; + a[a.Darken = 6] = "Darken"; + a[a.Difference = 7] = "Difference"; + a[a.Add = 8] = "Add"; + a[a.Subtract = 9] = "Subtract"; + a[a.Invert = 10] = "Invert"; + a[a.Alpha = 11] = "Alpha"; + a[a.Erase = 12] = "Erase"; + a[a.Overlay = 13] = "Overlay"; + a[a.HardLight = 14] = "HardLight"; })(r.BlendMode || (r.BlendMode = {})); var n = r.BlendMode; - (function(b) { - b[b.None = 0] = "None"; - b[b.BoundsAutoCompute = 2] = "BoundsAutoCompute"; - b[b.IsMask = 4] = "IsMask"; - b[b.Dirty = 16] = "Dirty"; - b[b.InvalidBounds = 256] = "InvalidBounds"; - b[b.InvalidConcatenatedMatrix = 512] = "InvalidConcatenatedMatrix"; - b[b.InvalidInvertedConcatenatedMatrix = 1024] = "InvalidInvertedConcatenatedMatrix"; - b[b.InvalidConcatenatedColorMatrix = 2048] = "InvalidConcatenatedColorMatrix"; - b[b.UpOnAddedOrRemoved = b.InvalidBounds | b.Dirty] = "UpOnAddedOrRemoved"; - b[b.UpOnMoved = b.InvalidBounds | b.Dirty] = "UpOnMoved"; - b[b.DownOnAddedOrRemoved = b.InvalidConcatenatedMatrix | b.InvalidInvertedConcatenatedMatrix | b.InvalidConcatenatedColorMatrix] = "DownOnAddedOrRemoved"; - b[b.DownOnMoved = b.InvalidConcatenatedMatrix | b.InvalidInvertedConcatenatedMatrix | b.InvalidConcatenatedColorMatrix] = "DownOnMoved"; - b[b.UpOnColorMatrixChanged = b.Dirty] = "UpOnColorMatrixChanged"; - b[b.DownOnColorMatrixChanged = b.InvalidConcatenatedColorMatrix] = "DownOnColorMatrixChanged"; - b[b.Visible = 65536] = "Visible"; - b[b.UpOnInvalidate = b.InvalidBounds | b.Dirty] = "UpOnInvalidate"; - b[b.Default = b.BoundsAutoCompute | b.InvalidBounds | b.InvalidConcatenatedMatrix | b.InvalidInvertedConcatenatedMatrix | b.Visible] = "Default"; - b[b.CacheAsBitmap = 131072] = "CacheAsBitmap"; - b[b.PixelSnapping = 262144] = "PixelSnapping"; - b[b.ImageSmoothing = 524288] = "ImageSmoothing"; - b[b.Dynamic = 1048576] = "Dynamic"; - b[b.Scalable = 2097152] = "Scalable"; - b[b.Tileable = 4194304] = "Tileable"; - b[b.Transparent = 32768] = "Transparent"; + (function(a) { + a[a.None = 0] = "None"; + a[a.BoundsAutoCompute = 2] = "BoundsAutoCompute"; + a[a.IsMask = 4] = "IsMask"; + a[a.Dirty = 16] = "Dirty"; + a[a.InvalidBounds = 256] = "InvalidBounds"; + a[a.InvalidConcatenatedMatrix = 512] = "InvalidConcatenatedMatrix"; + a[a.InvalidInvertedConcatenatedMatrix = 1024] = "InvalidInvertedConcatenatedMatrix"; + a[a.InvalidConcatenatedColorMatrix = 2048] = "InvalidConcatenatedColorMatrix"; + a[a.UpOnAddedOrRemoved = a.InvalidBounds | a.Dirty] = "UpOnAddedOrRemoved"; + a[a.UpOnMoved = a.InvalidBounds | a.Dirty] = "UpOnMoved"; + a[a.DownOnAddedOrRemoved = a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.InvalidConcatenatedColorMatrix] = "DownOnAddedOrRemoved"; + a[a.DownOnMoved = a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.InvalidConcatenatedColorMatrix] = "DownOnMoved"; + a[a.UpOnColorMatrixChanged = a.Dirty] = "UpOnColorMatrixChanged"; + a[a.DownOnColorMatrixChanged = a.InvalidConcatenatedColorMatrix] = "DownOnColorMatrixChanged"; + a[a.Visible = 65536] = "Visible"; + a[a.UpOnInvalidate = a.InvalidBounds | a.Dirty] = "UpOnInvalidate"; + a[a.Default = a.BoundsAutoCompute | a.InvalidBounds | a.InvalidConcatenatedMatrix | a.InvalidInvertedConcatenatedMatrix | a.Visible] = "Default"; + a[a.CacheAsBitmap = 131072] = "CacheAsBitmap"; + a[a.PixelSnapping = 262144] = "PixelSnapping"; + a[a.ImageSmoothing = 524288] = "ImageSmoothing"; + a[a.Dynamic = 1048576] = "Dynamic"; + a[a.Scalable = 2097152] = "Scalable"; + a[a.Tileable = 4194304] = "Tileable"; + a[a.Transparent = 32768] = "Transparent"; })(r.NodeFlags || (r.NodeFlags = {})); var a = r.NodeFlags; - (function(b) { - b[b.Node = 1] = "Node"; - b[b.Shape = 3] = "Shape"; - b[b.Group = 5] = "Group"; - b[b.Stage = 13] = "Stage"; - b[b.Renderable = 33] = "Renderable"; + (function(a) { + a[a.Node = 1] = "Node"; + a[a.Shape = 3] = "Shape"; + a[a.Group = 5] = "Group"; + a[a.Stage = 13] = "Stage"; + a[a.Renderable = 33] = "Renderable"; })(r.NodeType || (r.NodeType = {})); var h = r.NodeType; - (function(b) { - b[b.None = 0] = "None"; - b[b.OnStageBoundsChanged = 1] = "OnStageBoundsChanged"; - b[b.RemovedFromStage = 2] = "RemovedFromStage"; + (function(a) { + a[a.None = 0] = "None"; + a[a.OnStageBoundsChanged = 1] = "OnStageBoundsChanged"; + a[a.RemovedFromStage = 2] = "RemovedFromStage"; })(r.NodeEventType || (r.NodeEventType = {})); var p = function() { - function b() { + function a() { } - b.prototype.visitNode = function(b, a) { + a.prototype.visitNode = function(d, a) { }; - b.prototype.visitShape = function(b, a) { - this.visitNode(b, a); + a.prototype.visitShape = function(d, a) { + this.visitNode(d, a); }; - b.prototype.visitGroup = function(b, a) { - this.visitNode(b, a); - for (var d = b.getChildren(), c = 0;c < d.length;c++) { - d[c].visit(this, a); + a.prototype.visitGroup = function(d, a) { + this.visitNode(d, a); + for (var c = d.getChildren(), b = 0;b < c.length;b++) { + c[b].visit(this, a); } }; - b.prototype.visitStage = function(b, a) { - this.visitGroup(b, a); + a.prototype.visitStage = function(d, a) { + this.visitGroup(d, a); }; - b.prototype.visitRenderable = function(b, a) { - this.visitNode(b, a); + a.prototype.visitRenderable = function(d, a) { + this.visitNode(d, a); }; - return b; + return a; }(); r.NodeVisitor = p; var l = function() { @@ -8540,319 +8563,319 @@ __extends = this.__extends || function(k, r) { }; }(); r.State = l; - var u = function(b) { - function a() { - b.call(this); - this.matrix = c.createIdentity(); + var w = function(a) { + function d() { + a.call(this); + this.matrix = b.createIdentity(); this.depth = 0; } - __extends(a, b); - a.prototype.transform = function(b) { + __extends(d, a); + d.prototype.transform = function(d) { var a = this.clone(); - a.matrix.preMultiply(b.getMatrix()); + a.matrix.preMultiply(d.getMatrix()); return a; }; - a.allocate = function() { - var b = a._dirtyStack, d = null; - b.length && (d = b.pop()); - return d; + d.allocate = function() { + var a = d._dirtyStack, c = null; + a.length && (c = a.pop()); + return c; }; - a.prototype.clone = function() { - var b = a.allocate(); - b || (b = new a); - b.set(this); - return b; + d.prototype.clone = function() { + var a = d.allocate(); + a || (a = new d); + a.set(this); + return a; }; - a.prototype.set = function(b) { - this.matrix.set(b.matrix); + d.prototype.set = function(d) { + this.matrix.set(d.matrix); }; - a.prototype.free = function() { - a._dirtyStack.push(this); + d.prototype.free = function() { + d._dirtyStack.push(this); }; - a._dirtyStack = []; - return a; + d._dirtyStack = []; + return d; }(l); - r.PreRenderState = u; - var m = function(b) { - function a() { - b.apply(this, arguments); + r.PreRenderState = w; + var m = function(a) { + function d() { + a.apply(this, arguments); this.isDirty = !0; } - __extends(a, b); - a.prototype.start = function(b, a) { + __extends(d, a); + d.prototype.start = function(d, a) { this._dirtyRegion = a; - var d = new u; - d.matrix.setIdentity(); - b.visit(this, d); - d.free(); + var c = new w; + c.matrix.setIdentity(); + d.visit(this, c); + c.free(); }; - a.prototype.visitGroup = function(b, a) { - var d = b.getChildren(); - this.visitNode(b, a); - for (var f = 0;f < d.length;f++) { - var c = d[f], e = a.transform(c.getTransform()); - c.visit(this, e); - e.free(); + d.prototype.visitGroup = function(d, a) { + var c = d.getChildren(); + this.visitNode(d, a); + for (var b = 0;b < c.length;b++) { + var e = c[b], f = a.transform(e.getTransform()); + e.visit(this, f); + f.free(); } }; - a.prototype.visitNode = function(b, a) { - b.hasFlags(16) && (this.isDirty = !0); - b.toggleFlags(16, !1); - b.depth = a.depth++; + d.prototype.visitNode = function(d, a) { + d.hasFlags(16) && (this.isDirty = !0); + d.toggleFlags(16, !1); + d.depth = a.depth++; }; - return a; + return d; }(p); r.PreRenderVisitor = m; - l = function(b) { - function a(d) { - b.call(this); + l = function(a) { + function d(d) { + a.call(this); this.writer = d; } - __extends(a, b); - a.prototype.visitNode = function(b, a) { + __extends(d, a); + d.prototype.visitNode = function(d, a) { }; - a.prototype.visitShape = function(b, a) { - this.writer.writeLn(b.toString()); - this.visitNode(b, a); + d.prototype.visitShape = function(d, a) { + this.writer.writeLn(d.toString()); + this.visitNode(d, a); }; - a.prototype.visitGroup = function(b, a) { - this.visitNode(b, a); - var d = b.getChildren(); - this.writer.enter(b.toString() + " " + d.length); - for (var f = 0;f < d.length;f++) { - d[f].visit(this, a); + d.prototype.visitGroup = function(d, a) { + this.visitNode(d, a); + var c = d.getChildren(); + this.writer.enter(d.toString() + " " + c.length); + for (var b = 0;b < c.length;b++) { + c[b].visit(this, a); } this.writer.outdent(); }; - a.prototype.visitStage = function(b, a) { - this.visitGroup(b, a); + d.prototype.visitStage = function(d, a) { + this.visitGroup(d, a); }; - return a; + return d; }(p); r.TracingNodeVisitor = l; - var s = function() { - function b() { + var t = function() { + function c() { this._clip = -1; this._eventListeners = null; - this._id = b._nextId++; + this._id = c._nextId++; this._type = 1; this._index = -1; this._parent = null; this.reset(); } - Object.defineProperty(b.prototype, "id", {get:function() { + Object.defineProperty(c.prototype, "id", {get:function() { return this._id; }, enumerable:!0, configurable:!0}); - b.prototype._dispatchEvent = function(b) { + c.prototype._dispatchEvent = function(d) { if (this._eventListeners) { - for (var a = this._eventListeners, d = 0;d < a.length;d++) { - var c = a[d]; - c.type === b && c.listener(this, b); + for (var a = this._eventListeners, c = 0;c < a.length;c++) { + var b = a[c]; + b.type === d && b.listener(this, d); } } }; - b.prototype.addEventListener = function(b, a) { + c.prototype.addEventListener = function(a, c) { this._eventListeners || (this._eventListeners = []); - this._eventListeners.push({type:b, listener:a}); + this._eventListeners.push({type:a, listener:c}); }; - b.prototype.removeEventListener = function(b, a) { - for (var d = this._eventListeners, c = 0;c < d.length;c++) { - var e = d[c]; - if (e.type === b && e.listener === a) { - d.splice(c, 1); + c.prototype.removeEventListener = function(a, c) { + for (var b = this._eventListeners, e = 0;e < b.length;e++) { + var f = b[e]; + if (f.type === a && f.listener === c) { + b.splice(e, 1); break; } } }; - Object.defineProperty(b.prototype, "properties", {get:function() { + Object.defineProperty(c.prototype, "properties", {get:function() { return this._properties || (this._properties = {}); }, enumerable:!0, configurable:!0}); - b.prototype.reset = function() { + c.prototype.reset = function() { this._flags = a.Default; this._properties = this._transform = this._layer = this._bounds = null; this.depth = -1; }; - Object.defineProperty(b.prototype, "clip", {get:function() { + Object.defineProperty(c.prototype, "clip", {get:function() { return this._clip; - }, set:function(b) { - this._clip = b; + }, set:function(a) { + this._clip = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(b.prototype, "parent", {get:function() { + Object.defineProperty(c.prototype, "parent", {get:function() { return this._parent; }, enumerable:!0, configurable:!0}); - b.prototype.getTransformedBounds = function(b) { - var a = this.getBounds(!0); - if (b !== this && !a.isEmpty()) { - var d = this.getTransform().getConcatenatedMatrix(); - b ? (b = b.getTransform().getInvertedConcatenatedMatrix(), b.preMultiply(d), b.transformRectangleAABB(a), b.free()) : d.transformRectangleAABB(a); + c.prototype.getTransformedBounds = function(a) { + var c = this.getBounds(!0); + if (a !== this && !c.isEmpty()) { + var b = this.getTransform().getConcatenatedMatrix(); + a ? (a = a.getTransform().getInvertedConcatenatedMatrix(), a.preMultiply(b), a.transformRectangleAABB(c), a.free()) : b.transformRectangleAABB(c); } - return a; + return c; }; - b.prototype._markCurrentBoundsAsDirtyRegion = function() { + c.prototype._markCurrentBoundsAsDirtyRegion = function() { }; - b.prototype.getStage = function(b) { - void 0 === b && (b = !0); - for (var a = this._parent;a;) { - if (a.isType(13)) { - var d = a; - if (b) { - if (d.dirtyRegion) { - return d; + c.prototype.getStage = function(a) { + void 0 === a && (a = !0); + for (var c = this._parent;c;) { + if (c.isType(13)) { + var b = c; + if (a) { + if (b.dirtyRegion) { + return b; } } else { - return d; + return b; } } + c = c._parent; + } + return null; + }; + c.prototype.getChildren = function(a) { + throw void 0; + }; + c.prototype.getBounds = function(a) { + throw void 0; + }; + c.prototype.setBounds = function(a) { + (this._bounds || (this._bounds = g.createEmpty())).set(a); + this.removeFlags(256); + }; + c.prototype.clone = function() { + throw void 0; + }; + c.prototype.setFlags = function(a) { + this._flags |= a; + }; + c.prototype.hasFlags = function(a) { + return (this._flags & a) === a; + }; + c.prototype.hasAnyFlags = function(a) { + return !!(this._flags & a); + }; + c.prototype.removeFlags = function(a) { + this._flags &= ~a; + }; + c.prototype.toggleFlags = function(a, c) { + this._flags = c ? this._flags | a : this._flags & ~a; + }; + c.prototype._propagateFlagsUp = function(a) { + if (0 !== a && !this.hasFlags(a)) { + this.hasFlags(2) || (a &= -257); + this.setFlags(a); + var c = this._parent; + c && c._propagateFlagsUp(a); + } + }; + c.prototype._propagateFlagsDown = function(a) { + throw void 0; + }; + c.prototype.isAncestor = function(a) { + for (;a;) { + if (a === this) { + return !0; + } + a = a._parent; + } + return !1; + }; + c._getAncestors = function(a, b) { + var e = c._path; + for (e.length = 0;a && a !== b;) { + e.push(a), a = a._parent; + } + return e; + }; + c.prototype._findClosestAncestor = function() { + for (var a = this;a;) { + if (!1 === a.hasFlags(512)) { + return a; + } a = a._parent; } return null; }; - b.prototype.getChildren = function(b) { - throw void 0; + c.prototype.isType = function(a) { + return this._type === a; }; - b.prototype.getBounds = function(b) { - throw void 0; + c.prototype.isTypeOf = function(a) { + return (this._type & a) === a; }; - b.prototype.setBounds = function(b) { - (this._bounds || (this._bounds = g.createEmpty())).set(b); - this.removeFlags(256); - }; - b.prototype.clone = function() { - throw void 0; - }; - b.prototype.setFlags = function(b) { - this._flags |= b; - }; - b.prototype.hasFlags = function(b) { - return(this._flags & b) === b; - }; - b.prototype.hasAnyFlags = function(b) { - return!!(this._flags & b); - }; - b.prototype.removeFlags = function(b) { - this._flags &= ~b; - }; - b.prototype.toggleFlags = function(b, a) { - this._flags = a ? this._flags | b : this._flags & ~b; - }; - b.prototype._propagateFlagsUp = function(b) { - if (0 !== b && !this.hasFlags(b)) { - this.hasFlags(2) || (b &= -257); - this.setFlags(b); - var a = this._parent; - a && a._propagateFlagsUp(b); - } - }; - b.prototype._propagateFlagsDown = function(b) { - throw void 0; - }; - b.prototype.isAncestor = function(b) { - for (;b;) { - if (b === this) { - return!0; - } - b = b._parent; - } - return!1; - }; - b._getAncestors = function(a, d) { - var c = b._path; - for (c.length = 0;a && a !== d;) { - c.push(a), a = a._parent; - } - return c; - }; - b.prototype._findClosestAncestor = function() { - for (var b = this;b;) { - if (!1 === b.hasFlags(512)) { - return b; - } - b = b._parent; - } - return null; - }; - b.prototype.isType = function(b) { - return this._type === b; - }; - b.prototype.isTypeOf = function(b) { - return(this._type & b) === b; - }; - b.prototype.isLeaf = function() { + c.prototype.isLeaf = function() { return this.isType(33) || this.isType(3); }; - b.prototype.isLinear = function() { + c.prototype.isLinear = function() { if (this.isLeaf()) { - return!0; + return !0; } if (this.isType(5)) { - var b = this._children; - if (1 === b.length && b[0].isLinear()) { - return!0; + var a = this._children; + if (1 === a.length && a[0].isLinear()) { + return !0; } } - return!1; + return !1; }; - b.prototype.getTransformMatrix = function() { - var b; - void 0 === b && (b = !1); - return this.getTransform().getMatrix(b); + c.prototype.getTransformMatrix = function() { + var a; + void 0 === a && (a = !1); + return this.getTransform().getMatrix(a); }; - b.prototype.getTransform = function() { - null === this._transform && (this._transform = new d(this)); + c.prototype.getTransform = function() { + null === this._transform && (this._transform = new e(this)); return this._transform; }; - b.prototype.getLayer = function() { - null === this._layer && (this._layer = new e(this)); + c.prototype.getLayer = function() { + null === this._layer && (this._layer = new f(this)); return this._layer; }; - b.prototype.visit = function(b, a) { + c.prototype.visit = function(a, c) { switch(this._type) { case 1: - b.visitNode(this, a); + a.visitNode(this, c); break; case 5: - b.visitGroup(this, a); + a.visitGroup(this, c); break; case 13: - b.visitStage(this, a); + a.visitStage(this, c); break; case 3: - b.visitShape(this, a); + a.visitShape(this, c); break; case 33: - b.visitRenderable(this, a); + a.visitRenderable(this, c); break; default: k.Debug.unexpectedCase(); } }; - b.prototype.invalidate = function() { + c.prototype.invalidate = function() { this._propagateFlagsUp(a.UpOnInvalidate); }; - b.prototype.toString = function(b) { - void 0 === b && (b = !1); - var a = h[this._type] + " " + this._id; - b && (a += " " + this._bounds.toString()); - return a; + c.prototype.toString = function(a) { + void 0 === a && (a = !1); + var c = h[this._type] + " " + this._id; + a && (c += " " + this._bounds.toString()); + return c; }; - b._path = []; - b._nextId = 0; - return b; + c._path = []; + c._nextId = 0; + return c; }(); - r.Node = s; - var v = function(b) { + r.Node = t; + var x = function(c) { function d() { - b.call(this); + c.call(this); this._type = 5; this._children = []; } - __extends(d, b); - d.prototype.getChildren = function(b) { - void 0 === b && (b = !1); - return b ? this._children.slice(0) : this._children; + __extends(d, c); + d.prototype.getChildren = function(a) { + void 0 === a && (a = !1); + return a ? this._children.slice(0) : this._children; }; - d.prototype.childAt = function(b) { - return this._children[b]; + d.prototype.childAt = function(a) { + return this._children[a]; }; Object.defineProperty(d.prototype, "child", {get:function() { return this._children[0]; @@ -8860,164 +8883,164 @@ __extends = this.__extends || function(k, r) { Object.defineProperty(d.prototype, "groupChild", {get:function() { return this._children[0]; }, enumerable:!0, configurable:!0}); - d.prototype.addChild = function(b) { - b._parent && b._parent.removeChildAt(b._index); - b._parent = this; - b._index = this._children.length; - this._children.push(b); - this._propagateFlagsUp(a.UpOnAddedOrRemoved); - b._propagateFlagsDown(a.DownOnAddedOrRemoved); - }; - d.prototype.removeChildAt = function(b) { - var d = this._children[b]; - this._children.splice(b, 1); - d._index = -1; - d._parent = null; + d.prototype.addChild = function(d) { + d._parent && d._parent.removeChildAt(d._index); + d._parent = this; + d._index = this._children.length; + this._children.push(d); this._propagateFlagsUp(a.UpOnAddedOrRemoved); d._propagateFlagsDown(a.DownOnAddedOrRemoved); }; + d.prototype.removeChildAt = function(d) { + var c = this._children[d]; + this._children.splice(d, 1); + c._index = -1; + c._parent = null; + this._propagateFlagsUp(a.UpOnAddedOrRemoved); + c._propagateFlagsDown(a.DownOnAddedOrRemoved); + }; d.prototype.clearChildren = function() { - for (var b = 0;b < this._children.length;b++) { - var d = this._children[b]; - d && (d._index = -1, d._parent = null, d._propagateFlagsDown(a.DownOnAddedOrRemoved)); + for (var d = 0;d < this._children.length;d++) { + var c = this._children[d]; + c && (c._index = -1, c._parent = null, c._propagateFlagsDown(a.DownOnAddedOrRemoved)); } this._children.length = 0; this._propagateFlagsUp(a.UpOnAddedOrRemoved); }; - d.prototype._propagateFlagsDown = function(b) { - if (!this.hasFlags(b)) { - this.setFlags(b); - for (var a = this._children, d = 0;d < a.length;d++) { - a[d]._propagateFlagsDown(b); + d.prototype._propagateFlagsDown = function(a) { + if (!this.hasFlags(a)) { + this.setFlags(a); + for (var d = this._children, c = 0;c < d.length;c++) { + d[c]._propagateFlagsDown(a); } } }; - d.prototype.getBounds = function(b) { - void 0 === b && (b = !1); - var a = this._bounds || (this._bounds = g.createEmpty()); + d.prototype.getBounds = function(a) { + void 0 === a && (a = !1); + var d = this._bounds || (this._bounds = g.createEmpty()); if (this.hasFlags(256)) { - a.setEmpty(); - for (var d = this._children, c = g.allocate(), f = 0;f < d.length;f++) { - var e = d[f]; - c.set(e.getBounds()); - e.getTransformMatrix().transformRectangleAABB(c); - a.union(c); + d.setEmpty(); + for (var c = this._children, b = g.allocate(), e = 0;e < c.length;e++) { + var f = c[e]; + b.set(f.getBounds()); + f.getTransformMatrix().transformRectangleAABB(b); + d.union(b); } - c.free(); + b.free(); this.removeFlags(256); } - return b ? a.clone() : a; + return a ? d.clone() : d; }; return d; - }(s); - r.Group = v; - var d = function() { - function b(b) { - this._node = b; - this._matrix = c.createIdentity(); + }(t); + r.Group = x; + var e = function() { + function c(a) { + this._node = a; + this._matrix = b.createIdentity(); this._colorMatrix = r.ColorMatrix.createIdentity(); - this._concatenatedMatrix = c.createIdentity(); - this._invertedConcatenatedMatrix = c.createIdentity(); + this._concatenatedMatrix = b.createIdentity(); + this._invertedConcatenatedMatrix = b.createIdentity(); this._concatenatedColorMatrix = r.ColorMatrix.createIdentity(); } - b.prototype.setMatrix = function(b) { - this._matrix.isEqual(b) || (this._matrix.set(b), this._node._propagateFlagsUp(a.UpOnMoved), this._node._propagateFlagsDown(a.DownOnMoved)); + c.prototype.setMatrix = function(d) { + this._matrix.isEqual(d) || (this._matrix.set(d), this._node._propagateFlagsUp(a.UpOnMoved), this._node._propagateFlagsDown(a.DownOnMoved)); }; - b.prototype.setColorMatrix = function(b) { - this._colorMatrix.set(b); + c.prototype.setColorMatrix = function(d) { + this._colorMatrix.set(d); this._node._propagateFlagsUp(a.UpOnColorMatrixChanged); this._node._propagateFlagsDown(a.DownOnColorMatrixChanged); }; - b.prototype.getMatrix = function(b) { - void 0 === b && (b = !1); - return b ? this._matrix.clone() : this._matrix; + c.prototype.getMatrix = function(a) { + void 0 === a && (a = !1); + return a ? this._matrix.clone() : this._matrix; }; - b.prototype.hasColorMatrix = function() { + c.prototype.hasColorMatrix = function() { return null !== this._colorMatrix; }; - b.prototype.getColorMatrix = function() { - var b; - void 0 === b && (b = !1); + c.prototype.getColorMatrix = function() { + var a; + void 0 === a && (a = !1); null === this._colorMatrix && (this._colorMatrix = r.ColorMatrix.createIdentity()); - return b ? this._colorMatrix.clone() : this._colorMatrix; + return a ? this._colorMatrix.clone() : this._colorMatrix; }; - b.prototype.getConcatenatedMatrix = function(b) { - void 0 === b && (b = !1); + c.prototype.getConcatenatedMatrix = function(a) { + void 0 === a && (a = !1); if (this._node.hasFlags(512)) { - for (var a = this._node._findClosestAncestor(), d = s._getAncestors(this._node, a), e = a ? a.getTransform()._concatenatedMatrix.clone() : c.createIdentity(), h = d.length - 1;0 <= h;h--) { - var a = d[h], m = a.getTransform(); - e.preMultiply(m._matrix); - m._concatenatedMatrix.set(e); - a.removeFlags(512); + for (var c = this._node._findClosestAncestor(), e = t._getAncestors(this._node, c), f = c ? c.getTransform()._concatenatedMatrix.clone() : b.createIdentity(), m = e.length - 1;0 <= m;m--) { + var c = e[m], h = c.getTransform(); + f.preMultiply(h._matrix); + h._concatenatedMatrix.set(f); + c.removeFlags(512); } } - return b ? this._concatenatedMatrix.clone() : this._concatenatedMatrix; + return a ? this._concatenatedMatrix.clone() : this._concatenatedMatrix; }; - b.prototype.getInvertedConcatenatedMatrix = function() { - var b = !0; - void 0 === b && (b = !1); + c.prototype.getInvertedConcatenatedMatrix = function() { + var a = !0; + void 0 === a && (a = !1); this._node.hasFlags(1024) && (this.getConcatenatedMatrix().inverse(this._invertedConcatenatedMatrix), this._node.removeFlags(1024)); - return b ? this._invertedConcatenatedMatrix.clone() : this._invertedConcatenatedMatrix; + return a ? this._invertedConcatenatedMatrix.clone() : this._invertedConcatenatedMatrix; }; - b.prototype.toString = function() { + c.prototype.toString = function() { return this._matrix.toString(); }; - return b; + return c; }(); - r.Transform = d; - var e = function() { - function b(b) { - this._node = b; + r.Transform = e; + var f = function() { + function a(d) { + this._node = d; this._mask = null; this._blendMode = 1; } - Object.defineProperty(b.prototype, "filters", {get:function() { + Object.defineProperty(a.prototype, "filters", {get:function() { return this._filters; - }, set:function(b) { - this._filters = b; + }, set:function(a) { + this._filters = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(b.prototype, "blendMode", {get:function() { + Object.defineProperty(a.prototype, "blendMode", {get:function() { return this._blendMode; - }, set:function(b) { - this._blendMode = b; + }, set:function(a) { + this._blendMode = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(b.prototype, "mask", {get:function() { + Object.defineProperty(a.prototype, "mask", {get:function() { return this._mask; - }, set:function(b) { - this._mask && this._mask !== b && this._mask.removeFlags(4); - (this._mask = b) && this._mask.setFlags(4); + }, set:function(a) { + this._mask && this._mask !== a && this._mask.removeFlags(4); + (this._mask = a) && this._mask.setFlags(4); }, enumerable:!0, configurable:!0}); - b.prototype.toString = function() { + a.prototype.toString = function() { return n[this._blendMode]; }; - return b; + return a; }(); - r.Layer = e; - l = function(b) { - function a(d) { - b.call(this); + r.Layer = f; + l = function(a) { + function d(d) { + a.call(this); this._source = d; this._type = 3; this.ratio = 0; } - __extends(a, b); - a.prototype.getBounds = function(b) { - void 0 === b && (b = !1); - var a = this._bounds || (this._bounds = g.createEmpty()); - this.hasFlags(256) && (a.set(this._source.getBounds()), this.removeFlags(256)); - return b ? a.clone() : a; + __extends(d, a); + d.prototype.getBounds = function(a) { + void 0 === a && (a = !1); + var d = this._bounds || (this._bounds = g.createEmpty()); + this.hasFlags(256) && (d.set(this._source.getBounds()), this.removeFlags(256)); + return a ? d.clone() : d; }; - Object.defineProperty(a.prototype, "source", {get:function() { + Object.defineProperty(d.prototype, "source", {get:function() { return this._source; }, enumerable:!0, configurable:!0}); - a.prototype._propagateFlagsDown = function(b) { - this.setFlags(b); + d.prototype._propagateFlagsDown = function(a) { + this.setFlags(a); }; - a.prototype.getChildren = function(b) { - return[this._source]; + d.prototype.getChildren = function(a) { + return [this._source]; }; - return a; - }(s); + return d; + }(t); r.Shape = l; r.RendererOptions = function() { return function() { @@ -9027,125 +9050,125 @@ __extends = this.__extends || function(k, r) { this.clear = !0; }; }(); - (function(b) { - b[b.Canvas2D = 0] = "Canvas2D"; - b[b.WebGL = 1] = "WebGL"; - b[b.Both = 2] = "Both"; - b[b.DOM = 3] = "DOM"; - b[b.SVG = 4] = "SVG"; + (function(a) { + a[a.Canvas2D = 0] = "Canvas2D"; + a[a.WebGL = 1] = "WebGL"; + a[a.Both = 2] = "Both"; + a[a.DOM = 3] = "DOM"; + a[a.SVG = 4] = "SVG"; })(r.Backend || (r.Backend = {})); - p = function(b) { - function a(d, c, f) { - b.call(this); + p = function(a) { + function d(d, b, e) { + a.call(this); this._container = d; - this._stage = c; - this._options = f; + this._stage = b; + this._options = e; this._viewport = g.createSquare(); this._devicePixelRatio = 1; } - __extends(a, b); - Object.defineProperty(a.prototype, "viewport", {set:function(b) { - this._viewport.set(b); + __extends(d, a); + Object.defineProperty(d.prototype, "viewport", {set:function(a) { + this._viewport.set(a); }, enumerable:!0, configurable:!0}); - a.prototype.render = function() { + d.prototype.render = function() { throw void 0; }; - a.prototype.resize = function() { + d.prototype.resize = function() { throw void 0; }; - a.prototype.screenShot = function(b, a) { + d.prototype.screenShot = function(a, d) { throw void 0; }; - return a; + return d; }(p); r.Renderer = p; - p = function(b) { - function a(d, c, e) { - void 0 === e && (e = !1); - b.call(this); + p = function(a) { + function d(b, e, f) { + void 0 === f && (f = !1); + a.call(this); this._preVisitor = new m; this._flags &= -3; this._type = 13; - this._scaleMode = a.DEFAULT_SCALE; - this._align = a.DEFAULT_ALIGN; - this._content = new v; + this._scaleMode = d.DEFAULT_SCALE; + this._align = d.DEFAULT_ALIGN; + this._content = new x; this._content._flags &= -3; this.addChild(this._content); this.setFlags(16); - this.setBounds(new g(0, 0, d, c)); - e ? (this._dirtyRegion = new t(d, c), this._dirtyRegion.addDirtyRectangle(new g(0, 0, d, c))) : this._dirtyRegion = null; + this.setBounds(new g(0, 0, b, e)); + f ? (this._dirtyRegion = new v(b, e), this._dirtyRegion.addDirtyRectangle(new g(0, 0, b, e))) : this._dirtyRegion = null; this._updateContentMatrix(); } - __extends(a, b); - Object.defineProperty(a.prototype, "dirtyRegion", {get:function() { + __extends(d, a); + Object.defineProperty(d.prototype, "dirtyRegion", {get:function() { return this._dirtyRegion; }, enumerable:!0, configurable:!0}); - a.prototype.setBounds = function(a) { - b.prototype.setBounds.call(this, a); + d.prototype.setBounds = function(d) { + a.prototype.setBounds.call(this, d); this._updateContentMatrix(); this._dispatchEvent(1); - this._dirtyRegion && (this._dirtyRegion = new t(a.w, a.h), this._dirtyRegion.addDirtyRectangle(a)); + this._dirtyRegion && (this._dirtyRegion = new v(d.w, d.h), this._dirtyRegion.addDirtyRectangle(d)); }; - Object.defineProperty(a.prototype, "content", {get:function() { + Object.defineProperty(d.prototype, "content", {get:function() { return this._content; }, enumerable:!0, configurable:!0}); - a.prototype.readyToRender = function() { + d.prototype.readyToRender = function() { this._preVisitor.isDirty = !1; this._preVisitor.start(this, this._dirtyRegion); return this._preVisitor.isDirty ? !0 : !1; }; - Object.defineProperty(a.prototype, "align", {get:function() { + Object.defineProperty(d.prototype, "align", {get:function() { return this._align; - }, set:function(b) { - this._align = b; + }, set:function(a) { + this._align = a; this._updateContentMatrix(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(a.prototype, "scaleMode", {get:function() { + Object.defineProperty(d.prototype, "scaleMode", {get:function() { return this._scaleMode; - }, set:function(b) { - this._scaleMode = b; + }, set:function(a) { + this._scaleMode = a; this._updateContentMatrix(); }, enumerable:!0, configurable:!0}); - a.prototype._updateContentMatrix = function() { - if (this._scaleMode === a.DEFAULT_SCALE && this._align === a.DEFAULT_ALIGN) { - this._content.getTransform().setMatrix(new c(1, 0, 0, 1, 0, 0)); + d.prototype._updateContentMatrix = function() { + if (this._scaleMode === d.DEFAULT_SCALE && this._align === d.DEFAULT_ALIGN) { + this._content.getTransform().setMatrix(new b(1, 0, 0, 1, 0, 0)); } else { - var b = this.getBounds(), d = this._content.getBounds(), e = b.w / d.w, h = b.h / d.h; + var a = this.getBounds(), c = this._content.getBounds(), e = a.w / c.w, f = a.h / c.h; switch(this._scaleMode) { case 2: - e = h = Math.max(e, h); + e = f = Math.max(e, f); break; case 4: - e = h = 1; + e = f = 1; break; case 1: break; default: - e = h = Math.min(e, h); + e = f = Math.min(e, f); } var m; - m = this._align & 4 ? 0 : this._align & 8 ? b.w - d.w * e : (b.w - d.w * e) / 2; - b = this._align & 1 ? 0 : this._align & 2 ? b.h - d.h * h : (b.h - d.h * h) / 2; - this._content.getTransform().setMatrix(new c(e, 0, 0, h, m, b)); + m = this._align & 4 ? 0 : this._align & 8 ? a.w - c.w * e : (a.w - c.w * e) / 2; + a = this._align & 1 ? 0 : this._align & 2 ? a.h - c.h * f : (a.h - c.h * f) / 2; + this._content.getTransform().setMatrix(new b(e, 0, 0, f, m, a)); } }; - a.DEFAULT_SCALE = 4; - a.DEFAULT_ALIGN = 5; - return a; - }(v); + d.DEFAULT_SCALE = 4; + d.DEFAULT_ALIGN = 5; + return d; + }(x); r.Stage = p; })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { - function g(a, b, d) { - return a + (b - a) * d; + function g(a, c, d) { + return a + (c - a) * d; } - function c(a, b, d) { - return g(a >> 24 & 255, b >> 24 & 255, d) << 24 | g(a >> 16 & 255, b >> 16 & 255, d) << 16 | g(a >> 8 & 255, b >> 8 & 255, d) << 8 | g(a & 255, b & 255, d); + function b(a, c, d) { + return g(a >> 24 & 255, c >> 24 & 255, d) << 24 | g(a >> 16 & 255, c >> 16 & 255, d) << 16 | g(a >> 8 & 255, c >> 8 & 255, d) << 8 | g(a & 255, c & 255, d); } - var t = r.Geometry.Point, n = r.Geometry.Rectangle, a = r.Geometry.Matrix, h = k.ArrayUtilities.indexOf, p = function(a) { - function b() { + var v = r.Geometry.Point, n = r.Geometry.Rectangle, a = r.Geometry.Matrix, h = k.ArrayUtilities.indexOf, p = function(a) { + function c() { a.call(this); this._parents = []; this._renderableParents = []; @@ -9153,89 +9176,89 @@ __extends = this.__extends || function(k, r) { this._flags &= -3; this._type = 33; } - __extends(b, a); - Object.defineProperty(b.prototype, "parents", {get:function() { + __extends(c, a); + Object.defineProperty(c.prototype, "parents", {get:function() { return this._parents; }, enumerable:!0, configurable:!0}); - b.prototype.addParent = function(b) { - h(this._parents, b); - this._parents.push(b); + c.prototype.addParent = function(a) { + h(this._parents, a); + this._parents.push(a); }; - b.prototype.willRender = function() { - for (var b = this._parents, a = 0;a < b.length;a++) { - for (var d = b[a];d;) { - if (d.isType(13)) { - return!0; + c.prototype.willRender = function() { + for (var a = this._parents, c = 0;c < a.length;c++) { + for (var b = a[c];b;) { + if (b.isType(13)) { + return !0; } - if (!d.hasFlags(65536)) { + if (!b.hasFlags(65536)) { break; } - d = d._parent; + b = b._parent; } } - return!1; + return !1; }; - b.prototype.addRenderableParent = function(b) { - h(this._renderableParents, b); - this._renderableParents.push(b); + c.prototype.addRenderableParent = function(a) { + h(this._renderableParents, a); + this._renderableParents.push(a); }; - b.prototype.wrap = function() { - for (var b, a = this._parents, d = 0;d < a.length;d++) { - if (b = a[d], !b._parent) { - return b; + c.prototype.wrap = function() { + for (var a, c = this._parents, b = 0;b < c.length;b++) { + if (a = c[b], !a._parent) { + return a; } } - b = new r.Shape(this); - this.addParent(b); - return b; + a = new r.Shape(this); + this.addParent(a); + return a; }; - b.prototype.invalidate = function() { + c.prototype.invalidate = function() { this.setFlags(16); - for (var b = this._parents, a = 0;a < b.length;a++) { - b[a].invalidate(); + for (var a = this._parents, c = 0;c < a.length;c++) { + a[c].invalidate(); } - b = this._renderableParents; - for (a = 0;a < b.length;a++) { - b[a].invalidate(); + a = this._renderableParents; + for (c = 0;c < a.length;c++) { + a[c].invalidate(); } - if (b = this._invalidateEventListeners) { - for (a = 0;a < b.length;a++) { - b[a](this); + if (a = this._invalidateEventListeners) { + for (c = 0;c < a.length;c++) { + a[c](this); } } }; - b.prototype.addInvalidateEventListener = function(b) { + c.prototype.addInvalidateEventListener = function(a) { this._invalidateEventListeners || (this._invalidateEventListeners = []); - h(this._invalidateEventListeners, b); - this._invalidateEventListeners.push(b); + h(this._invalidateEventListeners, a); + this._invalidateEventListeners.push(a); }; - b.prototype.getBounds = function(b) { - void 0 === b && (b = !1); - return b ? this._bounds.clone() : this._bounds; + c.prototype.getBounds = function(a) { + void 0 === a && (a = !1); + return a ? this._bounds.clone() : this._bounds; }; - b.prototype.getChildren = function(b) { + c.prototype.getChildren = function(a) { return null; }; - b.prototype._propagateFlagsUp = function(b) { - if (0 !== b && !this.hasFlags(b)) { - for (var a = 0;a < this._parents.length;a++) { - this._parents[a]._propagateFlagsUp(b); + c.prototype._propagateFlagsUp = function(a) { + if (0 !== a && !this.hasFlags(a)) { + for (var c = 0;c < this._parents.length;c++) { + this._parents[c]._propagateFlagsUp(a); } } }; - b.prototype.render = function(b, a, d, c, e) { + c.prototype.render = function(a, c, b, e, f) { }; - return b; + return c; }(r.Node); r.Renderable = p; var l = function(a) { - function b(b, d) { + function c(d, c) { a.call(this); - this.setBounds(b); - this.render = d; + this.setBounds(d); + this.render = c; } - __extends(b, a); - return b; + __extends(c, a); + return c; }(p); r.CustomRenderable = l; (function(a) { @@ -9245,7 +9268,7 @@ __extends = this.__extends || function(k, r) { a[a.Ended = 4] = "Ended"; })(r.RenderableVideoState || (r.RenderableVideoState = {})); l = function(a) { - function b(d, c) { + function c(d, b) { a.call(this); this._flags = 1048592; this._lastPausedTime = this._lastTimeInvalidated = 0; @@ -9253,242 +9276,242 @@ __extends = this.__extends || function(k, r) { this._isDOMElement = !0; this.setBounds(new n(0, 0, 1, 1)); this._assetId = d; - this._eventSerializer = c; - var h = document.createElement("video"), m = this._handleVideoEvent.bind(this); - h.preload = "metadata"; - h.addEventListener("play", m); - h.addEventListener("pause", m); - h.addEventListener("ended", m); - h.addEventListener("loadeddata", m); - h.addEventListener("progress", m); - h.addEventListener("suspend", m); - h.addEventListener("loadedmetadata", m); - h.addEventListener("error", m); - h.addEventListener("seeking", m); - h.addEventListener("seeked", m); - h.addEventListener("canplay", m); - h.style.position = "absolute"; - this._video = h; + this._eventSerializer = b; + var e = document.createElement("video"), m = this._handleVideoEvent.bind(this); + e.preload = "metadata"; + e.addEventListener("play", m); + e.addEventListener("pause", m); + e.addEventListener("ended", m); + e.addEventListener("loadeddata", m); + e.addEventListener("progress", m); + e.addEventListener("suspend", m); + e.addEventListener("loadedmetadata", m); + e.addEventListener("error", m); + e.addEventListener("seeking", m); + e.addEventListener("seeked", m); + e.addEventListener("canplay", m); + e.style.position = "absolute"; + this._video = e; this._videoEventHandler = m; - b._renderableVideos.push(this); + c._renderableVideos.push(this); "undefined" !== typeof registerInspectorAsset && registerInspectorAsset(-1, -1, this); this._state = 1; } - __extends(b, a); - Object.defineProperty(b.prototype, "video", {get:function() { + __extends(c, a); + Object.defineProperty(c.prototype, "video", {get:function() { return this._video; }, enumerable:!0, configurable:!0}); - Object.defineProperty(b.prototype, "state", {get:function() { + Object.defineProperty(c.prototype, "state", {get:function() { return this._state; }, enumerable:!0, configurable:!0}); - b.prototype.play = function() { + c.prototype.play = function() { this._state = 2; this._video.play(); }; - b.prototype.pause = function() { + c.prototype.pause = function() { this._state = 3; this._video.pause(); }; - b.prototype._handleVideoEvent = function(b) { - var a = null, d = this._video; - switch(b.type) { + c.prototype._handleVideoEvent = function(a) { + var c = null, b = this._video; + switch(a.type) { case "play": if (!this._pauseHappening) { return; } - b = 7; + a = 7; break; case "pause": if (2 === this._state) { - d.play(); + b.play(); return; } - b = 6; + a = 6; this._pauseHappening = !0; break; case "ended": this._state = 4; - this._notifyNetStream(3, a); - b = 4; + this._notifyNetStream(3, c); + a = 4; break; case "loadeddata": this._pauseHappening = !1; - this._notifyNetStream(2, a); + this._notifyNetStream(2, c); this.play(); return; case "canplay": if (this._pauseHappening) { return; } - b = 5; + a = 5; break; case "progress": - b = 10; + a = 10; break; case "suspend": return; case "loadedmetadata": - b = 1; - a = {videoWidth:d.videoWidth, videoHeight:d.videoHeight, duration:d.duration}; + a = 1; + c = {videoWidth:b.videoWidth, videoHeight:b.videoHeight, duration:b.duration}; break; case "error": - b = 11; - a = {code:d.error.code}; + a = 11; + c = {code:b.error.code}; break; case "seeking": if (!this._seekHappening) { return; } - b = 8; + a = 8; break; case "seeked": if (!this._seekHappening) { return; } - b = 9; + a = 9; this._seekHappening = !1; break; default: return; } - this._notifyNetStream(b, a); + this._notifyNetStream(a, c); }; - b.prototype._notifyNetStream = function(b, a) { - this._eventSerializer.sendVideoPlaybackEvent(this._assetId, b, a); + c.prototype._notifyNetStream = function(a, c) { + this._eventSerializer.sendVideoPlaybackEvent(this._assetId, a, c); }; - b.prototype.processControlRequest = function(b, a) { - var d = this._video; - switch(b) { + c.prototype.processControlRequest = function(a, c) { + var b = this._video; + switch(a) { case 1: - d.src = a.url; + b.src = c.url; this.play(); this._notifyNetStream(0, null); break; case 9: - d.paused && d.play(); + b.paused && b.play(); break; case 2: - d && (a.paused && !d.paused ? (isNaN(a.time) ? this._lastPausedTime = d.currentTime : (0 !== d.seekable.length && (d.currentTime = a.time), this._lastPausedTime = a.time), this.pause()) : !a.paused && d.paused && (this.play(), isNaN(a.time) || this._lastPausedTime === a.time || 0 === d.seekable.length || (d.currentTime = a.time))); + b && (c.paused && !b.paused ? (isNaN(c.time) ? this._lastPausedTime = b.currentTime : (0 !== b.seekable.length && (b.currentTime = c.time), this._lastPausedTime = c.time), this.pause()) : !c.paused && b.paused && (this.play(), isNaN(c.time) || this._lastPausedTime === c.time || 0 === b.seekable.length || (b.currentTime = c.time))); break; case 3: - d && 0 !== d.seekable.length && (this._seekHappening = !0, d.currentTime = a.time); + b && 0 !== b.seekable.length && (this._seekHappening = !0, b.currentTime = c.time); break; case 4: - return d ? d.currentTime : 0; + return b ? b.currentTime : 0; case 5: - return d ? d.duration : 0; + return b ? b.duration : 0; case 6: - d && (d.volume = a.volume); + b && (b.volume = c.volume); break; case 7: - if (!d) { + if (!b) { return 0; } - var c = -1; - if (d.buffered) { - for (var e = 0;e < d.buffered.length;e++) { - c = Math.max(c, d.buffered.end(e)); + var e = -1; + if (b.buffered) { + for (var f = 0;f < b.buffered.length;f++) { + e = Math.max(e, b.buffered.end(f)); } } else { - c = d.duration; + e = b.duration; } - return Math.round(500 * c); + return Math.round(500 * e); case 8: - return d ? Math.round(500 * d.duration) : 0; + return b ? Math.round(500 * b.duration) : 0; } }; - b.prototype.checkForUpdate = function() { + c.prototype.checkForUpdate = function() { this._lastTimeInvalidated !== this._video.currentTime && (this._isDOMElement || this.invalidate()); this._lastTimeInvalidated = this._video.currentTime; }; - b.checkForVideoUpdates = function() { - for (var a = b._renderableVideos, d = 0;d < a.length;d++) { - var c = a[d]; - c.willRender() ? (c._video.parentElement || c.invalidate(), c._video.style.zIndex = c.parents[0].depth + "") : c._video.parentElement && c._dispatchEvent(2); - a[d].checkForUpdate(); + c.checkForVideoUpdates = function() { + for (var a = c._renderableVideos, b = 0;b < a.length;b++) { + var e = a[b]; + e.willRender() ? (e._video.parentElement || e.invalidate(), e._video.style.zIndex = e.parents[0].depth + "") : e._video.parentElement && e._dispatchEvent(2); + a[b].checkForUpdate(); } }; - b.prototype.render = function(b, a, d) { - (a = this._video) && 0 < a.videoWidth && b.drawImage(a, 0, 0, a.videoWidth, a.videoHeight, 0, 0, this._bounds.w, this._bounds.h); + c.prototype.render = function(a, c, b) { + (c = this._video) && 0 < c.videoWidth && a.drawImage(c, 0, 0, c.videoWidth, c.videoHeight, 0, 0, this._bounds.w, this._bounds.h); }; - b._renderableVideos = []; - return b; + c._renderableVideos = []; + return c; }(p); r.RenderableVideo = l; l = function(a) { - function b(b, d) { + function c(d, c) { a.call(this); this._flags = 1048592; this.properties = {}; - this.setBounds(d); - b instanceof HTMLCanvasElement ? this._initializeSourceCanvas(b) : this._sourceImage = b; + this.setBounds(c); + d instanceof HTMLCanvasElement ? this._initializeSourceCanvas(d) : this._sourceImage = d; } - __extends(b, a); - b.FromDataBuffer = function(a, d, c) { - var e = document.createElement("canvas"); - e.width = c.w; - e.height = c.h; - c = new b(e, c); - c.updateFromDataBuffer(a, d); - return c; + __extends(c, a); + c.FromDataBuffer = function(a, b, e) { + var f = document.createElement("canvas"); + f.width = e.w; + f.height = e.h; + e = new c(f, e); + e.updateFromDataBuffer(a, b); + return e; }; - b.FromNode = function(a, d, c, e, h) { - var m = document.createElement("canvas"), g = a.getBounds(); - m.width = g.w; - m.height = g.h; - m = new b(m, g); - m.drawNode(a, d, c, e, h); - return m; + c.FromNode = function(a, b, e, f, m) { + var h = document.createElement("canvas"), g = a.getBounds(); + h.width = g.w; + h.height = g.h; + h = new c(h, g); + h.drawNode(a, b, e, f, m); + return h; }; - b.FromImage = function(a) { - return new b(a, new n(0, 0, -1, -1)); + c.FromImage = function(a) { + return new c(a, new n(0, 0, -1, -1)); }; - b.prototype.updateFromDataBuffer = function(b, a) { + c.prototype.updateFromDataBuffer = function(a, c) { if (r.imageUpdateOption.value) { - var d = a.buffer; - if (4 !== b && 5 !== b && 6 !== b) { - var c = this._bounds, e = this._imageData; - e && e.width === c.w && e.height === c.h || (e = this._imageData = this._context.createImageData(c.w, c.h)); - r.imageConvertOption.value && (d = new Int32Array(d), c = new Int32Array(e.data.buffer), k.ColorUtilities.convertImage(b, 3, d, c)); + var b = c.buffer; + if (4 !== a && 5 !== a && 6 !== a) { + var e = this._bounds, f = this._imageData; + f && f.width === e.w && f.height === e.h || (f = this._imageData = this._context.createImageData(e.w, e.h)); + r.imageConvertOption.value && (b = new Int32Array(b), e = new Int32Array(f.data.buffer), k.ColorUtilities.convertImage(a, 3, b, e)); this._ensureSourceCanvas(); - this._context.putImageData(e, 0, 0); + this._context.putImageData(f, 0, 0); } this.invalidate(); } }; - b.prototype.readImageData = function(b) { - b.writeRawBytes(this.imageData.data); + c.prototype.readImageData = function(a) { + a.writeRawBytes(this.imageData.data); }; - b.prototype.render = function(b, a, d) { - this.renderSource ? b.drawImage(this.renderSource, 0, 0) : this._renderFallback(b); + c.prototype.render = function(a, c, b) { + this.renderSource ? a.drawImage(this.renderSource, 0, 0) : this._renderFallback(a); }; - b.prototype.drawNode = function(b, a, d, c, e) { - d = r.Canvas2D; - c = this.getBounds(); - (new d.Canvas2DRenderer(this._canvas, null)).renderNode(b, e || c, a); + c.prototype.drawNode = function(a, c, b, e, f) { + b = r.Canvas2D; + e = this.getBounds(); + (new b.Canvas2DRenderer(this._canvas, null)).renderNode(a, f || e, c); }; - b.prototype._initializeSourceCanvas = function(b) { - this._canvas = b; + c.prototype._initializeSourceCanvas = function(a) { + this._canvas = a; this._context = this._canvas.getContext("2d"); }; - b.prototype._ensureSourceCanvas = function() { + c.prototype._ensureSourceCanvas = function() { if (!this._canvas) { - var b = document.createElement("canvas"), a = this._bounds; - b.width = a.w; - b.height = a.h; - this._initializeSourceCanvas(b); + var a = document.createElement("canvas"), c = this._bounds; + a.width = c.w; + a.height = c.h; + this._initializeSourceCanvas(a); } }; - Object.defineProperty(b.prototype, "imageData", {get:function() { + Object.defineProperty(c.prototype, "imageData", {get:function() { this._canvas || (this._ensureSourceCanvas(), this._context.drawImage(this._sourceImage, 0, 0), this._sourceImage = null); return this._context.getImageData(0, 0, this._bounds.w, this._bounds.h); }, enumerable:!0, configurable:!0}); - Object.defineProperty(b.prototype, "renderSource", {get:function() { + Object.defineProperty(c.prototype, "renderSource", {get:function() { return this._canvas || this._sourceImage; }, enumerable:!0, configurable:!0}); - b.prototype._renderFallback = function(b) { + c.prototype._renderFallback = function(a) { }; - return b; + return c; }(p); r.RenderableBitmap = l; (function(a) { @@ -9496,304 +9519,304 @@ __extends = this.__extends || function(k, r) { a[a.Stroke = 1] = "Stroke"; a[a.StrokeFill = 2] = "StrokeFill"; })(r.PathType || (r.PathType = {})); - var u = function() { - return function(a, b, d, c) { + var w = function() { + return function(a, c, d, b) { this.type = a; - this.style = b; + this.style = c; this.smoothImage = d; - this.strokeProperties = c; + this.strokeProperties = b; this.path = new Path2D; }; }(); - r.StyledPath = u; + r.StyledPath = w; var m = function() { - return function(a, b, d, c, h) { + return function(a, c, d, b, e) { this.thickness = a; - this.scaleMode = b; + this.scaleMode = c; this.capsStyle = d; - this.jointsStyle = c; - this.miterLimit = h; + this.jointsStyle = b; + this.miterLimit = e; }; }(); r.StrokeProperties = m; - var s = function(d) { - function b(b, a, c, h) { - d.call(this); + var t = function(b) { + function c(a, c, e, m) { + b.call(this); this._flags = 6291472; this.properties = {}; - this.setBounds(h); - this._id = b; - this._pathData = a; - this._textures = c; - c.length && this.setFlags(1048576); + this.setBounds(m); + this._id = a; + this._pathData = c; + this._textures = e; + e.length && this.setFlags(1048576); } - __extends(b, d); - b.prototype.update = function(b, a, d) { - this.setBounds(d); - this._pathData = b; + __extends(c, b); + c.prototype.update = function(a, c, b) { + this.setBounds(b); + this._pathData = a; this._paths = null; - this._textures = a; + this._textures = c; this.setFlags(1048576); this.invalidate(); }; - b.prototype.render = function(b, a, d, c, e) { - void 0 === c && (c = !1); - void 0 === e && (e = !1); - b.fillStyle = b.strokeStyle = "transparent"; - a = this._deserializePaths(this._pathData, b, a); - for (d = 0;d < a.length;d++) { - var h = a[d]; - b.mozImageSmoothingEnabled = b.msImageSmoothingEnabled = b.imageSmoothingEnabled = h.smoothImage; - if (0 === h.type) { - c ? b.clip(h.path, "evenodd") : (b.fillStyle = e ? "#000000" : h.style, b.fill(h.path, "evenodd"), b.fillStyle = "transparent"); + c.prototype.render = function(a, c, b, e, f) { + void 0 === e && (e = null); + void 0 === f && (f = !1); + a.fillStyle = a.strokeStyle = "transparent"; + c = this._deserializePaths(this._pathData, a, c); + for (b = 0;b < c.length;b++) { + var m = c[b]; + a.mozImageSmoothingEnabled = a.msImageSmoothingEnabled = a.imageSmoothingEnabled = m.smoothImage; + if (0 === m.type) { + e ? e.addPath(m.path, a.currentTransform) : (a.fillStyle = f ? "#000000" : m.style, a.fill(m.path, "evenodd"), a.fillStyle = "transparent"); } else { - if (!c && !e) { - b.strokeStyle = h.style; - var m = 1; - h.strokeProperties && (m = h.strokeProperties.scaleMode, b.lineWidth = h.strokeProperties.thickness, b.lineCap = h.strokeProperties.capsStyle, b.lineJoin = h.strokeProperties.jointsStyle, b.miterLimit = h.strokeProperties.miterLimit); - var g = b.lineWidth; - (g = 1 === g || 3 === g) && b.translate(.5, .5); - b.flashStroke(h.path, m); - g && b.translate(-.5, -.5); - b.strokeStyle = "transparent"; + if (!e && !f) { + a.strokeStyle = m.style; + var h = 1; + m.strokeProperties && (h = m.strokeProperties.scaleMode, a.lineWidth = m.strokeProperties.thickness, a.lineCap = m.strokeProperties.capsStyle, a.lineJoin = m.strokeProperties.jointsStyle, a.miterLimit = m.strokeProperties.miterLimit); + var g = a.lineWidth; + (g = 1 === g || 3 === g) && a.translate(.5, .5); + a.flashStroke(m.path, h); + g && a.translate(-.5, -.5); + a.strokeStyle = "transparent"; } } } }; - b.prototype._deserializePaths = function(a, d, c) { + c.prototype._deserializePaths = function(a, b, e) { if (this._paths) { return this._paths; } - c = this._paths = []; - var e = null, h = null, g = 0, l = 0, p, s, n = !1, u = 0, v = 0, r = a.commands, t = a.coordinates, C = a.styles, y = C.position = 0; + e = this._paths = []; + var f = null, h = null, g = 0, l = 0, p, t, n = !1, w = 0, x = 0, r = a.commands, v = a.coordinates, D = a.styles, z = D.position = 0; a = a.commandsPosition; - for (var z = 0;z < a;z++) { - switch(r[z]) { + for (var A = 0;A < a;A++) { + switch(r[A]) { case 9: - n && e && (e.lineTo(u, v), h && h.lineTo(u, v)); + n && f && (f.lineTo(w, x), h && h.lineTo(w, x)); n = !0; - g = u = t[y++] / 20; - l = v = t[y++] / 20; - e && e.moveTo(g, l); + g = w = v[z++] / 20; + l = x = v[z++] / 20; + f && f.moveTo(g, l); h && h.moveTo(g, l); break; case 10: - g = t[y++] / 20; - l = t[y++] / 20; - e && e.lineTo(g, l); + g = v[z++] / 20; + l = v[z++] / 20; + f && f.lineTo(g, l); h && h.lineTo(g, l); break; case 11: - p = t[y++] / 20; - s = t[y++] / 20; - g = t[y++] / 20; - l = t[y++] / 20; - e && e.quadraticCurveTo(p, s, g, l); - h && h.quadraticCurveTo(p, s, g, l); + p = v[z++] / 20; + t = v[z++] / 20; + g = v[z++] / 20; + l = v[z++] / 20; + f && f.quadraticCurveTo(p, t, g, l); + h && h.quadraticCurveTo(p, t, g, l); break; case 12: - p = t[y++] / 20; - s = t[y++] / 20; - var B = t[y++] / 20, x = t[y++] / 20, g = t[y++] / 20, l = t[y++] / 20; - e && e.bezierCurveTo(p, s, B, x, g, l); - h && h.bezierCurveTo(p, s, B, x, g, l); + p = v[z++] / 20; + t = v[z++] / 20; + var C = v[z++] / 20, y = v[z++] / 20, g = v[z++] / 20, l = v[z++] / 20; + f && f.bezierCurveTo(p, t, C, y, g, l); + h && h.bezierCurveTo(p, t, C, y, g, l); break; case 1: - e = this._createPath(0, k.ColorUtilities.rgbaToCSSStyle(C.readUnsignedInt()), !1, null, g, l); + f = this._createPath(0, k.ColorUtilities.rgbaToCSSStyle(D.readUnsignedInt()), !1, null, g, l); break; case 3: - p = this._readBitmap(C, d); - e = this._createPath(0, p.style, p.smoothImage, null, g, l); + p = this._readBitmap(D, b); + f = this._createPath(0, p.style, p.smoothImage, null, g, l); break; case 2: - e = this._createPath(0, this._readGradient(C, d), !1, null, g, l); + f = this._createPath(0, this._readGradient(D, b), !1, null, g, l); break; case 4: - e = null; + f = null; break; case 5: - h = k.ColorUtilities.rgbaToCSSStyle(C.readUnsignedInt()); - C.position += 1; - p = C.readByte(); - s = b.LINE_CAPS_STYLES[C.readByte()]; - B = b.LINE_JOINTS_STYLES[C.readByte()]; - p = new m(t[y++] / 20, p, s, B, C.readByte()); + h = k.ColorUtilities.rgbaToCSSStyle(D.readUnsignedInt()); + D.position += 1; + p = D.readByte(); + t = c.LINE_CAPS_STYLES[D.readByte()]; + C = c.LINE_JOINTS_STYLES[D.readByte()]; + p = new m(v[z++] / 20, p, t, C, D.readByte()); h = this._createPath(1, h, !1, p, g, l); break; case 6: - h = this._createPath(2, this._readGradient(C, d), !1, null, g, l); + h = this._createPath(2, this._readGradient(D, b), !1, null, g, l); break; case 7: - p = this._readBitmap(C, d); + p = this._readBitmap(D, b); h = this._createPath(2, p.style, p.smoothImage, null, g, l); break; case 8: h = null; } } - n && e && (e.lineTo(u, v), h && h.lineTo(u, v)); + n && f && (f.lineTo(w, x), h && h.lineTo(w, x)); this._pathData = null; - return c; + return e; }; - b.prototype._createPath = function(b, a, d, c, e, h) { - b = new u(b, a, d, c); - this._paths.push(b); - b.path.moveTo(e, h); - return b.path; + c.prototype._createPath = function(a, c, b, e, f, m) { + a = new w(a, c, b, e); + this._paths.push(a); + a.path.moveTo(f, m); + return a.path; }; - b.prototype._readMatrix = function(b) { - return new a(b.readFloat(), b.readFloat(), b.readFloat(), b.readFloat(), b.readFloat(), b.readFloat()); + c.prototype._readMatrix = function(d) { + return new a(d.readFloat(), d.readFloat(), d.readFloat(), d.readFloat(), d.readFloat(), d.readFloat()); }; - b.prototype._readGradient = function(b, a) { - var d = b.readUnsignedByte(), c = 2 * b.readShort() / 255, e = this._readMatrix(b), d = 16 === d ? a.createLinearGradient(-1, 0, 1, 0) : a.createRadialGradient(c, 0, 0, 0, 0, 1); - d.setTransform && d.setTransform(e.toSVGMatrix()); - e = b.readUnsignedByte(); - for (c = 0;c < e;c++) { - var h = b.readUnsignedByte() / 255, m = k.ColorUtilities.rgbaToCSSStyle(b.readUnsignedInt()); - d.addColorStop(h, m); + c.prototype._readGradient = function(a, c) { + var b = a.readUnsignedByte(), e = 2 * a.readShort() / 255, f = this._readMatrix(a), b = 16 === b ? c.createLinearGradient(-1, 0, 1, 0) : c.createRadialGradient(e, 0, 0, 0, 0, 1); + b.setTransform && b.setTransform(f.toSVGMatrix()); + f = a.readUnsignedByte(); + for (e = 0;e < f;e++) { + var m = a.readUnsignedByte() / 255, h = k.ColorUtilities.rgbaToCSSStyle(a.readUnsignedInt()); + b.addColorStop(m, h); } - b.position += 2; - return d; + a.position += 2; + return b; }; - b.prototype._readBitmap = function(b, a) { - var d = b.readUnsignedInt(), c = this._readMatrix(b), e = b.readBoolean() ? "repeat" : "no-repeat", h = b.readBoolean(); - (d = this._textures[d]) ? (e = a.createPattern(d.renderSource, e), e.setTransform(c.toSVGMatrix())) : e = null; - return{style:e, smoothImage:h}; + c.prototype._readBitmap = function(a, c) { + var b = a.readUnsignedInt(), e = this._readMatrix(a), f = a.readBoolean() ? "repeat" : "no-repeat", m = a.readBoolean(); + (b = this._textures[b]) ? (f = c.createPattern(b.renderSource, f), f.setTransform(e.toSVGMatrix())) : f = null; + return {style:f, smoothImage:m}; }; - b.prototype._renderFallback = function(b) { + c.prototype._renderFallback = function(a) { this.fillStyle || (this.fillStyle = k.ColorStyle.randomStyle()); - var a = this._bounds; - b.save(); - b.beginPath(); - b.lineWidth = 2; - b.fillStyle = this.fillStyle; - b.fillRect(a.x, a.y, a.w, a.h); - b.restore(); + var c = this._bounds; + a.save(); + a.beginPath(); + a.lineWidth = 2; + a.fillStyle = this.fillStyle; + a.fillRect(c.x, c.y, c.w, c.h); + a.restore(); }; - b.LINE_CAPS_STYLES = ["round", "butt", "square"]; - b.LINE_JOINTS_STYLES = ["round", "bevel", "miter"]; - return b; + c.LINE_CAPS_STYLES = ["round", "butt", "square"]; + c.LINE_JOINTS_STYLES = ["round", "bevel", "miter"]; + return c; }(p); - r.RenderableShape = s; - l = function(d) { - function b() { - d.apply(this, arguments); + r.RenderableShape = t; + l = function(e) { + function c() { + e.apply(this, arguments); this._flags = 7340048; this._morphPaths = Object.create(null); } - __extends(b, d); - b.prototype._deserializePaths = function(b, a, d) { - if (this._morphPaths[d]) { - return this._morphPaths[d]; + __extends(c, e); + c.prototype._deserializePaths = function(a, c, e) { + if (this._morphPaths[e]) { + return this._morphPaths[e]; } - var e = this._morphPaths[d] = [], h = null, l = null, p = 0, n = 0, u, v, r = !1, t = 0, P = 0, H = b.commands, C = b.coordinates, y = b.morphCoordinates, z = b.styles, B = b.morphStyles; - z.position = 0; - var x = B.position = 0; - b = b.commandsPosition; - for (var E = 0;E < b;E++) { - switch(H[E]) { + var f = this._morphPaths[e] = [], h = null, l = null, p = 0, n = 0, w, x, r = !1, v = 0, Q = 0, V = a.commands, D = a.coordinates, z = a.morphCoordinates, A = a.styles, C = a.morphStyles; + A.position = 0; + var y = C.position = 0; + a = a.commandsPosition; + for (var F = 0;F < a;F++) { + switch(V[F]) { case 9: - r && h && (h.lineTo(t, P), l && l.lineTo(t, P)); + r && h && (h.lineTo(v, Q), l && l.lineTo(v, Q)); r = !0; - p = t = g(C[x], y[x++], d) / 20; - n = P = g(C[x], y[x++], d) / 20; + p = v = g(D[y], z[y++], e) / 20; + n = Q = g(D[y], z[y++], e) / 20; h && h.moveTo(p, n); l && l.moveTo(p, n); break; case 10: - p = g(C[x], y[x++], d) / 20; - n = g(C[x], y[x++], d) / 20; + p = g(D[y], z[y++], e) / 20; + n = g(D[y], z[y++], e) / 20; h && h.lineTo(p, n); l && l.lineTo(p, n); break; case 11: - u = g(C[x], y[x++], d) / 20; - v = g(C[x], y[x++], d) / 20; - p = g(C[x], y[x++], d) / 20; - n = g(C[x], y[x++], d) / 20; - h && h.quadraticCurveTo(u, v, p, n); - l && l.quadraticCurveTo(u, v, p, n); + w = g(D[y], z[y++], e) / 20; + x = g(D[y], z[y++], e) / 20; + p = g(D[y], z[y++], e) / 20; + n = g(D[y], z[y++], e) / 20; + h && h.quadraticCurveTo(w, x, p, n); + l && l.quadraticCurveTo(w, x, p, n); break; case 12: - u = g(C[x], y[x++], d) / 20; - v = g(C[x], y[x++], d) / 20; - var A = g(C[x], y[x++], d) / 20, D = g(C[x], y[x++], d) / 20, p = g(C[x], y[x++], d) / 20, n = g(C[x], y[x++], d) / 20; - h && h.bezierCurveTo(u, v, A, D, p, n); - l && l.bezierCurveTo(u, v, A, D, p, n); + w = g(D[y], z[y++], e) / 20; + x = g(D[y], z[y++], e) / 20; + var B = g(D[y], z[y++], e) / 20, E = g(D[y], z[y++], e) / 20, p = g(D[y], z[y++], e) / 20, n = g(D[y], z[y++], e) / 20; + h && h.bezierCurveTo(w, x, B, E, p, n); + l && l.bezierCurveTo(w, x, B, E, p, n); break; case 1: - h = this._createMorphPath(0, d, k.ColorUtilities.rgbaToCSSStyle(c(z.readUnsignedInt(), B.readUnsignedInt(), d)), !1, null, p, n); + h = this._createMorphPath(0, e, k.ColorUtilities.rgbaToCSSStyle(b(A.readUnsignedInt(), C.readUnsignedInt(), e)), !1, null, p, n); break; case 3: - u = this._readMorphBitmap(z, B, d, a); - h = this._createMorphPath(0, d, u.style, u.smoothImage, null, p, n); + w = this._readMorphBitmap(A, C, e, c); + h = this._createMorphPath(0, e, w.style, w.smoothImage, null, p, n); break; case 2: - u = this._readMorphGradient(z, B, d, a); - h = this._createMorphPath(0, d, u, !1, null, p, n); + w = this._readMorphGradient(A, C, e, c); + h = this._createMorphPath(0, e, w, !1, null, p, n); break; case 4: h = null; break; case 5: - u = g(C[x], y[x++], d) / 20; - l = k.ColorUtilities.rgbaToCSSStyle(c(z.readUnsignedInt(), B.readUnsignedInt(), d)); - z.position += 1; - v = z.readByte(); - A = s.LINE_CAPS_STYLES[z.readByte()]; - D = s.LINE_JOINTS_STYLES[z.readByte()]; - u = new m(u, v, A, D, z.readByte()); - l = this._createMorphPath(1, d, l, !1, u, p, n); + w = g(D[y], z[y++], e) / 20; + l = k.ColorUtilities.rgbaToCSSStyle(b(A.readUnsignedInt(), C.readUnsignedInt(), e)); + A.position += 1; + x = A.readByte(); + B = t.LINE_CAPS_STYLES[A.readByte()]; + E = t.LINE_JOINTS_STYLES[A.readByte()]; + w = new m(w, x, B, E, A.readByte()); + l = this._createMorphPath(1, e, l, !1, w, p, n); break; case 6: - u = this._readMorphGradient(z, B, d, a); - l = this._createMorphPath(2, d, u, !1, null, p, n); + w = this._readMorphGradient(A, C, e, c); + l = this._createMorphPath(2, e, w, !1, null, p, n); break; case 7: - u = this._readMorphBitmap(z, B, d, a); - l = this._createMorphPath(2, d, u.style, u.smoothImage, null, p, n); + w = this._readMorphBitmap(A, C, e, c); + l = this._createMorphPath(2, e, w.style, w.smoothImage, null, p, n); break; case 8: l = null; } } - r && h && (h.lineTo(t, P), l && l.lineTo(t, P)); - return e; + r && h && (h.lineTo(v, Q), l && l.lineTo(v, Q)); + return f; }; - b.prototype._createMorphPath = function(b, a, d, c, e, h, m) { - b = new u(b, d, c, e); - this._morphPaths[a].push(b); - b.path.moveTo(h, m); - return b.path; + c.prototype._createMorphPath = function(a, c, b, e, f, m, h) { + a = new w(a, b, e, f); + this._morphPaths[c].push(a); + a.path.moveTo(m, h); + return a.path; }; - b.prototype._readMorphMatrix = function(b, d, c) { - return new a(g(b.readFloat(), d.readFloat(), c), g(b.readFloat(), d.readFloat(), c), g(b.readFloat(), d.readFloat(), c), g(b.readFloat(), d.readFloat(), c), g(b.readFloat(), d.readFloat(), c), g(b.readFloat(), d.readFloat(), c)); + c.prototype._readMorphMatrix = function(c, b, e) { + return new a(g(c.readFloat(), b.readFloat(), e), g(c.readFloat(), b.readFloat(), e), g(c.readFloat(), b.readFloat(), e), g(c.readFloat(), b.readFloat(), e), g(c.readFloat(), b.readFloat(), e), g(c.readFloat(), b.readFloat(), e)); }; - b.prototype._readMorphGradient = function(b, a, d, e) { - var h = b.readUnsignedByte(), m = 2 * b.readShort() / 255, l = this._readMorphMatrix(b, a, d); - e = 16 === h ? e.createLinearGradient(-1, 0, 1, 0) : e.createRadialGradient(m, 0, 0, 0, 0, 1); - e.setTransform && e.setTransform(l.toSVGMatrix()); - l = b.readUnsignedByte(); - for (h = 0;h < l;h++) { - var m = g(b.readUnsignedByte() / 255, a.readUnsignedByte() / 255, d), p = c(b.readUnsignedInt(), a.readUnsignedInt(), d), p = k.ColorUtilities.rgbaToCSSStyle(p); - e.addColorStop(m, p); + c.prototype._readMorphGradient = function(a, c, e, f) { + var m = a.readUnsignedByte(), h = 2 * a.readShort() / 255, l = this._readMorphMatrix(a, c, e); + f = 16 === m ? f.createLinearGradient(-1, 0, 1, 0) : f.createRadialGradient(h, 0, 0, 0, 0, 1); + f.setTransform && f.setTransform(l.toSVGMatrix()); + l = a.readUnsignedByte(); + for (m = 0;m < l;m++) { + var h = g(a.readUnsignedByte() / 255, c.readUnsignedByte() / 255, e), p = b(a.readUnsignedInt(), c.readUnsignedInt(), e), p = k.ColorUtilities.rgbaToCSSStyle(p); + f.addColorStop(h, p); } - b.position += 2; - return e; + a.position += 2; + return f; }; - b.prototype._readMorphBitmap = function(b, a, d, c) { - var e = b.readUnsignedInt(); - a = this._readMorphMatrix(b, a, d); - d = b.readBoolean() ? "repeat" : "no-repeat"; - b = b.readBoolean(); - c = c.createPattern(this._textures[e]._canvas, d); - c.setTransform(a.toSVGMatrix()); - return{style:c, smoothImage:b}; + c.prototype._readMorphBitmap = function(a, c, b, e) { + var f = a.readUnsignedInt(); + c = this._readMorphMatrix(a, c, b); + b = a.readBoolean() ? "repeat" : "no-repeat"; + a = a.readBoolean(); + e = e.createPattern(this._textures[f]._canvas, b); + e.setTransform(c.toSVGMatrix()); + return {style:e, smoothImage:a}; }; - return b; - }(s); + return c; + }(t); r.RenderableMorphShape = l; - var v = function() { + var x = function() { function a() { this.align = this.leading = this.descent = this.ascent = this.width = this.y = this.x = 0; this.runs = []; @@ -9802,80 +9825,73 @@ __extends = this.__extends || function(k, r) { a._measureContext || (a._measureContext = document.createElement("canvas").getContext("2d")); return a._measureContext; }; - a.prototype.addRun = function(b, c, h, m) { - if (h) { - var g = a._getMeasureContext(); - g.font = b; - g = g.measureText(h).width | 0; - this.runs.push(new d(b, c, h, g, m)); - this.width += g; + a.prototype.addRun = function(c, d, b, m) { + if (b) { + var h = a._getMeasureContext(); + h.font = c; + h = h.measureText(b).width | 0; + this.runs.push(new e(c, d, b, h, m)); + this.width += h; } }; - a.prototype.wrap = function(b) { - var c = [this], h = this.runs, m = this; + a.prototype.wrap = function(c) { + var d = [this], b = this.runs, m = this; m.width = 0; m.runs = []; - for (var g = a._getMeasureContext(), l = 0;l < h.length;l++) { - var p = h[l], k = p.text; - p.text = ""; - p.width = 0; - g.font = p.font; - for (var s = b, n = k.split(/[\s.-]/), u = 0, v = 0;v < n.length;v++) { - var r = n[v], t = k.substr(u, r.length + 1), H = g.measureText(t).width | 0; - if (H > s) { + for (var h = a._getMeasureContext(), g = 0;g < b.length;g++) { + var l = b[g], p = l.text; + l.text = ""; + l.width = 0; + h.font = l.font; + for (var k = c, t = p.split(/[\s.-]/), n = 0, w = 0;w < t.length;w++) { + var x = t[w], r = p.substr(n, x.length + 1), v = h.measureText(r).width | 0; + if (v > k) { do { - if (p.text && (m.runs.push(p), m.width += p.width, p = new d(p.font, p.fillStyle, "", 0, p.underline), s = new a, s.y = m.y + m.descent + m.leading + m.ascent | 0, s.ascent = m.ascent, s.descent = m.descent, s.leading = m.leading, s.align = m.align, c.push(s), m = s), s = b - H, 0 > s) { - var H = t.length, C, y; - do { - H--; - if (1 > H) { - throw Error("Shall never happen: bad maxWidth?"); - } - C = t.substr(0, H); - y = g.measureText(C).width | 0; - } while (y > b); - p.text = C; - p.width = y; - t = t.substr(H); - H = g.measureText(t).width | 0; + if (l.text && (m.runs.push(l), m.width += l.width, l = new e(l.font, l.fillStyle, "", 0, l.underline), k = new a, k.y = m.y + m.descent + m.leading + m.ascent | 0, k.ascent = m.ascent, k.descent = m.descent, k.leading = m.leading, k.align = m.align, d.push(k), m = k), k = c - v, 0 > k) { + for (var D = r.length, z = r;1 < D && !(D--, z = r.substr(0, D), v = h.measureText(z).width | 0, v <= c);) { + } + l.text = z; + l.width = v; + r = r.substr(D); + v = h.measureText(r).width | 0; } - } while (0 > s); + } while (r && 0 > k); } else { - s -= H; + k -= v; } - p.text += t; - p.width += H; - u += r.length + 1; + l.text += r; + l.width += v; + n += x.length + 1; } - m.runs.push(p); - m.width += p.width; + m.runs.push(l); + m.width += l.width; } - return c; + return d; }; return a; }(); - r.TextLine = v; - var d = function() { - return function(a, b, d, c, h) { + r.TextLine = x; + var e = function() { + return function(a, c, d, b, e) { void 0 === a && (a = ""); - void 0 === b && (b = ""); + void 0 === c && (c = ""); void 0 === d && (d = ""); - void 0 === c && (c = 0); - void 0 === h && (h = !1); + void 0 === b && (b = 0); + void 0 === e && (e = !1); this.font = a; - this.fillStyle = b; + this.fillStyle = c; this.text = d; - this.width = c; - this.underline = h; + this.width = b; + this.underline = e; }; }(); - r.TextRun = d; - l = function(d) { - function b(b) { - d.call(this); + r.TextRun = e; + l = function(b) { + function c(c) { + b.call(this); this._flags = 1048592; this.properties = {}; - this._textBounds = b.clone(); + this._textBounds = c.clone(); this._textRunData = null; this._plainText = ""; this._borderColor = this._backgroundColor = 0; @@ -9883,429 +9899,429 @@ __extends = this.__extends || function(k, r) { this._coords = null; this._scrollV = 1; this._scrollH = 0; - this.textRect = b.clone(); + this.textRect = c.clone(); this.lines = []; - this.setBounds(b); + this.setBounds(c); } - __extends(b, d); - b.prototype.setBounds = function(b) { - d.prototype.setBounds.call(this, b); - this._textBounds.set(b); - this.textRect.setElements(b.x + 2, b.y + 2, b.w - 2, b.h - 2); + __extends(c, b); + c.prototype.setBounds = function(a) { + b.prototype.setBounds.call(this, a); + this._textBounds.set(a); + this.textRect.setElements(a.x + 2, a.y + 2, a.w - 2, a.h - 2); }; - b.prototype.setContent = function(b, a, d, c) { - this._textRunData = a; - this._plainText = b; - this._matrix.set(d); - this._coords = c; + c.prototype.setContent = function(a, c, b, e) { + this._textRunData = c; + this._plainText = a; + this._matrix.set(b); + this._coords = e; this.lines = []; }; - b.prototype.setStyle = function(b, a, d, c) { - this._backgroundColor = b; - this._borderColor = a; - this._scrollV = d; - this._scrollH = c; + c.prototype.setStyle = function(a, c, b, e) { + this._backgroundColor = a; + this._borderColor = c; + this._scrollV = b; + this._scrollH = e; }; - b.prototype.reflow = function(b, a) { - var d = this._textRunData; - if (d) { - for (var c = this._bounds, e = c.w - 4, h = this._plainText, m = this.lines, g = new v, l = 0, p = 0, s = 0, n = 0, u = 0, r = -1;d.position < d.length;) { - var t = d.readInt(), y = d.readInt(), z = d.readInt(), B = d.readUTF(), x = d.readInt(), E = d.readInt(), A = d.readInt(); - x > s && (s = x); - E > n && (n = E); - A > u && (u = A); - x = d.readBoolean(); - E = ""; - d.readBoolean() && (E += "italic "); - x && (E += "bold "); - z = E + z + "px " + B; - B = d.readInt(); - B = k.ColorUtilities.rgbToHex(B); - x = d.readInt(); - -1 === r && (r = x); - d.readBoolean(); - d.readInt(); - d.readInt(); - d.readInt(); - d.readInt(); - d.readInt(); - for (var x = d.readBoolean(), D = "", E = !1;!E;t++) { - E = t >= y - 1; - A = h[t]; - if ("\r" !== A && "\n" !== A && (D += A, t < h.length - 1)) { + c.prototype.reflow = function(a, c) { + var b = this._textRunData; + if (b) { + for (var e = this._bounds, f = e.w - 4, m = this._plainText, h = this.lines, g = new x, l = 0, p = 0, t = 0, n = 0, w = 0, r = -1;b.position < b.length;) { + var v = b.readInt(), z = b.readInt(), A = b.readInt(), C = b.readUTF(), y = b.readInt(), F = b.readInt(), B = b.readInt(); + y > t && (t = y); + F > n && (n = F); + B > w && (w = B); + y = b.readBoolean(); + F = ""; + b.readBoolean() && (F += "italic "); + y && (F += "bold "); + A = F + A + "px " + C; + C = b.readInt(); + C = k.ColorUtilities.rgbToHex(C); + y = b.readInt(); + -1 === r && (r = y); + b.readBoolean(); + b.readInt(); + b.readInt(); + b.readInt(); + b.readInt(); + b.readInt(); + for (var y = b.readBoolean(), E = "", F = !1;!F;v++) { + F = v >= z - 1; + B = m[v]; + if ("\r" !== B && "\n" !== B && (E += B, v < m.length - 1)) { continue; } - g.addRun(z, B, D, x); + g.addRun(A, C, E, y); if (g.runs.length) { - m.length && (l += u); - l += s; + h.length && (l += w); + l += t; g.y = l | 0; l += n; - g.ascent = s; + g.ascent = t; g.descent = n; - g.leading = u; + g.leading = w; g.align = r; - if (a && g.width > e) { - for (g = g.wrap(e), D = 0;D < g.length;D++) { - var F = g[D], l = F.y + F.descent + F.leading; - m.push(F); - F.width > p && (p = F.width); + if (c && g.width > f) { + for (g = g.wrap(f), E = 0;E < g.length;E++) { + var G = g[E], l = G.y + G.descent + G.leading; + h.push(G); + G.width > p && (p = G.width); } } else { - m.push(g), g.width > p && (p = g.width); + h.push(g), g.width > p && (p = g.width); } - g = new v; + g = new x; } else { - l += s + n + u; + l += t + n + w; } - D = ""; - if (E) { - u = n = s = 0; + E = ""; + if (F) { + w = n = t = 0; r = -1; break; } - "\r" === A && "\n" === h[t + 1] && t++; + "\r" === B && "\n" === m[v + 1] && v++; } - g.addRun(z, B, D, x); + g.addRun(A, C, E, y); } - d = h[h.length - 1]; - "\r" !== d && "\n" !== d || m.push(g); - d = this.textRect; - d.w = p; - d.h = l; - if (b) { - if (!a) { - e = p; - p = c.w; - switch(b) { + b = m[m.length - 1]; + "\r" !== b && "\n" !== b || h.push(g); + b = this.textRect; + b.w = p; + b.h = l; + if (a) { + if (!c) { + f = p; + p = e.w; + switch(a) { case 1: - d.x = p - (e + 4) >> 1; + b.x = p - (f + 4) >> 1; break; case 3: - d.x = p - (e + 4); + b.x = p - (f + 4); } - this._textBounds.setElements(d.x - 2, d.y - 2, d.w + 4, d.h + 4); - c.w = e + 4; + this._textBounds.setElements(b.x - 2, b.y - 2, b.w + 4, b.h + 4); + e.w = f + 4; } - c.x = d.x - 2; - c.h = l + 4; + e.x = b.x - 2; + e.h = l + 4; } else { - this._textBounds = c; + this._textBounds = e; } - for (t = 0;t < m.length;t++) { - if (c = m[t], c.width < e) { - switch(c.align) { + for (v = 0;v < h.length;v++) { + if (e = h[v], e.width < f) { + switch(e.align) { case 1: - c.x = e - c.width | 0; + e.x = f - e.width | 0; break; case 2: - c.x = (e - c.width) / 2 | 0; + e.x = (f - e.width) / 2 | 0; } } } this.invalidate(); } }; - b.roundBoundPoints = function(b) { - for (var a = 0;a < b.length;a++) { - var d = b[a]; - d.x = Math.floor(d.x + .1) + .5; - d.y = Math.floor(d.y + .1) + .5; + c.roundBoundPoints = function(a) { + for (var c = 0;c < a.length;c++) { + var b = a[c]; + b.x = Math.floor(b.x + .1) + .5; + b.y = Math.floor(b.y + .1) + .5; } }; - b.prototype.render = function(d) { + c.prototype.render = function(d) { d.save(); - var c = this._textBounds; - this._backgroundColor && (d.fillStyle = k.ColorUtilities.rgbaToCSSStyle(this._backgroundColor), d.fillRect(c.x, c.y, c.w, c.h)); + var b = this._textBounds; + this._backgroundColor && (d.fillStyle = k.ColorUtilities.rgbaToCSSStyle(this._backgroundColor), d.fillRect(b.x, b.y, b.w, b.h)); if (this._borderColor) { d.strokeStyle = k.ColorUtilities.rgbaToCSSStyle(this._borderColor); d.lineCap = "square"; d.lineWidth = 1; - var e = b.absoluteBoundPoints, h = d.currentTransform; - h ? (c = c.clone(), (new a(h.a, h.b, h.c, h.d, h.e, h.f)).transformRectangle(c, e), d.setTransform(1, 0, 0, 1, 0, 0)) : (e[0].x = c.x, e[0].y = c.y, e[1].x = c.x + c.w, e[1].y = c.y, e[2].x = c.x + c.w, e[2].y = c.y + c.h, e[3].x = c.x, e[3].y = c.y + c.h); - b.roundBoundPoints(e); - c = new Path2D; - c.moveTo(e[0].x, e[0].y); - c.lineTo(e[1].x, e[1].y); - c.lineTo(e[2].x, e[2].y); - c.lineTo(e[3].x, e[3].y); - c.lineTo(e[0].x, e[0].y); - d.stroke(c); - h && d.setTransform(h.a, h.b, h.c, h.d, h.e, h.f); + var e = c.absoluteBoundPoints, f = d.currentTransform; + f ? (b = b.clone(), (new a(f.a, f.b, f.c, f.d, f.e, f.f)).transformRectangle(b, e), d.setTransform(1, 0, 0, 1, 0, 0)) : (e[0].x = b.x, e[0].y = b.y, e[1].x = b.x + b.w, e[1].y = b.y, e[2].x = b.x + b.w, e[2].y = b.y + b.h, e[3].x = b.x, e[3].y = b.y + b.h); + c.roundBoundPoints(e); + b = new Path2D; + b.moveTo(e[0].x, e[0].y); + b.lineTo(e[1].x, e[1].y); + b.lineTo(e[2].x, e[2].y); + b.lineTo(e[3].x, e[3].y); + b.lineTo(e[0].x, e[0].y); + d.stroke(b); + f && d.setTransform(f.a, f.b, f.c, f.d, f.e, f.f); } this._coords ? this._renderChars(d) : this._renderLines(d); d.restore(); }; - b.prototype._renderChars = function(b) { + c.prototype._renderChars = function(a) { if (this._matrix) { - var a = this._matrix; - b.transform(a.a, a.b, a.c, a.d, a.tx, a.ty); + var c = this._matrix; + a.transform(c.a, c.b, c.c, c.d, c.tx, c.ty); } - for (var a = this.lines, d = this._coords, c = d.position = 0;c < a.length;c++) { - for (var e = a[c].runs, h = 0;h < e.length;h++) { - var m = e[h]; - b.font = m.font; - b.fillStyle = m.fillStyle; - for (var m = m.text, g = 0;g < m.length;g++) { - var l = d.readInt() / 20, p = d.readInt() / 20; - b.fillText(m[g], l, p); + for (var c = this.lines, b = this._coords, e = b.position = 0;e < c.length;e++) { + for (var f = c[e].runs, m = 0;m < f.length;m++) { + var h = f[m]; + a.font = h.font; + a.fillStyle = h.fillStyle; + for (var h = h.text, g = 0;g < h.length;g++) { + var l = b.readInt() / 20, p = b.readInt() / 20; + a.fillText(h[g], l, p); } } } }; - b.prototype._renderLines = function(b) { - var a = this._textBounds; - b.beginPath(); - b.rect(a.x + 2, a.y + 2, a.w - 4, a.h - 4); - b.clip(); - b.translate(a.x - this._scrollH + 2, a.y + 2); - for (var d = this.lines, c = this._scrollV, e = 0, h = 0;h < d.length;h++) { - var m = d[h], g = m.x, l = m.y; - if (h + 1 < c) { - e = l + m.descent + m.leading; + c.prototype._renderLines = function(a) { + var c = this._textBounds; + a.beginPath(); + a.rect(c.x + 2, c.y + 2, c.w - 4, c.h - 4); + a.clip(); + a.translate(c.x - this._scrollH + 2, c.y + 2); + for (var b = this.lines, e = this._scrollV, f = 0, m = 0;m < b.length;m++) { + var h = b[m], g = h.x, l = h.y; + if (m + 1 < e) { + f = l + h.descent + h.leading; } else { - l -= e; - if (h + 1 - c && l > a.h) { + l -= f; + if (m + 1 - e && l > c.h) { break; } - for (var p = m.runs, k = 0;k < p.length;k++) { - var s = p[k]; - b.font = s.font; - b.fillStyle = s.fillStyle; - s.underline && b.fillRect(g, l + m.descent / 2 | 0, s.width, 1); - b.textAlign = "left"; - b.textBaseline = "alphabetic"; - b.fillText(s.text, g, l); - g += s.width; + for (var p = h.runs, k = 0;k < p.length;k++) { + var t = p[k]; + a.font = t.font; + a.fillStyle = t.fillStyle; + t.underline && a.fillRect(g, l + h.descent / 2 | 0, t.width, 1); + a.textAlign = "left"; + a.textBaseline = "alphabetic"; + a.fillText(t.text, g, l); + g += t.width; } } } }; - b.absoluteBoundPoints = [new t(0, 0), new t(0, 0), new t(0, 0), new t(0, 0)]; - return b; + c.absoluteBoundPoints = [new v(0, 0), new v(0, 0), new v(0, 0), new v(0, 0)]; + return c; }(p); r.RenderableText = l; p = function(a) { - function b(b, d) { + function c(c, b) { a.call(this); this._flags = 3145728; this.properties = {}; - this.setBounds(new n(0, 0, b, d)); + this.setBounds(new n(0, 0, c, b)); } - __extends(b, a); - Object.defineProperty(b.prototype, "text", {get:function() { + __extends(c, a); + Object.defineProperty(c.prototype, "text", {get:function() { return this._text; - }, set:function(b) { - this._text = b; + }, set:function(a) { + this._text = a; }, enumerable:!0, configurable:!0}); - b.prototype.render = function(b, a, d) { - b.save(); - b.textBaseline = "top"; - b.fillStyle = "white"; - b.fillText(this.text, 0, 0); - b.restore(); + c.prototype.render = function(a, c, b) { + a.save(); + a.textBaseline = "top"; + a.fillStyle = "white"; + a.fillText(this.text, 0, 0); + a.restore(); }; - return b; + return c; }(p); r.Label = p; })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { - var g = k.ColorUtilities.clampByte, c = function() { + var g = k.ColorUtilities.clampByte, b = function() { return function() { }; }(); - r.Filter = c; - var t = function(c) { + r.Filter = b; + var v = function(b) { function a(a, g, l) { - c.call(this); + b.call(this); this.blurX = a; this.blurY = g; this.quality = l; } - __extends(a, c); + __extends(a, b); return a; - }(c); - r.BlurFilter = t; - t = function(c) { - function a(a, g, l, k, m, s, v, d, e, b, f) { - c.call(this); + }(b); + r.BlurFilter = v; + v = function(b) { + function a(a, g, l, k, m, t, x, e, f, c, d) { + b.call(this); this.alpha = a; this.angle = g; this.blurX = l; this.blurY = k; this.color = m; - this.distance = s; - this.hideObject = v; - this.inner = d; - this.knockout = e; - this.quality = b; - this.strength = f; + this.distance = t; + this.hideObject = x; + this.inner = e; + this.knockout = f; + this.quality = c; + this.strength = d; } - __extends(a, c); + __extends(a, b); return a; - }(c); - r.DropshadowFilter = t; - c = function(c) { - function a(a, g, l, k, m, s, v, d) { - c.call(this); + }(b); + r.DropshadowFilter = v; + b = function(b) { + function a(a, g, l, k, m, t, x, e) { + b.call(this); this.alpha = a; this.blurX = g; this.blurY = l; this.color = k; this.inner = m; - this.knockout = s; - this.quality = v; - this.strength = d; + this.knockout = t; + this.quality = x; + this.strength = e; } - __extends(a, c); + __extends(a, b); return a; - }(c); - r.GlowFilter = c; - (function(c) { - c[c.Unknown = 0] = "Unknown"; - c[c.Identity = 1] = "Identity"; + }(b); + r.GlowFilter = b; + (function(b) { + b[b.Unknown = 0] = "Unknown"; + b[b.Identity = 1] = "Identity"; })(r.ColorMatrixType || (r.ColorMatrixType = {})); - c = function() { - function c(a) { + b = function() { + function b(a) { this._data = new Float32Array(a); this._type = 0; } - c.prototype.clone = function() { - var a = new c(this._data); + b.prototype.clone = function() { + var a = new b(this._data); a._type = this._type; return a; }; - c.prototype.set = function(a) { + b.prototype.set = function(a) { this._data.set(a._data); this._type = a._type; }; - c.prototype.toWebGLMatrix = function() { + b.prototype.toWebGLMatrix = function() { return new Float32Array(this._data); }; - c.prototype.asWebGLMatrix = function() { + b.prototype.asWebGLMatrix = function() { return this._data.subarray(0, 16); }; - c.prototype.asWebGLVector = function() { + b.prototype.asWebGLVector = function() { return this._data.subarray(16, 20); }; - c.prototype.isIdentity = function() { + b.prototype.isIdentity = function() { if (this._type & 1) { - return!0; + return !0; } var a = this._data; return 1 == a[0] && 0 == a[1] && 0 == a[2] && 0 == a[3] && 0 == a[4] && 1 == a[5] && 0 == a[6] && 0 == a[7] && 0 == a[8] && 0 == a[9] && 1 == a[10] && 0 == a[11] && 0 == a[12] && 0 == a[13] && 0 == a[14] && 1 == a[15] && 0 == a[16] && 0 == a[17] && 0 == a[18] && 0 == a[19]; }; - c.createIdentity = function() { - var a = new c([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0]); + b.createIdentity = function() { + var a = new b([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0]); a._type = 1; return a; }; - c.prototype.setMultipliersAndOffsets = function(a, c, g, l, k, m, s, n) { - for (var d = this._data, e = 0;e < d.length;e++) { - d[e] = 0; + b.prototype.setMultipliersAndOffsets = function(a, b, g, l, k, m, t, n) { + for (var e = this._data, f = 0;f < e.length;f++) { + e[f] = 0; } - d[0] = a; - d[5] = c; - d[10] = g; - d[15] = l; - d[16] = k / 255; - d[17] = m / 255; - d[18] = s / 255; - d[19] = n / 255; + e[0] = a; + e[5] = b; + e[10] = g; + e[15] = l; + e[16] = k / 255; + e[17] = m / 255; + e[18] = t / 255; + e[19] = n / 255; this._type = 0; }; - c.prototype.transformRGBA = function(a) { - var c = a >> 24 & 255, p = a >> 16 & 255, l = a >> 8 & 255, k = a & 255, m = this._data; - a = g(c * m[0] + p * m[1] + l * m[2] + k * m[3] + 255 * m[16]); - var s = g(c * m[4] + p * m[5] + l * m[6] + k * m[7] + 255 * m[17]), n = g(c * m[8] + p * m[9] + l * m[10] + k * m[11] + 255 * m[18]), c = g(c * m[12] + p * m[13] + l * m[14] + k * m[15] + 255 * m[19]); - return a << 24 | s << 16 | n << 8 | c; + b.prototype.transformRGBA = function(a) { + var b = a >> 24 & 255, p = a >> 16 & 255, l = a >> 8 & 255, k = a & 255, m = this._data; + a = g(b * m[0] + p * m[1] + l * m[2] + k * m[3] + 255 * m[16]); + var t = g(b * m[4] + p * m[5] + l * m[6] + k * m[7] + 255 * m[17]), n = g(b * m[8] + p * m[9] + l * m[10] + k * m[11] + 255 * m[18]), b = g(b * m[12] + p * m[13] + l * m[14] + k * m[15] + 255 * m[19]); + return a << 24 | t << 16 | n << 8 | b; }; - c.prototype.multiply = function(a) { + b.prototype.multiply = function(a) { if (!(a._type & 1)) { - var c = this._data, g = a._data; - a = c[0]; - var l = c[1], k = c[2], m = c[3], s = c[4], n = c[5], d = c[6], e = c[7], b = c[8], f = c[9], q = c[10], r = c[11], G = c[12], U = c[13], t = c[14], Q = c[15], fa = c[16], ca = c[17], ga = c[18], ha = c[19], W = g[0], P = g[1], H = g[2], C = g[3], y = g[4], z = g[5], B = g[6], x = g[7], E = g[8], A = g[9], D = g[10], F = g[11], I = g[12], J = g[13], K = g[14], L = g[15], M = g[16], N = g[17], O = g[18], g = g[19]; - c[0] = a * W + s * P + b * H + G * C; - c[1] = l * W + n * P + f * H + U * C; - c[2] = k * W + d * P + q * H + t * C; - c[3] = m * W + e * P + r * H + Q * C; - c[4] = a * y + s * z + b * B + G * x; - c[5] = l * y + n * z + f * B + U * x; - c[6] = k * y + d * z + q * B + t * x; - c[7] = m * y + e * z + r * B + Q * x; - c[8] = a * E + s * A + b * D + G * F; - c[9] = l * E + n * A + f * D + U * F; - c[10] = k * E + d * A + q * D + t * F; - c[11] = m * E + e * A + r * D + Q * F; - c[12] = a * I + s * J + b * K + G * L; - c[13] = l * I + n * J + f * K + U * L; - c[14] = k * I + d * J + q * K + t * L; - c[15] = m * I + e * J + r * K + Q * L; - c[16] = a * M + s * N + b * O + G * g + fa; - c[17] = l * M + n * N + f * O + U * g + ca; - c[18] = k * M + d * N + q * O + t * g + ga; - c[19] = m * M + e * N + r * O + Q * g + ha; + var b = this._data, g = a._data; + a = b[0]; + var l = b[1], k = b[2], m = b[3], t = b[4], n = b[5], e = b[6], f = b[7], c = b[8], d = b[9], q = b[10], u = b[11], r = b[12], H = b[13], v = b[14], R = b[15], ha = b[16], da = b[17], ia = b[18], ja = b[19], W = g[0], Q = g[1], V = g[2], D = g[3], z = g[4], A = g[5], C = g[6], y = g[7], F = g[8], B = g[9], E = g[10], G = g[11], J = g[12], K = g[13], L = g[14], M = g[15], N = g[16], O = g[17], P = g[18], g = g[19]; + b[0] = a * W + t * Q + c * V + r * D; + b[1] = l * W + n * Q + d * V + H * D; + b[2] = k * W + e * Q + q * V + v * D; + b[3] = m * W + f * Q + u * V + R * D; + b[4] = a * z + t * A + c * C + r * y; + b[5] = l * z + n * A + d * C + H * y; + b[6] = k * z + e * A + q * C + v * y; + b[7] = m * z + f * A + u * C + R * y; + b[8] = a * F + t * B + c * E + r * G; + b[9] = l * F + n * B + d * E + H * G; + b[10] = k * F + e * B + q * E + v * G; + b[11] = m * F + f * B + u * E + R * G; + b[12] = a * J + t * K + c * L + r * M; + b[13] = l * J + n * K + d * L + H * M; + b[14] = k * J + e * K + q * L + v * M; + b[15] = m * J + f * K + u * L + R * M; + b[16] = a * N + t * O + c * P + r * g + ha; + b[17] = l * N + n * O + d * P + H * g + da; + b[18] = k * N + e * O + q * P + v * g + ia; + b[19] = m * N + f * O + u * P + R * g + ja; this._type = 0; } }; - Object.defineProperty(c.prototype, "alphaMultiplier", {get:function() { + Object.defineProperty(b.prototype, "alphaMultiplier", {get:function() { return this._data[15]; }, enumerable:!0, configurable:!0}); - c.prototype.hasOnlyAlphaMultiplier = function() { + b.prototype.hasOnlyAlphaMultiplier = function() { var a = this._data; return 1 == a[0] && 0 == a[1] && 0 == a[2] && 0 == a[3] && 0 == a[4] && 1 == a[5] && 0 == a[6] && 0 == a[7] && 0 == a[8] && 0 == a[9] && 1 == a[10] && 0 == a[11] && 0 == a[12] && 0 == a[13] && 0 == a[14] && 0 == a[16] && 0 == a[17] && 0 == a[18] && 0 == a[19]; }; - c.prototype.equals = function(a) { + b.prototype.equals = function(a) { if (!a) { - return!1; + return !1; } if (this._type === a._type && 1 === this._type) { - return!0; + return !0; } - var c = this._data; + var b = this._data; a = a._data; for (var g = 0;20 > g;g++) { - if (.001 < Math.abs(c[g] - a[g])) { - return!1; + if (.001 < Math.abs(b[g] - a[g])) { + return !1; } } - return!0; + return !0; }; - c.prototype.toSVGFilterMatrix = function() { + b.prototype.toSVGFilterMatrix = function() { var a = this._data; - return[a[0], a[4], a[8], a[12], a[16], a[1], a[5], a[9], a[13], a[17], a[2], a[6], a[10], a[14], a[18], a[3], a[7], a[11], a[15], a[19]].join(" "); + return [a[0], a[4], a[8], a[12], a[16], a[1], a[5], a[9], a[13], a[17], a[2], a[6], a[10], a[14], a[18], a[3], a[7], a[11], a[15], a[19]].join(" "); }; - return c; + return b; }(); - r.ColorMatrix = c; + r.ColorMatrix = b; })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - function c(a, c) { - return-1 !== a.indexOf(c, this.length - c.length); + function b(a, b) { + return -1 !== a.indexOf(b, this.length - b.length); } - var t = r.Geometry.Point3D, n = r.Geometry.Matrix3D, a = r.Geometry.degreesToRadian, h = k.Debug.unexpected, p = k.Debug.notImplemented; + var v = r.Geometry.Point3D, n = r.Geometry.Matrix3D, a = r.Geometry.degreesToRadian, h = k.Debug.unexpected, p = k.Debug.notImplemented; g.SHADER_ROOT = "shaders/"; var l = function() { - function l(a, c) { + function l(a, b) { this._fillColor = k.Color.Red; this._surfaceRegionCache = new k.LRUList; this.modelViewProjectionMatrix = n.createIdentity(); this._canvas = a; - this._options = c; + this._options = b; this.gl = a.getContext("experimental-webgl", {preserveDrawingBuffer:!1, antialias:!0, stencil:!0, premultipliedAlpha:!1}); this._programCache = Object.create(null); this._resize(); - this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, c.unpackPremultiplyAlpha ? this.gl.ONE : this.gl.ZERO); + this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, b.unpackPremultiplyAlpha ? this.gl.ONE : this.gl.ZERO); this._backgroundColor = k.Color.Black; this._geometry = new g.WebGLGeometry(this); this._tmpVertices = g.Vertex.createEmptyVertices(g.Vertex, 64); - this._maxSurfaces = c.maxSurfaces; - this._maxSurfaceSize = c.maxSurfaceSize; + this._maxSurfaces = b.maxSurfaces; + this._maxSurfaceSize = b.maxSurfaceSize; this.gl.blendFunc(this.gl.ONE, this.gl.ONE_MINUS_SRC_ALPHA); this.gl.enable(this.gl.BLEND); this.modelViewProjectionMatrix = n.create2DProjection(this._w, this._h, 2E3); @@ -10322,21 +10338,21 @@ __extends = this.__extends || function(k, r) { this._fillColor.set(k.Color.parseColor(a)); }, enumerable:!0, configurable:!0}); l.prototype.setBlendMode = function(a) { - var c = this.gl; + var b = this.gl; switch(a) { case 8: - c.blendFunc(c.SRC_ALPHA, c.DST_ALPHA); + b.blendFunc(b.SRC_ALPHA, b.DST_ALPHA); break; case 3: - c.blendFunc(c.DST_COLOR, c.ONE_MINUS_SRC_ALPHA); + b.blendFunc(b.DST_COLOR, b.ONE_MINUS_SRC_ALPHA); break; case 4: - c.blendFunc(c.SRC_ALPHA, c.ONE); + b.blendFunc(b.SRC_ALPHA, b.ONE); break; case 2: ; case 1: - c.blendFunc(c.ONE, c.ONE_MINUS_SRC_ALPHA); + b.blendFunc(b.ONE, b.ONE_MINUS_SRC_ALPHA); break; default: p("Blend Mode: " + a); @@ -10354,31 +10370,31 @@ __extends = this.__extends || function(k, r) { case 4: ; case 1: - return!0; + return !0; default: - return!1; + return !1; } }; l.prototype.create2DProjectionMatrix = function() { return n.create2DProjection(this._w, this._h, -this._w); }; - l.prototype.createPerspectiveMatrix = function(c, h, g) { + l.prototype.createPerspectiveMatrix = function(b, h, g) { g = a(g); h = n.createPerspective(a(h)); - var d = new t(0, 1, 0), e = new t(0, 0, 0); - c = new t(0, 0, c); - c = n.createCameraLookAt(c, e, d); - c = n.createInverse(c); - d = n.createIdentity(); - d = n.createMultiply(d, n.createTranslation(-this._w / 2, -this._h / 2)); - d = n.createMultiply(d, n.createScale(1 / this._w, -1 / this._h, .01)); - d = n.createMultiply(d, n.createYRotation(g)); - d = n.createMultiply(d, c); - return d = n.createMultiply(d, h); + var e = new v(0, 1, 0), f = new v(0, 0, 0); + b = new v(0, 0, b); + b = n.createCameraLookAt(b, f, e); + b = n.createInverse(b); + e = n.createIdentity(); + e = n.createMultiply(e, n.createTranslation(-this._w / 2, -this._h / 2)); + e = n.createMultiply(e, n.createScale(1 / this._w, -1 / this._h, .01)); + e = n.createMultiply(e, n.createYRotation(g)); + e = n.createMultiply(e, b); + return e = n.createMultiply(e, h); }; l.prototype.discardCachedImages = function() { 2 <= r.traceLevel && r.writer && r.writer.writeLn("Discard Cache"); - for (var a = this._surfaceRegionCache.count / 2 | 0, c = 0;c < a;c++) { + for (var a = this._surfaceRegionCache.count / 2 | 0, b = 0;b < a;b++) { var h = this._surfaceRegionCache.pop(); 2 <= r.traceLevel && r.writer && r.writer.writeLn("Discard: " + h); h.texture.atlas.remove(h.region); @@ -10386,27 +10402,27 @@ __extends = this.__extends || function(k, r) { } }; l.prototype.cacheImage = function(a) { - var c = this.allocateSurfaceRegion(a.width, a.height); - 2 <= r.traceLevel && r.writer && r.writer.writeLn("Uploading Image: @ " + c.region); - this._surfaceRegionCache.use(c); - this.updateSurfaceRegion(a, c); - return c; + var b = this.allocateSurfaceRegion(a.width, a.height); + 2 <= r.traceLevel && r.writer && r.writer.writeLn("Uploading Image: @ " + b.region); + this._surfaceRegionCache.use(b); + this.updateSurfaceRegion(a, b); + return b; }; - l.prototype.allocateSurfaceRegion = function(a, c) { - return this._surfaceRegionAllocator.allocate(a, c, null); + l.prototype.allocateSurfaceRegion = function(a, b) { + return this._surfaceRegionAllocator.allocate(a, b, null); }; - l.prototype.updateSurfaceRegion = function(a, c) { + l.prototype.updateSurfaceRegion = function(a, b) { var h = this.gl; - h.bindTexture(h.TEXTURE_2D, c.surface.texture); - h.texSubImage2D(h.TEXTURE_2D, 0, c.region.x, c.region.y, h.RGBA, h.UNSIGNED_BYTE, a); + h.bindTexture(h.TEXTURE_2D, b.surface.texture); + h.texSubImage2D(h.TEXTURE_2D, 0, b.region.x, b.region.y, h.RGBA, h.UNSIGNED_BYTE, a); }; l.prototype._resize = function() { var a = this.gl; this._w = this._canvas.width; this._h = this._canvas.height; a.viewport(0, 0, this._w, this._h); - for (var c in this._programCache) { - this._initializeProgram(this._programCache[c]); + for (var b in this._programCache) { + this._initializeProgram(this._programCache[b]); } }; l.prototype._initializeProgram = function(a) { @@ -10417,10 +10433,10 @@ __extends = this.__extends || function(k, r) { a = new XMLHttpRequest; a.open("GET", h, !1); a.send(); - if (c(h, ".vert")) { + if (b(h, ".vert")) { h = l.VERTEX_SHADER; } else { - if (c(h, ".frag")) { + if (b(h, ".frag")) { h = l.FRAGMENT_SHADER; } else { throw "Shader Type: not supported."; @@ -10434,75 +10450,75 @@ __extends = this.__extends || function(k, r) { return a; }; l.prototype._createProgram = function(a) { - var c = this.gl, g = c.createProgram(); + var b = this.gl, g = b.createProgram(); a.forEach(function(a) { - c.attachShader(g, a); + b.attachShader(g, a); }); - c.linkProgram(g); - c.getProgramParameter(g, c.LINK_STATUS) || (h("Cannot link program: " + c.getProgramInfoLog(g)), c.deleteProgram(g)); + b.linkProgram(g); + b.getProgramParameter(g, b.LINK_STATUS) || (h("Cannot link program: " + b.getProgramInfoLog(g)), b.deleteProgram(g)); return g; }; - l.prototype._createShader = function(a, c) { - var g = this.gl, d = g.createShader(a); - g.shaderSource(d, c); - g.compileShader(d); - return g.getShaderParameter(d, g.COMPILE_STATUS) ? d : (h("Cannot compile shader: " + g.getShaderInfoLog(d)), g.deleteShader(d), null); + l.prototype._createShader = function(a, b) { + var g = this.gl, e = g.createShader(a); + g.shaderSource(e, b); + g.compileShader(e); + return g.getShaderParameter(e, g.COMPILE_STATUS) ? e : (h("Cannot compile shader: " + g.getShaderInfoLog(e)), g.deleteShader(e), null); }; l.prototype._createTexture = function() { - var a = this.gl, c = a.createTexture(); - a.bindTexture(a.TEXTURE_2D, c); + var a = this.gl, b = a.createTexture(); + a.bindTexture(a.TEXTURE_2D, b); 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); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR); a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, 1024, 1024, 0, a.RGBA, a.UNSIGNED_BYTE, null); - return c; + return b; }; l.prototype._createFramebuffer = function(a) { - var c = this.gl, h = c.createFramebuffer(); - c.bindFramebuffer(c.FRAMEBUFFER, h); - c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, a, 0); - c.bindFramebuffer(c.FRAMEBUFFER, null); + var b = this.gl, h = b.createFramebuffer(); + b.bindFramebuffer(b.FRAMEBUFFER, h); + b.framebufferTexture2D(b.FRAMEBUFFER, b.COLOR_ATTACHMENT0, b.TEXTURE_2D, a, 0); + b.bindFramebuffer(b.FRAMEBUFFER, null); return h; }; l.prototype._queryProgramAttributesAndUniforms = function(a) { a.uniforms = {}; a.attributes = {}; - for (var c = this.gl, h = 0, d = c.getProgramParameter(a, c.ACTIVE_ATTRIBUTES);h < d;h++) { - var e = c.getActiveAttrib(a, h); - a.attributes[e.name] = e; - e.location = c.getAttribLocation(a, e.name); + for (var b = this.gl, h = 0, e = b.getProgramParameter(a, b.ACTIVE_ATTRIBUTES);h < e;h++) { + var f = b.getActiveAttrib(a, h); + a.attributes[f.name] = f; + f.location = b.getAttribLocation(a, f.name); } h = 0; - for (d = c.getProgramParameter(a, c.ACTIVE_UNIFORMS);h < d;h++) { - e = c.getActiveUniform(a, h), a.uniforms[e.name] = e, e.location = c.getUniformLocation(a, e.name); + for (e = b.getProgramParameter(a, b.ACTIVE_UNIFORMS);h < e;h++) { + f = b.getActiveUniform(a, h), a.uniforms[f.name] = f, f.location = b.getUniformLocation(a, f.name); } }; Object.defineProperty(l.prototype, "target", {set:function(a) { - var c = this.gl; - a ? (c.viewport(0, 0, a.w, a.h), c.bindFramebuffer(c.FRAMEBUFFER, a.framebuffer)) : (c.viewport(0, 0, this._w, this._h), c.bindFramebuffer(c.FRAMEBUFFER, null)); + var b = this.gl; + a ? (b.viewport(0, 0, a.w, a.h), b.bindFramebuffer(b.FRAMEBUFFER, a.framebuffer)) : (b.viewport(0, 0, this._w, this._h), b.bindFramebuffer(b.FRAMEBUFFER, null)); }, enumerable:!0, configurable:!0}); l.prototype.clear = function(a) { a = this.gl; a.clearColor(0, 0, 0, 0); a.clear(a.COLOR_BUFFER_BIT); }; - l.prototype.clearTextureRegion = function(a, c) { - void 0 === c && (c = k.Color.None); - var h = this.gl, d = a.region; + l.prototype.clearTextureRegion = function(a, b) { + void 0 === b && (b = k.Color.None); + var h = this.gl, e = a.region; this.target = a.surface; h.enable(h.SCISSOR_TEST); - h.scissor(d.x, d.y, d.w, d.h); - h.clearColor(c.r, c.g, c.b, c.a); + h.scissor(e.x, e.y, e.w, e.h); + h.clearColor(b.r, b.g, b.b, b.a); h.clear(h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT); h.disable(h.SCISSOR_TEST); }; l.prototype.sizeOf = function(a) { - var c = this.gl; + var b = this.gl; switch(a) { - case c.UNSIGNED_BYTE: + case b.UNSIGNED_BYTE: return 1; - case c.UNSIGNED_SHORT: + case b.UNSIGNED_SHORT: return 2; case this.gl.INT: ; @@ -10523,8 +10539,8 @@ __extends = this.__extends || function(k, r) { function g() { this.constructor = k; } - for (var c in r) { - r.hasOwnProperty(c) && (k[c] = r[c]); + for (var b in r) { + r.hasOwnProperty(b) && (k[b] = r[b]); } g.prototype = r.prototype; k.prototype = new g; @@ -10532,40 +10548,40 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.Debug.assert, t = function(a) { + var b = k.Debug.assert, v = function(a) { function h() { a.apply(this, arguments); } __extends(h, a); h.prototype.ensureVertexCapacity = function(a) { - c(0 === (this._offset & 3)); + b(0 === (this._offset & 3)); this.ensureCapacity(this._offset + 8 * a); }; h.prototype.writeVertex = function(a, h) { - c(0 === (this._offset & 3)); + b(0 === (this._offset & 3)); this.ensureCapacity(this._offset + 8); this.writeVertexUnsafe(a, h); }; - h.prototype.writeVertexUnsafe = function(a, c) { + h.prototype.writeVertexUnsafe = function(a, b) { var h = this._offset >> 2; this._f32[h] = a; - this._f32[h + 1] = c; + this._f32[h + 1] = b; this._offset += 8; }; h.prototype.writeVertex3D = function(a, h, g) { - c(0 === (this._offset & 3)); + b(0 === (this._offset & 3)); this.ensureCapacity(this._offset + 12); this.writeVertex3DUnsafe(a, h, g); }; - h.prototype.writeVertex3DUnsafe = function(a, c, h) { - var g = this._offset >> 2; - this._f32[g] = a; - this._f32[g + 1] = c; - this._f32[g + 2] = h; + h.prototype.writeVertex3DUnsafe = function(a, b, h) { + var m = this._offset >> 2; + this._f32[m] = a; + this._f32[m + 1] = b; + this._f32[m + 2] = h; this._offset += 12; }; h.prototype.writeTriangleElements = function(a, h, g) { - c(0 === (this._offset & 1)); + b(0 === (this._offset & 1)); this.ensureCapacity(this._offset + 6); var m = this._offset >> 1; this._u16[m] = a; @@ -10574,31 +10590,31 @@ __extends = this.__extends || function(k, r) { this._offset += 6; }; h.prototype.ensureColorCapacity = function(a) { - c(0 === (this._offset & 2)); + b(0 === (this._offset & 2)); this.ensureCapacity(this._offset + 16 * a); }; h.prototype.writeColorFloats = function(a, h, g, m) { - c(0 === (this._offset & 2)); + b(0 === (this._offset & 2)); this.ensureCapacity(this._offset + 16); this.writeColorFloatsUnsafe(a, h, g, m); }; - h.prototype.writeColorFloatsUnsafe = function(a, c, h, g) { - var k = this._offset >> 2; - this._f32[k] = a; - this._f32[k + 1] = c; - this._f32[k + 2] = h; - this._f32[k + 3] = g; + h.prototype.writeColorFloatsUnsafe = function(a, b, h, m) { + var g = this._offset >> 2; + this._f32[g] = a; + this._f32[g + 1] = b; + this._f32[g + 2] = h; + this._f32[g + 3] = m; this._offset += 16; }; h.prototype.writeColor = function() { var a = Math.random(), h = Math.random(), g = Math.random(), m = Math.random() / 2; - c(0 === (this._offset & 3)); + b(0 === (this._offset & 3)); this.ensureCapacity(this._offset + 4); this._i32[this._offset >> 2] = m << 24 | g << 16 | h << 8 | a; this._offset += 4; }; - h.prototype.writeColorUnsafe = function(a, c, h, g) { - this._i32[this._offset >> 2] = g << 24 | h << 16 | c << 8 | a; + h.prototype.writeColorUnsafe = function(a, b, h, m) { + this._i32[this._offset >> 2] = m << 24 | h << 16 | b << 8 | a; this._offset += 4; }; h.prototype.writeRandomColor = function() { @@ -10606,12 +10622,12 @@ __extends = this.__extends || function(k, r) { }; return h; }(k.ArrayUtilities.ArrayWriter); - g.BufferWriter = t; + g.BufferWriter = v; g.WebGLAttribute = function() { - return function(a, c, g, l) { + return function(a, b, g, l) { void 0 === l && (l = !1); this.name = a; - this.size = c; + this.size = b; this.type = g; this.normalized = l; }; @@ -10622,10 +10638,10 @@ __extends = this.__extends || function(k, r) { this.attributes = a; } a.prototype.initialize = function(a) { - for (var c = 0, g = 0;g < this.attributes.length;g++) { - this.attributes[g].offset = c, c += a.sizeOf(this.attributes[g].type) * this.attributes[g].size; + for (var b = 0, g = 0;g < this.attributes.length;g++) { + this.attributes[g].offset = b, b += a.sizeOf(this.attributes[g].type) * this.attributes[g].size; } - this.size = c; + this.size = b; }; return a; }(); @@ -10634,9 +10650,9 @@ __extends = this.__extends || function(k, r) { function a(a) { this._elementOffset = this.triangleCount = 0; this.context = a; - this.array = new t(8); + this.array = new v(8); this.buffer = a.gl.createBuffer(); - this.elementArray = new t(8); + this.elementArray = new v(8); this.elementBuffer = a.gl.createBuffer(); } Object.defineProperty(a.prototype, "elementOffset", {get:function() { @@ -10669,17 +10685,17 @@ __extends = this.__extends || function(k, r) { }(); g.WebGLGeometry = n; n = function(a) { - function c(h, g, k) { + function b(h, g, k) { a.call(this, h, g, k); } - __extends(c, a); - c.createEmptyVertices = function(a, c) { - for (var h = [], g = 0;g < c;g++) { + __extends(b, a); + b.createEmptyVertices = function(a, b) { + for (var h = [], m = 0;m < b;m++) { h.push(new a(0, 0, 0)); } return h; }; - return c; + return b; }(r.Geometry.Point3D); g.Vertex = n; (function(a) { @@ -10705,42 +10721,42 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - var c = function() { - function c(a, h, g) { + var b = function() { + function b(a, h, g) { this.texture = g; this.w = a; this.h = h; this._regionAllocator = new k.RegionAllocator.CompactAllocator(this.w, this.h); } - c.prototype.allocate = function(a, c) { - var g = this._regionAllocator.allocate(a, c); - return g ? new t(this, g) : null; + b.prototype.allocate = function(a, b) { + var g = this._regionAllocator.allocate(a, b); + return g ? new v(this, g) : null; }; - c.prototype.free = function(a) { + b.prototype.free = function(a) { this._regionAllocator.free(a.region); }; - return c; + return b; }(); - g.WebGLSurface = c; - var t = function() { - return function(c, a) { - this.surface = c; + g.WebGLSurface = b; + var v = function() { + return function(b, a) { + this.surface = b; this.region = a; this.next = this.previous = null; }; }(); - g.WebGLSurfaceRegion = t; + g.WebGLSurfaceRegion = v; })(k.WebGL || (k.WebGL = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.Color; + var b = k.Color; g.TILE_SIZE = 256; g.MIN_UNTILED_SIZE = 256; - var t = r.Geometry.Matrix, n = r.Geometry.Rectangle, a = function(a) { - function c() { + var v = r.Geometry.Matrix, n = r.Geometry.Rectangle, a = function(a) { + function b() { a.apply(this, arguments); this.maxSurfaces = 8; this.maxSurfaceSize = 4096; @@ -10755,20 +10771,20 @@ __extends = this.__extends || function(k, r) { this.sourceBlendFactor = 1; this.destinationBlendFactor = 771; } - __extends(c, a); - return c; + __extends(b, a); + return b; }(r.RendererOptions); g.WebGLRendererOptions = a; var h = function(h) { - function l(c, m, l) { + function l(b, m, l) { void 0 === l && (l = new a); - h.call(this, c, m, l); + h.call(this, b, m, l); this._tmpVertices = g.Vertex.createEmptyVertices(g.Vertex, 64); this._cachedTiles = []; - c = this._context = new g.WebGLContext(this._canvas, l); + b = this._context = new g.WebGLContext(this._canvas, l); this._updateSize(); - this._brush = new g.WebGLCombinedBrush(c, new g.WebGLGeometry(c)); - this._stencilBrush = new g.WebGLCombinedBrush(c, new g.WebGLGeometry(c)); + this._brush = new g.WebGLCombinedBrush(b, new g.WebGLGeometry(b)); + this._stencilBrush = new g.WebGLCombinedBrush(b, new g.WebGLGeometry(b)); this._scratchCanvas = document.createElement("canvas"); this._scratchCanvas.width = this._scratchCanvas.height = 2048; this._scratchCanvasContext = this._scratchCanvas.getContext("2d", {willReadFrequently:!0}); @@ -10790,56 +10806,56 @@ __extends = this.__extends || function(k, r) { this._viewport = new n(0, 0, this._canvas.width, this._canvas.height); this._context._resize(); }; - l.prototype._cacheImageCallback = function(a, c, h) { - var g = h.w, d = h.h, e = h.x; + l.prototype._cacheImageCallback = function(a, b, h) { + var g = h.w, e = h.h, f = h.x; h = h.y; this._uploadCanvas.width = g + 2; - this._uploadCanvas.height = d + 2; - this._uploadCanvasContext.drawImage(c.canvas, e, h, g, d, 1, 1, g, d); - this._uploadCanvasContext.drawImage(c.canvas, e, h, g, 1, 1, 0, g, 1); - this._uploadCanvasContext.drawImage(c.canvas, e, h + d - 1, g, 1, 1, d + 1, g, 1); - this._uploadCanvasContext.drawImage(c.canvas, e, h, 1, d, 0, 1, 1, d); - this._uploadCanvasContext.drawImage(c.canvas, e + g - 1, h, 1, d, g + 1, 1, 1, d); + this._uploadCanvas.height = e + 2; + this._uploadCanvasContext.drawImage(b.canvas, f, h, g, e, 1, 1, g, e); + this._uploadCanvasContext.drawImage(b.canvas, f, h, g, 1, 1, 0, g, 1); + this._uploadCanvasContext.drawImage(b.canvas, f, h + e - 1, g, 1, 1, e + 1, g, 1); + this._uploadCanvasContext.drawImage(b.canvas, f, h, 1, e, 0, 1, 1, e); + this._uploadCanvasContext.drawImage(b.canvas, f + g - 1, h, 1, e, g + 1, 1, 1, e); return a && a.surface ? (this._options.disableSurfaceUploads || this._context.updateSurfaceRegion(this._uploadCanvas, a), a) : this._context.cacheImage(this._uploadCanvas); }; - l.prototype._enterClip = function(a, c, h, g) { + l.prototype._enterClip = function(a, b, h, g) { h.flush(); - c = this._context.gl; - 0 === this._clipStack.length && (c.enable(c.STENCIL_TEST), c.clear(c.STENCIL_BUFFER_BIT), c.stencilFunc(c.ALWAYS, 1, 1)); + b = this._context.gl; + 0 === this._clipStack.length && (b.enable(b.STENCIL_TEST), b.clear(b.STENCIL_BUFFER_BIT), b.stencilFunc(b.ALWAYS, 1, 1)); this._clipStack.push(a); - c.colorMask(!1, !1, !1, !1); - c.stencilOp(c.KEEP, c.KEEP, c.INCR); + b.colorMask(!1, !1, !1, !1); + b.stencilOp(b.KEEP, b.KEEP, b.INCR); h.flush(); - c.colorMask(!0, !0, !0, !0); - c.stencilFunc(c.NOTEQUAL, 0, this._clipStack.length); - c.stencilOp(c.KEEP, c.KEEP, c.KEEP); + b.colorMask(!0, !0, !0, !0); + b.stencilFunc(b.NOTEQUAL, 0, this._clipStack.length); + b.stencilOp(b.KEEP, b.KEEP, b.KEEP); }; - l.prototype._leaveClip = function(a, c, h, g) { + l.prototype._leaveClip = function(a, b, h, g) { h.flush(); - c = this._context.gl; + b = this._context.gl; if (a = this._clipStack.pop()) { - c.colorMask(!1, !1, !1, !1), c.stencilOp(c.KEEP, c.KEEP, c.DECR), h.flush(), c.colorMask(!0, !0, !0, !0), c.stencilFunc(c.NOTEQUAL, 0, this._clipStack.length), c.stencilOp(c.KEEP, c.KEEP, c.KEEP); + b.colorMask(!1, !1, !1, !1), b.stencilOp(b.KEEP, b.KEEP, b.DECR), h.flush(), b.colorMask(!0, !0, !0, !0), b.stencilFunc(b.NOTEQUAL, 0, this._clipStack.length), b.stencilOp(b.KEEP, b.KEEP, b.KEEP); } - 0 === this._clipStack.length && c.disable(c.STENCIL_TEST); + 0 === this._clipStack.length && b.disable(b.STENCIL_TEST); }; - l.prototype._renderFrame = function(a, c, h, g) { + l.prototype._renderFrame = function(a, b, h, g) { }; l.prototype._renderSurfaces = function(a) { var h = this._options, l = this._context, k = this._viewport; if (h.drawSurfaces) { - var d = l.surfaces, l = t.createIdentity(); - if (0 <= h.drawSurface && h.drawSurface < d.length) { - for (var h = d[h.drawSurface | 0], d = new n(0, 0, h.w, h.h), e = d.clone();e.w > k.w;) { - e.scale(.5, .5); + var e = l.surfaces, l = v.createIdentity(); + if (0 <= h.drawSurface && h.drawSurface < e.length) { + for (var h = e[h.drawSurface | 0], e = new n(0, 0, h.w, h.h), f = e.clone();f.w > k.w;) { + f.scale(.5, .5); } - a.drawImage(new g.WebGLSurfaceRegion(h, d), e, c.White, null, l, .2); + a.drawImage(new g.WebGLSurfaceRegion(h, e), f, b.White, null, l, .2); } else { - e = k.w / 5; - e > k.h / d.length && (e = k.h / d.length); - a.fillRectangle(new n(k.w - e, 0, e, k.h), new c(0, 0, 0, .5), l, .1); - for (var b = 0;b < d.length;b++) { - var h = d[b], f = new n(k.w - e, b * e, e, e); - a.drawImage(new g.WebGLSurfaceRegion(h, new n(0, 0, h.w, h.h)), f, c.White, null, l, .2); + f = k.w / 5; + f > k.h / e.length && (f = k.h / e.length); + a.fillRectangle(new n(k.w - f, 0, f, k.h), new b(0, 0, 0, .5), l, .1); + for (var c = 0;c < e.length;c++) { + var h = e[c], d = new n(k.w - f, c * f, f, f); + a.drawImage(new g.WebGLSurfaceRegion(h, new n(0, 0, h.w, h.h)), d, b.White, null, l, .2); } } a.flush(); @@ -10854,7 +10870,7 @@ __extends = this.__extends || function(k, r) { g.reset(); h = this._viewport; g.flush(); - a.paintViewport && (g.fillRectangle(h, new c(.5, 0, 0, .25), t.createIdentity(), 0), g.flush()); + a.paintViewport && (g.fillRectangle(h, new b(.5, 0, 0, .25), v.createIdentity(), 0), g.flush()); this._renderSurfaces(g); }; return l; @@ -10866,10 +10882,10 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.Color, t = r.Geometry.Point, n = r.Geometry.Matrix3D, a = function() { - function a(c, h, g) { + var b = k.Color, v = r.Geometry.Point, n = r.Geometry.Matrix3D, a = function() { + function a(b, h, g) { this._target = g; - this._context = c; + this._context = b; this._geometry = h; } a.prototype.reset = function() { @@ -10894,14 +10910,14 @@ __extends = this.__extends || function(k, r) { function h(g, m, l) { a.call(this, g, m, l); this.kind = 0; - this.color = new c(0, 0, 0, 0); + this.color = new b(0, 0, 0, 0); this.sampler = 0; - this.coordinate = new t(0, 0); + this.coordinate = new v(0, 0); } __extends(h, a); h.initializeAttributeList = function(a) { - var c = a.gl; - h.attributeList || (h.attributeList = new g.WebGLAttributeList([new g.WebGLAttribute("aPosition", 3, c.FLOAT), new g.WebGLAttribute("aCoordinate", 2, c.FLOAT), new g.WebGLAttribute("aColor", 4, c.UNSIGNED_BYTE, !0), new g.WebGLAttribute("aKind", 1, c.FLOAT), new g.WebGLAttribute("aSampler", 1, c.FLOAT)]), h.attributeList.initialize(a)); + var b = a.gl; + h.attributeList || (h.attributeList = new g.WebGLAttributeList([new g.WebGLAttribute("aPosition", 3, b.FLOAT), new g.WebGLAttribute("aCoordinate", 2, b.FLOAT), new g.WebGLAttribute("aColor", 4, b.UNSIGNED_BYTE, !0), new g.WebGLAttribute("aKind", 1, b.FLOAT), new g.WebGLAttribute("aSampler", 1, b.FLOAT)]), h.attributeList.initialize(a)); }; h.prototype.writeTo = function(a) { a = a.array; @@ -10916,7 +10932,7 @@ __extends = this.__extends || function(k, r) { }(g.Vertex); g.WebGLCombinedBrushVertex = h; a = function(a) { - function c(g, m, l) { + function b(g, m, l) { void 0 === l && (l = null); a.call(this, g, m, l); this._blendMode = 1; @@ -10924,69 +10940,69 @@ __extends = this.__extends || function(k, r) { this._surfaces = []; h.initializeAttributeList(this._context); } - __extends(c, a); - c.prototype.reset = function() { + __extends(b, a); + b.prototype.reset = function() { this._surfaces = []; this._geometry.reset(); }; - c.prototype.drawImage = function(a, h, g, k, d, e, b) { - void 0 === e && (e = 0); - void 0 === b && (b = 1); + b.prototype.drawImage = function(a, h, g, k, e, f, c) { + void 0 === f && (f = 0); + void 0 === c && (c = 1); if (!a || !a.surface) { - return!0; + return !0; } h = h.clone(); this._colorMatrix && (k && this._colorMatrix.equals(k) || this.flush()); this._colorMatrix = k; - this._blendMode !== b && (this.flush(), this._blendMode = b); - b = this._surfaces.indexOf(a.surface); - 0 > b && (8 === this._surfaces.length && this.flush(), this._surfaces.push(a.surface), b = this._surfaces.length - 1); - var f = c._tmpVertices, q = a.region.clone(); + this._blendMode !== c && (this.flush(), this._blendMode = c); + c = this._surfaces.indexOf(a.surface); + 0 > c && (8 === this._surfaces.length && this.flush(), this._surfaces.push(a.surface), c = this._surfaces.length - 1); + var d = b._tmpVertices, q = a.region.clone(); q.offset(1, 1).resize(-2, -2); q.scale(1 / a.surface.w, 1 / a.surface.h); - d.transformRectangle(h, f); + e.transformRectangle(h, d); for (a = 0;4 > a;a++) { - f[a].z = e; + d[a].z = f; } - f[0].coordinate.x = q.x; - f[0].coordinate.y = q.y; - f[1].coordinate.x = q.x + q.w; - f[1].coordinate.y = q.y; - f[2].coordinate.x = q.x + q.w; - f[2].coordinate.y = q.y + q.h; - f[3].coordinate.x = q.x; - f[3].coordinate.y = q.y + q.h; + d[0].coordinate.x = q.x; + d[0].coordinate.y = q.y; + d[1].coordinate.x = q.x + q.w; + d[1].coordinate.y = q.y; + d[2].coordinate.x = q.x + q.w; + d[2].coordinate.y = q.y + q.h; + d[3].coordinate.x = q.x; + d[3].coordinate.y = q.y + q.h; for (a = 0;4 > a;a++) { - e = c._tmpVertices[a], e.kind = k ? 2 : 1, e.color.set(g), e.sampler = b, e.writeTo(this._geometry); + f = b._tmpVertices[a], f.kind = k ? 2 : 1, f.color.set(g), f.sampler = c, f.writeTo(this._geometry); } this._geometry.addQuad(); - return!0; + return !0; }; - c.prototype.fillRectangle = function(a, h, g, k) { + b.prototype.fillRectangle = function(a, h, g, k) { void 0 === k && (k = 0); - g.transformRectangle(a, c._tmpVertices); + g.transformRectangle(a, b._tmpVertices); for (a = 0;4 > a;a++) { - g = c._tmpVertices[a], g.kind = 0, g.color.set(h), g.z = k, g.writeTo(this._geometry); + g = b._tmpVertices[a], g.kind = 0, g.color.set(h), g.z = k, g.writeTo(this._geometry); } this._geometry.addQuad(); }; - c.prototype.flush = function() { - var a = this._geometry, c = this._program, g = this._context.gl, l; + b.prototype.flush = function() { + var a = this._geometry, b = this._program, g = this._context.gl, l; a.uploadBuffers(); - g.useProgram(c); + g.useProgram(b); this._target ? (l = n.create2DProjection(this._target.w, this._target.h, 2E3), l = n.createMultiply(l, n.createScale(1, -1, 1))) : l = this._context.modelViewProjectionMatrix; - g.uniformMatrix4fv(c.uniforms.uTransformMatrix3D.location, !1, l.asWebGLMatrix()); - this._colorMatrix && (g.uniformMatrix4fv(c.uniforms.uColorMatrix.location, !1, this._colorMatrix.asWebGLMatrix()), g.uniform4fv(c.uniforms.uColorVector.location, this._colorMatrix.asWebGLVector())); + g.uniformMatrix4fv(b.uniforms.uTransformMatrix3D.location, !1, l.asWebGLMatrix()); + this._colorMatrix && (g.uniformMatrix4fv(b.uniforms.uColorMatrix.location, !1, this._colorMatrix.asWebGLMatrix()), g.uniform4fv(b.uniforms.uColorVector.location, this._colorMatrix.asWebGLVector())); for (l = 0;l < this._surfaces.length;l++) { g.activeTexture(g.TEXTURE0 + l), g.bindTexture(g.TEXTURE_2D, this._surfaces[l].texture); } - g.uniform1iv(c.uniforms["uSampler[0]"].location, [0, 1, 2, 3, 4, 5, 6, 7]); + g.uniform1iv(b.uniforms["uSampler[0]"].location, [0, 1, 2, 3, 4, 5, 6, 7]); g.bindBuffer(g.ARRAY_BUFFER, a.buffer); - var d = h.attributeList.size, e = h.attributeList.attributes; - for (l = 0;l < e.length;l++) { - var b = e[l], f = c.attributes[b.name].location; - g.enableVertexAttribArray(f); - g.vertexAttribPointer(f, b.size, b.type, b.normalized, d, b.offset); + var e = h.attributeList.size, f = h.attributeList.attributes; + for (l = 0;l < f.length;l++) { + var c = f[l], d = b.attributes[c.name].location; + g.enableVertexAttribArray(d); + g.vertexAttribPointer(d, c.size, c.type, c.normalized, e, c.offset); } this._context.setBlendOptions(); this._context.target = this._target; @@ -10994,9 +11010,9 @@ __extends = this.__extends || function(k, r) { g.drawElements(g.TRIANGLES, 3 * a.triangleCount, g.UNSIGNED_SHORT, 0); this.reset(); }; - c._tmpVertices = g.Vertex.createEmptyVertices(h, 4); - c._depth = 1; - return c; + b._tmpVertices = g.Vertex.createEmptyVertices(h, 4); + b._depth = 1; + return b; }(a); g.WebGLCombinedBrush = a; })(r.WebGL || (r.WebGL = {})); @@ -11005,9 +11021,9 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(k) { (function(g) { - var c = CanvasRenderingContext2D.prototype.save, k = CanvasRenderingContext2D.prototype.clip, n = CanvasRenderingContext2D.prototype.fill, a = CanvasRenderingContext2D.prototype.stroke, h = CanvasRenderingContext2D.prototype.restore, p = CanvasRenderingContext2D.prototype.beginPath; + var b = CanvasRenderingContext2D.prototype.save, k = CanvasRenderingContext2D.prototype.clip, n = CanvasRenderingContext2D.prototype.fill, a = CanvasRenderingContext2D.prototype.stroke, h = CanvasRenderingContext2D.prototype.restore, p = CanvasRenderingContext2D.prototype.beginPath; g.notifyReleaseChanged = function() { - CanvasRenderingContext2D.prototype.save = c; + CanvasRenderingContext2D.prototype.save = b; CanvasRenderingContext2D.prototype.clip = k; CanvasRenderingContext2D.prototype.fill = n; CanvasRenderingContext2D.prototype.stroke = a; @@ -11027,55 +11043,55 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - function c(a) { - var c = "source-over"; + function b(a) { + var b = "source-over"; switch(a) { case 1: ; case 2: break; case 3: - c = "multiply"; + b = "multiply"; break; case 8: ; case 4: - c = "screen"; + b = "screen"; break; case 5: - c = "lighten"; + b = "lighten"; break; case 6: - c = "darken"; + b = "darken"; break; case 7: - c = "difference"; + b = "difference"; break; case 13: - c = "overlay"; + b = "overlay"; break; case 14: - c = "hard-light"; + b = "hard-light"; break; case 11: - c = "destination-in"; + b = "destination-in"; break; case 12: - c = "destination-out"; + b = "destination-out"; break; default: k.Debug.somewhatImplemented("Blend Mode: " + r.BlendMode[a]); } - return c; + return b; } - var t = k.NumberUtilities.clamp; + var v = k.NumberUtilities.clamp; navigator.userAgent.indexOf("Firefox"); var n = function() { function a() { } a._prepareSVGFilters = function() { if (!a._svgBlurFilter) { - var c = document.createElementNS("http://www.w3.org/2000/svg", "svg"), g = document.createElementNS("http://www.w3.org/2000/svg", "defs"), k = document.createElementNS("http://www.w3.org/2000/svg", "filter"); + var b = document.createElementNS("http://www.w3.org/2000/svg", "svg"), g = document.createElementNS("http://www.w3.org/2000/svg", "defs"), k = document.createElementNS("http://www.w3.org/2000/svg", "filter"); k.setAttribute("id", "svgBlurFilter"); var m = document.createElementNS("http://www.w3.org/2000/svg", "feGaussianBlur"); m.setAttribute("stdDeviation", "0 0"); @@ -11119,69 +11135,69 @@ __extends = this.__extends || function(k, r) { k.appendChild(m); g.appendChild(k); a._svgColorMatrixFilter = m; - c.appendChild(g); - document.documentElement.appendChild(c); + b.appendChild(g); + document.documentElement.appendChild(b); } }; - a._applyColorMatrixFilter = function(c, g) { + a._applyColorMatrixFilter = function(b, g) { a._prepareSVGFilters(); a._svgColorMatrixFilter.setAttribute("values", g.toSVGFilterMatrix()); - c.filter = "url(#svgColorMatrixFilter)"; + b.filter = "url(#svgColorMatrixFilter)"; }; - a._applyFilters = function(c, g, n) { + a._applyFilters = function(b, g, n) { function m(a) { - var b = c / 2; + var c = b / 2; switch(a) { case 0: return 0; case 1: - return b / 2.7; + return c / 2.7; case 2: - return b / 1.28; + return c / 1.28; default: - return b; + return c; } } a._prepareSVGFilters(); a._removeFilters(g); - for (var s = 0;s < n.length;s++) { - var v = n[s]; - if (v instanceof r.BlurFilter) { - var d = v, v = m(d.quality); - a._svgBlurFilter.setAttribute("stdDeviation", d.blurX * v + " " + d.blurY * v); + for (var t = 0;t < n.length;t++) { + var x = n[t]; + if (x instanceof r.BlurFilter) { + var e = x, x = m(e.quality); + a._svgBlurFilter.setAttribute("stdDeviation", e.blurX * x + " " + e.blurY * x); g.filter = "url(#svgBlurFilter)"; } else { - v instanceof r.DropshadowFilter && (d = v, v = m(d.quality), a._svgDropshadowFilterBlur.setAttribute("stdDeviation", d.blurX * v + " " + d.blurY * v), a._svgDropshadowFilterOffset.setAttribute("dx", String(Math.cos(d.angle * Math.PI / 180) * d.distance * c)), a._svgDropshadowFilterOffset.setAttribute("dy", String(Math.sin(d.angle * Math.PI / 180) * d.distance * c)), a._svgDropshadowFilterFlood.setAttribute("flood-color", k.ColorUtilities.rgbaToCSSStyle(d.color << 8 | Math.round(255 * - d.alpha))), g.filter = "url(#svgDropShadowFilter)"); + x instanceof r.DropshadowFilter && (e = x, x = m(e.quality), a._svgDropshadowFilterBlur.setAttribute("stdDeviation", e.blurX * x + " " + e.blurY * x), a._svgDropshadowFilterOffset.setAttribute("dx", String(Math.cos(e.angle * Math.PI / 180) * e.distance * b)), a._svgDropshadowFilterOffset.setAttribute("dy", String(Math.sin(e.angle * Math.PI / 180) * e.distance * b)), a._svgDropshadowFilterFlood.setAttribute("flood-color", k.ColorUtilities.rgbaToCSSStyle(e.color << 8 | Math.round(255 * + e.alpha))), g.filter = "url(#svgDropShadowFilter)"); } } }; a._removeFilters = function(a) { a.filter = "none"; }; - a._applyColorMatrix = function(c, g) { - a._removeFilters(c); - g.isIdentity() ? (c.globalAlpha = 1, c.globalColorMatrix = null) : g.hasOnlyAlphaMultiplier() ? (c.globalAlpha = t(g.alphaMultiplier, 0, 1), c.globalColorMatrix = null) : (c.globalAlpha = 1, a._svgFiltersAreSupported ? (a._applyColorMatrixFilter(c, g), c.globalColorMatrix = null) : c.globalColorMatrix = g); + a._applyColorMatrix = function(b, g) { + a._removeFilters(b); + g.isIdentity() ? (b.globalAlpha = 1, b.globalColorMatrix = null) : g.hasOnlyAlphaMultiplier() ? (b.globalAlpha = v(g.alphaMultiplier, 0, 1), b.globalColorMatrix = null) : (b.globalAlpha = 1, a._svgFiltersAreSupported ? (a._applyColorMatrixFilter(b, g), b.globalColorMatrix = null) : b.globalColorMatrix = g); }; a._svgFiltersAreSupported = !!Object.getOwnPropertyDescriptor(CanvasRenderingContext2D.prototype, "filter"); return a; }(); g.Filters = n; var a = function() { - function a(c, h, g, m) { - this.surface = c; - this.region = h; - this.w = g; + function a(b, g, h, m) { + this.surface = b; + this.region = g; + this.w = h; this.h = m; } a.prototype.free = function() { this.surface.free(this); }; - a._ensureCopyCanvasSize = function(c, g) { + a._ensureCopyCanvasSize = function(b, g) { var n; if (a._copyCanvasContext) { - if (n = a._copyCanvasContext.canvas, n.width < c || n.height < g) { - n.width = k.IntegerUtilities.nearestPowerOfTwo(c), n.height = k.IntegerUtilities.nearestPowerOfTwo(g); + if (n = a._copyCanvasContext.canvas, n.width < b || n.height < g) { + n.width = k.IntegerUtilities.nearestPowerOfTwo(b), n.height = k.IntegerUtilities.nearestPowerOfTwo(g); } } else { n = document.createElement("canvas"), "undefined" !== typeof registerScratchCanvas && registerScratchCanvas(n), n.width = 512, n.height = 512, a._copyCanvasContext = n.getContext("2d"); @@ -11189,8 +11205,8 @@ __extends = this.__extends || function(k, r) { }; a.prototype.draw = function(g, l, k, m, n, r) { this.context.setTransform(1, 0, 0, 1, 0, 0); - var d, e = 0, b = 0; - g.context.canvas === this.context.canvas ? (a._ensureCopyCanvasSize(m, n), d = a._copyCanvasContext, d.clearRect(0, 0, m, n), d.drawImage(g.surface.canvas, g.region.x, g.region.y, m, n, 0, 0, m, n), d = d.canvas, b = e = 0) : (d = g.surface.canvas, e = g.region.x, b = g.region.y); + var e, f = 0, c = 0; + g.context.canvas === this.context.canvas ? (a._ensureCopyCanvasSize(m, n), e = a._copyCanvasContext, e.clearRect(0, 0, m, n), e.drawImage(g.surface.canvas, g.region.x, g.region.y, m, n, 0, 0, m, n), e = e.canvas, c = f = 0) : (e = g.surface.canvas, f = g.region.x, c = g.region.y); a: { switch(r) { case 11: @@ -11201,9 +11217,9 @@ __extends = this.__extends || function(k, r) { } } g && (this.context.save(), this.context.beginPath(), this.context.rect(l, k, m, n), this.context.clip()); - this.context.globalCompositeOperation = c(r); - this.context.drawImage(d, e, b, m, n, l, k, m, n); - this.context.globalCompositeOperation = c(1); + this.context.globalCompositeOperation = b(r); + this.context.drawImage(e, f, c, m, n, l, k, m, n); + this.context.globalCompositeOperation = b(1); g && this.context.restore(); }; Object.defineProperty(a.prototype, "context", {get:function() { @@ -11219,37 +11235,37 @@ __extends = this.__extends || function(k, r) { a.strokeStyle = null; a.globalAlpha = 1; a.globalColorMatrix = null; - a.globalCompositeOperation = c(1); + a.globalCompositeOperation = b(1); }; a.prototype.fill = function(a) { - var c = this.surface.context, h = this.region; - c.fillStyle = a; - c.fillRect(h.x, h.y, h.w, h.h); + var b = this.surface.context, g = this.region; + b.fillStyle = a; + b.fillRect(g.x, g.y, g.w, g.h); }; a.prototype.clear = function(a) { - var c = this.surface.context, h = this.region; - a || (a = h); - c.clearRect(a.x, a.y, a.w, a.h); + var b = this.surface.context, g = this.region; + a || (a = g); + b.clearRect(a.x, a.y, a.w, a.h); }; return a; }(); g.Canvas2DSurfaceRegion = a; n = function() { - function c(a, h) { + function b(a, g) { this.canvas = a; this.context = a.getContext("2d"); this.w = a.width; this.h = a.height; - this._regionAllocator = h; + this._regionAllocator = g; } - c.prototype.allocate = function(c, h) { - var g = this._regionAllocator.allocate(c, h); - return g ? new a(this, g, c, h) : null; + b.prototype.allocate = function(b, g) { + var h = this._regionAllocator.allocate(b, g); + return h ? new a(this, h, b, g) : null; }; - c.prototype.free = function(a) { + b.prototype.free = function(a) { this._regionAllocator.free(a.region); }; - return c; + return b; }(); g.Canvas2DSurface = n; })(r.Canvas2D || (r.Canvas2D = {})); @@ -11258,19 +11274,19 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.Debug.assert, t = k.GFX.Geometry.Rectangle, n = k.GFX.Geometry.Point, a = k.GFX.Geometry.Matrix, h = k.NumberUtilities.clamp, p = k.NumberUtilities.pow2, l = new k.IndentingWriter(!1, dumpLine), u = function() { - return function(a, c) { + var b = k.Debug.assert, v = k.GFX.Geometry.Rectangle, n = k.GFX.Geometry.Point, a = k.GFX.Geometry.Matrix, h = k.NumberUtilities.clamp, p = k.NumberUtilities.pow2, l = new k.IndentingWriter(!1, dumpLine), w = function() { + return function(a, b) { this.surfaceRegion = a; - this.scale = c; + this.scale = b; }; }(); - g.MipMapLevel = u; + g.MipMapLevel = w; var m = function() { - function a(b, c, d, e) { + function a(b, c, e, f) { this._node = c; this._levels = []; - this._surfaceRegionAllocator = d; - this._size = e; + this._surfaceRegionAllocator = e; + this._size = f; this._renderer = b; } a.prototype.getLevel = function(a) { @@ -11281,12 +11297,12 @@ __extends = this.__extends || function(k, r) { a = p(b); var c = 5 + b, b = this._levels[c]; if (!b) { - var d = this._node.getBounds().clone(); - d.scale(a, a); - d.snap(); - var e = this._surfaceRegionAllocator.allocate(d.w, d.h, null), g = e.region, b = this._levels[c] = new u(e, a), c = new v(e); + var e = this._node.getBounds().clone(); + e.scale(a, a); + e.snap(); + var f = this._surfaceRegionAllocator.allocate(e.w, e.h, null), g = f.region, b = this._levels[c] = new w(f, a), c = new x(f); c.clip.set(g); - c.matrix.setElements(a, 0, 0, a, g.x - d.x, g.y - d.y); + c.matrix.setElements(a, 0, 0, a, g.x - e.x, g.y - e.y); c.flags |= 64; this._renderer.renderNodeWithState(this._node, c); c.free(); @@ -11300,8 +11316,8 @@ __extends = this.__extends || function(k, r) { a[a.NonZero = 0] = "NonZero"; a[a.EvenOdd = 1] = "EvenOdd"; })(g.FillRule || (g.FillRule = {})); - var s = function(a) { - function c() { + var t = function(a) { + function b() { a.apply(this, arguments); this.blending = this.imageSmoothing = this.snapToDevicePixels = !0; this.debugLayers = !1; @@ -11311,10 +11327,10 @@ __extends = this.__extends || function(k, r) { this.cacheShapesThreshold = 16; this.alpha = !1; } - __extends(c, a); - return c; + __extends(b, a); + return b; }(r.RendererOptions); - g.Canvas2DRendererOptions = s; + g.Canvas2DRendererOptions = t; (function(a) { a[a.None = 0] = "None"; a[a.IgnoreNextLayer = 1] = "IgnoreNextLayer"; @@ -11331,63 +11347,80 @@ __extends = this.__extends || function(k, r) { a[a.ImageSmoothing = 4096] = "ImageSmoothing"; a[a.PixelSnapping = 8192] = "PixelSnapping"; })(g.RenderFlags || (g.RenderFlags = {})); - t.createMaxI16(); - var v = function(b) { - function c(d) { + v.createMaxI16(); + var x = function(b) { + function d(e) { b.call(this); - this.clip = t.createEmpty(); + this.clip = v.createEmpty(); this.clipList = []; + this.clipPath = null; this.flags = 0; this.target = null; this.matrix = a.createIdentity(); this.colorMatrix = r.ColorMatrix.createIdentity(); - c.allocationCount++; - this.target = d; + d.allocationCount++; + this.target = e; } - __extends(c, b); - c.prototype.set = function(a) { + __extends(d, b); + d.prototype.set = function(a) { this.clip.set(a.clip); + this.clipPath = a.clipPath; this.target = a.target; this.matrix.set(a.matrix); this.colorMatrix.set(a.colorMatrix); this.flags = a.flags; k.ArrayUtilities.copyFrom(this.clipList, a.clipList); }; - c.prototype.clone = function() { - var a = c.allocate(); - a || (a = new c(this.target)); + d.prototype.clone = function() { + var a = d.allocate(); + a || (a = new d(this.target)); a.set(this); return a; }; - c.allocate = function() { - var a = c._dirtyStack, b = null; + d.allocate = function() { + var a = d._dirtyStack, b = null; a.length && (b = a.pop()); return b; }; - c.prototype.free = function() { - c._dirtyStack.push(this); + d.prototype.free = function() { + this.clipPath = null; + d._dirtyStack.push(this); }; - c.prototype.transform = function(a) { + d.prototype.transform = function(a) { var b = this.clone(); b.matrix.preMultiply(a.getMatrix()); a.hasColorMatrix() && b.colorMatrix.multiply(a.getColorMatrix()); return b; }; - c.prototype.hasFlags = function(a) { - return(this.flags & a) === a; + d.prototype.hasFlags = function(a) { + return (this.flags & a) === a; }; - c.prototype.removeFlags = function(a) { + d.prototype.removeFlags = function(a) { this.flags &= ~a; }; - c.prototype.toggleFlags = function(a, b) { + d.prototype.toggleFlags = function(a, b) { this.flags = b ? this.flags | a : this.flags & ~a; }; - c.allocationCount = 0; - c._dirtyStack = []; - return c; + d.prototype.beginClipPath = function(a) { + this.target.context.save(); + this.clipPath = new Path2D; + }; + d.prototype.applyClipPath = function() { + var a = this.target.context; + a.setTransform(1, 0, 0, 1, 0, 0); + a.clip(this.clipPath); + var b = this.matrix; + a.setTransform(b.a, b.b, b.c, b.d, b.tx, b.ty); + }; + d.prototype.closeClipPath = function() { + this.target.context.restore(); + }; + d.allocationCount = 0; + d._dirtyStack = []; + return d; }(r.State); - g.RenderState = v; - var d = function() { + g.RenderState = x; + var e = function() { function b() { this.culledNodes = this.groups = this.shapes = this._count = 0; } @@ -11396,39 +11429,39 @@ __extends = this.__extends || function(k, r) { l && (l.enter("> Frame: " + this._count), this._enterTime = performance.now(), this.culledNodes = this.groups = this.shapes = 0); }; b.prototype.leave = function() { - l && (l.writeLn("Shapes: " + this.shapes + ", Groups: " + this.groups + ", Culled Nodes: " + this.culledNodes), l.writeLn("Elapsed: " + (performance.now() - this._enterTime).toFixed(2)), l.writeLn("Rectangle: " + t.allocationCount + ", Matrix: " + a.allocationCount + ", State: " + v.allocationCount), l.leave("<")); + l && (l.writeLn("Shapes: " + this.shapes + ", Groups: " + this.groups + ", Culled Nodes: " + this.culledNodes), l.writeLn("Elapsed: " + (performance.now() - this._enterTime).toFixed(2)), l.writeLn("Rectangle: " + v.allocationCount + ", Matrix: " + a.allocationCount + ", State: " + x.allocationCount), l.leave("<")); }; return b; }(); - g.FrameInfo = d; - var e = function(b) { - function e(a, c, h) { - void 0 === h && (h = new s); - b.call(this, a, c, h); + g.FrameInfo = e; + var f = function(c) { + function d(a, b, f) { + void 0 === f && (f = new t); + c.call(this, a, b, f); this._visited = 0; - this._frameInfo = new d; + this._frameInfo = new e; this._fontSize = 0; this._layers = []; if (a instanceof HTMLCanvasElement) { var g = a; - this._viewport = new t(0, 0, g.width, g.height); + this._viewport = new v(0, 0, g.width, g.height); this._target = this._createTarget(g); } else { this._addLayer("Background Layer"); - h = this._addLayer("Canvas Layer"); + f = this._addLayer("Canvas Layer"); g = document.createElement("canvas"); - h.appendChild(g); - this._viewport = new t(0, 0, a.scrollWidth, a.scrollHeight); - var m = this; - c.addEventListener(1, function() { - m._onStageBoundsChanged(g); + f.appendChild(g); + this._viewport = new v(0, 0, a.scrollWidth, a.scrollHeight); + var h = this; + b.addEventListener(1, function() { + h._onStageBoundsChanged(g); }); this._onStageBoundsChanged(g); } - e._prepareSurfaceAllocators(); + d._prepareSurfaceAllocators(); } - __extends(e, b); - e.prototype._addLayer = function(a) { + __extends(d, c); + d.prototype._addLayer = function(a) { a = document.createElement("div"); a.style.position = "absolute"; a.style.overflow = "hidden"; @@ -11439,13 +11472,13 @@ __extends = this.__extends || function(k, r) { this._layers.push(a); return a; }; - Object.defineProperty(e.prototype, "_backgroundVideoLayer", {get:function() { + Object.defineProperty(d.prototype, "_backgroundVideoLayer", {get:function() { return this._layers[0]; }, enumerable:!0, configurable:!0}); - e.prototype._createTarget = function(a) { + d.prototype._createTarget = function(a) { return new g.Canvas2DSurfaceRegion(new g.Canvas2DSurface(a), new r.RegionAllocator.Region(0, 0, a.width, a.height), a.width, a.height); }; - e.prototype._onStageBoundsChanged = function(a) { + d.prototype._onStageBoundsChanged = function(a) { var b = this._stage.getBounds(!0); b.snap(); for (var c = this._devicePixelRatio = window.devicePixelRatio || 1, d = b.w / c + "px", c = b.h / c + "px", e = 0;e < this._layers.length;e++) { @@ -11461,8 +11494,8 @@ __extends = this.__extends || function(k, r) { this._target = this._createTarget(a); this._fontSize = 10 * this._devicePixelRatio; }; - e._prepareSurfaceAllocators = function() { - e._initializedCaches || (e._surfaceCache = new r.SurfaceRegionAllocator.SimpleAllocator(function(a, b) { + d._prepareSurfaceAllocators = function() { + d._initializedCaches || (d._surfaceCache = new r.SurfaceRegionAllocator.SimpleAllocator(function(a, b) { var c = document.createElement("canvas"); "undefined" !== typeof registerScratchCanvas && registerScratchCanvas(c); var d = Math.max(1024, a), e = Math.max(1024, b); @@ -11470,16 +11503,16 @@ __extends = this.__extends || function(k, r) { c.height = e; var f = null, f = 512 <= a || 512 <= b ? new r.RegionAllocator.GridAllocator(d, e, d, e) : new r.RegionAllocator.BucketAllocator(d, e); return new g.Canvas2DSurface(c, f); - }), e._shapeCache = new r.SurfaceRegionAllocator.SimpleAllocator(function(a, b) { + }), d._shapeCache = new r.SurfaceRegionAllocator.SimpleAllocator(function(a, b) { var c = document.createElement("canvas"); "undefined" !== typeof registerScratchCanvas && registerScratchCanvas(c); c.width = 1024; c.height = 1024; var d = d = new r.RegionAllocator.CompactAllocator(1024, 1024); return new g.Canvas2DSurface(c, d); - }), e._initializedCaches = !0); + }), d._initializedCaches = !0); }; - e.prototype.render = function() { + d.prototype.render = function() { var a = this._stage, b = this._target, c = this._options, d = this._viewport; b.reset(); b.context.save(); @@ -11491,35 +11524,35 @@ __extends = this.__extends || function(k, r) { c.paintViewport && (b.context.beginPath(), b.context.rect(d.x, d.y, d.w, d.h), b.context.strokeStyle = "#FF4981", b.context.lineWidth = 2, b.context.stroke()); b.context.restore(); }; - e.prototype.renderNode = function(a, b, c) { - var d = new v(this._target); + d.prototype.renderNode = function(a, b, c) { + var d = new x(this._target); d.clip.set(b); d.flags = 256; d.matrix.set(c); a.visit(this, d); d.free(); }; - e.prototype.renderNodeWithState = function(a, b) { + d.prototype.renderNodeWithState = function(a, b) { a.visit(this, b); }; - e.prototype._renderWithCache = function(a, b) { - var c = b.matrix, d = a.getBounds(); - if (d.isEmpty()) { - return!1; + d.prototype._renderWithCache = function(a, b) { + var c = b.matrix, e = a.getBounds(); + if (e.isEmpty()) { + return !1; } - var h = this._options.cacheShapesMaxSize, g = Math.max(c.getAbsoluteScaleX(), c.getAbsoluteScaleY()), l = !!(b.flags & 16), k = !!(b.flags & 8); + var f = this._options.cacheShapesMaxSize, g = Math.max(c.getAbsoluteScaleX(), c.getAbsoluteScaleY()), h = !!(b.flags & 16), l = !!(b.flags & 8); if (b.hasFlags(256)) { - if (k || l || !b.colorMatrix.isIdentity() || a.hasFlags(1048576) || 100 < this._options.cacheShapesThreshold || d.w * g > h || d.h * g > h) { - return!1; + if (l || h || !b.colorMatrix.isIdentity() || a.hasFlags(1048576) || 100 < this._options.cacheShapesThreshold || e.w * g > f || e.h * g > f) { + return !1; } - (g = a.properties.mipMap) || (g = a.properties.mipMap = new m(this, a, e._shapeCache, h)); - l = g.getLevel(c); - h = l.surfaceRegion; - g = h.region; - return l ? (l = b.target.context, l.imageSmoothingEnabled = l.mozImageSmoothingEnabled = !0, l.setTransform(c.a, c.b, c.c, c.d, c.tx, c.ty), l.drawImage(h.surface.canvas, g.x, g.y, g.w, g.h, d.x, d.y, d.w, d.h), !0) : !1; + (g = a.properties.mipMap) || (g = a.properties.mipMap = new m(this, a, d._shapeCache, f)); + h = g.getLevel(c); + f = h.surfaceRegion; + g = f.region; + return h ? (h = b.target.context, h.imageSmoothingEnabled = h.mozImageSmoothingEnabled = !0, h.setTransform(c.a, c.b, c.c, c.d, c.tx, c.ty), h.drawImage(f.surface.canvas, g.x, g.y, g.w, g.h, e.x, e.y, e.w, e.h), !0) : !1; } }; - e.prototype._intersectsClipList = function(a, b) { + d.prototype._intersectsClipList = function(a, b) { var c = a.getBounds(!0), d = !1; b.matrix.transformRectangleAABB(c); b.clip.intersects(c) && (d = !0); @@ -11535,29 +11568,30 @@ __extends = this.__extends || function(k, r) { c.free(); return d; }; - e.prototype.visitGroup = function(a, b) { + d.prototype.visitGroup = function(a, b) { this._frameInfo.groups++; a.getBounds(); if ((!a.hasFlags(4) || b.flags & 4) && a.hasFlags(65536)) { if (b.flags & 1 || 1 === a.getLayer().blendMode && !a.getLayer().mask || !this._options.blending) { if (this._intersectsClipList(a, b)) { for (var c = null, d = a.getChildren(), e = 0;e < d.length;e++) { - var f = d[e], h = b.transform(f.getTransform()); + var f = d[e], g = f.getTransform(), h = b.transform(g); h.toggleFlags(4096, f.hasFlags(524288)); if (0 <= f.clip) { c = c || new Uint8Array(d.length); c[f.clip + e]++; - var g = h.clone(); - b.target.context.save(); - g.flags |= 16; - f.visit(this, g); - g.free(); + var m = h.clone(); + m.flags |= 16; + m.beginClipPath(g.getMatrix()); + f.visit(this, m); + m.applyClipPath(); + m.free(); } else { f.visit(this, h); } if (c && 0 < c[e]) { for (;c[e]--;) { - b.target.context.restore(); + b.closeClipPath(); } } h.free(); @@ -11571,28 +11605,28 @@ __extends = this.__extends || function(k, r) { this._renderDebugInfo(a, b); } }; - e.prototype._renderDebugInfo = function(a, b) { + d.prototype._renderDebugInfo = function(a, b) { if (b.flags & 1024) { - var c = b.target.context, d = a.getBounds(!0), h = a.properties.style; - h || (h = a.properties.style = k.Color.randomColor().toCSSStyle()); - c.strokeStyle = h; - b.matrix.transformRectangleAABB(d); + var c = b.target.context, e = a.getBounds(!0), f = a.properties.style; + f || (f = a.properties.style = k.Color.randomColor().toCSSStyle()); + c.strokeStyle = f; + b.matrix.transformRectangleAABB(e); c.setTransform(1, 0, 0, 1, 0, 0); - d.free(); - d = a.getBounds(); - h = e._debugPoints; - b.matrix.transformRectangle(d, h); + e.free(); + e = a.getBounds(); + f = d._debugPoints; + b.matrix.transformRectangle(e, f); c.lineWidth = 1; c.beginPath(); - c.moveTo(h[0].x, h[0].y); - c.lineTo(h[1].x, h[1].y); - c.lineTo(h[2].x, h[2].y); - c.lineTo(h[3].x, h[3].y); - c.lineTo(h[0].x, h[0].y); + c.moveTo(f[0].x, f[0].y); + c.lineTo(f[1].x, f[1].y); + c.lineTo(f[2].x, f[2].y); + c.lineTo(f[3].x, f[3].y); + c.lineTo(f[0].x, f[0].y); c.stroke(); } }; - e.prototype.visitStage = function(a, b) { + d.prototype.visitStage = function(a, b) { var c = b.target.context, d = a.getBounds(!0); b.matrix.transformRectangleAABB(d); d.intersect(b.clip); @@ -11604,7 +11638,7 @@ __extends = this.__extends || function(k, r) { a.dirtyRegion && (c.restore(), b.target.reset(), c.globalAlpha = .4, b.hasFlags(2048) && a.dirtyRegion.render(b.target.context), a.dirtyRegion.clear()); b.free(); }; - e.prototype.visitShape = function(a, b) { + d.prototype.visitShape = function(a, b) { if (this._intersectsClipList(a, b)) { var c = b.matrix; b.flags & 8192 && (c = c.clone(), c.snap()); @@ -11614,7 +11648,7 @@ __extends = this.__extends || function(k, r) { b.flags & 8192 && c.free(); } }; - e.prototype.visitRenderableVideo = function(a, b) { + d.prototype.visitRenderableVideo = function(a, b) { if (a.video && a.video.videoWidth) { var c = this._devicePixelRatio, d = b.matrix.clone(); d.scale(1 / c, 1 / c); @@ -11626,14 +11660,14 @@ __extends = this.__extends || function(k, r) { a.video.style.transformOrigin = "0 0"; a.video.style.transform = c; var f = this._backgroundVideoLayer; - f !== a.video.parentElement && (f.appendChild(a.video), a.addEventListener(2, function ca(a) { + f !== a.video.parentElement && (f.appendChild(a.video), a.addEventListener(2, function da(a) { f.removeChild(a.video); - a.removeEventListener(2, ca); + a.removeEventListener(2, da); })); d.free(); } }; - e.prototype.visitRenderable = function(a, b, c) { + d.prototype.visitRenderable = function(a, b, c) { var d = a.getBounds(); if (!(b.flags & 32 || d.isEmpty())) { if (b.hasFlags(64)) { @@ -11643,47 +11677,47 @@ __extends = this.__extends || function(k, r) { return; } } - var e = b.matrix, d = b.target.context, f = !!(b.flags & 16), h = !!(b.flags & 8); + var e = b.matrix, d = b.target.context, f = !!(b.flags & 16), g = !!(b.flags & 8); d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty); this._frameInfo.shapes++; d.imageSmoothingEnabled = d.mozImageSmoothingEnabled = b.hasFlags(4096); - b = a.properties.renderCount || 0; - a.properties.renderCount = ++b; - a.render(d, c, null, f, h); + e = a.properties.renderCount || 0; + a.properties.renderCount = ++e; + a.render(d, c, null, f ? b.clipPath : null, g); } }; - e.prototype._renderLayer = function(a, b) { + d.prototype._renderLayer = function(a, b) { var c = a.getLayer(), d = c.mask; if (d) { this._renderWithMask(a, d, c.blendMode, !a.hasFlags(131072) || !d.hasFlags(131072), b); } else { - var d = t.allocate(), e = this._renderToTemporarySurface(a, b, d, null); + var d = v.allocate(), e = this._renderToTemporarySurface(a, b, d, null); e && (b.target.draw(e, d.x, d.y, d.w, d.h, c.blendMode), e.free()); d.free(); } }; - e.prototype._renderWithMask = function(a, b, c, d, e) { + d.prototype._renderWithMask = function(a, b, c, d, e) { var f = b.getTransform().getConcatenatedMatrix(!0); b.parent || (f = f.scale(this._devicePixelRatio, this._devicePixelRatio)); - var h = a.getBounds().clone(); - e.matrix.transformRectangleAABB(h); - h.snap(); - if (!h.isEmpty()) { - var g = b.getBounds().clone(); - f.transformRectangleAABB(g); - g.snap(); - if (!g.isEmpty()) { + var g = a.getBounds().clone(); + e.matrix.transformRectangleAABB(g); + g.snap(); + if (!g.isEmpty()) { + var h = b.getBounds().clone(); + f.transformRectangleAABB(h); + h.snap(); + if (!h.isEmpty()) { var m = e.clip.clone(); - m.intersect(h); m.intersect(g); + m.intersect(h); m.snap(); - m.isEmpty() || (h = e.clone(), h.clip.set(m), a = this._renderToTemporarySurface(a, h, t.createEmpty(), null), h.free(), h = e.clone(), h.clip.set(m), h.matrix = f, h.flags |= 4, d && (h.flags |= 8), b = this._renderToTemporarySurface(b, h, t.createEmpty(), a.surface), h.free(), a.draw(b, 0, 0, m.w, m.h, 11), e.target.draw(a, m.x, m.y, m.w, m.h, c), b.free(), a.free()); + m.isEmpty() || (g = e.clone(), g.clip.set(m), a = this._renderToTemporarySurface(a, g, v.createEmpty(), null), g.free(), g = e.clone(), g.clip.set(m), g.matrix = f, g.flags |= 4, d && (g.flags |= 8), b = this._renderToTemporarySurface(b, g, v.createEmpty(), a.surface), g.free(), a.draw(b, 0, 0, m.w, m.h, 11), e.target.draw(a, m.x, m.y, m.w, m.h, c), b.free(), a.free()); } } }; - e.prototype._renderStageToTarget = function(b, c, d) { - t.allocationCount = a.allocationCount = v.allocationCount = 0; - b = new v(b); + d.prototype._renderStageToTarget = function(b, c, d) { + v.allocationCount = a.allocationCount = x.allocationCount = 0; + b = new x(b); b.clip.set(d); this._options.paintRenderable || (b.flags |= 32); this._options.paintBounds && (b.flags |= 1024); @@ -11696,7 +11730,7 @@ __extends = this.__extends || function(k, r) { c.visit(this, b); this._frameInfo.leave(); }; - e.prototype._renderToTemporarySurface = function(a, b, c, d) { + d.prototype._renderToTemporarySurface = function(a, b, c, d) { var e = b.matrix, f = a.getBounds().clone(); e.transformRectangleAABB(f); f.snap(); @@ -11708,7 +11742,7 @@ __extends = this.__extends || function(k, r) { } d = this._allocateSurface(c.w, c.h, d); f = d.region; - f = new t(f.x, f.y, c.w, c.h); + f = new v(f.x, f.y, c.w, c.h); d.context.setTransform(1, 0, 0, 1, 0, 0); d.clear(); e = e.clone(); @@ -11723,18 +11757,18 @@ __extends = this.__extends || function(k, r) { d.context.restore(); return d; }; - e.prototype._allocateSurface = function(a, b, c) { - return e._surfaceCache.allocate(a, b, c); + d.prototype._allocateSurface = function(a, b, c) { + return d._surfaceCache.allocate(a, b, c); }; - e.prototype.screenShot = function(a, b) { - if (b) { + d.prototype.screenShot = function(a, c) { + if (c) { var d = this._stage.content.groupChild.child; - c(d instanceof r.Stage); + b(d instanceof r.Stage); a = d.content.getBounds(!0); d.content.getTransform().getConcatenatedMatrix().transformRectangleAABB(a); a.intersect(this._viewport); } - a || (a = new t(0, 0, this._target.w, this._target.h)); + a || (a = new v(0, 0, this._target.w, this._target.h)); d = document.createElement("canvas"); d.width = a.w; d.height = a.h; @@ -11744,187 +11778,187 @@ __extends = this.__extends || function(k, r) { e.drawImage(this._target.context.canvas, a.x, a.y, a.w, a.h, 0, 0, a.w, a.h); return new r.ScreenShot(d.toDataURL("image/png"), a.w, a.h); }; - e._initializedCaches = !1; - e._debugPoints = n.createEmptyPoints(4); - return e; + d._initializedCaches = !1; + d._debugPoints = n.createEmptyPoints(4); + return d; }(r.Renderer); - g.Canvas2DRenderer = e; + g.Canvas2DRenderer = f; })(r.Canvas2D || (r.Canvas2D = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { - var g = r.Geometry.Point, c = r.Geometry.Matrix, t = r.Geometry.Rectangle, n = k.Tools.Mini.FPS, a = function() { + var g = r.Geometry.Point, b = r.Geometry.Matrix, v = r.Geometry.Rectangle, n = k.Tools.Mini.FPS, a = function() { function a() { } - a.prototype.onMouseUp = function(a, c) { + a.prototype.onMouseUp = function(a, b) { a.state = this; }; - a.prototype.onMouseDown = function(a, c) { + a.prototype.onMouseDown = function(a, b) { a.state = this; }; - a.prototype.onMouseMove = function(a, c) { + a.prototype.onMouseMove = function(a, b) { a.state = this; }; - a.prototype.onMouseWheel = function(a, c) { + a.prototype.onMouseWheel = function(a, b) { a.state = this; }; - a.prototype.onMouseClick = function(a, c) { + a.prototype.onMouseClick = function(a, b) { a.state = this; }; - a.prototype.onKeyUp = function(a, c) { + a.prototype.onKeyUp = function(a, b) { a.state = this; }; - a.prototype.onKeyDown = function(a, c) { + a.prototype.onKeyDown = function(a, b) { a.state = this; }; - a.prototype.onKeyPress = function(a, c) { + a.prototype.onKeyPress = function(a, b) { a.state = this; }; return a; }(); r.UIState = a; var h = function(a) { - function c() { + function b() { a.apply(this, arguments); this._keyCodes = []; } - __extends(c, a); - c.prototype.onMouseDown = function(a, c) { - c.altKey && (a.state = new l(a.worldView, a.getMousePosition(c, null), a.worldView.getTransform().getMatrix(!0))); + __extends(b, a); + b.prototype.onMouseDown = function(a, b) { + b.altKey && (a.state = new l(a.worldView, a.getMousePosition(b, null), a.worldView.getTransform().getMatrix(!0))); }; - c.prototype.onMouseClick = function(a, c) { + b.prototype.onMouseClick = function(a, b) { }; - c.prototype.onKeyDown = function(a, c) { - this._keyCodes[c.keyCode] = !0; + b.prototype.onKeyDown = function(a, b) { + this._keyCodes[b.keyCode] = !0; }; - c.prototype.onKeyUp = function(a, c) { - this._keyCodes[c.keyCode] = !1; + b.prototype.onKeyUp = function(a, b) { + this._keyCodes[b.keyCode] = !1; }; - return c; + return b; }(a), p = function(a) { - function c() { + function b() { a.apply(this, arguments); this._keyCodes = []; this._paused = !1; this._mousePosition = new g(0, 0); } - __extends(c, a); - c.prototype.onMouseMove = function(a, c) { - this._mousePosition = a.getMousePosition(c, null); + __extends(b, a); + b.prototype.onMouseMove = function(a, b) { + this._mousePosition = a.getMousePosition(b, null); this._update(a); }; - c.prototype.onMouseDown = function(a, c) { + b.prototype.onMouseDown = function(a, b) { }; - c.prototype.onMouseClick = function(a, c) { + b.prototype.onMouseClick = function(a, b) { }; - c.prototype.onMouseWheel = function(a, c) { - var d = "DOMMouseScroll" === c.type ? -c.detail : c.wheelDelta / 40; - if (c.altKey) { - c.preventDefault(); - var e = a.getMousePosition(c, null), b = a.worldView.getTransform().getMatrix(!0), d = 1 + d / 1E3; - b.translate(-e.x, -e.y); - b.scale(d, d); - b.translate(e.x, e.y); - a.worldView.getTransform().setMatrix(b); + b.prototype.onMouseWheel = function(a, b) { + var e = "DOMMouseScroll" === b.type ? -b.detail : b.wheelDelta / 40; + if (b.altKey) { + b.preventDefault(); + var f = a.getMousePosition(b, null), c = a.worldView.getTransform().getMatrix(!0), e = 1 + e / 1E3; + c.translate(-f.x, -f.y); + c.scale(e, e); + c.translate(f.x, f.y); + a.worldView.getTransform().setMatrix(c); } }; - c.prototype.onKeyPress = function(a, c) { - if (c.altKey) { - var d = c.keyCode || c.which; - console.info("onKeyPress Code: " + d); - switch(d) { + b.prototype.onKeyPress = function(a, b) { + if (b.altKey) { + var e = b.keyCode || b.which; + console.info("onKeyPress Code: " + e); + switch(e) { case 248: this._paused = !this._paused; - c.preventDefault(); + b.preventDefault(); break; case 223: a.toggleOption("paintRenderable"); - c.preventDefault(); + b.preventDefault(); break; case 8730: a.toggleOption("paintViewport"); - c.preventDefault(); + b.preventDefault(); break; case 8747: a.toggleOption("paintBounds"); - c.preventDefault(); + b.preventDefault(); break; case 8706: a.toggleOption("paintDirtyRegion"); - c.preventDefault(); + b.preventDefault(); break; case 231: a.toggleOption("clear"); - c.preventDefault(); + b.preventDefault(); break; case 402: - a.toggleOption("paintFlashing"), c.preventDefault(); + a.toggleOption("paintFlashing"), b.preventDefault(); } this._update(a); } }; - c.prototype.onKeyDown = function(a, c) { - this._keyCodes[c.keyCode] = !0; + b.prototype.onKeyDown = function(a, b) { + this._keyCodes[b.keyCode] = !0; this._update(a); }; - c.prototype.onKeyUp = function(a, c) { - this._keyCodes[c.keyCode] = !1; + b.prototype.onKeyUp = function(a, b) { + this._keyCodes[b.keyCode] = !1; this._update(a); }; - c.prototype._update = function(a) { + b.prototype._update = function(a) { a.paused = this._paused; if (a.getOption()) { - var c = r.viewportLoupeDiameter.value, d = r.viewportLoupeDiameter.value; - a.viewport = new t(this._mousePosition.x - c / 2, this._mousePosition.y - d / 2, c, d); + var b = r.viewportLoupeDiameter.value, e = r.viewportLoupeDiameter.value; + a.viewport = new v(this._mousePosition.x - b / 2, this._mousePosition.y - e / 2, b, e); } else { a.viewport = null; } }; - return c; + return b; }(a); (function(a) { - function c() { + function b() { a.apply(this, arguments); this._startTime = Date.now(); } - __extends(c, a); - c.prototype.onMouseMove = function(a, c) { + __extends(b, a); + b.prototype.onMouseMove = function(a, b) { if (!(10 > Date.now() - this._startTime)) { - var d = a._world; - d && (a.state = new l(d, a.getMousePosition(c, null), d.getTransform().getMatrix(!0))); + var e = a._world; + e && (a.state = new l(e, a.getMousePosition(b, null), e.getTransform().getMatrix(!0))); } }; - c.prototype.onMouseUp = function(a, c) { + b.prototype.onMouseUp = function(a, b) { a.state = new h; - a.selectNodeUnderMouse(c); + a.selectNodeUnderMouse(b); }; - return c; + return b; })(a); var l = function(a) { - function c(h, g, d) { + function b(g, h, e) { a.call(this); - this._target = h; - this._startPosition = g; - this._startMatrix = d; + this._target = g; + this._startPosition = h; + this._startMatrix = e; } - __extends(c, a); - c.prototype.onMouseMove = function(a, c) { - c.preventDefault(); - var d = a.getMousePosition(c, null); - d.sub(this._startPosition); - this._target.getTransform().setMatrix(this._startMatrix.clone().translate(d.x, d.y)); + __extends(b, a); + b.prototype.onMouseMove = function(a, b) { + b.preventDefault(); + var e = a.getMousePosition(b, null); + e.sub(this._startPosition); + this._target.getTransform().setMatrix(this._startMatrix.clone().translate(e.x, e.y)); a.state = this; }; - c.prototype.onMouseUp = function(a, c) { + b.prototype.onMouseUp = function(a, b) { a.state = new h; }; - return c; + return b; }(a), a = function() { - function a(c, g, l) { - function d(a) { - f._state.onMouseWheel(f, a); - f._persistentState.onMouseWheel(f, a); + function a(b, g, l) { + function e(a) { + d._state.onMouseWheel(d, a); + d._persistentState.onMouseWheel(d, a); } void 0 === g && (g = !1); void 0 === l && (l = void 0); @@ -11935,7 +11969,7 @@ __extends = this.__extends || function(k, r) { this._selectedNodes = []; this._eventListeners = Object.create(null); this._fullScreen = !1; - this._container = c; + this._container = b; this._stage = new r.Stage(512, 512, !0); this._worldView = this._stage.content; this._world = new r.Group; @@ -11946,100 +11980,100 @@ __extends = this.__extends || function(k, r) { g.style.width = "100%"; g.style.height = "100%"; g.style.zIndex = "0"; - c.appendChild(g); + b.appendChild(g); if (r.hud.value) { - var e = document.createElement("div"); - e.style.position = "absolute"; - e.style.width = "100%"; - e.style.height = "100%"; - e.style.pointerEvents = "none"; - var b = document.createElement("div"); - b.style.position = "absolute"; - b.style.width = "100%"; - b.style.height = "20px"; - b.style.pointerEvents = "none"; - e.appendChild(b); - c.appendChild(e); - this._fps = new n(b); + var f = document.createElement("div"); + f.style.position = "absolute"; + f.style.width = "100%"; + f.style.height = "100%"; + f.style.pointerEvents = "none"; + var c = document.createElement("div"); + c.style.position = "absolute"; + c.style.width = "100%"; + c.style.height = "20px"; + c.style.pointerEvents = "none"; + f.appendChild(c); + b.appendChild(f); + this._fps = new n(c); } else { this._fps = null; } - this.transparent = e = 0 === l; + this.transparent = f = 0 === l; void 0 === l || 0 === l || k.ColorUtilities.rgbaToCSSStyle(l); this._options = new r.Canvas2D.Canvas2DRendererOptions; - this._options.alpha = e; + this._options.alpha = f; this._renderer = new r.Canvas2D.Canvas2DRenderer(g, this._stage, this._options); this._listenForContainerSizeChanges(); this._onMouseUp = this._onMouseUp.bind(this); this._onMouseDown = this._onMouseDown.bind(this); this._onMouseMove = this._onMouseMove.bind(this); - var f = this; + var d = this; window.addEventListener("mouseup", function(a) { - f._state.onMouseUp(f, a); - f._render(); + d._state.onMouseUp(d, a); + d._render(); }, !1); window.addEventListener("mousemove", function(a) { - f._state.onMouseMove(f, a); - f._persistentState.onMouseMove(f, a); + d._state.onMouseMove(d, a); + d._persistentState.onMouseMove(d, a); }, !1); - window.addEventListener("DOMMouseScroll", d); - window.addEventListener("mousewheel", d); - c.addEventListener("mousedown", function(a) { - f._state.onMouseDown(f, a); + window.addEventListener("DOMMouseScroll", e); + window.addEventListener("mousewheel", e); + b.addEventListener("mousedown", function(a) { + d._state.onMouseDown(d, a); }); window.addEventListener("keydown", function(a) { - f._state.onKeyDown(f, a); - if (f._state !== f._persistentState) { - f._persistentState.onKeyDown(f, a); + d._state.onKeyDown(d, a); + if (d._state !== d._persistentState) { + d._persistentState.onKeyDown(d, a); } }, !1); window.addEventListener("keypress", function(a) { - f._state.onKeyPress(f, a); - if (f._state !== f._persistentState) { - f._persistentState.onKeyPress(f, a); + d._state.onKeyPress(d, a); + if (d._state !== d._persistentState) { + d._persistentState.onKeyPress(d, a); } }, !1); window.addEventListener("keyup", function(a) { - f._state.onKeyUp(f, a); - if (f._state !== f._persistentState) { - f._persistentState.onKeyUp(f, a); + d._state.onKeyUp(d, a); + if (d._state !== d._persistentState) { + d._persistentState.onKeyUp(d, a); } }, !1); this._enterRenderLoop(); } a.prototype._listenForContainerSizeChanges = function() { - var a = this._containerWidth, c = this._containerHeight; + var a = this._containerWidth, b = this._containerHeight; this._onContainerSizeChanged(); - var h = this; + var g = this; setInterval(function() { - if (a !== h._containerWidth || c !== h._containerHeight) { - h._onContainerSizeChanged(), a = h._containerWidth, c = h._containerHeight; + if (a !== g._containerWidth || b !== g._containerHeight) { + g._onContainerSizeChanged(), a = g._containerWidth, b = g._containerHeight; } }, 10); }; a.prototype._onContainerSizeChanged = function() { - var a = this.getRatio(), h = Math.ceil(this._containerWidth * a), g = Math.ceil(this._containerHeight * a); - this._stage.setBounds(new t(0, 0, h, g)); - this._stage.content.setBounds(new t(0, 0, h, g)); - this._worldView.getTransform().setMatrix(new c(a, 0, 0, a, 0, 0)); + var a = this.getRatio(), g = Math.ceil(this._containerWidth * a), h = Math.ceil(this._containerHeight * a); + this._stage.setBounds(new v(0, 0, g, h)); + this._stage.content.setBounds(new v(0, 0, g, h)); + this._worldView.getTransform().setMatrix(new b(a, 0, 0, a, 0, 0)); this._dispatchEvent("resize"); }; - a.prototype.addEventListener = function(a, c) { + a.prototype.addEventListener = function(a, b) { this._eventListeners[a] || (this._eventListeners[a] = []); - this._eventListeners[a].push(c); + this._eventListeners[a].push(b); }; a.prototype._dispatchEvent = function(a) { if (a = this._eventListeners[a]) { - for (var c = 0;c < a.length;c++) { - a[c](); + for (var b = 0;b < a.length;b++) { + a[b](); } } }; a.prototype._enterRenderLoop = function() { var a = this; - requestAnimationFrame(function v() { + requestAnimationFrame(function x() { a.render(); - requestAnimationFrame(v); + requestAnimationFrame(x); }); }; Object.defineProperty(a.prototype, "state", {set:function(a) { @@ -12050,16 +12084,16 @@ __extends = this.__extends || function(k, r) { }, enumerable:!0, configurable:!0}); a.prototype._render = function() { r.RenderableVideo.checkForVideoUpdates(); - var a = (this._stage.readyToRender() || r.forcePaint.value) && !this.paused, c = 0; + var a = (this._stage.readyToRender() || r.forcePaint.value) && !this.paused, b = 0; if (a) { - var h = this._renderer; - h.viewport = this.viewport ? this.viewport : this._stage.getBounds(); + var g = this._renderer; + g.viewport = this.viewport ? this.viewport : this._stage.getBounds(); this._dispatchEvent("render"); - c = performance.now(); - h.render(); - c = performance.now() - c; + b = performance.now(); + g.render(); + b = performance.now() - b; } - this._fps && this._fps.tickAndRender(!a, c); + this._fps && this._fps.tickAndRender(!a, b); }; a.prototype.render = function() { this._render(); @@ -12077,19 +12111,19 @@ __extends = this.__extends || function(k, r) { return this._options; }, enumerable:!0, configurable:!0}); a.prototype.getDisplayParameters = function() { - return{stageWidth:this._containerWidth, stageHeight:this._containerHeight, pixelRatio:this.getRatio(), screenWidth:window.screen ? window.screen.width : 640, screenHeight:window.screen ? window.screen.height : 480}; + return {stageWidth:this._containerWidth, stageHeight:this._containerHeight, pixelRatio:this.getRatio(), screenWidth:window.screen ? window.screen.width : 640, screenHeight:window.screen ? window.screen.height : 480}; }; a.prototype.toggleOption = function(a) { - var c = this._options; - c[a] = !c[a]; + var b = this._options; + b[a] = !b[a]; }; a.prototype.getOption = function() { return this._options.paintViewport; }; a.prototype.getRatio = function() { - var a = window.devicePixelRatio || 1, c = 1; - 1 === a || this._disableHiDPI || (c = a / 1); - return c; + var a = window.devicePixelRatio || 1, b = 1; + 1 === a || this._disableHiDPI || (b = a / 1); + return b; }; Object.defineProperty(a.prototype, "_containerWidth", {get:function() { return this._container.clientWidth; @@ -12105,13 +12139,13 @@ __extends = this.__extends || function(k, r) { this._render(); }; a.prototype.getMousePosition = function(a, h) { - var l = this._container, d = l.getBoundingClientRect(), e = this.getRatio(), l = new g(l.scrollWidth / d.width * (a.clientX - d.left) * e, l.scrollHeight / d.height * (a.clientY - d.top) * e); + var l = this._container, e = l.getBoundingClientRect(), f = this.getRatio(), l = new g(l.scrollWidth / e.width * (a.clientX - e.left) * f, l.scrollHeight / e.height * (a.clientY - e.top) * f); if (!h) { return l; } - d = c.createIdentity(); - h.getTransform().getConcatenatedMatrix().inverse(d); - d.transformPoint(l); + e = b.createIdentity(); + h.getTransform().getConcatenatedMatrix().inverse(e); + e.transformPoint(l); return l; }; a.prototype.getMouseWorldPosition = function(a) { @@ -12123,8 +12157,8 @@ __extends = this.__extends || function(k, r) { }; a.prototype._onMouseMove = function(a) { }; - a.prototype.screenShot = function(a, c) { - return this._renderer.screenShot(a, c); + a.prototype.screenShot = function(a, b) { + return this._renderer.screenShot(a, b); }; return a; }(); @@ -12134,21 +12168,21 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { var g = k.GFX.Geometry.Matrix; - (function(c) { - c[c.Simple = 0] = "Simple"; + (function(b) { + b[b.Simple = 0] = "Simple"; })(r.Layout || (r.Layout = {})); - var c = function(c) { + var b = function(b) { function a() { - c.apply(this, arguments); + b.apply(this, arguments); this.layout = 0; } - __extends(a, c); + __extends(a, b); return a; }(r.RendererOptions); - r.TreeRendererOptions = c; - var t = function(k) { + r.TreeRendererOptions = b; + var v = function(k) { function a(a, g, l) { - void 0 === l && (l = new c); + void 0 === l && (l = new b); k.call(this, a, g, l); this._canvas = document.createElement("canvas"); this._container.appendChild(this._canvas); @@ -12157,23 +12191,23 @@ __extends = this.__extends || function(k, r) { } __extends(a, k); a.prototype._listenForContainerSizeChanges = function() { - var a = this._containerWidth, c = this._containerHeight; + var a = this._containerWidth, b = this._containerHeight; this._onContainerSizeChanged(); var g = this; setInterval(function() { - if (a !== g._containerWidth || c !== g._containerHeight) { - g._onContainerSizeChanged(), a = g._containerWidth, c = g._containerHeight; + if (a !== g._containerWidth || b !== g._containerHeight) { + g._onContainerSizeChanged(), a = g._containerWidth, b = g._containerHeight; } }, 10); }; a.prototype._getRatio = function() { - var a = window.devicePixelRatio || 1, c = 1; - 1 !== a && (c = a / 1); - return c; + var a = window.devicePixelRatio || 1, b = 1; + 1 !== a && (b = a / 1); + return b; }; a.prototype._onContainerSizeChanged = function() { - var a = this._getRatio(), c = Math.ceil(this._containerWidth * a), g = Math.ceil(this._containerHeight * a), k = this._canvas; - 0 < a ? (k.width = c * a, k.height = g * a, k.style.width = c + "px", k.style.height = g + "px") : (k.width = c, k.height = g); + var a = this._getRatio(), b = Math.ceil(this._containerWidth * a), g = Math.ceil(this._containerHeight * a), k = this._canvas; + 0 < a ? (k.width = b * a, k.height = g * a, k.style.width = b + "px", k.style.height = g + "px") : (k.width = b, k.height = g); }; Object.defineProperty(a.prototype, "_containerWidth", {get:function() { return this._container.clientWidth; @@ -12189,20 +12223,20 @@ __extends = this.__extends || function(k, r) { 0 === this._options.layout && this._renderNodeSimple(this._context, this._stage, g.createIdentity()); a.restore(); }; - a.prototype._renderNodeSimple = function(a, c, g) { + a.prototype._renderNodeSimple = function(a, b, g) { function k(b) { - var c = b.getChildren(); + var d = b.getChildren(); a.fillStyle = b.hasFlags(16) ? "red" : "white"; var g = String(b.id); b instanceof r.RenderableText ? g = "T" + g : b instanceof r.RenderableShape ? g = "S" + g : b instanceof r.RenderableBitmap ? g = "B" + g : b instanceof r.RenderableVideo && (g = "V" + g); b instanceof r.Renderable && (g = g + " [" + b._parents.length + "]"); b = a.measureText(g).width; - a.fillText(g, n, v); - if (c) { + a.fillText(g, n, x); + if (d) { n += b + 4; - e = Math.max(e, n + 20); - for (g = 0;g < c.length;g++) { - k(c[g]), g < c.length - 1 && (v += 18, v > m._canvas.height && (a.fillStyle = "gray", n = n - d + e + 8, d = e + 8, v = 0, a.fillStyle = "white")); + f = Math.max(f, n + 20); + for (g = 0;g < d.length;g++) { + k(d[g]), g < d.length - 1 && (x += 18, x > m._canvas.height && (a.fillStyle = "gray", n = n - e + f + 8, e = f + 8, x = 0, a.fillStyle = "white")); } n -= b + 4; } @@ -12211,19 +12245,19 @@ __extends = this.__extends || function(k, r) { a.save(); a.font = "16px Arial"; a.fillStyle = "white"; - var n = 0, v = 0, d = 0, e = 0; - k(c); + var n = 0, x = 0, e = 0, f = 0; + k(b); a.restore(); }; return a; }(r.Renderer); - r.TreeRenderer = t; + r.TreeRenderer = v; })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.GFX.BlurFilter, t = k.GFX.DropshadowFilter, n = k.GFX.Shape, a = k.GFX.Group, h = k.GFX.RenderableShape, p = k.GFX.RenderableMorphShape, l = k.GFX.RenderableBitmap, u = k.GFX.RenderableVideo, m = k.GFX.RenderableText, s = k.GFX.ColorMatrix, v = k.ShapeData, d = k.ArrayUtilities.DataBuffer, e = k.GFX.Stage, b = k.GFX.Geometry.Matrix, f = k.GFX.Geometry.Rectangle, q = function() { + var b = k.GFX.BlurFilter, v = k.GFX.DropshadowFilter, n = k.GFX.Shape, a = k.GFX.Group, h = k.GFX.RenderableShape, p = k.GFX.RenderableMorphShape, l = k.GFX.RenderableBitmap, w = k.GFX.RenderableVideo, m = k.GFX.RenderableText, t = k.GFX.ColorMatrix, x = k.ShapeData, e = k.ArrayUtilities.DataBuffer, f = k.GFX.Stage, c = k.GFX.Geometry.Matrix, d = k.GFX.Geometry.Rectangle, q = function() { function a() { } a.prototype.writeMouseEvent = function(a, b) { @@ -12256,17 +12290,17 @@ __extends = this.__extends || function(k, r) { g.GFXChannelSerializer = q; q = function() { function a(b, c, d) { - function f(a) { + function e(a) { a = a.getBounds(!0); var c = b.easel.getRatio(); a.scale(1 / c, 1 / c); a.snap(); g.setBounds(a); } - var g = this.stage = new e(128, 512); + var g = this.stage = new f(128, 512); "undefined" !== typeof registerInspectorStage && registerInspectorStage(g); - f(b.stage); - b.stage.addEventListener(1, f); + e(b.stage); + b.stage.addEventListener(1, e); b.content = g.content; d && this.stage.setFlags(32768); c.addChild(this.stage); @@ -12307,20 +12341,20 @@ __extends = this.__extends || function(k, r) { this._registerAsset(a, b, this._decodeImage(c.dataType, c.data, d)); }; a.prototype.registerVideo = function(a) { - this._registerAsset(a, 0, new u(a, this)); + this._registerAsset(a, 0, new w(a, this)); }; a.prototype._decodeImage = function(a, b, c) { - var d = new Image, e = l.FromImage(d); - d.src = URL.createObjectURL(new Blob([b], {type:k.getMIMETypeForImageType(a)})); - d.onload = function() { - e.setBounds(new f(0, 0, d.width, d.height)); - e.invalidate(); - c({width:d.width, height:d.height}); + var e = new Image, f = l.FromImage(e); + e.src = URL.createObjectURL(new Blob([b], {type:k.getMIMETypeForImageType(a)})); + e.onload = function() { + f.setBounds(new d(0, 0, e.width, e.height)); + f.invalidate(); + c({width:e.width, height:e.height}); }; - d.onerror = function() { + e.onerror = function() { c(null); }; - return e; + return f; }; a.prototype.sendVideoPlaybackEvent = function(a, b, c) { this._easelHost.sendVideoPlaybackEvent(a, b, c); @@ -12329,10 +12363,10 @@ __extends = this.__extends || function(k, r) { }(); g.GFXChannelDeserializerContext = q; q = function() { - function e() { + function f() { } - e.prototype.read = function() { - for (var a = 0, b = this.input, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, l = 0, k = 0;0 < b.bytesAvailable;) { + f.prototype.read = function() { + for (var a = 0, b = this.input, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0, l = 0, m = 0;0 < b.bytesAvailable;) { switch(a = b.readInt(), a) { case 0: return; @@ -12365,76 +12399,76 @@ __extends = this.__extends || function(k, r) { this._readDrawToBitmap(); break; case 106: - k++, this._readRequestBitmapData(); + m++, this._readRequestBitmapData(); } } }; - e.prototype._readMatrix = function() { - var a = this.input, b = e._temporaryReadMatrix; + f.prototype._readMatrix = function() { + var a = this.input, b = f._temporaryReadMatrix; b.setElements(a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat(), a.readFloat() / 20, a.readFloat() / 20); return b; }; - e.prototype._readRectangle = function() { - var a = this.input, b = e._temporaryReadRectangle; + f.prototype._readRectangle = function() { + var a = this.input, b = f._temporaryReadRectangle; b.setElements(a.readInt() / 20, a.readInt() / 20, a.readInt() / 20, a.readInt() / 20); return b; }; - e.prototype._readColorMatrix = function() { - var a = this.input, b = e._temporaryReadColorMatrix, c = 1, d = 1, f = 1, g = 1, h = 0, l = 0, k = 0, m = 0; + f.prototype._readColorMatrix = function() { + var a = this.input, b = f._temporaryReadColorMatrix, c = 1, d = 1, e = 1, g = 1, h = 0, l = 0, m = 0, k = 0; switch(a.readInt()) { case 0: - return e._temporaryReadColorMatrixIdentity; + return f._temporaryReadColorMatrixIdentity; case 1: g = a.readFloat(); break; case 2: - c = a.readFloat(), d = a.readFloat(), f = a.readFloat(), g = a.readFloat(), h = a.readInt(), l = a.readInt(), k = a.readInt(), m = a.readInt(); + c = a.readFloat(), d = a.readFloat(), e = a.readFloat(), g = a.readFloat(), h = a.readInt(), l = a.readInt(), m = a.readInt(), k = a.readInt(); } - b.setMultipliersAndOffsets(c, d, f, g, h, l, k, m); + b.setMultipliersAndOffsets(c, d, e, g, h, l, m, k); return b; }; - e.prototype._readAsset = function() { + f.prototype._readAsset = function() { var a = this.input.readInt(), b = this.inputAssets[a]; this.inputAssets[a] = null; return b; }; - e.prototype._readUpdateGraphics = function() { - for (var a = this.input, b = this.context, c = a.readInt(), d = a.readInt(), e = b._getAsset(c), f = this._readRectangle(), g = v.FromPlainObject(this._readAsset()), l = a.readInt(), k = [], m = 0;m < l;m++) { + f.prototype._readUpdateGraphics = function() { + for (var a = this.input, b = this.context, c = a.readInt(), d = a.readInt(), e = b._getAsset(c), f = this._readRectangle(), g = x.FromPlainObject(this._readAsset()), l = a.readInt(), m = [], k = 0;k < l;k++) { var n = a.readInt(); - k.push(b._getBitmapAsset(n)); + m.push(b._getBitmapAsset(n)); } if (e) { - e.update(g, k, f); + e.update(g, m, f); } else { - a = g.morphCoordinates ? new p(c, g, k, f) : new h(c, g, k, f); - for (m = 0;m < k.length;m++) { - k[m] && k[m].addRenderableParent(a); + a = g.morphCoordinates ? new p(c, g, m, f) : new h(c, g, m, f); + for (k = 0;k < m.length;k++) { + m[k] && m[k].addRenderableParent(a); } b._registerAsset(c, d, a); } }; - e.prototype._readUpdateBitmapData = function() { - var a = this.input, b = this.context, c = a.readInt(), e = a.readInt(), f = b._getBitmapAsset(c), g = this._readRectangle(), a = a.readInt(), h = d.FromPlainObject(this._readAsset()); - f ? f.updateFromDataBuffer(a, h) : (f = l.FromDataBuffer(a, h, g), b._registerAsset(c, e, f)); + f.prototype._readUpdateBitmapData = function() { + var a = this.input, b = this.context, c = a.readInt(), d = a.readInt(), f = b._getBitmapAsset(c), g = this._readRectangle(), a = a.readInt(), h = e.FromPlainObject(this._readAsset()); + f ? f.updateFromDataBuffer(a, h) : (f = l.FromDataBuffer(a, h, g), b._registerAsset(c, d, f)); }; - e.prototype._readUpdateTextContent = function() { - var a = this.input, b = this.context, c = a.readInt(), e = a.readInt(), f = b._getTextAsset(c), g = this._readRectangle(), h = this._readMatrix(), l = a.readInt(), k = a.readInt(), p = a.readInt(), n = a.readBoolean(), q = a.readInt(), r = a.readInt(), s = this._readAsset(), v = d.FromPlainObject(this._readAsset()), t = null, u = a.readInt(); - u && (t = new d(4 * u), a.readBytes(t, 4 * u)); - f ? (f.setBounds(g), f.setContent(s, v, h, t), f.setStyle(l, k, q, r), f.reflow(p, n)) : (f = new m(g), f.setContent(s, v, h, t), f.setStyle(l, k, q, r), f.reflow(p, n), b._registerAsset(c, e, f)); + f.prototype._readUpdateTextContent = function() { + var a = this.input, b = this.context, c = a.readInt(), d = a.readInt(), f = b._getTextAsset(c), g = this._readRectangle(), h = this._readMatrix(), l = a.readInt(), k = a.readInt(), n = a.readInt(), p = a.readBoolean(), q = a.readInt(), r = a.readInt(), t = this._readAsset(), u = e.FromPlainObject(this._readAsset()), w = null, x = a.readInt(); + x && (w = new e(4 * x), a.readBytes(w, 4 * x)); + f ? (f.setBounds(g), f.setContent(t, u, h, w), f.setStyle(l, k, q, r), f.reflow(n, p)) : (f = new m(g), f.setContent(t, u, h, w), f.setStyle(l, k, q, r), f.reflow(n, p), b._registerAsset(c, d, f)); if (this.output) { for (a = f.textRect, this.output.writeInt(20 * a.w), this.output.writeInt(20 * a.h), this.output.writeInt(20 * a.x), f = f.lines, a = f.length, this.output.writeInt(a), b = 0;b < a;b++) { this._writeLineMetrics(f[b]); } } }; - e.prototype._writeLineMetrics = function(a) { + f.prototype._writeLineMetrics = function(a) { this.output.writeInt(a.x); this.output.writeInt(a.width); this.output.writeInt(a.ascent); this.output.writeInt(a.descent); this.output.writeInt(a.leading); }; - e.prototype._readUpdateStage = function() { + f.prototype._readUpdateStage = function() { var a = this.context, b = this.input.readInt(); a._nodes[b] || (a._nodes[b] = a.stage.content); var b = this.input.readInt(), c = this._readRectangle(); @@ -12448,22 +12482,22 @@ __extends = this.__extends || function(k, r) { a._easelHost.cursor = k.UI.toCSSCursor(c); a._easelHost.fullscreen = 0 === b || 1 === b; }; - e.prototype._readUpdateNetStream = function() { + f.prototype._readUpdateNetStream = function() { var a = this.context, b = this.input.readInt(), c = a._getVideoAsset(b), d = this._readRectangle(); c || (a.registerVideo(b), c = a._getVideoAsset(b)); c.setBounds(d); }; - e.prototype._readFilters = function(a) { - var b = this.input, d = b.readInt(), e = []; + f.prototype._readFilters = function(a) { + var c = this.input, d = c.readInt(), e = []; if (d) { for (var f = 0;f < d;f++) { - var g = b.readInt(); + var g = c.readInt(); switch(g) { case 0: - e.push(new c(b.readFloat(), b.readFloat(), b.readInt())); + e.push(new b(c.readFloat(), c.readFloat(), c.readInt())); break; case 1: - e.push(new t(b.readFloat(), b.readFloat(), b.readFloat(), b.readFloat(), b.readInt(), b.readFloat(), b.readBoolean(), b.readBoolean(), b.readBoolean(), b.readInt(), b.readFloat())); + e.push(new v(c.readFloat(), c.readFloat(), c.readFloat(), c.readFloat(), c.readInt(), c.readFloat(), c.readBoolean(), c.readBoolean(), c.readBoolean(), c.readInt(), c.readFloat())); break; default: k.Debug.somewhatImplemented(r.FilterType[g]); @@ -12472,7 +12506,7 @@ __extends = this.__extends || function(k, r) { a.getLayer().filters = e; } }; - e.prototype._readUpdateFrame = function() { + f.prototype._readUpdateFrame = function() { var b = this.input, c = this.context, d = b.readInt(), e = 0, f = c._nodes[d]; f || (f = c._nodes[d] = new a); d = b.readInt(); @@ -12495,26 +12529,26 @@ __extends = this.__extends || function(k, r) { } e && (l = f.getChildren()[0], l instanceof n && (l.ratio = e)); }; - e.prototype._readDrawToBitmap = function() { - var a = this.input, c = this.context, d = a.readInt(), e = a.readInt(), f = a.readInt(), g, h, k; - g = f & 1 ? this._readMatrix().clone() : b.createIdentity(); + f.prototype._readDrawToBitmap = function() { + var a = this.input, b = this.context, d = a.readInt(), e = a.readInt(), f = a.readInt(), g, h, m; + g = f & 1 ? this._readMatrix().clone() : c.createIdentity(); f & 8 && (h = this._readColorMatrix()); - f & 16 && (k = this._readRectangle()); + f & 16 && (m = this._readRectangle()); f = a.readInt(); a.readBoolean(); - a = c._getBitmapAsset(d); - e = c._makeNode(e); - a ? a.drawNode(e, g, h, f, k) : c._registerAsset(d, -1, l.FromNode(e, g, h, f, k)); + a = b._getBitmapAsset(d); + e = b._makeNode(e); + a ? a.drawNode(e, g, h, f, m) : b._registerAsset(d, -1, l.FromNode(e, g, h, f, m)); }; - e.prototype._readRequestBitmapData = function() { + f.prototype._readRequestBitmapData = function() { var a = this.output, b = this.context, c = this.input.readInt(); b._getBitmapAsset(c).readImageData(a); }; - e._temporaryReadMatrix = b.createIdentity(); - e._temporaryReadRectangle = f.createEmpty(); - e._temporaryReadColorMatrix = s.createIdentity(); - e._temporaryReadColorMatrixIdentity = s.createIdentity(); - return e; + f._temporaryReadMatrix = c.createIdentity(); + f._temporaryReadRectangle = d.createEmpty(); + f._temporaryReadColorMatrix = t.createIdentity(); + f._temporaryReadColorMatrixIdentity = t.createIdentity(); + return f; }(); g.GFXChannelDeserializer = q; })(r.GFX || (r.GFX = {})); @@ -12522,17 +12556,17 @@ __extends = this.__extends || function(k, r) { })(Shumway || (Shumway = {})); (function(k) { (function(r) { - var g = k.GFX.Geometry.Point, c = k.ArrayUtilities.DataBuffer, t = function() { + var g = k.GFX.Geometry.Point, b = k.ArrayUtilities.DataBuffer, v = function() { function n(a) { this._easel = a; - var c = a.transparent; + var b = a.transparent; this._group = a.world; this._content = null; this._fullscreen = !1; - this._context = new k.Remoting.GFX.GFXChannelDeserializerContext(this, this._group, c); + this._context = new k.Remoting.GFX.GFXChannelDeserializerContext(this, this._group, b); this._addEventListeners(); } - n.prototype.onSendUpdates = function(a, c) { + n.prototype.onSendUpdates = function(a, b) { throw Error("This method is abstract"); }; Object.defineProperty(n.prototype, "easel", {get:function() { @@ -12551,43 +12585,43 @@ __extends = this.__extends || function(k, r) { this._fullscreen !== a && (this._fullscreen = a, "undefined" !== typeof ShumwayCom && ShumwayCom.setFullscreen && ShumwayCom.setFullscreen(a)); }, enumerable:!0, configurable:!0}); n.prototype._mouseEventListener = function(a) { - var h = this._easel.getMousePosition(a, this._content), h = new g(h.x, h.y), p = new c, l = new k.Remoting.GFX.GFXChannelSerializer; - l.output = p; + var h = this._easel.getMousePosition(a, this._content), h = new g(h.x, h.y), n = new b, l = new k.Remoting.GFX.GFXChannelSerializer; + l.output = n; l.writeMouseEvent(a, h); - this.onSendUpdates(p, []); + this.onSendUpdates(n, []); }; n.prototype._keyboardEventListener = function(a) { - var g = new c, p = new k.Remoting.GFX.GFXChannelSerializer; - p.output = g; - p.writeKeyboardEvent(a); + var g = new b, n = new k.Remoting.GFX.GFXChannelSerializer; + n.output = g; + n.writeKeyboardEvent(a); this.onSendUpdates(g, []); }; n.prototype._addEventListeners = function() { - for (var a = this._mouseEventListener.bind(this), c = this._keyboardEventListener.bind(this), g = n._mouseEvents, l = 0;l < g.length;l++) { + for (var a = this._mouseEventListener.bind(this), b = this._keyboardEventListener.bind(this), g = n._mouseEvents, l = 0;l < g.length;l++) { window.addEventListener(g[l], a); } a = n._keyboardEvents; for (l = 0;l < a.length;l++) { - window.addEventListener(a[l], c); + window.addEventListener(a[l], b); } this._addFocusEventListeners(); this._easel.addEventListener("resize", this._resizeEventListener.bind(this)); }; n.prototype._sendFocusEvent = function(a) { - var g = new c, p = new k.Remoting.GFX.GFXChannelSerializer; - p.output = g; - p.writeFocusEvent(a); + var g = new b, n = new k.Remoting.GFX.GFXChannelSerializer; + n.output = g; + n.writeFocusEvent(a); this.onSendUpdates(g, []); }; n.prototype._addFocusEventListeners = function() { var a = this; - document.addEventListener("visibilitychange", function(c) { + document.addEventListener("visibilitychange", function(b) { a._sendFocusEvent(document.hidden ? 0 : 1); }); - window.addEventListener("focus", function(c) { + window.addEventListener("focus", function(b) { a._sendFocusEvent(3); }); - window.addEventListener("blur", function(c) { + window.addEventListener("blur", function(b) { a._sendFocusEvent(2); }); }; @@ -12597,52 +12631,52 @@ __extends = this.__extends || function(k, r) { n.prototype.onDisplayParameters = function(a) { throw Error("This method is abstract"); }; - n.prototype.processUpdates = function(a, c, g) { + n.prototype.processUpdates = function(a, b, g) { void 0 === g && (g = null); var l = new k.Remoting.GFX.GFXChannelDeserializer; l.input = a; - l.inputAssets = c; + l.inputAssets = b; l.output = g; l.context = this._context; l.read(); }; - n.prototype.processVideoControl = function(a, c, g) { + n.prototype.processVideoControl = function(a, b, g) { var l = this._context, k = l._getVideoAsset(a); if (!k) { - if (1 !== c) { + if (1 !== b) { return; } l.registerVideo(a); k = l._getVideoAsset(a); } - return k.processControlRequest(c, g); + return k.processControlRequest(b, g); }; - n.prototype.processRegisterFontOrImage = function(a, c, g, l, k) { - "font" === g ? this._context.registerFont(a, l, k) : this._context.registerImage(a, c, l, k); + n.prototype.processRegisterFontOrImage = function(a, b, g, l, k) { + "font" === g ? this._context.registerFont(a, l, k) : this._context.registerImage(a, b, l, k); }; - n.prototype.processFSCommand = function(a, c) { + n.prototype.processFSCommand = function(a, b) { }; n.prototype.processFrame = function() { }; - n.prototype.onVideoPlaybackEvent = function(a, c, g) { + n.prototype.onVideoPlaybackEvent = function(a, b, g) { throw Error("This method is abstract"); }; - n.prototype.sendVideoPlaybackEvent = function(a, c, g) { - this.onVideoPlaybackEvent(a, c, g); + n.prototype.sendVideoPlaybackEvent = function(a, b, g) { + this.onVideoPlaybackEvent(a, b, g); }; n._mouseEvents = k.Remoting.MouseEventNames; n._keyboardEvents = k.Remoting.KeyboardEventNames; return n; }(); - r.EaselHost = t; + r.EaselHost = v; })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.ArrayUtilities.DataBuffer, t = k.CircularBuffer, n = k.Tools.Profiler.TimelineBuffer, a = function(a) { - function g(c, k, m) { - a.call(this, c); + var b = k.ArrayUtilities.DataBuffer, v = k.CircularBuffer, n = k.Tools.Profiler.TimelineBuffer, a = function(a) { + function g(b, k, m) { + a.call(this, b); this._timelineRequests = Object.create(null); this._playerWindow = k; this._window = m; @@ -12657,39 +12691,39 @@ __extends = this.__extends || function(k, r) { }.bind(this)); } __extends(g, a); - g.prototype.onSendUpdates = function(a, c) { + g.prototype.onSendUpdates = function(a, b) { var g = a.getBytes(); - this._playerWindow.postMessage({type:"gfx", updates:g, assets:c}, "*", [g.buffer]); + this._playerWindow.postMessage({type:"gfx", updates:g, assets:b}, "*", [g.buffer]); }; g.prototype.onDisplayParameters = function(a) { this._playerWindow.postMessage({type:"displayParameters", params:a}, "*"); }; - g.prototype.onVideoPlaybackEvent = function(a, c, g) { - this._playerWindow.postMessage({type:"videoPlayback", id:a, eventType:c, data:g}, "*"); + g.prototype.onVideoPlaybackEvent = function(a, b, g) { + this._playerWindow.postMessage({type:"videoPlayback", id:a, eventType:b, data:g}, "*"); }; - g.prototype.requestTimeline = function(a, c) { + g.prototype.requestTimeline = function(a, b) { return new Promise(function(g) { this._timelineRequests[a] = g; - this._playerWindow.postMessage({type:"timeline", cmd:c, request:a}, "*"); + this._playerWindow.postMessage({type:"timeline", cmd:b, request:a}, "*"); }.bind(this)); }; - g.prototype._sendRegisterFontOrImageResponse = function(a, c) { - this._playerWindow.postMessage({type:"registerFontOrImageResponse", requestId:a, result:c}, "*"); + g.prototype._sendRegisterFontOrImageResponse = function(a, b) { + this._playerWindow.postMessage({type:"registerFontOrImageResponse", requestId:a, result:b}, "*"); }; g.prototype.onWindowMessage = function(a, g) { void 0 === g && (g = !0); if ("object" === typeof a && null !== a) { if ("player" === a.type) { - var h = c.FromArrayBuffer(a.updates.buffer); + var h = b.FromArrayBuffer(a.updates.buffer); if (g) { this.processUpdates(h, a.assets); } else { - var k = new c; + var k = new b; this.processUpdates(h, a.assets, k); a.result = k.toPlainObject(); } } else { - "frame" !== a.type && ("videoControl" === a.type ? a.result = this.processVideoControl(a.id, a.eventType, a.data) : "registerFontOrImage" === a.type ? this.processRegisterFontOrImage(a.syncId, a.symbolId, a.assetType, a.data, this._sendRegisterFontOrImageResponse.bind(this, a.requestId)) : "fscommand" !== a.type && "timelineResponse" === a.type && a.timeline && (a.timeline.__proto__ = n.prototype, a.timeline._marks.__proto__ = t.prototype, a.timeline._times.__proto__ = t.prototype, + "frame" !== a.type && ("videoControl" === a.type ? a.result = this.processVideoControl(a.id, a.eventType, a.data) : "registerFontOrImage" === a.type ? this.processRegisterFontOrImage(a.syncId, a.symbolId, a.assetType, a.data, this._sendRegisterFontOrImageResponse.bind(this, a.requestId)) : "fscommand" !== a.type && "timelineResponse" === a.type && a.timeline && (a.timeline.__proto__ = n.prototype, a.timeline._marks.__proto__ = v.prototype, a.timeline._times.__proto__ = v.prototype, this._timelineRequests[a.request](a.timeline))); } } @@ -12703,7 +12737,7 @@ __extends = this.__extends || function(k, r) { (function(k) { (function(r) { (function(g) { - var c = k.ArrayUtilities.DataBuffer, t = function(g) { + var b = k.ArrayUtilities.DataBuffer, v = function(g) { function a(a) { g.call(this, a); this._worker = k.Player.Test.FakeSyncWorker.instance; @@ -12711,17 +12745,17 @@ __extends = this.__extends || function(k, r) { this._worker.addEventListener("syncmessage", this._onSyncWorkerMessage.bind(this)); } __extends(a, g); - a.prototype.onSendUpdates = function(a, c) { + a.prototype.onSendUpdates = function(a, b) { var g = a.getBytes(); - this._worker.postMessage({type:"gfx", updates:g, assets:c}, [g.buffer]); + this._worker.postMessage({type:"gfx", updates:g, assets:b}, [g.buffer]); }; a.prototype.onDisplayParameters = function(a) { this._worker.postMessage({type:"displayParameters", params:a}); }; - a.prototype.onVideoPlaybackEvent = function(a, c, g) { - this._worker.postMessage({type:"videoPlayback", id:a, eventType:c, data:g}); + a.prototype.onVideoPlaybackEvent = function(a, b, g) { + this._worker.postMessage({type:"videoPlayback", id:a, eventType:b, data:g}); }; - a.prototype.requestTimeline = function(a, c) { + a.prototype.requestTimeline = function(a, b) { var g; switch(a) { case "AVM2": @@ -12733,11 +12767,11 @@ __extends = this.__extends || function(k, r) { case "SWF": g = k.SWF.timelineBuffer; } - "clear" === c && g && g.reset(); + "clear" === b && g && g.reset(); return Promise.resolve(g); }; - a.prototype._sendRegisterFontOrImageResponse = function(a, c) { - this._worker.postMessage({type:"registerFontOrImageResponse", requestId:a, result:c}); + a.prototype._sendRegisterFontOrImageResponse = function(a, b) { + this._worker.postMessage({type:"registerFontOrImageResponse", requestId:a, result:b}); }; a.prototype._onWorkerMessage = function(a, g) { void 0 === g && (g = !0); @@ -12745,11 +12779,11 @@ __extends = this.__extends || function(k, r) { if ("object" === typeof k && null !== k) { switch(k.type) { case "player": - var n = c.FromArrayBuffer(k.updates.buffer); + var n = b.FromArrayBuffer(k.updates.buffer); if (g) { this.processUpdates(n, k.assets); } else { - var m = new c; + var m = new b; this.processUpdates(n, k.assets, m); a.result = m.toPlainObject(); a.handled = !0; @@ -12769,16 +12803,16 @@ __extends = this.__extends || function(k, r) { }; return a; }(r.EaselHost); - g.TestEaselHost = t; + g.TestEaselHost = v; })(r.Test || (r.Test = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - function c(a, c) { - a.writeInt(c.length); - a.writeRawBytes(c); + function b(a, b) { + a.writeInt(b.length); + a.writeRawBytes(b); } function r(a) { function g(a) { @@ -12805,28 +12839,28 @@ __extends = this.__extends || function(k, r) { if (Array.isArray(a) && a instanceof Int32Array) { k.writeByte(6); k.writeInt(a.length); - for (var e = 0;e < a.length;e++) { - g(a[e]); + for (var f = 0;f < a.length;f++) { + g(a[f]); } } else { if (a instanceof Uint8Array) { - k.writeByte(9), c(k, a); + k.writeByte(9), b(k, a); } else { if ("length" in a && "buffer" in a && "littleEndian" in a) { - k.writeByte(a.littleEndian ? 10 : 11), c(k, new Uint8Array(a.buffer, 0, a.length)); + k.writeByte(a.littleEndian ? 10 : 11), b(k, new Uint8Array(a.buffer, 0, a.length)); } else { if (a instanceof ArrayBuffer) { - k.writeByte(8), c(k, new Uint8Array(a)); + k.writeByte(8), b(k, new Uint8Array(a)); } else { if (a instanceof Int32Array) { - k.writeByte(12), c(k, new Uint8Array(a.buffer, a.byteOffset, a.byteLength)); + k.writeByte(12), b(k, new Uint8Array(a.buffer, a.byteOffset, a.byteLength)); } else { if (a.buffer instanceof ArrayBuffer && "number" === typeof a.byteOffset) { throw Error("Some unsupported TypedArray is used"); } k.writeByte(7); - for (e in a) { - k.writeUTF(e), g(a[e]); + for (f in a) { + k.writeUTF(f), g(a[f]); } k.writeUTF(""); } @@ -12842,32 +12876,32 @@ __extends = this.__extends || function(k, r) { return k.getBytes(); } function n(a) { - var c = new h, g = a.readInt(); - a.readBytes(c, g); - return c.getBytes(); + var b = new h, g = a.readInt(); + a.readBytes(b, g); + return b.getBytes(); } function a(a) { - function c() { + function b() { var a = g.readByte(); switch(a) { case 1: return null; case 2: - return!0; + return !0; case 3: - return!1; + return !1; case 4: return g.readDouble(); case 5: return g.readUTF(); case 6: - for (var a = [], b = g.readInt(), d = 0;d < b;d++) { - a[d] = c(); + for (var a = [], c = g.readInt(), d = 0;d < c;d++) { + a[d] = b(); } return a; case 7: - for (a = {};b = g.readUTF();) { - a[b] = c(); + for (a = {};c = g.readUTF();) { + a[c] = b(); } return a; case 8: @@ -12877,14 +12911,14 @@ __extends = this.__extends || function(k, r) { case 11: ; case 10: - return b = n(g), new p(b.buffer, b.length, 10 === a); + return c = n(g), new p(c.buffer, c.length, 10 === a); case 12: return new Int32Array(n(g).buffer); } } - var g = new h, d = a.readInt(); - a.readBytes(g, d); - return c(); + var g = new h, e = a.readInt(); + a.readBytes(g, e); + return b(); } var h = k.ArrayUtilities.DataBuffer, p = k.ArrayUtilities.PlainObjectDataBuffer, l; (function(a) { @@ -12911,8 +12945,8 @@ __extends = this.__extends || function(k, r) { a[a.FSCommand = 5] = "FSCommand"; })(g.MovieRecordType || (g.MovieRecordType = {})); l = function() { - function a(c) { - this._maxRecordingSize = c; + function a(b) { + this._maxRecordingSize = b; this._recording = new h; this._recordingStarted = Date.now(); this._recording.writeRawBytes(new Uint8Array([77, 83, 87, 70])); @@ -12925,73 +12959,73 @@ __extends = this.__extends || function(k, r) { return new Blob([this._recording.getBytes()], {type:"application/octet-stream"}); }; a.prototype.dump = function() { - (new u(this._recording.getBytes())).dump(); + (new w(this._recording.getBytes())).dump(); }; - a.prototype._createRecord = function(a, c) { - this._stopped || (this._recording.length + 8 + (c ? c.length : 0) >= this._maxRecordingSize ? (console.error("Recording limit reached"), this._stopped = !0) : (this._recording.writeInt(Date.now() - this._recordingStarted), this._recording.writeInt(a), null !== c ? (this._recording.writeInt(c.length), this._recording.writeRawBytes(c.getBytes())) : this._recording.writeInt(0))); + a.prototype._createRecord = function(a, b) { + this._stopped || (this._recording.length + 8 + (b ? b.length : 0) >= this._maxRecordingSize ? (console.error("Recording limit reached"), this._stopped = !0) : (this._recording.writeInt(Date.now() - this._recordingStarted), this._recording.writeInt(a), null !== b ? (this._recording.writeInt(b.length), this._recording.writeRawBytes(b.getBytes())) : this._recording.writeInt(0))); }; - a.prototype.recordPlayerCommand = function(a, g, d) { - var e = new h; - c(e, g); - e.writeInt(d.length); - d.forEach(function(a) { + a.prototype.recordPlayerCommand = function(a, g, e) { + var f = new h; + b(f, g); + f.writeInt(e.length); + e.forEach(function(a) { a = r(a); - c(e, a); + b(f, a); }); - this._createRecord(a ? 2 : 1, e); + this._createRecord(a ? 2 : 1, f); }; a.prototype.recordFrame = function() { this._createRecord(3, null); }; - a.prototype.recordFontOrImage = function(a, g, d, e) { - var b = new h; - b.writeInt(a); - b.writeInt(g); - b.writeUTF(d); - c(b, r(e)); - this._createRecord(4, b); + a.prototype.recordFontOrImage = function(a, g, e, f) { + var c = new h; + c.writeInt(a); + c.writeInt(g); + c.writeUTF(e); + b(c, r(f)); + this._createRecord(4, c); }; - a.prototype.recordFSCommand = function(a, c) { - var d = new h; - d.writeUTF(a); - d.writeUTF(c || ""); - this._createRecord(5, d); + a.prototype.recordFSCommand = function(a, b) { + var e = new h; + e.writeUTF(a); + e.writeUTF(b || ""); + this._createRecord(5, e); }; return a; }(); g.MovieRecorder = l; - var u = function() { - function c(a) { + var w = function() { + function b(a) { this._buffer = new h; this._buffer.writeRawBytes(a); this._buffer.position = 4; } - c.prototype.readNextRecord = function() { + b.prototype.readNextRecord = function() { if (this._buffer.position >= this._buffer.length) { return 0; } - var a = this._buffer.readInt(), c = this._buffer.readInt(), d = this._buffer.readInt(), e = null; - 0 < d && (e = new h, this._buffer.readBytes(e, d)); + var a = this._buffer.readInt(), b = this._buffer.readInt(), e = this._buffer.readInt(), f = null; + 0 < e && (f = new h, this._buffer.readBytes(f, e)); this.currentTimestamp = a; - this.currentType = c; - this.currentData = e; - return c; + this.currentType = b; + this.currentData = f; + return b; }; - c.prototype.parsePlayerCommand = function() { - for (var c = n(this.currentData), g = this.currentData.readInt(), d = [], e = 0;e < g;e++) { - d.push(a(this.currentData)); + b.prototype.parsePlayerCommand = function() { + for (var b = n(this.currentData), g = this.currentData.readInt(), e = [], f = 0;f < g;f++) { + e.push(a(this.currentData)); } - return{updates:c, assets:d}; + return {updates:b, assets:e}; }; - c.prototype.parseFSCommand = function() { - var a = this.currentData.readUTF(), c = this.currentData.readUTF(); - return{command:a, args:c}; + b.prototype.parseFSCommand = function() { + var a = this.currentData.readUTF(), b = this.currentData.readUTF(); + return {command:a, args:b}; }; - c.prototype.parseFontOrImage = function() { - var c = this.currentData.readInt(), g = this.currentData.readInt(), d = this.currentData.readUTF(), e = a(this.currentData); - return{syncId:c, symbolId:g, assetType:d, data:e}; + b.prototype.parseFontOrImage = function() { + var b = this.currentData.readInt(), g = this.currentData.readInt(), e = this.currentData.readUTF(), f = a(this.currentData); + return {syncId:b, symbolId:g, assetType:e, data:f}; }; - c.prototype.dump = function() { + b.prototype.dump = function() { for (var a;a = this.readNextRecord();) { console.log("record " + a + " @" + this.currentTimestamp); debugger; @@ -13009,41 +13043,41 @@ __extends = this.__extends || function(k, r) { } } }; - return c; + return b; }(); - g.MovieRecordParser = u; + g.MovieRecordParser = w; })(r.Test || (r.Test = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(r) { (function(g) { - var c = k.ArrayUtilities.DataBuffer, t = function(k) { + var b = k.ArrayUtilities.DataBuffer, v = function(k) { function a(a) { k.call(this, a); } __extends(a, k); a.prototype.playUrl = function(a) { - var c = new XMLHttpRequest; - c.open("GET", a, !0); - c.responseType = "arraybuffer"; - c.onload = function() { - this.playBytes(new Uint8Array(c.response)); + var b = new XMLHttpRequest; + b.open("GET", a, !0); + b.responseType = "arraybuffer"; + b.onload = function() { + this.playBytes(new Uint8Array(b.response)); }.bind(this); - c.send(); + b.send(); }; a.prototype.playBytes = function(a) { this._parser = new g.MovieRecordParser(a); this._lastTimestamp = 0; this._parseNext(); }; - a.prototype.onSendUpdates = function(a, c) { + a.prototype.onSendUpdates = function(a, b) { }; a.prototype.onDisplayParameters = function(a) { }; - a.prototype.onVideoPlaybackEvent = function(a, c, g) { + a.prototype.onVideoPlaybackEvent = function(a, b, g) { }; - a.prototype.requestTimeline = function(a, c) { + a.prototype.requestTimeline = function(a, b) { return Promise.resolve(void 0); }; a.prototype._parseNext = function() { @@ -13060,8 +13094,8 @@ __extends = this.__extends || function(k, r) { ; case 2: a = this._parser.parsePlayerCommand(); - var g = 2 === this._parser.currentType, k = c.FromArrayBuffer(a.updates.buffer); - g ? this.processUpdates(k, a.assets) : (g = new c, this.processUpdates(k, a.assets, g)); + var g = 2 === this._parser.currentType, k = b.FromArrayBuffer(a.updates.buffer); + g ? this.processUpdates(k, a.assets) : (g = new b, this.processUpdates(k, a.assets, g)); break; case 3: break; @@ -13080,21 +13114,21 @@ __extends = this.__extends || function(k, r) { }; return a; }(r.EaselHost); - g.PlaybackEaselHost = t; + g.PlaybackEaselHost = v; })(r.Test || (r.Test = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); (function(k) { (function(k) { (function(g) { - var c = function(c) { + var b = function(b) { function k(a, h) { void 0 === h && (h = 0); - c.call(this, a); + b.call(this, a); this._recorder = null; this._recorder = new g.MovieRecorder(h); } - __extends(k, c); + __extends(k, b); Object.defineProperty(k.prototype, "recorder", {get:function() { return this._recorder; }, enumerable:!0, configurable:!0}); @@ -13115,12 +13149,12 @@ __extends = this.__extends || function(k, r) { case "fscommand": this._recorder.recordFSCommand(k.command, k.args); } - c.prototype._onWorkerMessage.call(this, a, g); + b.prototype._onWorkerMessage.call(this, a, g); } }; return k; }(g.TestEaselHost); - g.RecordingEaselHost = c; + g.RecordingEaselHost = b; })(k.Test || (k.Test = {})); })(k.GFX || (k.GFX = {})); })(Shumway || (Shumway = {})); diff --git a/browser/extensions/shumway/content/shumway.player.js b/browser/extensions/shumway/content/shumway.player.js index 7c2eca8dffbd..e9af2db32553 100644 --- a/browser/extensions/shumway/content/shumway.player.js +++ b/browser/extensions/shumway/content/shumway.player.js @@ -16,9 +16,9 @@ */ console.time("Load Player Dependencies"); console.time("Load Shared Dependencies"); -var Shumway, Shumway$$inline_24 = Shumway || (Shumway = {}); -Shumway$$inline_24.version = "0.10.268"; -Shumway$$inline_24.build = "02fd13d"; +var Shumway, Shumway$$inline_20 = Shumway || (Shumway = {}); +Shumway$$inline_20.version = "0.10.312"; +Shumway$$inline_20.build = "9de7c7a"; var jsGlobal = function() { return this || (0,eval)("this//# sourceURL=jsGlobal-getter"); }(), inBrowser = "undefined" !== typeof window && "document" in window && "plugins" in window.document, inFirefox = "undefined" !== typeof navigator && 0 <= navigator.userAgent.indexOf("Firefox"); @@ -34,45 +34,45 @@ function lazyInitializer(d, k) { var START_TIME = performance.now(); (function(d) { function k(f) { - return(f | 0) === f; + return (f | 0) === f; } function a(f) { return "object" === typeof f || "function" === typeof f; } - function p(f) { + function n(f) { return String(Number(f)) === f; } - function v(f) { + function w(f) { var b = 0; if ("number" === typeof f) { return b = f | 0, f === b && 0 <= b ? !0 : f >>> 0 === f; } if ("string" !== typeof f) { - return!1; + return !1; } var e = f.length; if (0 === e) { - return!1; + return !1; } if ("0" === f) { - return!0; + return !0; } if (e > d.UINT32_CHAR_BUFFER_LENGTH) { - return!1; + return !1; } - var r = 0, b = f.charCodeAt(r++) - 48; + var t = 0, b = f.charCodeAt(t++) - 48; if (1 > b || 9 < b) { - return!1; + return !1; } - for (var n = 0, g = 0;r < e;) { - g = f.charCodeAt(r++) - 48; - if (0 > g || 9 < g) { - return!1; + for (var p = 0, h = 0;t < e;) { + h = f.charCodeAt(t++) - 48; + if (0 > h || 9 < h) { + return !1; } - n = b; - b = 10 * b + g; + p = b; + b = 10 * b + h; } - return n < d.UINT32_MAX_DIV_10 || n === d.UINT32_MAX_DIV_10 && g <= d.UINT32_MAX_MOD_10 ? !0 : !1; + return p < d.UINT32_MAX_DIV_10 || p === d.UINT32_MAX_DIV_10 && h <= d.UINT32_MAX_MOD_10 ? !0 : !1; } (function(f) { f[f._0 = 48] = "_0"; @@ -108,47 +108,47 @@ var START_TIME = performance.now(); }; d.isObject = a; d.toNumber = function(f) { - return+f; + return +f; }; - d.isNumericString = p; + d.isNumericString = n; d.isNumeric = function(f) { if ("number" === typeof f) { - return!0; + return !0; } if ("string" === typeof f) { var b = f.charCodeAt(0); - return 65 <= b && 90 >= b || 97 <= b && 122 >= b || 36 === b || 95 === b ? !1 : v(f) || p(f); + return 65 <= b && 90 >= b || 97 <= b && 122 >= b || 36 === b || 95 === b ? !1 : w(f) || n(f); } - return!1; + return !1; }; - d.isIndex = v; + d.isIndex = w; d.isNullOrUndefined = function(f) { return void 0 == f; }; - var t; + var v; (function(f) { f.error = function(b) { console.error(b); throw Error(b); }; - f.assert = function(b, r) { - void 0 === r && (r = "assertion failed"); + f.assert = function(b, t) { + void 0 === t && (t = "assertion failed"); "" === b && (b = !0); if (!b) { if ("undefined" !== typeof console && "assert" in console) { - throw console.assert(!1, r), Error(r); + throw console.assert(!1, t), Error(t); } - f.error(r.toString()); + f.error(t.toString()); } }; f.assertUnreachable = function(b) { - var r = Error().stack.split("\n")[1]; - throw Error("Reached unreachable location " + r + b); + var t = Error().stack.split("\n")[1]; + throw Error("Reached unreachable location " + t + b); }; - f.assertNotImplemented = function(b, r) { - b || f.error("notImplemented: " + r); + f.assertNotImplemented = function(b, t) { + b || f.error("notImplemented: " + t); }; - f.warning = function(b, r, n) { + f.warning = function(b, t, p) { }; f.notUsed = function(b) { }; @@ -168,37 +168,37 @@ var START_TIME = performance.now(); f.unexpectedCase = function(b) { f.assert(!1, "Unexpected Case: " + b); }; - })(t = d.Debug || (d.Debug = {})); + })(v = d.Debug || (d.Debug = {})); d.getTicks = function() { return performance.now(); }; (function(f) { - function b(b, n) { + function b(b, p) { for (var e = 0, f = b.length;e < f;e++) { - if (b[e] === n) { + if (b[e] === p) { return e; } } - b.push(n); + b.push(p); return b.length - 1; } - f.popManyInto = function(b, n, e) { - for (var f = n - 1;0 <= f;f--) { + f.popManyInto = function(b, p, e) { + for (var f = p - 1;0 <= f;f--) { e[f] = b.pop(); } - e.length = n; + e.length = p; }; - f.popMany = function(b, n) { - var e = b.length - n, f = b.slice(e, this.length); + f.popMany = function(b, p) { + var e = b.length - p, f = b.slice(e, this.length); b.length = e; return f; }; - f.popManyIntoVoid = function(b, n) { - b.length -= n; + f.popManyIntoVoid = function(b, p) { + b.length -= p; }; - f.pushMany = function(b, n) { - for (var e = 0;e < n.length;e++) { - b.push(n[e]); + f.pushMany = function(b, p) { + for (var e = 0;e < p.length;e++) { + b.push(p[e]); } }; f.top = function(b) { @@ -210,56 +210,56 @@ var START_TIME = performance.now(); f.peek = function(b) { return b[b.length - 1]; }; - f.indexOf = function(b, n) { + f.indexOf = function(b, p) { for (var e = 0, f = b.length;e < f;e++) { - if (b[e] === n) { + if (b[e] === p) { return e; } } - return-1; + return -1; }; - f.equals = function(b, n) { - if (b.length !== n.length) { - return!1; + f.equals = function(b, p) { + if (b.length !== p.length) { + return !1; } for (var e = 0;e < b.length;e++) { - if (b[e] !== n[e]) { - return!1; + if (b[e] !== p[e]) { + return !1; } } - return!0; + return !0; }; f.pushUnique = b; f.unique = function(e) { - for (var n = [], f = 0;f < e.length;f++) { - b(n, e[f]); + for (var p = [], f = 0;f < e.length;f++) { + b(p, e[f]); } - return n; + return p; }; - f.copyFrom = function(b, n) { + f.copyFrom = function(b, p) { b.length = 0; - f.pushMany(b, n); + f.pushMany(b, p); }; - f.ensureTypedArrayCapacity = function(b, n) { - if (b.length < n) { + f.ensureTypedArrayCapacity = function(b, p) { + if (b.length < p) { var e = b; - b = new b.constructor(d.IntegerUtilities.nearestPowerOfTwo(n)); + b = new b.constructor(d.IntegerUtilities.nearestPowerOfTwo(p)); b.set(e, 0); } return b; }; - f.memCopy = function(b, n, e, f, g) { + f.memCopy = function(b, p, e, f, h) { void 0 === e && (e = 0); void 0 === f && (f = 0); - void 0 === g && (g = 0); - 0 < f || 0 < g && g < n.length ? (0 >= g && (g = n.length - f), b.set(n.subarray(f, f + g), e)) : b.set(n, e); + void 0 === h && (h = 0); + 0 < f || 0 < h && h < p.length ? (0 >= h && (h = p.length - f), b.set(p.subarray(f, f + h), e)) : b.set(p, e); }; var e = function() { - function b(n) { - void 0 === n && (n = 16); + function b(p) { + void 0 === p && (p = 16); this._f32 = this._i32 = this._u16 = this._u8 = null; this._offset = 0; - this.ensureCapacity(n); + this.ensureCapacity(p); } b.prototype.reset = function() { this._offset = 0; @@ -310,29 +310,29 @@ var START_TIME = performance.now(); this._f32[this._offset >> 2] = b; this._offset += 4; }; - b.prototype.write4Floats = function(b, e, r, f) { + b.prototype.write4Floats = function(b, e, t, f) { this.ensureCapacity(this._offset + 16); - this.write4FloatsUnsafe(b, e, r, f); + this.write4FloatsUnsafe(b, e, t, f); }; - b.prototype.write4FloatsUnsafe = function(b, e, r, f) { - var g = this._offset >> 2; - this._f32[g + 0] = b; - this._f32[g + 1] = e; - this._f32[g + 2] = r; - this._f32[g + 3] = f; + b.prototype.write4FloatsUnsafe = function(b, e, t, f) { + var h = this._offset >> 2; + this._f32[h + 0] = b; + this._f32[h + 1] = e; + this._f32[h + 2] = t; + this._f32[h + 3] = f; this._offset += 16; }; - b.prototype.write6Floats = function(b, e, r, f, g, m) { + b.prototype.write6Floats = function(b, e, t, f, h, m) { this.ensureCapacity(this._offset + 24); - this.write6FloatsUnsafe(b, e, r, f, g, m); + this.write6FloatsUnsafe(b, e, t, f, h, m); }; - b.prototype.write6FloatsUnsafe = function(b, e, r, f, g, m) { + b.prototype.write6FloatsUnsafe = function(b, e, t, f, h, m) { var c = this._offset >> 2; this._f32[c + 0] = b; this._f32[c + 1] = e; - this._f32[c + 2] = r; + this._f32[c + 2] = t; this._f32[c + 3] = f; - this._f32[c + 4] = g; + this._f32[c + 4] = h; this._f32[c + 5] = m; this._offset += 24; }; @@ -348,9 +348,9 @@ var START_TIME = performance.now(); b.prototype.subU8View = function() { return this._u8.subarray(0, this._offset); }; - b.prototype.hashWords = function(b, e, r) { + b.prototype.hashWords = function(b, e, t) { e = this._i32; - for (var f = 0;f < r;f++) { + for (var f = 0;f < t;f++) { b = (31 * b | 0) + e[f] | 0; } return b; @@ -392,21 +392,21 @@ var START_TIME = performance.now(); }(); d.ArrayReader = u; (function(f) { - function b(b, n) { - return Object.prototype.hasOwnProperty.call(b, n); + function b(b, p) { + return Object.prototype.hasOwnProperty.call(b, p); } - function e(e, n) { - for (var f in n) { - b(n, f) && (e[f] = n[f]); + function e(e, p) { + for (var f in p) { + b(p, f) && (e[f] = p[f]); } } f.boxValue = function(b) { return void 0 == b || a(b) ? b : Object(b); }; f.toKeyValueArray = function(b) { - var n = Object.prototype.hasOwnProperty, e = [], f; + var p = Object.prototype.hasOwnProperty, e = [], f; for (f in b) { - n.call(b, f) && e.push([f, b[f]]); + p.call(b, f) && e.push([f, b[f]]); } return e; }; @@ -414,67 +414,67 @@ var START_TIME = performance.now(); return Object.getOwnPropertyDescriptor(b, "prototype").writable; }; f.hasOwnProperty = b; - f.propertyIsEnumerable = function(b, n) { - return Object.prototype.propertyIsEnumerable.call(b, n); + f.propertyIsEnumerable = function(b, p) { + return Object.prototype.propertyIsEnumerable.call(b, p); }; - f.getOwnPropertyDescriptor = function(b, n) { - return Object.getOwnPropertyDescriptor(b, n); + f.getOwnPropertyDescriptor = function(b, p) { + return Object.getOwnPropertyDescriptor(b, p); }; - f.hasOwnGetter = function(b, n) { - var e = Object.getOwnPropertyDescriptor(b, n); - return!(!e || !e.get); + f.hasOwnGetter = function(b, p) { + var e = Object.getOwnPropertyDescriptor(b, p); + return !(!e || !e.get); }; - f.getOwnGetter = function(b, n) { - var e = Object.getOwnPropertyDescriptor(b, n); + f.getOwnGetter = function(b, p) { + var e = Object.getOwnPropertyDescriptor(b, p); return e ? e.get : null; }; - f.hasOwnSetter = function(b, n) { - var e = Object.getOwnPropertyDescriptor(b, n); - return!(!e || !e.set); + f.hasOwnSetter = function(b, p) { + var e = Object.getOwnPropertyDescriptor(b, p); + return !(!e || !e.set); }; f.createMap = function() { return Object.create(null); }; f.createArrayMap = function() { - return[]; + return []; }; - f.defineReadOnlyProperty = function(b, n, e) { - Object.defineProperty(b, n, {value:e, writable:!1, configurable:!0, enumerable:!1}); + f.defineReadOnlyProperty = function(b, p, e) { + Object.defineProperty(b, p, {value:e, writable:!1, configurable:!0, enumerable:!1}); }; f.getOwnPropertyDescriptors = function(b) { - for (var n = f.createMap(), e = Object.getOwnPropertyNames(b), g = 0;g < e.length;g++) { - n[e[g]] = Object.getOwnPropertyDescriptor(b, e[g]); + for (var p = f.createMap(), e = Object.getOwnPropertyNames(b), h = 0;h < e.length;h++) { + p[e[h]] = Object.getOwnPropertyDescriptor(b, e[h]); } - return n; + return p; }; f.cloneObject = function(b) { - var n = Object.create(Object.getPrototypeOf(b)); - e(n, b); - return n; + var p = Object.create(Object.getPrototypeOf(b)); + e(p, b); + return p; }; - f.copyProperties = function(b, n) { - for (var e in n) { - b[e] = n[e]; + f.copyProperties = function(b, p) { + for (var e in p) { + b[e] = p[e]; } }; f.copyOwnProperties = e; - f.copyOwnPropertyDescriptors = function(e, n, f) { + f.copyOwnPropertyDescriptors = function(e, p, f) { void 0 === f && (f = !0); - for (var g in n) { - if (b(n, g)) { - var m = Object.getOwnPropertyDescriptor(n, g); - if (f || !b(e, g)) { + for (var h in p) { + if (b(p, h)) { + var m = Object.getOwnPropertyDescriptor(p, h); + if (f || !b(e, h)) { try { - Object.defineProperty(e, g, m); + Object.defineProperty(e, h, m); } catch (c) { } } } } }; - f.getLatestGetterOrSetterPropertyDescriptor = function(b, n) { + f.getLatestGetterOrSetterPropertyDescriptor = function(b, p) { for (var e = {};b;) { - var f = Object.getOwnPropertyDescriptor(b, n); + var f = Object.getOwnPropertyDescriptor(b, p); f && (e.get = e.get || f.get, e.set = e.set || f.set); if (e.get && e.set) { break; @@ -483,33 +483,33 @@ var START_TIME = performance.now(); } return e; }; - f.defineNonEnumerableGetterOrSetter = function(b, n, e, g) { - var m = f.getLatestGetterOrSetterPropertyDescriptor(b, n); + f.defineNonEnumerableGetterOrSetter = function(b, p, e, h) { + var m = f.getLatestGetterOrSetterPropertyDescriptor(b, p); m.configurable = !0; m.enumerable = !1; - g ? m.get = e : m.set = e; - Object.defineProperty(b, n, m); + h ? m.get = e : m.set = e; + Object.defineProperty(b, p, m); }; - f.defineNonEnumerableGetter = function(b, n, e) { - Object.defineProperty(b, n, {get:e, configurable:!0, enumerable:!1}); + f.defineNonEnumerableGetter = function(b, p, e) { + Object.defineProperty(b, p, {get:e, configurable:!0, enumerable:!1}); }; - f.defineNonEnumerableSetter = function(b, n, e) { - Object.defineProperty(b, n, {set:e, configurable:!0, enumerable:!1}); + f.defineNonEnumerableSetter = function(b, p, e) { + Object.defineProperty(b, p, {set:e, configurable:!0, enumerable:!1}); }; - f.defineNonEnumerableProperty = function(b, n, e) { - Object.defineProperty(b, n, {value:e, writable:!0, configurable:!0, enumerable:!1}); + f.defineNonEnumerableProperty = function(b, p, e) { + Object.defineProperty(b, p, {value:e, writable:!0, configurable:!0, enumerable:!1}); }; - f.defineNonEnumerableForwardingProperty = function(b, n, e) { - Object.defineProperty(b, n, {get:l.makeForwardingGetter(e), set:l.makeForwardingSetter(e), writable:!0, configurable:!0, enumerable:!1}); + f.defineNonEnumerableForwardingProperty = function(b, p, e) { + Object.defineProperty(b, p, {get:l.makeForwardingGetter(e), set:l.makeForwardingSetter(e), writable:!0, configurable:!0, enumerable:!1}); }; - f.defineNewNonEnumerableProperty = function(b, n, e) { - f.defineNonEnumerableProperty(b, n, e); + f.defineNewNonEnumerableProperty = function(b, p, e) { + f.defineNonEnumerableProperty(b, p, e); }; - f.createPublicAliases = function(b, n) { - for (var e = {value:null, writable:!0, configurable:!0, enumerable:!1}, f = 0;f < n.length;f++) { - var g = n[f]; - e.value = b[g]; - Object.defineProperty(b, "$Bg" + g, e); + f.createPublicAliases = function(b, p) { + for (var e = {value:null, writable:!0, configurable:!0, enumerable:!1}, f = 0;f < p.length;f++) { + var h = p[f]; + e.value = b[h]; + Object.defineProperty(b, "$Bg" + h, e); } }; })(d.ObjectUtilities || (d.ObjectUtilities = {})); @@ -522,19 +522,32 @@ var START_TIME = performance.now(); return new Function("value", 'this["' + b + '"] = value;//# sourceURL=fwd-set-' + b + ".as"); }; f.bindSafely = function(b, e) { - function r() { + function t() { return b.apply(e, arguments); } - r.boundTo = e; - return r; + t.boundTo = e; + return t; }; })(l = d.FunctionUtilities || (d.FunctionUtilities = {})); (function(f) { function b(b) { return "string" === typeof b ? '"' + b + '"' : "number" === typeof b || "boolean" === typeof b ? String(b) : b instanceof Array ? "[] " + b.length : typeof b; } - f.repeatString = function(b, n) { - for (var e = "", r = 0;r < n;r++) { + function e(b, e, t) { + p[0] = b; + p[1] = e; + p[2] = t; + return p.join(""); + } + function t(b, p, e, t) { + h[0] = b; + h[1] = p; + h[2] = e; + h[3] = t; + return h.join(""); + } + f.repeatString = function(b, p) { + for (var e = "", t = 0;t < p;t++) { e += b; } return e; @@ -544,59 +557,59 @@ var START_TIME = performance.now(); return 1024 > b ? b + " B" : 1048576 > b ? (b / 1024).toFixed(2) + "KB" : (b / 1048576).toFixed(2) + "MB"; }; f.toSafeString = b; - f.toSafeArrayString = function(n) { - for (var e = [], r = 0;r < n.length;r++) { - e.push(b(n[r])); + f.toSafeArrayString = function(p) { + for (var e = [], t = 0;t < p.length;t++) { + e.push(b(p[t])); } return e.join(", "); }; f.utf8decode = function(b) { - for (var n = new Uint8Array(4 * b.length), e = 0, r = 0, f = b.length;r < f;r++) { - var g = b.charCodeAt(r); - if (127 >= g) { - n[e++] = g; + for (var p = new Uint8Array(4 * b.length), e = 0, t = 0, f = b.length;t < f;t++) { + var h = b.charCodeAt(t); + if (127 >= h) { + p[e++] = h; } else { - if (55296 <= g && 56319 >= g) { - var m = b.charCodeAt(r + 1); - 56320 <= m && 57343 >= m && (g = ((g & 1023) << 10) + (m & 1023) + 65536, ++r); + if (55296 <= h && 56319 >= h) { + var m = b.charCodeAt(t + 1); + 56320 <= m && 57343 >= m && (h = ((h & 1023) << 10) + (m & 1023) + 65536, ++t); } - 0 !== (g & 4292870144) ? (n[e++] = 248 | g >>> 24 & 3, n[e++] = 128 | g >>> 18 & 63, n[e++] = 128 | g >>> 12 & 63, n[e++] = 128 | g >>> 6 & 63) : 0 !== (g & 4294901760) ? (n[e++] = 240 | g >>> 18 & 7, n[e++] = 128 | g >>> 12 & 63, n[e++] = 128 | g >>> 6 & 63) : 0 !== (g & 4294965248) ? (n[e++] = 224 | g >>> 12 & 15, n[e++] = 128 | g >>> 6 & 63) : n[e++] = 192 | g >>> 6 & 31; - n[e++] = 128 | g & 63; + 0 !== (h & 4292870144) ? (p[e++] = 248 | h >>> 24 & 3, p[e++] = 128 | h >>> 18 & 63, p[e++] = 128 | h >>> 12 & 63, p[e++] = 128 | h >>> 6 & 63) : 0 !== (h & 4294901760) ? (p[e++] = 240 | h >>> 18 & 7, p[e++] = 128 | h >>> 12 & 63, p[e++] = 128 | h >>> 6 & 63) : 0 !== (h & 4294965248) ? (p[e++] = 224 | h >>> 12 & 15, p[e++] = 128 | h >>> 6 & 63) : p[e++] = 192 | h >>> 6 & 31; + p[e++] = 128 | h & 63; } } - return n.subarray(0, e); + return p.subarray(0, e); }; f.utf8encode = function(b) { - for (var n = 0, e = "";n < b.length;) { - var r = b[n++] & 255; - if (127 >= r) { - e += String.fromCharCode(r); + for (var p = 0, e = "";p < b.length;) { + var t = b[p++] & 255; + if (127 >= t) { + e += String.fromCharCode(t); } else { - var f = 192, g = 5; + var f = 192, h = 5; do { - if ((r & (f >> 1 | 128)) === f) { + if ((t & (f >> 1 | 128)) === f) { break; } f = f >> 1 | 128; - --g; - } while (0 <= g); - if (0 >= g) { - e += String.fromCharCode(r); + --h; + } while (0 <= h); + if (0 >= h) { + e += String.fromCharCode(t); } else { - for (var r = r & (1 << g) - 1, f = !1, m = 5;m >= g;--m) { - var c = b[n++]; + for (var t = t & (1 << h) - 1, f = !1, m = 5;m >= h;--m) { + var c = b[p++]; if (128 != (c & 192)) { f = !0; break; } - r = r << 6 | c & 63; + t = t << 6 | c & 63; } if (f) { - for (g = n - (7 - m);g < n;++g) { - e += String.fromCharCode(b[g] & 255); + for (h = p - (7 - m);h < p;++h) { + e += String.fromCharCode(b[h] & 255); } } else { - e = 65536 <= r ? e + String.fromCharCode(r - 65536 >> 10 & 1023 | 55296, r & 1023 | 56320) : e + String.fromCharCode(r); + e = 65536 <= t ? e + String.fromCharCode(t - 65536 >> 10 & 1023 | 55296, t & 1023 | 56320) : e + String.fromCharCode(t); } } } @@ -604,30 +617,30 @@ var START_TIME = performance.now(); return e; }; f.base64ArrayBuffer = function(b) { - var n = ""; + var p = ""; b = new Uint8Array(b); - for (var e = b.byteLength, r = e % 3, e = e - r, f, g, m, c, x = 0;x < e;x += 3) { - c = b[x] << 16 | b[x + 1] << 8 | b[x + 2], f = (c & 16515072) >> 18, g = (c & 258048) >> 12, m = (c & 4032) >> 6, c &= 63, n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[m] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c]; + for (var f = b.byteLength, h = f % 3, f = f - h, m, c, g, C, q = 0;q < f;q += 3) { + C = b[q] << 16 | b[q + 1] << 8 | b[q + 2], m = (C & 16515072) >> 18, c = (C & 258048) >> 12, g = (C & 4032) >> 6, C &= 63, p += t("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[m], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[C]); } - 1 == r ? (c = b[e], n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(c & 252) >> 2] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(c & 3) << 4] + "==") : 2 == r && (c = b[e] << 8 | b[e + 1], n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(c & 64512) >> 10] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(c & 1008) >> 4] + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(c & 15) << - 2] + "="); - return n; + 1 == h ? (C = b[f], p += e("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C & 252) >> 2], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C & 3) << 4], "==")) : 2 == h && (C = b[f] << 8 | b[f + 1], p += t("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C & 64512) >> 10], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C & 1008) >> 4], "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(C & 15) << + 2], "=")); + return p; }; f.escapeString = function(b) { void 0 !== b && (b = b.replace(/[^\w$]/gi, "$"), /^\d/.test(b) && (b = "$" + b)); return b; }; f.fromCharCodeArray = function(b) { - for (var n = "", e = 0;e < b.length;e += 16384) { - var r = Math.min(b.length - e, 16384), n = n + String.fromCharCode.apply(null, b.subarray(e, e + r)) + for (var p = "", e = 0;e < b.length;e += 16384) { + var t = Math.min(b.length - e, 16384), p = p + String.fromCharCode.apply(null, b.subarray(e, e + t)) } - return n; + return p; }; f.variableLengthEncodeInt32 = function(b) { - for (var n = 32 - Math.clz32(b), e = Math.ceil(n / 6), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[e], e = e - 1;0 <= e;e--) { - n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[b >> 6 * e & 63]; + for (var p = 32 - Math.clz32(b), e = Math.ceil(p / 6), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[e], e = e - 1;0 <= e;e--) { + p += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[b >> 6 * e & 63]; } - return n; + return p; }; f.toEncoding = function(b) { return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_"[b]; @@ -650,147 +663,136 @@ var START_TIME = performance.now(); } }; f.variableLengthDecodeInt32 = function(b) { - for (var n = f.fromEncoding(b.charCodeAt(0)), e = 0, r = 0;r < n;r++) { - var g = 6 * (n - r - 1), e = e | f.fromEncoding(b.charCodeAt(1 + r)) << g + for (var p = f.fromEncoding(b.charCodeAt(0)), e = 0, t = 0;t < p;t++) { + var h = 6 * (p - t - 1), e = e | f.fromEncoding(b.charCodeAt(1 + t)) << h } return e; }; - f.trimMiddle = function(b, n) { - if (b.length <= n) { + f.trimMiddle = function(b, p) { + if (b.length <= p) { return b; } - var e = n >> 1, r = n - e - 1; - return b.substr(0, e) + "\u2026" + b.substr(b.length - r, r); + var e = p >> 1, t = p - e - 1; + return b.substr(0, e) + "\u2026" + b.substr(b.length - t, t); }; - f.multiple = function(b, n) { - for (var e = "", r = 0;r < n;r++) { + f.multiple = function(b, p) { + for (var e = "", t = 0;t < p;t++) { e += b; } return e; }; - f.indexOfAny = function(b, n, e) { - for (var r = b.length, f = 0;f < n.length;f++) { - var g = b.indexOf(n[f], e); - 0 <= g && (r = Math.min(r, g)); + f.indexOfAny = function(b, p, e) { + for (var t = b.length, f = 0;f < p.length;f++) { + var h = b.indexOf(p[f], e); + 0 <= h && (t = Math.min(t, h)); } - return r === b.length ? -1 : r; + return t === b.length ? -1 : t; }; - var e = Array(3), r = Array(4), n = Array(5), g = Array(6), m = Array(7), c = Array(8), h = Array(9); - f.concat3 = function(b, n, r) { - e[0] = b; - e[1] = n; - e[2] = r; - return e.join(""); - }; - f.concat4 = function(b, n, e, f) { - r[0] = b; - r[1] = n; - r[2] = e; - r[3] = f; - return r.join(""); - }; - f.concat5 = function(b, e, r, f, g) { - n[0] = b; - n[1] = e; - n[2] = r; - n[3] = f; - n[4] = g; - return n.join(""); - }; - f.concat6 = function(b, n, e, r, f, m) { - g[0] = b; - g[1] = n; - g[2] = e; - g[3] = r; - g[4] = f; - g[5] = m; - return g.join(""); - }; - f.concat7 = function(b, n, e, r, f, g, c) { + var p = Array(3), h = Array(4), m = Array(5), c = Array(6), g = Array(7), q = Array(8), l = Array(9); + f.concat3 = e; + f.concat4 = t; + f.concat5 = function(b, p, e, t, f) { m[0] = b; - m[1] = n; + m[1] = p; m[2] = e; - m[3] = r; + m[3] = t; m[4] = f; - m[5] = g; - m[6] = c; return m.join(""); }; - f.concat8 = function(b, n, e, r, f, g, m, x) { + f.concat6 = function(b, p, e, t, f, h) { c[0] = b; - c[1] = n; + c[1] = p; c[2] = e; - c[3] = r; + c[3] = t; c[4] = f; - c[5] = g; - c[6] = m; - c[7] = x; + c[5] = h; return c.join(""); }; - f.concat9 = function(b, n, e, r, f, g, m, c, x) { - h[0] = b; - h[1] = n; - h[2] = e; - h[3] = r; - h[4] = f; - h[5] = g; - h[6] = m; - h[7] = c; - h[8] = x; - return h.join(""); + f.concat7 = function(b, p, e, t, f, h, m) { + g[0] = b; + g[1] = p; + g[2] = e; + g[3] = t; + g[4] = f; + g[5] = h; + g[6] = m; + return g.join(""); + }; + f.concat8 = function(b, p, e, t, f, h, m, c) { + q[0] = b; + q[1] = p; + q[2] = e; + q[3] = t; + q[4] = f; + q[5] = h; + q[6] = m; + q[7] = c; + return q.join(""); + }; + f.concat9 = function(b, p, e, t, f, h, m, c, g) { + l[0] = b; + l[1] = p; + l[2] = e; + l[3] = t; + l[4] = f; + l[5] = h; + l[6] = m; + l[7] = c; + l[8] = g; + return l.join(""); }; })(d.StringUtilities || (d.StringUtilities = {})); (function(f) { var b = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]), e = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]); - f.hashBytesTo32BitsMD5 = function(r, n, f) { - var g = 1732584193, m = -271733879, c = -1732584194, h = 271733878, q = f + 72 & -64, l = new Uint8Array(q), s; - for (s = 0;s < f;++s) { - l[s] = r[n++]; + f.hashBytesTo32BitsMD5 = function(t, p, f) { + var h = 1732584193, m = -271733879, c = -1732584194, g = 271733878, q = f + 72 & -64, l = new Uint8Array(q), r; + for (r = 0;r < f;++r) { + l[r] = t[p++]; } - l[s++] = 128; - for (r = q - 8;s < r;) { - l[s++] = 0; + l[r++] = 128; + for (t = q - 8;r < t;) { + l[r++] = 0; } - l[s++] = f << 3 & 255; - l[s++] = f >> 5 & 255; - l[s++] = f >> 13 & 255; - l[s++] = f >> 21 & 255; - l[s++] = f >>> 29 & 255; - l[s++] = 0; - l[s++] = 0; - l[s++] = 0; - r = new Int32Array(16); - for (s = 0;s < q;) { - for (f = 0;16 > f;++f, s += 4) { - r[f] = l[s] | l[s + 1] << 8 | l[s + 2] << 16 | l[s + 3] << 24; + l[r++] = f << 3 & 255; + l[r++] = f >> 5 & 255; + l[r++] = f >> 13 & 255; + l[r++] = f >> 21 & 255; + l[r++] = f >>> 29 & 255; + l[r++] = 0; + l[r++] = 0; + l[r++] = 0; + t = new Int32Array(16); + for (r = 0;r < q;) { + for (f = 0;16 > f;++f, r += 4) { + t[f] = l[r] | l[r + 1] << 8 | l[r + 2] << 16 | l[r + 3] << 24; } - var a = g; - n = m; - var p = c, u = h, d, t; + var a = h; + p = m; + var n = c, u = g, d, v; for (f = 0;64 > f;++f) { - 16 > f ? (d = n & p | ~n & u, t = f) : 32 > f ? (d = u & n | ~u & p, t = 5 * f + 1 & 15) : 48 > f ? (d = n ^ p ^ u, t = 3 * f + 5 & 15) : (d = p ^ (n | ~u), t = 7 * f & 15); - var k = u, a = a + d + e[f] + r[t] | 0; + 16 > f ? (d = p & n | ~p & u, v = f) : 32 > f ? (d = u & p | ~u & n, v = 5 * f + 1 & 15) : 48 > f ? (d = p ^ n ^ u, v = 3 * f + 5 & 15) : (d = n ^ (p | ~u), v = 7 * f & 15); + var k = u, a = a + d + e[f] + t[v] | 0; d = b[f]; - u = p; - p = n; - n = n + (a << d | a >>> 32 - d) | 0; + u = n; + n = p; + p = p + (a << d | a >>> 32 - d) | 0; a = k; } - g = g + a | 0; - m = m + n | 0; - c = c + p | 0; - h = h + u | 0; + h = h + a | 0; + m = m + p | 0; + c = c + n | 0; + g = g + u | 0; } - return g; + return h; }; - f.hashBytesTo32BitsAdler = function(b, n, e) { - var f = 1, g = 0; - for (e = n + e;n < e;++n) { - f = (f + (b[n] & 255)) % 65521, g = (g + f) % 65521; + f.hashBytesTo32BitsAdler = function(b, p, e) { + var f = 1, h = 0; + for (e = p + e;p < e;++p) { + f = (f + (b[p] & 255)) % 65521, h = (h + f) % 65521; } - return g << 16 | f; + return h << 16 | f; }; })(d.HashUtilities || (d.HashUtilities = {})); var c = function() { @@ -803,9 +805,9 @@ var START_TIME = performance.now(); f.next = function() { var b = this._state, e = Math.imul(18273, b[0] & 65535) + (b[0] >>> 16) | 0; b[0] = e; - var r = Math.imul(36969, b[1] & 65535) + (b[1] >>> 16) | 0; - b[1] = r; - b = (e << 16) + (r & 65535) | 0; + var t = Math.imul(36969, b[1] & 65535) + (b[1] >>> 16) | 0; + b[1] = t; + b = (e << 16) + (t & 65535) | 0; return 2.3283064365386963E-10 * (0 > b ? b + 4294967296 : b); }; f._state = new Uint32Array([57005, 48879]); @@ -823,10 +825,10 @@ var START_TIME = performance.now(); var b = 0; f.prototype = {has:function(b) { return b.hasOwnProperty(this.id); - }, get:function(b, r) { - return b.hasOwnProperty(this.id) ? b[this.id] : r; - }, set:function(b, r) { - Object.defineProperty(b, this.id, {value:r, enumerable:!1, configurable:!0}); + }, get:function(b, t) { + return b.hasOwnProperty(this.id) ? b[this.id] : t; + }, set:function(b, t) { + Object.defineProperty(b, this.id, {value:t, enumerable:!1, configurable:!0}); }, delete:function(b) { delete b[this.id]; }}; @@ -835,7 +837,7 @@ var START_TIME = performance.now(); })(); u = function() { function f() { - "undefined" !== typeof netscape && netscape.security.PrivilegeManager ? this._map = new WeakMap : this._list = []; + "undefined" !== typeof ShumwayCom && ShumwayCom.getWeakMapKeys ? this._map = new WeakMap : this._list = []; } f.prototype.clear = function() { this._map ? this._map.clear() : this._list.length = 0; @@ -848,20 +850,20 @@ var START_TIME = performance.now(); }; f.prototype.forEach = function(b) { if (this._map) { - "undefined" !== typeof netscape && netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"), Components.utils.nondeterministicGetWeakMapKeys(this._map).forEach(function(n) { - 0 !== n._referenceCount && b(n); + ShumwayCom.getWeakMapKeys(this._map).forEach(function(p) { + 0 !== p._referenceCount && b(p); }); } else { - for (var e = this._list, r = 0, n = 0;n < e.length;n++) { - var f = e[n]; - f && (0 === f._referenceCount ? (e[n] = null, r++) : b(f)); + for (var e = this._list, t = 0, p = 0;p < e.length;p++) { + var f = e[p]; + f && (0 === f._referenceCount ? (e[p] = null, t++) : b(f)); } - if (16 < r && r > e.length >> 2) { - r = []; - for (n = 0;n < e.length;n++) { - (f = e[n]) && 0 < f._referenceCount && r.push(f); + if (16 < t && t > e.length >> 2) { + t = []; + for (p = 0;p < e.length;p++) { + (f = e[p]) && 0 < f._referenceCount && t.push(f); } - this._list = r; + this._list = t; } } }; @@ -871,13 +873,13 @@ var START_TIME = performance.now(); return f; }(); d.WeakList = u; - var h; + var g; (function(f) { f.pow2 = function(b) { return b === (b | 0) ? 0 > b ? 1 / (1 << -b) : 1 << b : Math.pow(2, b); }; - f.clamp = function(b, e, f) { - return Math.max(e, Math.min(f, b)); + f.clamp = function(b, e, t) { + return Math.max(e, Math.min(t, b)); }; f.roundHalfEven = function(b) { if (.5 === Math.abs(b % 1)) { @@ -887,12 +889,12 @@ var START_TIME = performance.now(); return Math.round(b); }; f.altTieBreakRound = function(b, e) { - return.5 !== Math.abs(b % 1) || e ? Math.round(b) : b | 0; + return .5 !== Math.abs(b % 1) || e ? Math.round(b) : b | 0; }; f.epsilonEquals = function(b, e) { return 1E-7 > Math.abs(b - e); }; - })(h = d.NumberUtilities || (d.NumberUtilities = {})); + })(g = d.NumberUtilities || (d.NumberUtilities = {})); (function(f) { f[f.MaxU16 = 65535] = "MaxU16"; f[f.MaxI16 = 32767] = "MaxI16"; @@ -919,10 +921,10 @@ var START_TIME = performance.now(); return f.f32[0]; }; f.swap16 = function(b) { - return(b & 255) << 8 | b >> 8 & 255; + return (b & 255) << 8 | b >> 8 & 255; }; f.swap32 = function(b) { - return(b & 255) << 24 | (b & 65280) << 8 | b >> 8 & 65280 | b >> 24 & 255; + return (b & 255) << 24 | (b & 65280) << 8 | b >> 8 & 65280 | b >> 24 & 255; }; f.toS8U8 = b; f.fromS8U8 = function(b) { @@ -947,10 +949,10 @@ var START_TIME = performance.now(); f.trailingZeros = function(b) { return f.ones((b & -b) - 1); }; - f.getFlags = function(b, n) { + f.getFlags = function(b, p) { var e = ""; - for (b = 0;b < n.length;b++) { - b & 1 << b && (e += n[b] + " "); + for (b = 0;b < p.length;b++) { + b & 1 << b && (e += p[b] + " "); } return 0 === e.length ? "" : e.trim(); }; @@ -970,13 +972,13 @@ var START_TIME = performance.now(); b++; return b; }; - f.roundToMultipleOfPowerOfTwo = function(b, n) { - var e = (1 << n) - 1; + f.roundToMultipleOfPowerOfTwo = function(b, p) { + var e = (1 << p) - 1; return b + e & ~e; }; - Math.imul || (Math.imul = function(b, n) { - var e = b & 65535, f = n & 65535; - return e * f + ((b >>> 16 & 65535) * f + e * (n >>> 16 & 65535) << 16 >>> 0) | 0; + Math.imul || (Math.imul = function(b, p) { + var e = b & 65535, f = p & 65535; + return e * f + ((b >>> 16 & 65535) * f + e * (p >>> 16 & 65535) << 16 >>> 0) | 0; }); Math.clz32 || (Math.clz32 = function(b) { b |= b >> 1; @@ -987,31 +989,31 @@ var START_TIME = performance.now(); }); })(q = d.IntegerUtilities || (d.IntegerUtilities = {})); (function(f) { - function b(b, f, n, g, m, c) { - return(n - b) * (c - f) - (g - f) * (m - b); + function b(b, f, p, h, m, c) { + return (p - b) * (c - f) - (h - f) * (m - b); } - f.pointInPolygon = function(b, f, n) { - for (var g = 0, m = n.length - 2, c = 0;c < m;c += 2) { - var h = n[c + 0], q = n[c + 1], l = n[c + 2], s = n[c + 3]; - (q <= f && s > f || q > f && s <= f) && b < h + (f - q) / (s - q) * (l - h) && g++; + f.pointInPolygon = function(b, f, p) { + for (var h = 0, m = p.length - 2, c = 0;c < m;c += 2) { + var g = p[c + 0], q = p[c + 1], l = p[c + 2], r = p[c + 3]; + (q <= f && r > f || q > f && r <= f) && b < g + (f - q) / (r - q) * (l - g) && h++; } - return 1 === (g & 1); + return 1 === (h & 1); }; f.signedArea = b; - f.counterClockwise = function(e, f, n, g, m, c) { - return 0 < b(e, f, n, g, m, c); + f.counterClockwise = function(e, f, p, h, m, c) { + return 0 < b(e, f, p, h, m, c); }; - f.clockwise = function(e, f, n, g, m, c) { - return 0 > b(e, f, n, g, m, c); + f.clockwise = function(e, f, p, h, m, c) { + return 0 > b(e, f, p, h, m, c); }; - f.pointInPolygonInt32 = function(b, f, n) { + f.pointInPolygonInt32 = function(b, f, p) { b |= 0; f |= 0; - for (var g = 0, m = n.length - 2, c = 0;c < m;c += 2) { - var h = n[c + 0], q = n[c + 1], l = n[c + 2], s = n[c + 3]; - (q <= f && s > f || q > f && s <= f) && b < h + (f - q) / (s - q) * (l - h) && g++; + for (var h = 0, m = p.length - 2, c = 0;c < m;c += 2) { + var g = p[c + 0], q = p[c + 1], l = p[c + 2], r = p[c + 3]; + (q <= f && r > f || q > f && r <= f) && b < g + (f - q) / (r - q) * (l - g) && h++; } - return 1 === (g & 1); + return 1 === (h & 1); }; })(d.GeometricUtilities || (d.GeometricUtilities = {})); (function(f) { @@ -1103,8 +1105,8 @@ var START_TIME = performance.now(); this.colorLns(f.RED, b); }; f.prototype.colorLns = function(b, e) { - for (var f = e.split("\n"), n = 0;n < f.length;n++) { - this.colorLn(b, f[n]); + for (var f = e.split("\n"), p = 0;p < f.length;p++) { + this.colorLn(b, f[p]); } }; f.prototype.enter = function(b) { @@ -1129,11 +1131,11 @@ var START_TIME = performance.now(); void 0 === e && (e = !1); void 0 === f && (f = !1); e = e || !1; - for (var n = 0, g = b.length;n < g;n++) { + for (var p = 0, h = b.length;p < h;p++) { var m = ""; - e && (m = null === b[n] ? "null" : void 0 === b[n] ? "undefined" : b[n].constructor.name, m += " "); - var c = f ? "" : ("" + n).padRight(" ", 4); - this.writeLn(c + m + b[n]); + e && (m = null === b[p] ? "null" : void 0 === b[p] ? "undefined" : b[p].constructor.name, m += " "); + var c = f ? "" : ("" + p).padRight(" ", 4); + this.writeLn(c + m + b[p]); } }; f.PURPLE = "\u001b[94m"; @@ -1148,7 +1150,7 @@ var START_TIME = performance.now(); return f; }(); d.IndentingWriter = u; - var s = function() { + var r = function() { return function(f, b) { this.value = f; this.next = b; @@ -1163,9 +1165,9 @@ var START_TIME = performance.now(); this._length++; if (this._head) { var e = this._head, f = null; - b = new s(b, null); - for (var n = this._compare;e;) { - if (0 < n(e.value, b.value)) { + b = new r(b, null); + for (var p = this._compare;e;) { + if (0 < p(e.value, b.value)) { f ? (b.next = e, f.next = b) : (b.next = this._head, this._head = b); return; } @@ -1174,21 +1176,21 @@ var START_TIME = performance.now(); } f.next = b; } else { - this._head = new s(b, null); + this._head = new r(b, null); } }; f.prototype.forEach = function(b) { - for (var e = this._head, g = null;e;) { - var n = b(e.value); - if (n === f.RETURN) { + for (var e = this._head, t = null;e;) { + var p = b(e.value); + if (p === f.RETURN) { break; } else { - n === f.DELETE ? e = g ? g.next = e.next : this._head = this._head.next : (g = e, e = e.next); + p === f.DELETE ? e = t ? t.next = e.next : this._head = this._head.next : (t = e, e = e.next); } } }; f.prototype.isEmpty = function() { - return!this._head; + return !this._head; }; f.prototype.pop = function() { if (this._head) { @@ -1201,11 +1203,11 @@ var START_TIME = performance.now(); f.prototype.contains = function(b) { for (var e = this._head;e;) { if (e.value === b) { - return!0; + return !0; } e = e.next; } - return!1; + return !1; }; f.prototype.toString = function() { for (var b = "[", e = this._head;e;) { @@ -1242,7 +1244,7 @@ var START_TIME = performance.now(); this.index === this.start && (this.start = this.start + 1 & this._mask); }; f.prototype.isFull = function() { - return(this.index + 1 & this._mask) === this.start; + return (this.index + 1 & this._mask) === this.start; }; f.prototype.isEmpty = function() { return this.index === this.start; @@ -1257,278 +1259,278 @@ var START_TIME = performance.now(); function b(b) { return b + (f.BITS_PER_WORD - 1) >> f.ADDRESS_BITS_PER_WORD << f.ADDRESS_BITS_PER_WORD; } - function e(b, n) { + function e(b, p) { b = b || "1"; - n = n || "0"; + p = p || "0"; for (var e = "", f = 0;f < length;f++) { - e += this.get(f) ? b : n; + e += this.get(f) ? b : p; } return e; } - function g(b) { - for (var n = [], e = 0;e < length;e++) { - this.get(e) && n.push(b ? b[e] : e); + function t(b) { + for (var p = [], e = 0;e < length;e++) { + this.get(e) && p.push(b ? b[e] : e); } - return n.join(", "); + return p.join(", "); } f.ADDRESS_BITS_PER_WORD = 5; f.BITS_PER_WORD = 1 << f.ADDRESS_BITS_PER_WORD; f.BIT_INDEX_MASK = f.BITS_PER_WORD - 1; - var n = function() { - function n(e) { + var p = function() { + function p(e) { this.size = b(e); this.dirty = this.count = 0; this.length = e; this.bits = new Uint32Array(this.size >> f.ADDRESS_BITS_PER_WORD); } - n.prototype.recount = function() { + p.prototype.recount = function() { if (this.dirty) { - for (var b = this.bits, n = 0, e = 0, f = b.length;e < f;e++) { - var g = b[e], g = g - (g >> 1 & 1431655765), g = (g & 858993459) + (g >> 2 & 858993459), n = n + (16843009 * (g + (g >> 4) & 252645135) >> 24) + for (var b = this.bits, p = 0, e = 0, f = b.length;e < f;e++) { + var t = b[e], t = t - (t >> 1 & 1431655765), t = (t & 858993459) + (t >> 2 & 858993459), p = p + (16843009 * (t + (t >> 4) & 252645135) >> 24) } - this.count = n; + this.count = p; this.dirty = 0; } }; - n.prototype.set = function(b) { - var n = b >> f.ADDRESS_BITS_PER_WORD, e = this.bits[n]; + p.prototype.set = function(b) { + var p = b >> f.ADDRESS_BITS_PER_WORD, e = this.bits[p]; b = e | 1 << (b & f.BIT_INDEX_MASK); - this.bits[n] = b; + this.bits[p] = b; this.dirty |= e ^ b; }; - n.prototype.setAll = function() { - for (var b = this.bits, n = 0, e = b.length;n < e;n++) { - b[n] = 4294967295; + p.prototype.setAll = function() { + for (var b = this.bits, p = 0, e = b.length;p < e;p++) { + b[p] = 4294967295; } this.count = this.size; this.dirty = 0; }; - n.prototype.assign = function(b) { + p.prototype.assign = function(b) { this.count = b.count; this.dirty = b.dirty; this.size = b.size; - for (var n = 0, e = this.bits.length;n < e;n++) { - this.bits[n] = b.bits[n]; + for (var p = 0, e = this.bits.length;p < e;p++) { + this.bits[p] = b.bits[p]; } }; - n.prototype.clear = function(b) { - var n = b >> f.ADDRESS_BITS_PER_WORD, e = this.bits[n]; + p.prototype.clear = function(b) { + var p = b >> f.ADDRESS_BITS_PER_WORD, e = this.bits[p]; b = e & ~(1 << (b & f.BIT_INDEX_MASK)); - this.bits[n] = b; + this.bits[p] = b; this.dirty |= e ^ b; }; - n.prototype.get = function(b) { + p.prototype.get = function(b) { return 0 !== (this.bits[b >> f.ADDRESS_BITS_PER_WORD] & 1 << (b & f.BIT_INDEX_MASK)); }; - n.prototype.clearAll = function() { - for (var b = this.bits, n = 0, e = b.length;n < e;n++) { - b[n] = 0; + p.prototype.clearAll = function() { + for (var b = this.bits, p = 0, e = b.length;p < e;p++) { + b[p] = 0; } this.dirty = this.count = 0; }; - n.prototype._union = function(b) { - var n = this.dirty, e = this.bits; + p.prototype._union = function(b) { + var p = this.dirty, e = this.bits; b = b.bits; - for (var f = 0, g = e.length;f < g;f++) { - var r = e[f], m = r | b[f]; + for (var f = 0, t = e.length;f < t;f++) { + var h = e[f], m = h | b[f]; e[f] = m; - n |= r ^ m; + p |= h ^ m; } - this.dirty = n; + this.dirty = p; }; - n.prototype.intersect = function(b) { - var n = this.dirty, e = this.bits; + p.prototype.intersect = function(b) { + var p = this.dirty, e = this.bits; b = b.bits; - for (var f = 0, g = e.length;f < g;f++) { - var r = e[f], m = r & b[f]; + for (var f = 0, t = e.length;f < t;f++) { + var h = e[f], m = h & b[f]; e[f] = m; - n |= r ^ m; + p |= h ^ m; } - this.dirty = n; + this.dirty = p; }; - n.prototype.subtract = function(b) { - var n = this.dirty, e = this.bits; + p.prototype.subtract = function(b) { + var p = this.dirty, e = this.bits; b = b.bits; - for (var f = 0, g = e.length;f < g;f++) { - var r = e[f], m = r & ~b[f]; + for (var f = 0, t = e.length;f < t;f++) { + var h = e[f], m = h & ~b[f]; e[f] = m; - n |= r ^ m; + p |= h ^ m; } - this.dirty = n; + this.dirty = p; }; - n.prototype.negate = function() { - for (var b = this.dirty, n = this.bits, e = 0, f = n.length;e < f;e++) { - var g = n[e], r = ~g; - n[e] = r; - b |= g ^ r; + p.prototype.negate = function() { + for (var b = this.dirty, p = this.bits, e = 0, f = p.length;e < f;e++) { + var t = p[e], h = ~t; + p[e] = h; + b |= t ^ h; } this.dirty = b; }; - n.prototype.forEach = function(b) { - for (var n = this.bits, e = 0, g = n.length;e < g;e++) { - var r = n[e]; - if (r) { + p.prototype.forEach = function(b) { + for (var p = this.bits, e = 0, t = p.length;e < t;e++) { + var h = p[e]; + if (h) { for (var m = 0;m < f.BITS_PER_WORD;m++) { - r & 1 << m && b(e * f.BITS_PER_WORD + m); + h & 1 << m && b(e * f.BITS_PER_WORD + m); } } } }; - n.prototype.toArray = function() { - for (var b = [], n = this.bits, e = 0, g = n.length;e < g;e++) { - var r = n[e]; - if (r) { + p.prototype.toArray = function() { + for (var b = [], p = this.bits, e = 0, t = p.length;e < t;e++) { + var h = p[e]; + if (h) { for (var m = 0;m < f.BITS_PER_WORD;m++) { - r & 1 << m && b.push(e * f.BITS_PER_WORD + m); + h & 1 << m && b.push(e * f.BITS_PER_WORD + m); } } } return b; }; - n.prototype.equals = function(b) { + p.prototype.equals = function(b) { if (this.size !== b.size) { - return!1; + return !1; } - var n = this.bits; + var p = this.bits; b = b.bits; - for (var e = 0, f = n.length;e < f;e++) { - if (n[e] !== b[e]) { - return!1; + for (var e = 0, f = p.length;e < f;e++) { + if (p[e] !== b[e]) { + return !1; } } - return!0; + return !0; }; - n.prototype.contains = function(b) { + p.prototype.contains = function(b) { if (this.size !== b.size) { - return!1; + return !1; } - var n = this.bits; + var p = this.bits; b = b.bits; - for (var e = 0, f = n.length;e < f;e++) { - if ((n[e] | b[e]) !== n[e]) { - return!1; + for (var e = 0, f = p.length;e < f;e++) { + if ((p[e] | b[e]) !== p[e]) { + return !1; } } - return!0; + return !0; }; - n.prototype.isEmpty = function() { + p.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; - n.prototype.clone = function() { - var b = new n(this.length); + p.prototype.clone = function() { + var b = new p(this.length); b._union(this); return b; }; - return n; + return p; }(); - f.Uint32ArrayBitSet = n; - var m = function() { - function n(e) { + f.Uint32ArrayBitSet = p; + var h = function() { + function p(e) { this.dirty = this.count = 0; this.size = b(e); this.bits = 0; this.singleWord = !0; this.length = e; } - n.prototype.recount = function() { + p.prototype.recount = function() { if (this.dirty) { var b = this.bits, b = b - (b >> 1 & 1431655765), b = (b & 858993459) + (b >> 2 & 858993459); this.count = 0 + (16843009 * (b + (b >> 4) & 252645135) >> 24); this.dirty = 0; } }; - n.prototype.set = function(b) { - var n = this.bits; - this.bits = b = n | 1 << (b & f.BIT_INDEX_MASK); - this.dirty |= n ^ b; + p.prototype.set = function(b) { + var p = this.bits; + this.bits = b = p | 1 << (b & f.BIT_INDEX_MASK); + this.dirty |= p ^ b; }; - n.prototype.setAll = function() { + p.prototype.setAll = function() { this.bits = 4294967295; this.count = this.size; this.dirty = 0; }; - n.prototype.assign = function(b) { + p.prototype.assign = function(b) { this.count = b.count; this.dirty = b.dirty; this.size = b.size; this.bits = b.bits; }; - n.prototype.clear = function(b) { - var n = this.bits; - this.bits = b = n & ~(1 << (b & f.BIT_INDEX_MASK)); - this.dirty |= n ^ b; + p.prototype.clear = function(b) { + var p = this.bits; + this.bits = b = p & ~(1 << (b & f.BIT_INDEX_MASK)); + this.dirty |= p ^ b; }; - n.prototype.get = function(b) { + p.prototype.get = function(b) { return 0 !== (this.bits & 1 << (b & f.BIT_INDEX_MASK)); }; - n.prototype.clearAll = function() { + p.prototype.clearAll = function() { this.dirty = this.count = this.bits = 0; }; - n.prototype._union = function(b) { - var n = this.bits; - this.bits = b = n | b.bits; - this.dirty = n ^ b; + p.prototype._union = function(b) { + var p = this.bits; + this.bits = b = p | b.bits; + this.dirty = p ^ b; }; - n.prototype.intersect = function(b) { - var n = this.bits; - this.bits = b = n & b.bits; - this.dirty = n ^ b; + p.prototype.intersect = function(b) { + var p = this.bits; + this.bits = b = p & b.bits; + this.dirty = p ^ b; }; - n.prototype.subtract = function(b) { - var n = this.bits; - this.bits = b = n & ~b.bits; - this.dirty = n ^ b; + p.prototype.subtract = function(b) { + var p = this.bits; + this.bits = b = p & ~b.bits; + this.dirty = p ^ b; }; - n.prototype.negate = function() { - var b = this.bits, n = ~b; - this.bits = n; - this.dirty = b ^ n; + p.prototype.negate = function() { + var b = this.bits, p = ~b; + this.bits = p; + this.dirty = b ^ p; }; - n.prototype.forEach = function(b) { - var n = this.bits; - if (n) { + p.prototype.forEach = function(b) { + var p = this.bits; + if (p) { for (var e = 0;e < f.BITS_PER_WORD;e++) { - n & 1 << e && b(e); + p & 1 << e && b(e); } } }; - n.prototype.toArray = function() { - var b = [], n = this.bits; - if (n) { + p.prototype.toArray = function() { + var b = [], p = this.bits; + if (p) { for (var e = 0;e < f.BITS_PER_WORD;e++) { - n & 1 << e && b.push(e); + p & 1 << e && b.push(e); } } return b; }; - n.prototype.equals = function(b) { + p.prototype.equals = function(b) { return this.bits === b.bits; }; - n.prototype.contains = function(b) { - var n = this.bits; - return(n | b.bits) === n; + p.prototype.contains = function(b) { + var p = this.bits; + return (p | b.bits) === p; }; - n.prototype.isEmpty = function() { + p.prototype.isEmpty = function() { this.recount(); return 0 === this.count; }; - n.prototype.clone = function() { - var b = new n(this.length); + p.prototype.clone = function() { + var b = new p(this.length); b._union(this); return b; }; - return n; + return p; }(); - f.Uint32BitSet = m; - m.prototype.toString = g; - m.prototype.toBitString = e; - n.prototype.toString = g; - n.prototype.toBitString = e; + f.Uint32BitSet = h; + h.prototype.toString = t; + h.prototype.toBitString = e; + p.prototype.toString = t; + p.prototype.toBitString = e; f.BitSetFunctor = function(e) { - var g = 1 === b(e) >> f.ADDRESS_BITS_PER_WORD ? m : n; + var t = 1 === b(e) >> f.ADDRESS_BITS_PER_WORD ? h : p; return function() { - return new g(e); + return new t(e); }; }; })(d.BitSets || (d.BitSets = {})); @@ -1540,7 +1542,7 @@ var START_TIME = performance.now(); return f._randomStyleCache[f._nextStyle++ % f._randomStyleCache.length]; }; f.gradientColor = function(b) { - return f._gradient[f._gradient.length * h.clamp(b, 0, 1) | 0]; + return f._gradient[f._gradient.length * g.clamp(b, 0, 1) | 0]; }; f.contrastStyle = function(b) { b = parseInt(b.substr(1), 16); @@ -1574,11 +1576,11 @@ var START_TIME = performance.now(); }(); d.ColorStyle = u; u = function() { - function f(b, e, f, n) { + function f(b, e, f, p) { this.xMin = b | 0; this.yMin = e | 0; this.xMax = f | 0; - this.yMax = n | 0; + this.yMax = p | 0; } f.FromUntyped = function(b) { return new f(b.xMin, b.yMin, b.xMax, b.yMax); @@ -1586,11 +1588,11 @@ var START_TIME = performance.now(); f.FromRectangle = function(b) { return new f(20 * b.x | 0, 20 * b.y | 0, 20 * (b.x + b.width) | 0, 20 * (b.y + b.height) | 0); }; - f.prototype.setElements = function(b, e, f, n) { + f.prototype.setElements = function(b, e, f, p) { this.xMin = b; this.yMin = e; this.xMax = f; - this.yMax = n; + this.yMax = p; }; f.prototype.copyFrom = function(b) { this.setElements(b.xMin, b.yMin, b.xMax, b.yMax); @@ -1649,15 +1651,15 @@ var START_TIME = performance.now(); }(); d.Bounds = u; u = function() { - function f(b, e, f, n) { - t.assert(k(b)); - t.assert(k(e)); - t.assert(k(f)); - t.assert(k(n)); + function f(b, e, f, p) { + v.assert(k(b)); + v.assert(k(e)); + v.assert(k(f)); + v.assert(k(p)); this._xMin = b | 0; this._yMin = e | 0; this._xMax = f | 0; - this._yMax = n | 0; + this._yMax = p | 0; } f.FromUntyped = function(b) { return new f(b.xMin, b.yMin, b.xMax, b.yMax); @@ -1665,11 +1667,11 @@ var START_TIME = performance.now(); f.FromRectangle = function(b) { return new f(20 * b.x | 0, 20 * b.y | 0, 20 * (b.x + b.width) | 0, 20 * (b.y + b.height) | 0); }; - f.prototype.setElements = function(b, e, f, n) { + f.prototype.setElements = function(b, e, f, p) { this.xMin = b; this.yMin = e; this.xMax = f; - this.yMax = n; + this.yMax = p; }; f.prototype.copyFrom = function(b) { this.setElements(b.xMin, b.yMin, b.xMax, b.yMax); @@ -1699,19 +1701,19 @@ var START_TIME = performance.now(); Object.defineProperty(f.prototype, "xMin", {get:function() { return this._xMin; }, set:function(b) { - t.assert(k(b)); + v.assert(k(b)); this._xMin = b; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "yMin", {get:function() { return this._yMin; }, set:function(b) { - t.assert(k(b)); + v.assert(k(b)); this._yMin = b | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "xMax", {get:function() { return this._xMax; }, set:function(b) { - t.assert(k(b)); + v.assert(k(b)); this._xMax = b | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "width", {get:function() { @@ -1720,7 +1722,7 @@ var START_TIME = performance.now(); Object.defineProperty(f.prototype, "yMax", {get:function() { return this._yMax; }, set:function(b) { - t.assert(k(b)); + v.assert(k(b)); this._yMax = b | 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "height", {get:function() { @@ -1747,11 +1749,11 @@ var START_TIME = performance.now(); }(); d.DebugBounds = u; u = function() { - function f(b, e, f, n) { + function f(b, e, f, p) { this.r = b; this.g = e; this.b = f; - this.a = n; + this.a = p; } f.FromARGB = function(b) { return new f((b >> 16 & 255) / 255, (b >> 8 & 255) / 255, (b >> 0 & 255) / 255, (b >> 24 & 255) / 255); @@ -1783,15 +1785,15 @@ var START_TIME = performance.now(); var e = document.createElement("span"); document.body.appendChild(e); e.style.backgroundColor = b; - var g = getComputedStyle(e).backgroundColor; + var t = getComputedStyle(e).backgroundColor; document.body.removeChild(e); - (e = /^rgb\((\d+), (\d+), (\d+)\)$/.exec(g)) || (e = /^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(g)); - g = new f(0, 0, 0, 0); - g.r = parseFloat(e[1]) / 255; - g.g = parseFloat(e[2]) / 255; - g.b = parseFloat(e[3]) / 255; - g.a = e[4] ? parseFloat(e[4]) / 255 : 1; - return f.colorCache[b] = g; + (e = /^rgb\((\d+), (\d+), (\d+)\)$/.exec(t)) || (e = /^rgba\((\d+), (\d+), (\d+), ([\d.]+)\)$/.exec(t)); + t = new f(0, 0, 0, 0); + t.r = parseFloat(e[1]) / 255; + t.g = parseFloat(e[2]) / 255; + t.b = parseFloat(e[3]) / 255; + t.a = e[4] ? parseFloat(e[4]) / 255 : 1; + return f.colorCache[b] = t; }; f.Red = new f(1, 0, 0, 1); f.Green = new f(0, 1, 0, 1); @@ -1806,11 +1808,11 @@ var START_TIME = performance.now(); var m; (function(f) { function b(b) { - var e, f, g = b >> 24 & 255; - f = (Math.imul(b >> 16 & 255, g) + 127) / 255 | 0; - e = (Math.imul(b >> 8 & 255, g) + 127) / 255 | 0; - b = (Math.imul(b >> 0 & 255, g) + 127) / 255 | 0; - return g << 24 | f << 16 | e << 8 | b; + var e, f, t = b >> 24 & 255; + f = (Math.imul(b >> 16 & 255, t) + 127) / 255 | 0; + e = (Math.imul(b >> 8 & 255, t) + 127) / 255 | 0; + b = (Math.imul(b >> 0 & 255, t) + 127) / 255 | 0; + return t << 24 | f << 16 | e << 8 | b; } f.RGBAToARGB = function(b) { return b >> 8 & 16777215 | (b & 255) << 24; @@ -1840,17 +1842,17 @@ var START_TIME = performance.now(); return "#" + ("000000" + (b >>> 0).toString(16)).slice(-6); }; f.isValidHexColor = function(b) { - return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(b); + return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(b); }; f.clampByte = function(b) { return Math.max(0, Math.min(255, b)); }; f.unpremultiplyARGB = function(b) { - var e, f, g = b >> 24 & 255; - f = Math.imul(255, b >> 16 & 255) / g & 255; - e = Math.imul(255, b >> 8 & 255) / g & 255; - b = Math.imul(255, b >> 0 & 255) / g & 255; - return g << 24 | f << 16 | e << 8 | b; + var e, f, t = b >> 24 & 255; + f = Math.imul(255, b >> 16 & 255) / t & 255; + e = Math.imul(255, b >> 8 & 255) / t & 255; + b = Math.imul(255, b >> 0 & 255) / t & 255; + return t << 24 | f << 16 | e << 8 | b; }; f.premultiplyARGB = b; var e; @@ -1873,57 +1875,57 @@ var START_TIME = performance.now(); if (255 === f) { return b; } - var g, r, m = f << 8, c = e; - r = c[m + (b >> 16 & 255)]; - g = c[m + (b >> 8 & 255)]; + var t, h, m = f << 8, c = e; + h = c[m + (b >> 16 & 255)]; + t = c[m + (b >> 8 & 255)]; b = c[m + (b >> 0 & 255)]; - return f << 24 | r << 16 | g << 8 | b; + return f << 24 | h << 16 | t << 8 | b; }; f.blendPremultipliedBGRA = function(b, e) { - var f, g; - g = 256 - (e & 255); - f = Math.imul(b & 16711935, g) >> 8; - g = Math.imul(b >> 8 & 16711935, g) >> 8; - return((e >> 8 & 16711935) + g & 16711935) << 8 | (e & 16711935) + f & 16711935; + var f, t; + t = 256 - (e & 255); + f = Math.imul(b & 16711935, t) >> 8; + t = Math.imul(b >> 8 & 16711935, t) >> 8; + return ((e >> 8 & 16711935) + t & 16711935) << 8 | (e & 16711935) + f & 16711935; }; - var r = q.swap32; - f.convertImage = function(n, f, m, c) { - var h = m.length; - if (n === f) { + var t = q.swap32; + f.convertImage = function(p, f, m, c) { + var g = m.length; + if (p === f) { if (m !== c) { - for (n = 0;n < h;n++) { - c[n] = m[n]; + for (p = 0;p < g;p++) { + c[p] = m[p]; } } } else { - if (1 === n && 3 === f) { - for (d.ColorUtilities.ensureUnpremultiplyTable(), n = 0;n < h;n++) { - var q = m[n]; + if (1 === p && 3 === f) { + for (d.ColorUtilities.ensureUnpremultiplyTable(), p = 0;p < g;p++) { + var q = m[p]; f = q & 255; if (0 === f) { - c[n] = 0; + c[p] = 0; } else { if (255 === f) { - c[n] = 4278190080 | q >> 8 & 16777215; + c[p] = 4278190080 | q >> 8 & 16777215; } else { - var l = q >> 24 & 255, s = q >> 16 & 255, q = q >> 8 & 255, a = f << 8, p = e, q = p[a + q], s = p[a + s], l = p[a + l]; - c[n] = f << 24 | l << 16 | s << 8 | q; + var l = q >> 24 & 255, r = q >> 16 & 255, q = q >> 8 & 255, a = f << 8, n = e, q = n[a + q], r = n[a + r], l = n[a + l]; + c[p] = f << 24 | l << 16 | r << 8 | q; } } } } else { - if (2 === n && 3 === f) { - for (n = 0;n < h;n++) { - c[n] = r(m[n]); + if (2 === p && 3 === f) { + for (p = 0;p < g;p++) { + c[p] = t(m[p]); } } else { - if (3 === n && 1 === f) { - for (n = 0;n < h;n++) { - f = m[n], c[n] = r(b(f & 4278255360 | f >> 16 & 255 | (f & 255) << 16)); + if (3 === p && 1 === f) { + for (p = 0;p < g;p++) { + f = m[p], c[p] = t(b(f & 4278255360 | f >> 16 & 255 | (f & 255) << 16)); } } else { - for (t.somewhatImplemented("Image Format Conversion: " + g[n] + " -> " + g[f]), n = 0;n < h;n++) { - c[n] = m[n]; + for (v.somewhatImplemented("Image Format Conversion: " + h[p] + " -> " + h[f]), p = 0;p < g;p++) { + c[p] = m[p]; } } } @@ -1939,10 +1941,10 @@ var START_TIME = performance.now(); } f.prototype.acquire = function(b) { if (f._enabled) { - for (var e = this._list, g = 0;g < e.length;g++) { - var n = e[g]; - if (n.byteLength >= b) { - return e.splice(g, 1), n; + for (var e = this._list, t = 0;t < e.length;t++) { + var p = e[t]; + if (p.byteLength >= b) { + return e.splice(t, 1), p; } } } @@ -2006,11 +2008,11 @@ var START_TIME = performance.now(); })(d.SystemResourcesLoadingService || (d.SystemResourcesLoadingService = {})); d.registerCSSFont = function(f, b, e) { if (inBrowser) { - var g = document.head; - g.insertBefore(document.createElement("style"), g.firstChild); - g = document.styleSheets[0]; + var t = document.head; + t.insertBefore(document.createElement("style"), t.firstChild); + t = document.styleSheets[0]; b = "@font-face{font-family:swffont" + f + ";src:url(data:font/opentype;base64," + d.StringUtilities.base64ArrayBuffer(b) + ")}"; - g.insertRule(b, g.cssRules.length); + t.insertRule(b, t.cssRules.length); e && (e = document.createElement("div"), e.style.fontFamily = "swffont" + f, e.innerHTML = "hello", document.body.appendChild(e), document.body.removeChild(e)); } }; @@ -2026,7 +2028,7 @@ var START_TIME = performance.now(); })(d.ExternalInterfaceService || (d.ExternalInterfaceService = {})); (function(f) { f.instance = {setClipboard:function(b) { - t.notImplemented("setClipboard"); + v.notImplemented("setClipboard"); }}; })(d.ClipboardService || (d.ClipboardService = {})); u = function() { @@ -2034,8 +2036,8 @@ var START_TIME = performance.now(); this._queues = {}; } f.prototype.register = function(b, e) { - t.assert(b); - t.assert(e); + v.assert(b); + v.assert(e); var f = this._queues[b]; if (f) { if (-1 < f.indexOf(e)) { @@ -2047,12 +2049,12 @@ var START_TIME = performance.now(); f.push(e); }; f.prototype.unregister = function(b, e) { - t.assert(b); - t.assert(e); + v.assert(b); + v.assert(e); var f = this._queues[b]; if (f) { - var n = f.indexOf(e); - -1 !== n && f.splice(n, 1); + var p = f.indexOf(e); + -1 !== p && f.splice(p, 1); 0 === f.length && (this._queues[b] = null); } }; @@ -2061,16 +2063,16 @@ var START_TIME = performance.now(); if (f) { f = f.slice(); e = Array.prototype.slice.call(arguments, 0); - for (var n = 0;n < f.length;n++) { - f[n].apply(null, e); + for (var p = 0;p < f.length;p++) { + f[p].apply(null, e); } } }; f.prototype.notify1 = function(b, e) { var f = this._queues[b]; if (f) { - for (var f = f.slice(), n = 0;n < f.length;n++) { - (0,f[n])(b, e); + for (var f = f.slice(), p = 0;p < f.length;p++) { + (0,f[p])(b, e); } } }; @@ -2086,7 +2088,7 @@ var START_TIME = performance.now(); f[f.PNG = 5] = "PNG"; f[f.GIF = 6] = "GIF"; })(d.ImageType || (d.ImageType = {})); - var g = d.ImageType; + var h = d.ImageType; d.getMIMETypeForImageType = function(f) { switch(f) { case 4: @@ -2134,139 +2136,141 @@ var START_TIME = performance.now(); if ("function" !== typeof b) { throw new TypeError("Invalid deferred constructor"); } - var e = m(); - b = new b(e); - var f = e.resolve; - if ("function" !== typeof f) { + var p = r(); + b = new b(p); + var e = p.resolve; + if ("function" !== typeof e) { throw new TypeError("Invalid resolve construction function"); } - e = e.reject; - if ("function" !== typeof e) { + p = p.reject; + if ("function" !== typeof p) { throw new TypeError("Invalid reject construction function"); } - return{promise:b, resolve:f, reject:e}; + return {promise:b, resolve:e, reject:p}; } - function k(b, e) { + function k(b, p) { if ("object" !== typeof b || null === b) { - return!1; + return !1; } try { - var f = b.then; - if ("function" !== typeof f) { - return!1; + var e = b.then; + if ("function" !== typeof e) { + return !1; } - f.call(b, e.resolve, e.reject); - } catch (g) { - f = e.reject, f(g); + e.call(b, p.resolve, p.reject); + } catch (f) { + e = p.reject, e(f); } - return!0; + return !0; } function a(b) { return "object" === typeof b && null !== b && "undefined" !== typeof b.promiseStatus; } - function p(b, e) { + function n(b, p) { if ("unresolved" === b.promiseStatus) { - var f = b.rejectReactions; - b.result = e; + var e = b.rejectReactions; + b.result = p; b.resolveReactions = void 0; b.rejectReactions = void 0; b.promiseStatus = "has-rejection"; - v(f, e); + w(e, p); } } - function v(b, e) { - for (var f = 0;f < b.length;f++) { - t({reaction:b[f], argument:e}); + function w(b, p) { + for (var e = 0;e < b.length;e++) { + v({reaction:b[e], argument:p}); } } - function t(b) { - 0 === r.length && setTimeout(l, 0); - r.push(b); + function v(b) { + 0 === e.length && setTimeout(u, 0); + e.push(b); } - function u(b, e) { - var f = b.deferred, g = b.handler, r, m; - try { - r = g(e); - } catch (c) { - return f = f.reject, f(c); - } - if (r === f.promise) { - return f = f.reject, f(new TypeError("Self resolution")); - } - try { - if (m = k(r, f), !m) { - var h = f.resolve; - return h(r); - } - } catch (q) { - return f = f.reject, f(q); - } - } - function l() { - for (;0 < r.length;) { - var e = r[0]; + function u() { + for (;0 < e.length;) { + var b = e[0]; try { - u(e.reaction, e.argument); - } catch (f) { - if ("function" === typeof b.onerror) { - b.onerror(f); + a: { + var p = b.reaction, h = p.deferred, m = p.handler, c = void 0, g = void 0; + try { + c = m(b.argument); + } catch (q) { + var l = h.reject; + l(q); + break a; + } + if (c === h.promise) { + l = h.reject, l(new TypeError("Self resolution")); + } else { + try { + if (g = k(c, h), !g) { + var r = h.resolve; + r(c); + } + } catch (a) { + l = h.reject, l(a); + } + } + } + } catch (n) { + if ("function" === typeof f.onerror) { + f.onerror(n); } } - r.shift(); + e.shift(); } } - function c(b) { + function l(b) { throw b; } - function h(b) { + function c(b) { return b; } - function q(b) { - return function(e) { - p(b, e); + function g(b) { + return function(p) { + n(b, p); }; } - function s(b) { - return function(e) { + function q(b) { + return function(p) { if ("unresolved" === b.promiseStatus) { - var f = b.resolveReactions; - b.result = e; + var e = b.resolveReactions; + b.result = p; b.resolveReactions = void 0; b.rejectReactions = void 0; b.promiseStatus = "has-resolution"; - v(f, e); + w(e, p); } }; } - function m() { - function b(e, f) { - b.resolve = e; - b.reject = f; + function r() { + function b(p, e) { + b.resolve = p; + b.reject = e; } return b; } - function g(b, e, f) { - return function(g) { - if (g === b) { - return f(new TypeError("Self resolution")); + function m(b, p, e) { + return function(f) { + if (f === b) { + return e(new TypeError("Self resolution")); } - var r = b.promiseConstructor; - if (a(g) && g.promiseConstructor === r) { - return g.then(e, f); + var h = b.promiseConstructor; + if (a(f) && f.promiseConstructor === h) { + return f.then(p, e); } - r = d(r); - return k(g, r) ? r.promise.then(e, f) : e(g); + h = d(h); + return k(f, h) ? h.promise.then(p, e) : p(f); }; } - function f(b, e, f, g) { - return function(r) { - e[b] = r; - g.countdown--; - 0 === g.countdown && f.resolve(e); + function h(b, p, e, f) { + return function(h) { + p[b] = h; + f.countdown--; + 0 === f.countdown && e.resolve(p); }; } - function b(e) { - if ("function" !== typeof e) { + function f(b) { + if ("function" !== typeof b) { throw new TypeError("resolver is not a function"); } if ("object" !== typeof this) { @@ -2276,138 +2280,138 @@ var START_TIME = performance.now(); this.resolveReactions = []; this.rejectReactions = []; this.result = void 0; - var f = s(this), g = q(this); + var p = q(this), e = g(this); try { - e(f, g); - } catch (r) { - p(this, r); + b(p, e); + } catch (h) { + n(this, h); } - this.promiseConstructor = b; + this.promiseConstructor = f; return this; } - var e = Function("return this")(); - if (e.Promise) { - "function" !== typeof e.Promise.all && (e.Promise.all = function(b) { - var f = 0, g = [], r, m, c = new e.Promise(function(b, e) { - r = b; - m = e; + var b = Function("return this")(); + if (b.Promise) { + "function" !== typeof b.Promise.all && (b.Promise.all = function(e) { + var p = 0, f = [], h, m, c = new b.Promise(function(b, p) { + h = b; + m = p; }); - b.forEach(function(b, e) { - f++; + e.forEach(function(b, e) { + p++; b.then(function(b) { - g[e] = b; - f--; - 0 === f && r(g); + f[e] = b; + p--; + 0 === p && h(f); }, m); }); - 0 === f && r(g); + 0 === p && h(f); return c; - }), "function" !== typeof e.Promise.resolve && (e.Promise.resolve = function(b) { - return new e.Promise(function(e) { - e(b); + }), "function" !== typeof b.Promise.resolve && (b.Promise.resolve = function(e) { + return new b.Promise(function(b) { + b(e); }); }); } else { - var r = []; - b.all = function(b) { - var e = d(this), g = [], r = {countdown:0}, m = 0; + var e = []; + f.all = function(b) { + var p = d(this), e = [], f = {countdown:0}, m = 0; b.forEach(function(b) { - this.cast(b).then(f(m, g, e, r), e.reject); + this.cast(b).then(h(m, e, p, f), p.reject); m++; - r.countdown++; + f.countdown++; }, this); - 0 === m && e.resolve(g); - return e.promise; + 0 === m && p.resolve(e); + return p.promise; }; - b.cast = function(b) { + f.cast = function(b) { if (a(b)) { return b; } - var e = d(this); - e.resolve(b); - return e.promise; + var p = d(this); + p.resolve(b); + return p.promise; }; - b.reject = function(b) { - var e = d(this); - e.reject(b); - return e.promise; + f.reject = function(b) { + var p = d(this); + p.reject(b); + return p.promise; }; - b.resolve = function(b) { - var e = d(this); - e.resolve(b); - return e.promise; + f.resolve = function(b) { + var p = d(this); + p.resolve(b); + return p.promise; }; - b.prototype = {"catch":function(b) { + f.prototype = {"catch":function(b) { this.then(void 0, b); - }, then:function(b, e) { + }, then:function(b, p) { if (!a(this)) { throw new TypeError("this is not a Promises"); } - var f = d(this.promiseConstructor), r = "function" === typeof e ? e : c, m = {deferred:f, handler:g(this, "function" === typeof b ? b : h, r)}, r = {deferred:f, handler:r}; + var e = d(this.promiseConstructor), f = "function" === typeof p ? p : l, h = {deferred:e, handler:m(this, "function" === typeof b ? b : c, f)}, f = {deferred:e, handler:f}; switch(this.promiseStatus) { case "unresolved": - this.resolveReactions.push(m); - this.rejectReactions.push(r); + this.resolveReactions.push(h); + this.rejectReactions.push(f); break; case "has-resolution": - t({reaction:m, argument:this.result}); + v({reaction:h, argument:this.result}); break; case "has-rejection": - t({reaction:r, argument:this.result}); + v({reaction:f, argument:this.result}); } - return f.promise; + return e.promise; }}; - e.Promise = b; + b.Promise = f; } })(); "undefined" !== typeof exports && (exports.Shumway = Shumway); (function() { - function d(d, a, p) { - d[a] || Object.defineProperty(d, a, {value:p, writable:!0, configurable:!0, enumerable:!1}); + function d(d, a, n) { + d[a] || Object.defineProperty(d, a, {value:n, writable:!0, configurable:!0, enumerable:!1}); } d(String.prototype, "padRight", function(d, a) { - var p = this, v = p.replace(/\033\[[0-9]*m/g, "").length; - if (!d || v >= a) { - return p; + var n = this, w = n.replace(/\033\[[0-9]*m/g, "").length; + if (!d || w >= a) { + return n; } - for (var v = (a - v) / d.length, t = 0;t < v;t++) { - p += d; + for (var w = (a - w) / d.length, v = 0;v < w;v++) { + n += d; } - return p; + return n; }); d(String.prototype, "padLeft", function(d, a) { - var p = this, v = p.length; - if (!d || v >= a) { - return p; + var n = this, w = n.length; + if (!d || w >= a) { + return n; } - for (var v = (a - v) / d.length, t = 0;t < v;t++) { - p = d + p; + for (var w = (a - w) / d.length, v = 0;v < w;v++) { + n = d + n; } - return p; + return n; }); d(String.prototype, "trim", function() { return this.replace(/^\s+|\s+$/g, ""); }); d(String.prototype, "endsWith", function(d) { - return-1 !== this.indexOf(d, this.length - d.length); + return -1 !== this.indexOf(d, this.length - d.length); }); d(Array.prototype, "replace", function(d, a) { if (d === a) { return 0; } - for (var p = 0, v = 0;v < this.length;v++) { - this[v] === d && (this[v] = a, p++); + for (var n = 0, w = 0;w < this.length;w++) { + this[w] === d && (this[w] = a, n++); } - return p; + return n; }); })(); (function(d) { (function(k) { - var a = d.isObject, p = function() { - function a(l, c, h, q) { + var a = d.isObject, n = function() { + function a(l, c, g, q) { this.shortName = l; this.longName = c; - this.type = h; + this.type = g; q = q || {}; this.positional = q.positional; this.parseFn = q.parse; @@ -2419,25 +2423,25 @@ var START_TIME = performance.now(); }; return a; }(); - k.Argument = p; - var v = function() { + k.Argument = n; + var w = function() { function a() { this.args = []; } - a.prototype.addArgument = function(l, c, h, q) { - l = new p(l, c, h, q); + a.prototype.addArgument = function(l, c, g, q) { + l = new n(l, c, g, q); this.args.push(l); return l; }; a.prototype.addBoundOption = function(l) { - this.args.push(new p(l.shortName, l.longName, l.type, {parse:function(c) { + this.args.push(new n(l.shortName, l.longName, l.type, {parse:function(c) { l.value = c; }})); }; a.prototype.addBoundOptionSet = function(l) { var c = this; - l.options.forEach(function(h) { - h instanceof t ? c.addBoundOptionSet(h) : c.addBoundOption(h); + l.options.forEach(function(g) { + g instanceof v ? c.addBoundOptionSet(g) : c.addBoundOption(g); }); }; a.prototype.getUsage = function() { @@ -2449,53 +2453,53 @@ var START_TIME = performance.now(); return l; }; a.prototype.parse = function(l) { - var c = {}, h = []; + var c = {}, g = []; this.args.forEach(function(f) { - f.positional ? h.push(f) : (c["-" + f.shortName] = f, c["--" + f.longName] = f); + f.positional ? g.push(f) : (c["-" + f.shortName] = f, c["--" + f.longName] = f); }); for (var q = [];l.length;) { - var s = l.shift(), m = null, g = s; - if ("--" == s) { + var r = l.shift(), m = null, h = r; + if ("--" == r) { q = q.concat(l); break; } else { - if ("-" == s.slice(0, 1) || "--" == s.slice(0, 2)) { - m = c[s]; + if ("-" == r.slice(0, 1) || "--" == r.slice(0, 2)) { + m = c[r]; if (!m) { continue; } - g = "boolean" !== m.type ? l.shift() : !0; + h = "boolean" !== m.type ? l.shift() : !0; } else { - h.length ? m = h.shift() : q.push(g); + g.length ? m = g.shift() : q.push(h); } } - m && m.parse(g); + m && m.parse(h); } return q; }; return a; }(); - k.ArgumentParser = v; - var t = function() { - function p(l, c) { + k.ArgumentParser = w; + var v = function() { + function n(l, c) { void 0 === c && (c = null); this.open = !1; this.name = l; this.settings = c || {}; this.options = []; } - p.prototype.register = function(l) { - if (l instanceof p) { + n.prototype.register = function(l) { + if (l instanceof n) { for (var c = 0;c < this.options.length;c++) { - var h = this.options[c]; - if (h instanceof p && h.name === l.name) { - return h; + var g = this.options[c]; + if (g instanceof n && g.name === l.name) { + return g; } } } this.options.push(l); if (this.settings) { - if (l instanceof p) { + if (l instanceof n) { c = this.settings[l.name], a(c) && (l.settings = c.settings, l.open = c.open); } else { if ("undefined" !== typeof this.settings[l.longName]) { @@ -2514,36 +2518,36 @@ var START_TIME = performance.now(); } return l; }; - p.prototype.trace = function(l) { + n.prototype.trace = function(l) { l.enter(this.name + " {"); this.options.forEach(function(c) { c.trace(l); }); l.leave("}"); }; - p.prototype.getSettings = function() { + n.prototype.getSettings = function() { var l = {}; this.options.forEach(function(c) { - c instanceof p ? l[c.name] = {settings:c.getSettings(), open:c.open} : l[c.longName] = c.value; + c instanceof n ? l[c.name] = {settings:c.getSettings(), open:c.open} : l[c.longName] = c.value; }); return l; }; - p.prototype.setSettings = function(l) { + n.prototype.setSettings = function(l) { l && this.options.forEach(function(c) { - c instanceof p ? c.name in l && c.setSettings(l[c.name].settings) : c.longName in l && (c.value = l[c.longName]); + c instanceof n ? c.name in l && c.setSettings(l[c.name].settings) : c.longName in l && (c.value = l[c.longName]); }); }; - return p; + return n; }(); - k.OptionSet = t; - v = function() { - function a(l, c, h, q, s, m) { + k.OptionSet = v; + w = function() { + function a(l, c, g, q, r, m) { void 0 === m && (m = null); this.longName = c; this.shortName = l; - this.type = h; + this.type = g; this.value = this.defaultValue = q; - this.description = s; + this.description = r; this.config = m; } a.prototype.parse = function(l) { @@ -2554,7 +2558,7 @@ var START_TIME = performance.now(); }; return a; }(); - k.Option = v; + k.Option = w; })(d.Options || (d.Options = {})); })(Shumway || (Shumway = {})); (function(d) { @@ -2572,15 +2576,15 @@ var START_TIME = performance.now(); (function(d) { (function(k) { var a = function() { - function a(p, t) { - this._parent = p; + function a(n, v) { + this._parent = n; this._timers = d.ObjectUtilities.createMap(); - this._name = t; + this._name = v; this._count = this._total = this._last = this._begin = 0; } - a.time = function(d, t) { + a.time = function(d, v) { a.start(d); - t(); + v(); a.stop(); }; a.start = function(d) { @@ -2608,12 +2612,12 @@ var START_TIME = performance.now(); this._count += 1; }; a.prototype.toJSON = function() { - return{name:this._name, total:this._total, timers:this._timers}; + return {name:this._name, total:this._total, timers:this._timers}; }; a.prototype.trace = function(a) { a.enter(this._name + ": " + this._total.toFixed(2) + " ms, count: " + this._count + ", average: " + (this._total / this._count).toFixed(2) + " ms"); - for (var p in this._timers) { - this._timers[p].trace(a); + for (var n in this._timers) { + this._timers[n].trace(a); } a.outdent(); }; @@ -2629,8 +2633,8 @@ var START_TIME = performance.now(); }(); k.Timer = a; a = function() { - function a(p) { - this._enabled = p; + function a(n) { + this._enabled = n; this.clear(); } Object.defineProperty(a.prototype, "counts", {get:function() { @@ -2644,48 +2648,48 @@ var START_TIME = performance.now(); this._times = d.ObjectUtilities.createMap(); }; a.prototype.toJSON = function() { - return{counts:this._counts, times:this._times}; + return {counts:this._counts, times:this._times}; }; - a.prototype.count = function(a, p, u) { - void 0 === p && (p = 1); + a.prototype.count = function(a, n, u) { + void 0 === n && (n = 1); void 0 === u && (u = 0); if (this._enabled) { - return void 0 === this._counts[a] && (this._counts[a] = 0, this._times[a] = 0), this._counts[a] += p, this._times[a] += u, this._counts[a]; + return void 0 === this._counts[a] && (this._counts[a] = 0, this._times[a] = 0), this._counts[a] += n, this._times[a] += u, this._counts[a]; } }; a.prototype.trace = function(a) { - for (var p in this._counts) { - a.writeLn(p + ": " + this._counts[p]); + for (var n in this._counts) { + a.writeLn(n + ": " + this._counts[n]); } }; - a.prototype._pairToString = function(a, p) { - var u = p[0], l = p[1], c = a[u], u = u + ": " + l; + a.prototype._pairToString = function(a, n) { + var u = n[0], l = n[1], c = a[u], u = u + ": " + l; c && (u += ", " + c.toFixed(4), 1 < l && (u += " (" + (c / l).toFixed(4) + ")")); return u; }; a.prototype.toStringSorted = function() { - var a = this, p = this._times, u = [], l; + var a = this, n = this._times, u = [], l; for (l in this._counts) { u.push([l, this._counts[l]]); } - u.sort(function(c, h) { - return h[1] - c[1]; + u.sort(function(c, g) { + return g[1] - c[1]; }); return u.map(function(c) { - return a._pairToString(p, c); + return a._pairToString(n, c); }).join(", "); }; a.prototype.traceSorted = function(a) { - var p = !0; - void 0 === p && (p = !1); - var u = this, l = this._times, c = [], h; - for (h in this._counts) { - c.push([h, this._counts[h]]); + var n = !0; + void 0 === n && (n = !1); + var u = this, l = this._times, c = [], g; + for (g in this._counts) { + c.push([g, this._counts[g]]); } - c.sort(function(c, h) { - return h[1] - c[1]; + c.sort(function(c, g) { + return g[1] - c[1]; }); - p ? a.writeLn(c.map(function(c) { + n ? a.writeLn(c.map(function(c) { return u._pairToString(l, c); }).join(", ")) : c.forEach(function(c) { a.writeLn(u._pairToString(l, c)); @@ -2696,8 +2700,8 @@ var START_TIME = performance.now(); }(); k.Counter = a; a = function() { - function a(p) { - this._samples = new Float64Array(p); + function a(n) { + this._samples = new Float64Array(n); this._index = this._count = 0; } a.prototype.push = function(a) { @@ -2706,8 +2710,8 @@ var START_TIME = performance.now(); this._samples[this._index % this._samples.length] = a; }; a.prototype.average = function() { - for (var a = 0, p = 0;p < this._count;p++) { - a += this._samples[p]; + for (var a = 0, n = 0;n < this._count;n++) { + a += this._samples[n]; } return a / this._count; }; @@ -2720,8 +2724,8 @@ var __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -2729,25 +2733,25 @@ var __extends = this.__extends || function(d, k) { (function(d) { (function(d) { function a(b) { - for (var f = Math.max.apply(null, b), n = b.length, g = 1 << f, m = new Uint32Array(g), c = f << 16 | 65535, h = 0;h < g;h++) { - m[h] = c; + for (var f = Math.max.apply(null, b), p = b.length, h = 1 << f, m = new Uint32Array(h), c = f << 16 | 65535, g = 0;g < h;g++) { + m[g] = c; } - for (var c = 0, h = 1, q = 2;h <= f;c <<= 1, ++h, q <<= 1) { - for (var l = 0;l < n;++l) { - if (b[l] === h) { - for (var s = 0, a = 0;a < h;++a) { - s = 2 * s + (c >> a & 1); + for (var c = 0, g = 1, q = 2;g <= f;c <<= 1, ++g, q <<= 1) { + for (var l = 0;l < p;++l) { + if (b[l] === g) { + for (var r = 0, a = 0;a < g;++a) { + r = 2 * r + (c >> a & 1); } - for (a = s;a < g;a += q) { - m[a] = h << 16 | l; + for (a = r;a < h;a += q) { + m[a] = g << 16 | l; } ++c; } } } - return{codes:m, maxBits:f}; + return {codes:m, maxBits:f}; } - var p; + var n; (function(b) { b[b.INIT = 0] = "INIT"; b[b.BLOCK_0 = 1] = "BLOCK_0"; @@ -2757,8 +2761,8 @@ var __extends = this.__extends || function(d, k) { b[b.DONE = 5] = "DONE"; b[b.ERROR = 6] = "ERROR"; b[b.VERIFY_HEADER = 7] = "VERIFY_HEADER"; - })(p || (p = {})); - p = function() { + })(n || (n = {})); + n = function() { function b(e) { } b.prototype.push = function(b) { @@ -2766,76 +2770,76 @@ var __extends = this.__extends || function(d, k) { b.prototype.close = function() { }; b.create = function(b) { - return "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialInflate ? new g(b, ShumwayCom.createSpecialInflate) : new v(b); + return "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialInflate ? new h(b, ShumwayCom.createSpecialInflate) : new w(b); }; - b.prototype._processZLibHeader = function(b, e, f) { - if (e + 2 > f) { + b.prototype._processZLibHeader = function(b, p, e) { + if (p + 2 > e) { return 0; } - b = b[e] << 8 | b[e + 1]; - e = null; - 2048 !== (b & 3840) ? e = "inflate: unknown compression method" : 0 !== b % 31 ? e = "inflate: bad FCHECK" : 0 !== (b & 32) && (e = "inflate: FDICT bit set"); - if (e) { + b = b[p] << 8 | b[p + 1]; + p = null; + 2048 !== (b & 3840) ? p = "inflate: unknown compression method" : 0 !== b % 31 ? p = "inflate: bad FCHECK" : 0 !== (b & 32) && (p = "inflate: FDICT bit set"); + if (p) { if (this.onError) { - this.onError(e); + this.onError(p); } - return-1; + return -1; } return 2; }; - b.inflate = function(f, n, g) { - var m = new Uint8Array(n), c = 0; - n = b.create(g); - n.onData = function(b) { - var e = Math.min(b.length, m.length - c); - e && d.memCopy(m, b, c, 0, e); - c += e; + b.inflate = function(f, p, h) { + var m = new Uint8Array(p), c = 0; + p = b.create(h); + p.onData = function(b) { + var p = Math.min(b.length, m.length - c); + p && d.memCopy(m, b, c, 0, p); + c += p; }; - n.onError = function(b) { + p.onError = function(b) { throw Error(b); }; - n.push(f); - n.close(); + p.push(f); + p.close(); return m; }; return b; }(); - d.Inflate = p; - var v = function(b) { - function f(n) { - b.call(this, n); + d.Inflate = n; + var w = function(b) { + function f(p) { + b.call(this, p); this._buffer = null; this._bitLength = this._bitBuffer = this._bufferPosition = this._bufferSize = 0; this._window = new Uint8Array(65794); this._windowPosition = 0; - this._state = n ? 7 : 0; + this._state = p ? 7 : 0; this._isFinalBlock = !1; this._distanceTable = this._literalTable = null; this._block0Read = 0; this._block2State = null; this._copyState = {state:0, len:0, lenBits:0, dist:0, distBits:0}; if (!m) { - t = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); + v = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); u = new Uint16Array(30); l = new Uint8Array(30); - for (var g = n = 0, r = 1;30 > n;++n) { - u[n] = r, r += 1 << (l[n] = ~~((g += 2 < n ? 1 : 0) / 2)); + for (var h = p = 0, t = 1;30 > p;++p) { + u[p] = t, t += 1 << (l[p] = ~~((h += 2 < p ? 1 : 0) / 2)); } - var p = new Uint8Array(288); - for (n = 0;32 > n;++n) { - p[n] = 5; + var n = new Uint8Array(288); + for (p = 0;32 > p;++p) { + n[p] = 5; } - c = a(p.subarray(0, 32)); - h = new Uint16Array(29); + c = a(n.subarray(0, 32)); + g = new Uint16Array(29); q = new Uint8Array(29); - g = n = 0; - for (r = 3;29 > n;++n) { - h[n] = r - (28 == n ? 1 : 0), r += 1 << (q[n] = ~~((g += 4 < n ? 1 : 0) / 4 % 6)); + h = p = 0; + for (t = 3;29 > p;++p) { + g[p] = t - (28 == p ? 1 : 0), t += 1 << (q[p] = ~~((h += 4 < p ? 1 : 0) / 4 % 6)); } - for (n = 0;288 > n;++n) { - p[n] = 144 > n || 279 < n ? 8 : 256 > n ? 9 : 7; + for (p = 0;288 > p;++p) { + n[p] = 144 > p || 279 < p ? 8 : 256 > p ? 9 : 7; } - s = a(p); + r = a(n); m = !0; } } @@ -2889,47 +2893,47 @@ var __extends = this.__extends || function(d, k) { if (this._isFinalBlock) { return this._state = 5, !1; } - var b = this._buffer, e = this._bufferSize, f = this._bitBuffer, g = this._bitLength, r = this._bufferPosition; - if (3 > (e - r << 3) + g) { - return!0; + var b = this._buffer, e = this._bufferSize, f = this._bitBuffer, h = this._bitLength, t = this._bufferPosition; + if (3 > (e - t << 3) + h) { + return !0; } - 3 > g && (f |= b[r++] << g, g += 8); - var m = f & 7, f = f >> 3, g = g - 3; + 3 > h && (f |= b[t++] << h, h += 8); + var m = f & 7, f = f >> 3, h = h - 3; switch(m >> 1) { case 0: - g = f = 0; - if (4 > e - r) { - return!0; + h = f = 0; + if (4 > e - t) { + return !0; } - var h = b[r] | b[r + 1] << 8, b = b[r + 2] | b[r + 3] << 8, r = r + 4; - if (65535 !== (h ^ b)) { + var g = b[t] | b[t + 1] << 8, b = b[t + 2] | b[t + 3] << 8, t = t + 4; + if (65535 !== (g ^ b)) { this._error("inflate: invalid block 0 length"); b = 6; break; } - 0 === h ? b = 0 : (this._block0Read = h, b = 1); + 0 === g ? b = 0 : (this._block0Read = g, b = 1); break; case 1: b = 2; - this._literalTable = s; + this._literalTable = r; this._distanceTable = c; break; case 2: - if (26 > (e - r << 3) + g) { - return!0; + if (26 > (e - t << 3) + h) { + return !0; } - for (;14 > g;) { - f |= b[r++] << g, g += 8; + for (;14 > h;) { + f |= b[t++] << h, h += 8; } - h = (f >> 10 & 15) + 4; - if ((e - r << 3) + g < 14 + 3 * h) { - return!0; + g = (f >> 10 & 15) + 4; + if ((e - t << 3) + h < 14 + 3 * g) { + return !0; } - for (var e = {numLiteralCodes:(f & 31) + 257, numDistanceCodes:(f >> 5 & 31) + 1, codeLengthTable:void 0, bitLengths:void 0, codesRead:0, dupBits:0}, f = f >> 14, g = g - 14, q = new Uint8Array(19), l = 0;l < h;++l) { - 3 > g && (f |= b[r++] << g, g += 8), q[t[l]] = f & 7, f >>= 3, g -= 3; + for (var e = {numLiteralCodes:(f & 31) + 257, numDistanceCodes:(f >> 5 & 31) + 1, codeLengthTable:void 0, bitLengths:void 0, codesRead:0, dupBits:0}, f = f >> 14, h = h - 14, q = new Uint8Array(19), l = 0;l < g;++l) { + 3 > h && (f |= b[t++] << h, h += 8), q[v[l]] = f & 7, f >>= 3, h -= 3; } for (;19 > l;l++) { - q[t[l]] = 0; + q[v[l]] = 0; } e.bitLengths = new Uint8Array(e.numLiteralCodes + e.numDistanceCodes); e.codeLengthTable = a(q); @@ -2941,10 +2945,10 @@ var __extends = this.__extends || function(d, k) { } this._isFinalBlock = !!(m & 1); this._state = b; - this._bufferPosition = r; + this._bufferPosition = t; this._bitBuffer = f; - this._bitLength = g; - return!1; + this._bitLength = h; + return !1; }; f.prototype._error = function(b) { if (this.onError) { @@ -2952,135 +2956,135 @@ var __extends = this.__extends || function(d, k) { } }; f.prototype._decodeBlock0 = function() { - var b = this._bufferPosition, e = this._windowPosition, f = this._block0Read, g = 65794 - e, r = this._bufferSize - b, m = r < f, c = Math.min(g, r, f); + var b = this._bufferPosition, e = this._windowPosition, f = this._block0Read, h = 65794 - e, t = this._bufferSize - b, m = t < f, c = Math.min(h, t, f); this._window.set(this._buffer.subarray(b, b + c), e); this._windowPosition = e + c; this._bufferPosition = b + c; this._block0Read = f - c; - return f === c ? (this._state = 0, !1) : m && g < r; + return f === c ? (this._state = 0, !1) : m && h < t; }; f.prototype._readBits = function(b) { var e = this._bitBuffer, f = this._bitLength; if (b > f) { - var g = this._bufferPosition, r = this._bufferSize; + var h = this._bufferPosition, t = this._bufferSize; do { - if (g >= r) { - return this._bufferPosition = g, this._bitBuffer = e, this._bitLength = f, -1; + if (h >= t) { + return this._bufferPosition = h, this._bitBuffer = e, this._bitLength = f, -1; } - e |= this._buffer[g++] << f; + e |= this._buffer[h++] << f; f += 8; } while (b > f); - this._bufferPosition = g; + this._bufferPosition = h; } this._bitBuffer = e >> b; this._bitLength = f - b; return e & (1 << b) - 1; }; f.prototype._readCode = function(b) { - var e = this._bitBuffer, f = this._bitLength, g = b.maxBits; - if (g > f) { - var r = this._bufferPosition, m = this._bufferSize; + var e = this._bitBuffer, f = this._bitLength, h = b.maxBits; + if (h > f) { + var t = this._bufferPosition, m = this._bufferSize; do { - if (r >= m) { - return this._bufferPosition = r, this._bitBuffer = e, this._bitLength = f, -1; + if (t >= m) { + return this._bufferPosition = t, this._bitBuffer = e, this._bitLength = f, -1; } - e |= this._buffer[r++] << f; + e |= this._buffer[t++] << f; f += 8; - } while (g > f); - this._bufferPosition = r; + } while (h > f); + this._bufferPosition = t; } - b = b.codes[e & (1 << g) - 1]; - g = b >> 16; + b = b.codes[e & (1 << h) - 1]; + h = b >> 16; if (b & 32768) { return this._error("inflate: invalid encoding"), this._state = 6, -1; } - this._bitBuffer = e >> g; - this._bitLength = f - g; + this._bitBuffer = e >> h; + this._bitLength = f - h; return b & 65535; }; f.prototype._decodeBlock2Pre = function() { - var b = this._block2State, e = b.numLiteralCodes + b.numDistanceCodes, f = b.bitLengths, g = b.codesRead, r = 0 < g ? f[g - 1] : 0, m = b.codeLengthTable, c; + var b = this._block2State, e = b.numLiteralCodes + b.numDistanceCodes, f = b.bitLengths, h = b.codesRead, t = 0 < h ? f[h - 1] : 0, m = b.codeLengthTable, c; if (0 < b.dupBits) { c = this._readBits(b.dupBits); if (0 > c) { - return!0; + return !0; } for (;c--;) { - f[g++] = r; + f[h++] = t; } b.dupBits = 0; } - for (;g < e;) { - var h = this._readCode(m); - if (0 > h) { - return b.codesRead = g, !0; + for (;h < e;) { + var g = this._readCode(m); + if (0 > g) { + return b.codesRead = h, !0; } - if (16 > h) { - f[g++] = r = h; + if (16 > g) { + f[h++] = t = g; } else { var q; - switch(h) { + switch(g) { case 16: q = 2; c = 3; - h = r; + g = t; break; case 17: c = q = 3; - h = 0; + g = 0; break; case 18: - q = 7, c = 11, h = 0; + q = 7, c = 11, g = 0; } for (;c--;) { - f[g++] = h; + f[h++] = g; } c = this._readBits(q); if (0 > c) { - return b.codesRead = g, b.dupBits = q, !0; + return b.codesRead = h, b.dupBits = q, !0; } for (;c--;) { - f[g++] = h; + f[h++] = g; } - r = h; + t = g; } } this._literalTable = a(f.subarray(0, b.numLiteralCodes)); this._distanceTable = a(f.subarray(b.numLiteralCodes)); this._state = 4; this._block2State = null; - return!1; + return !1; }; f.prototype._decodeBlock = function() { - var b = this._literalTable, e = this._distanceTable, f = this._window, g = this._windowPosition, r = this._copyState, m, c, s, a; - if (0 !== r.state) { - switch(r.state) { + var b = this._literalTable, e = this._distanceTable, f = this._window, h = this._windowPosition, t = this._copyState, m, c, r, a; + if (0 !== t.state) { + switch(t.state) { case 1: - if (0 > (m = this._readBits(r.lenBits))) { - return!0; + if (0 > (m = this._readBits(t.lenBits))) { + return !0; } - r.len += m; - r.state = 2; + t.len += m; + t.state = 2; case 2: if (0 > (m = this._readCode(e))) { - return!0; + return !0; } - r.distBits = l[m]; - r.dist = u[m]; - r.state = 3; + t.distBits = l[m]; + t.dist = u[m]; + t.state = 3; case 3: m = 0; - if (0 < r.distBits && 0 > (m = this._readBits(r.distBits))) { - return!0; + if (0 < t.distBits && 0 > (m = this._readBits(t.distBits))) { + return !0; } - a = r.dist + m; - c = r.len; - for (m = g - a;c--;) { - f[g++] = f[m++]; + a = t.dist + m; + c = t.len; + for (m = h - a;c--;) { + f[h++] = f[m++]; } - r.state = 0; - if (65536 <= g) { - return this._windowPosition = g, !1; + t.state = 0; + if (65536 <= h) { + return this._windowPosition = h, !1; } break; } @@ -3088,50 +3092,50 @@ var __extends = this.__extends || function(d, k) { do { m = this._readCode(b); if (0 > m) { - return this._windowPosition = g, !0; + return this._windowPosition = h, !0; } if (256 > m) { - f[g++] = m; + f[h++] = m; } else { if (256 < m) { - this._windowPosition = g; + this._windowPosition = h; m -= 257; - s = q[m]; - c = h[m]; - m = 0 === s ? 0 : this._readBits(s); + r = q[m]; + c = g[m]; + m = 0 === r ? 0 : this._readBits(r); if (0 > m) { - return r.state = 1, r.len = c, r.lenBits = s, !0; + return t.state = 1, t.len = c, t.lenBits = r, !0; } c += m; m = this._readCode(e); if (0 > m) { - return r.state = 2, r.len = c, !0; + return t.state = 2, t.len = c, !0; } - s = l[m]; + r = l[m]; a = u[m]; - m = 0 === s ? 0 : this._readBits(s); + m = 0 === r ? 0 : this._readBits(r); if (0 > m) { - return r.state = 3, r.len = c, r.dist = a, r.distBits = s, !0; + return t.state = 3, t.len = c, t.dist = a, t.distBits = r, !0; } a += m; - for (m = g - a;c--;) { - f[g++] = f[m++]; + for (m = h - a;c--;) { + f[h++] = f[m++]; } } else { this._state = 0; break; } } - } while (65536 > g); - this._windowPosition = g; - return!1; + } while (65536 > h); + this._windowPosition = h; + return !1; }; return f; - }(p), t, u, l, c, h, q, s, m = !1, g = function(b) { - function f(n, g) { - b.call(this, n); - this._verifyHeader = n; - this._specialInflate = g(); + }(n), v, u, l, c, g, q, r, m = !1, h = function(b) { + function f(p, h) { + b.call(this, p); + this._verifyHeader = p; + this._specialInflate = h(); this._specialInflate.setDataCallback(function(b) { this.onData(b); }.bind(this)); @@ -3155,7 +3159,7 @@ var __extends = this.__extends || function(d, k) { this._specialInflate && (this._specialInflate.close(), this._specialInflate = null); }; return f; - }(p), f; + }(n), f; (function(b) { b[b.WRITE = 0] = "WRITE"; b[b.DONE = 1] = "DONE"; @@ -3167,10 +3171,10 @@ var __extends = this.__extends || function(d, k) { this.b = 0; } b.prototype.update = function(b, e, f) { - for (var g = this.a, m = this.b;e < f;++e) { - g = (g + (b[e] & 255)) % 65521, m = (m + g) % 65521; + for (var h = this.a, m = this.b;e < f;++e) { + h = (h + (b[e] & 255)) % 65521, m = (m + h) % 65521; } - this.a = g; + this.a = h; this.b = m; }; b.prototype.getChecksum = function() { @@ -3186,11 +3190,11 @@ var __extends = this.__extends || function(d, k) { } e.prototype.push = function(b) { 2 === this._state && (this.onData(new Uint8Array([120, 156])), this._state = 0); - for (var e = b.length, f = new Uint8Array(e + 5 * Math.ceil(e / 65535)), g = 0, m = 0;65535 < e;) { - f.set(new Uint8Array([0, 255, 255, 0, 0]), g), g += 5, f.set(b.subarray(m, m + 65535), g), m += 65535, g += 65535, e -= 65535; + for (var e = b.length, f = new Uint8Array(e + 5 * Math.ceil(e / 65535)), h = 0, m = 0;65535 < e;) { + f.set(new Uint8Array([0, 255, 255, 0, 0]), h), h += 5, f.set(b.subarray(m, m + 65535), h), m += 65535, h += 65535, e -= 65535; } - f.set(new Uint8Array([0, e & 255, e >> 8 & 255, ~e & 255, ~e >> 8 & 255]), g); - f.set(b.subarray(m, e), g + 5); + f.set(new Uint8Array([0, e & 255, e >> 8 & 255, ~e & 255, ~e >> 8 & 255]), h); + f.set(b.subarray(m, e), h + 5); this.onData(f); this._adler32 && this._adler32.update(b, 0, e); }; @@ -3215,21 +3219,21 @@ var __extends = this.__extends || function(d, k) { } return e; } - function p(b, e, f, g) { - for (var m = 1, c = 0, h = 0;h < f;h++) { - var q = g.decodeBit(b, m + e), m = (m << 1) + q, c = c | q << h + function n(b, e, f, h) { + for (var m = 1, c = 0, g = 0;g < f;g++) { + var q = h.decodeBit(b, m + e), m = (m << 1) + q, c = c | q << g } return c; } - function v(b, e) { + function w(b, e) { var f = []; f.length = e; - for (var g = 0;g < e;g++) { - f[g] = new h(b); + for (var h = 0;h < e;h++) { + f[h] = new g(b); } return f; } - var t = function() { + var v = function() { function b() { this.pos = this.available = 0; this.buffer = new Uint8Array(2E3); @@ -3237,10 +3241,10 @@ var __extends = this.__extends || function(d, k) { b.prototype.append = function(b) { var e = this.pos + this.available, f = e + b.length; if (f > this.buffer.length) { - for (var g = 2 * this.buffer.length;g < f;) { - g *= 2; + for (var h = 2 * this.buffer.length;h < f;) { + h *= 2; } - f = new Uint8Array(g); + f = new Uint8Array(h); f.set(this.buffer); this.buffer = f; } @@ -3295,14 +3299,14 @@ var __extends = this.__extends || function(d, k) { this.writePos < this.pos && (this.outStream.writeBytes(this.buf.subarray(this.writePos, this.pos)), this.writePos = this.pos === this.size ? 0 : this.pos); }; b.prototype.copyMatch = function(b, e) { - for (var f = this.pos, g = this.size, m = this.buf, r = b <= f ? f - b : g - b + f, c = e;0 < c;) { - for (var h = Math.min(Math.min(c, g - f), g - r), q = 0;q < h;q++) { - var l = m[r++]; + for (var f = this.pos, h = this.size, m = this.buf, t = b <= f ? f - b : h - b + f, c = e;0 < c;) { + for (var g = Math.min(Math.min(c, h - f), h - t), q = 0;q < g;q++) { + var l = m[t++]; m[f++] = l; } - f === g && (this.pos = f, this.flush(), f = 0, this.isFull = !0); - r === g && (r = 0); - c -= h; + f === h && (this.pos = f, this.flush(), f = 0, this.isFull = !0); + t === h && (t = 0); + c -= g; } this.pos = f; this.totalPos += e; @@ -3333,28 +3337,28 @@ var __extends = this.__extends || function(d, k) { return 0 === this.code; }; b.prototype.decodeDirectBits = function(b) { - var e = 0, f = this.range, g = this.code; + var e = 0, f = this.range, h = this.code; do { - var f = f >>> 1 | 0, g = g - f | 0, m = g >> 31, g = g + (f & m) | 0; - g === f && (this.corrupted = !0); - 0 <= f && 16777216 > f && (f <<= 8, g = g << 8 | this.inStream.readByte()); + var f = f >>> 1 | 0, h = h - f | 0, m = h >> 31, h = h + (f & m) | 0; + h === f && (this.corrupted = !0); + 0 <= f && 16777216 > f && (f <<= 8, h = h << 8 | this.inStream.readByte()); e = (e << 1) + m + 1 | 0; } while (--b); this.range = f; - this.code = g; + this.code = h; return e; }; b.prototype.decodeBit = function(b, e) { - var f = this.range, g = this.code, m = b[e], r = (f >>> 11) * m; - g >>> 0 < r ? (m = m + (2048 - m >> 5) | 0, f = r | 0, r = 0) : (m = m - (m >> 5) | 0, g = g - r | 0, f = f - r | 0, r = 1); + var f = this.range, h = this.code, m = b[e], t = (f >>> 11) * m; + h >>> 0 < t ? (m = m + (2048 - m >> 5) | 0, f = t | 0, t = 0) : (m = m - (m >> 5) | 0, h = h - t | 0, f = f - t | 0, t = 1); b[e] = m & 65535; - 0 <= f && 16777216 > f && (f <<= 8, g = g << 8 | this.inStream.readByte()); + 0 <= f && 16777216 > f && (f <<= 8, h = h << 8 | this.inStream.readByte()); this.range = f; - this.code = g; - return r; + this.code = h; + return t; }; return b; - }(), h = function() { + }(), g = function() { function b(e) { this.numBits = e; this.probs = a(1 << e); @@ -3366,21 +3370,21 @@ var __extends = this.__extends || function(d, k) { return e - (1 << this.numBits); }; b.prototype.reverseDecode = function(b) { - return p(this.probs, 0, this.numBits, b); + return n(this.probs, 0, this.numBits, b); }; return b; }(), q = function() { function b() { this.choice = a(2); - this.lowCoder = v(3, 16); - this.midCoder = v(3, 16); - this.highCoder = new h(8); + this.lowCoder = w(3, 16); + this.midCoder = w(3, 16); + this.highCoder = new g(8); } b.prototype.decode = function(b, e) { return 0 === b.decodeBit(this.choice, 0) ? this.lowCoder[e].decode(b) : 0 === b.decodeBit(this.choice, 1) ? 8 + this.midCoder[e].decode(b) : 16 + this.highCoder.decode(b); }; return b; - }(), s = function() { + }(), r = function() { function e(b, f) { this.rangeDec = new c(b); this.outWindow = new l(f); @@ -3416,22 +3420,22 @@ var __extends = this.__extends || function(d, k) { this.leftToUnpack = this.unpackSize; }; e.prototype.decodeLiteral = function(b, e) { - var f = this.outWindow, g = this.rangeDec, m = 0; + var f = this.outWindow, h = this.rangeDec, m = 0; f.isEmpty() || (m = f.getByte(1)); - var r = 1, m = 768 * (((f.totalPos & (1 << this.lp) - 1) << this.lc) + (m >> 8 - this.lc)); + var t = 1, m = 768 * (((f.totalPos & (1 << this.lp) - 1) << this.lc) + (m >> 8 - this.lc)); if (7 <= b) { f = f.getByte(e + 1); do { - var c = f >> 7 & 1, f = f << 1, h = g.decodeBit(this.litProbs, m + ((1 + c << 8) + r)), r = r << 1 | h; - if (c !== h) { + var c = f >> 7 & 1, f = f << 1, g = h.decodeBit(this.litProbs, m + ((1 + c << 8) + t)), t = t << 1 | g; + if (c !== g) { break; } - } while (256 > r); + } while (256 > t); } - for (;256 > r;) { - r = r << 1 | g.decodeBit(this.litProbs, m + r); + for (;256 > t;) { + t = t << 1 | h.decodeBit(this.litProbs, m + t); } - return r - 256 & 255; + return t - 256 & 255; }; e.prototype.decodeDistance = function(b) { var e = b; @@ -3441,14 +3445,14 @@ var __extends = this.__extends || function(d, k) { if (4 > e) { return e; } - var f = (e >> 1) - 1, g = (2 | e & 1) << f; - 14 > e ? g = g + p(this.posDecoders, g - e, f, b) | 0 : (g = g + (b.decodeDirectBits(f - 4) << 4) | 0, g = g + this.alignDecoder.reverseDecode(b) | 0); - return g; + var f = (e >> 1) - 1, h = (2 | e & 1) << f; + 14 > e ? h = h + n(this.posDecoders, h - e, f, b) | 0 : (h = h + (b.decodeDirectBits(f - 4) << 4) | 0, h = h + this.alignDecoder.reverseDecode(b) | 0); + return h; }; e.prototype.init = function() { this.litProbs = a(768 << this.lc + this.lp); - this.posSlotDecoder = v(6, 4); - this.alignDecoder = new h(4); + this.posSlotDecoder = w(6, 4); + this.alignDecoder = new g(4); this.posDecoders = a(115); this.isMatch = a(192); this.isRep = a(12); @@ -3460,79 +3464,79 @@ var __extends = this.__extends || function(d, k) { this.repLenDecoder = new q; }; e.prototype.decode = function(e) { - for (var r = this.rangeDec, c = this.outWindow, h = this.pb, q = this.dictSize, l = this.markerIsMandatory, s = this.leftToUnpack, a = this.isMatch, p = this.isRep, u = this.isRepG0, d = this.isRepG1, t = this.isRepG2, k = this.isRep0Long, v = this.lenDecoder, G = this.repLenDecoder, J = this.reps[0], E = this.reps[1], Q = this.reps[2], S = this.reps[3], K = this.state;;) { - if (e && 48 > r.inStream.available) { + for (var t = this.rangeDec, c = this.outWindow, g = this.pb, q = this.dictSize, l = this.markerIsMandatory, r = this.leftToUnpack, a = this.isMatch, n = this.isRep, u = this.isRepG0, d = this.isRepG1, v = this.isRepG2, k = this.isRep0Long, w = this.lenDecoder, G = this.repLenDecoder, L = this.reps[0], F = this.reps[1], S = this.reps[2], U = this.reps[3], N = this.state;;) { + if (e && 48 > t.inStream.available) { this.outWindow.flush(); break; } - if (0 === s && !l && (this.outWindow.flush(), r.isFinishedOK())) { + if (0 === r && !l && (this.outWindow.flush(), t.isFinishedOK())) { return f; } - var P = c.totalPos & (1 << h) - 1; - if (0 === r.decodeBit(a, (K << 4) + P)) { - if (0 === s) { + var R = c.totalPos & (1 << g) - 1; + if (0 === t.decodeBit(a, (N << 4) + R)) { + if (0 === r) { return m; } - c.putByte(this.decodeLiteral(K, J)); - K = 4 > K ? 0 : 10 > K ? K - 3 : K - 6; - s--; + c.putByte(this.decodeLiteral(N, L)); + N = 4 > N ? 0 : 10 > N ? N - 3 : N - 6; + r--; } else { - if (0 !== r.decodeBit(p, K)) { - if (0 === s || c.isEmpty()) { + if (0 !== t.decodeBit(n, N)) { + if (0 === r || c.isEmpty()) { return m; } - if (0 === r.decodeBit(u, K)) { - if (0 === r.decodeBit(k, (K << 4) + P)) { - K = 7 > K ? 9 : 11; - c.putByte(c.getByte(J + 1)); - s--; + if (0 === t.decodeBit(u, N)) { + if (0 === t.decodeBit(k, (N << 4) + R)) { + N = 7 > N ? 9 : 11; + c.putByte(c.getByte(L + 1)); + r--; continue; } } else { - var R; - 0 === r.decodeBit(d, K) ? R = E : (0 === r.decodeBit(t, K) ? R = Q : (R = S, S = Q), Q = E); - E = J; - J = R; + var T; + 0 === t.decodeBit(d, N) ? T = F : (0 === t.decodeBit(v, N) ? T = S : (T = U, U = S), S = F); + F = L; + L = T; } - P = G.decode(r, P); - K = 7 > K ? 8 : 11; + R = G.decode(t, R); + N = 7 > N ? 8 : 11; } else { - S = Q; - Q = E; - E = J; - P = v.decode(r, P); - K = 7 > K ? 7 : 10; - J = this.decodeDistance(P); - if (-1 === J) { - return this.outWindow.flush(), r.isFinishedOK() ? g : m; + U = S; + S = F; + F = L; + R = w.decode(t, R); + N = 7 > N ? 7 : 10; + L = this.decodeDistance(R); + if (-1 === L) { + return this.outWindow.flush(), t.isFinishedOK() ? h : m; } - if (0 === s || J >= q || !c.checkDistance(J)) { + if (0 === r || L >= q || !c.checkDistance(L)) { return m; } } - P += 2; - R = !1; - void 0 !== s && s < P && (P = s, R = !0); - c.copyMatch(J + 1, P); - s -= P; - if (R) { + R += 2; + T = !1; + void 0 !== r && r < R && (R = r, T = !0); + c.copyMatch(L + 1, R); + r -= R; + if (T) { return m; } } } - this.state = K; - this.reps[0] = J; - this.reps[1] = E; - this.reps[2] = Q; - this.reps[3] = S; - this.leftToUnpack = s; + this.state = N; + this.reps[0] = L; + this.reps[1] = F; + this.reps[2] = S; + this.reps[3] = U; + this.leftToUnpack = r; return b; }; e.prototype.flushOutput = function() { this.outWindow.flush(); }; return e; - }(), m = 0, g = 1, f = 2, b = 3, e; + }(), m = 0, h = 1, f = 2, b = 3, e; (function(b) { b[b.WAIT_FOR_LZMA_HEADER = 0] = "WAIT_FOR_LZMA_HEADER"; b[b.WAIT_FOR_SWF_HEADER = 1] = "WAIT_FOR_SWF_HEADER"; @@ -3548,37 +3552,37 @@ var __extends = this.__extends || function(d, k) { } e.prototype.push = function(e) { if (2 > this._state) { - var f = this.buffer ? this.buffer.length : 0, g = (1 === this._state ? 17 : 13) + 5; - if (f + e.length < g) { - g = new Uint8Array(f + e.length); - 0 < f && g.set(this.buffer); - g.set(e, f); - this.buffer = g; + var f = this.buffer ? this.buffer.length : 0, h = (1 === this._state ? 17 : 13) + 5; + if (f + e.length < h) { + h = new Uint8Array(f + e.length); + 0 < f && h.set(this.buffer); + h.set(e, f); + this.buffer = h; return; } - var m = new Uint8Array(g); + var m = new Uint8Array(h); 0 < f && m.set(this.buffer); - m.set(e.subarray(0, g - f), f); - this._inStream = new t; - this._inStream.append(m.subarray(g - 5)); + m.set(e.subarray(0, h - f), f); + this._inStream = new v; + this._inStream.append(m.subarray(h - 5)); this._outStream = new u(function(b) { this.onData.call(null, b); }.bind(this)); - this._decoder = new s(this._inStream, this._outStream); + this._decoder = new r(this._inStream, this._outStream); if (1 === this._state) { this._decoder.decodeProperties(m.subarray(12, 17)), this._decoder.markerIsMandatory = !1, this._decoder.unpackSize = ((m[4] | m[5] << 8 | m[6] << 16 | m[7] << 24) >>> 0) - 8; } else { this._decoder.decodeProperties(m.subarray(0, 5)); - for (var f = 0, r = !1, c = 0;8 > c;c++) { - var h = m[5 + c]; - 255 !== h && (r = !0); - f |= h << 8 * c; + for (var f = 0, t = !1, c = 0;8 > c;c++) { + var g = m[5 + c]; + 255 !== g && (t = !0); + f |= g << 8 * c; } - this._decoder.markerIsMandatory = !r; - this._decoder.unpackSize = r ? f : void 0; + this._decoder.markerIsMandatory = !t; + this._decoder.unpackSize = t ? f : void 0; } this._decoder.create(); - e = e.subarray(g); + e = e.subarray(h); this._state = 2; } else { if (2 !== this._state) { @@ -3614,7 +3618,7 @@ var __extends = this.__extends || function(d, k) { }; e.prototype._checkError = function(e) { var f; - e === m ? f = "LZMA decoding error" : e === b ? f = "Decoding is not complete" : e === g ? void 0 !== this._decoder.unpackSize && this._decoder.unpackSize !== this._outStream.processed && (f = "Finished with end marker before than specified size") : f = "Internal LZMA Error"; + e === m ? f = "LZMA decoding error" : e === b ? f = "Decoding is not complete" : e === h ? void 0 !== this._decoder.unpackSize && this._decoder.unpackSize !== this._outStream.processed && (f = "Finished with end marker before than specified size") : f = "Internal LZMA Error"; f && this._error(f); }; return e; @@ -3624,123 +3628,123 @@ var __extends = this.__extends || function(d, k) { })(Shumway || (Shumway = {})); (function(d) { (function(k) { - function a(g, f) { - g !== l(g, 0, f) && throwError("RangeError", Errors.ParamRangeError); + function a(h, f) { + h !== l(h, 0, f) && throwError("RangeError", Errors.ParamRangeError); } - function p(g) { - return "string" === typeof g ? g : void 0 == g ? null : g + ""; + function n(h) { + return "string" === typeof h ? h : void 0 == h ? null : h + ""; } - var v = d.Debug.notImplemented, t = d.StringUtilities.utf8decode, u = d.StringUtilities.utf8encode, l = d.NumberUtilities.clamp, c = function() { - return function(g, f, b) { - this.buffer = g; + var w = d.Debug.notImplemented, v = d.StringUtilities.utf8decode, u = d.StringUtilities.utf8encode, l = d.NumberUtilities.clamp, c = function() { + return function(h, f, b) { + this.buffer = h; this.length = f; this.littleEndian = b; }; }(); k.PlainObjectDataBuffer = c; - for (var h = new Uint32Array(33), q = 1, s = 0;32 >= q;q++) { - h[q] = s = s << 1 | 1; + for (var g = new Uint32Array(33), q = 1, r = 0;32 >= q;q++) { + g[q] = r = r << 1 | 1; } var m; - (function(g) { - g[g.U8 = 1] = "U8"; - g[g.I32 = 2] = "I32"; - g[g.F32 = 4] = "F32"; + (function(h) { + h[h.U8 = 1] = "U8"; + h[h.I32 = 2] = "I32"; + h[h.F32 = 4] = "F32"; })(m || (m = {})); q = function() { - function g(f) { - void 0 === f && (f = g.INITIAL_SIZE); - this._buffer || (this._buffer = new ArrayBuffer(f), this._position = this._length = 0, this._resetViews(), this._littleEndian = g._nativeLittleEndian, this._bitLength = this._bitBuffer = 0); + function h(f) { + void 0 === f && (f = h.INITIAL_SIZE); + this._buffer || (this._buffer = new ArrayBuffer(f), this._position = this._length = 0, this._resetViews(), this._littleEndian = h._nativeLittleEndian, this._bitLength = this._bitBuffer = 0); } - g.FromArrayBuffer = function(f, b) { + h.FromArrayBuffer = function(f, b) { void 0 === b && (b = -1); - var e = Object.create(g.prototype); + var e = Object.create(h.prototype); e._buffer = f; e._length = -1 === b ? f.byteLength : b; e._position = 0; e._resetViews(); - e._littleEndian = g._nativeLittleEndian; + e._littleEndian = h._nativeLittleEndian; e._bitBuffer = 0; e._bitLength = 0; return e; }; - g.FromPlainObject = function(f) { - var b = g.FromArrayBuffer(f.buffer, f.length); + h.FromPlainObject = function(f) { + var b = h.FromArrayBuffer(f.buffer, f.length); b._littleEndian = f.littleEndian; return b; }; - g.prototype.toPlainObject = function() { + h.prototype.toPlainObject = function() { return new c(this._buffer, this._length, this._littleEndian); }; - g.prototype._resetViews = function() { + h.prototype._resetViews = function() { this._u8 = new Uint8Array(this._buffer); this._f32 = this._i32 = null; }; - g.prototype._requestViews = function(f) { + h.prototype._requestViews = function(f) { 0 === (this._buffer.byteLength & 3) && (null === this._i32 && f & 2 && (this._i32 = new Int32Array(this._buffer)), null === this._f32 && f & 4 && (this._f32 = new Float32Array(this._buffer))); }; - g.prototype.getBytes = function() { + h.prototype.getBytes = function() { return new Uint8Array(this._buffer, 0, this._length); }; - g.prototype._ensureCapacity = function(f) { + h.prototype._ensureCapacity = function(f) { var b = this._buffer; if (b.byteLength < f) { for (var e = Math.max(b.byteLength, 1);e < f;) { e *= 2; } - f = g._arrayBufferPool.acquire(e); + f = h._arrayBufferPool.acquire(e); e = this._u8; this._buffer = f; this._resetViews(); this._u8.set(e); - g._arrayBufferPool.release(b); + h._arrayBufferPool.release(b); } }; - g.prototype.clear = function() { + h.prototype.clear = function() { this._position = this._length = 0; }; - g.prototype.readBoolean = function() { + h.prototype.readBoolean = function() { return 0 !== this.readUnsignedByte(); }; - g.prototype.readByte = function() { + h.prototype.readByte = function() { return this.readUnsignedByte() << 24 >> 24; }; - g.prototype.readUnsignedByte = function() { + h.prototype.readUnsignedByte = function() { this._position + 1 > this._length && throwError("EOFError", Errors.EOFError); return this._u8[this._position++]; }; - g.prototype.readBytes = function(f, b, e) { + h.prototype.readBytes = function(f, b, e) { void 0 === b && (b = 0); void 0 === e && (e = 0); - var g = this._position; + var h = this._position; b || (b = 0); - e || (e = this._length - g); - g + e > this._length && throwError("EOFError", Errors.EOFError); + e || (e = this._length - h); + h + e > this._length && throwError("EOFError", Errors.EOFError); f.length < b + e && (f._ensureCapacity(b + e), f.length = b + e); - f._u8.set(new Uint8Array(this._buffer, g, e), b); + f._u8.set(new Uint8Array(this._buffer, h, e), b); this._position += e; }; - g.prototype.readShort = function() { + h.prototype.readShort = function() { return this.readUnsignedShort() << 16 >> 16; }; - g.prototype.readUnsignedShort = function() { + h.prototype.readUnsignedShort = function() { var f = this._u8, b = this._position; b + 2 > this._length && throwError("EOFError", Errors.EOFError); var e = f[b + 0], f = f[b + 1]; this._position = b + 2; return this._littleEndian ? f << 8 | e : e << 8 | f; }; - g.prototype.readInt = function() { + h.prototype.readInt = function() { var f = this._u8, b = this._position; b + 4 > this._length && throwError("EOFError", Errors.EOFError); - var e = f[b + 0], g = f[b + 1], n = f[b + 2], f = f[b + 3]; + var e = f[b + 0], h = f[b + 1], p = f[b + 2], f = f[b + 3]; this._position = b + 4; - return this._littleEndian ? f << 24 | n << 16 | g << 8 | e : e << 24 | g << 16 | n << 8 | f; + return this._littleEndian ? f << 24 | p << 16 | h << 8 | e : e << 24 | h << 16 | p << 8 | f; }; - g.prototype.readUnsignedInt = function() { + h.prototype.readUnsignedInt = function() { return this.readInt() >>> 0; }; - g.prototype.readFloat = function() { + h.prototype.readFloat = function() { var f = this._position; f + 4 > this._length && throwError("EOFError", Errors.EOFError); this._position = f + 4; @@ -3752,7 +3756,7 @@ var __extends = this.__extends || function(d, k) { this._littleEndian ? (e[0] = b[f + 0], e[1] = b[f + 1], e[2] = b[f + 2], e[3] = b[f + 3]) : (e[3] = b[f + 0], e[2] = b[f + 1], e[1] = b[f + 2], e[0] = b[f + 3]); return d.IntegerUtilities.f32[0]; }; - g.prototype.readDouble = function() { + h.prototype.readDouble = function() { var f = this._u8, b = this._position; b + 8 > this._length && throwError("EOFError", Errors.EOFError); var e = d.IntegerUtilities.u8; @@ -3760,29 +3764,29 @@ var __extends = this.__extends || function(d, k) { this._position = b + 8; return d.IntegerUtilities.f64[0]; }; - g.prototype.writeBoolean = function(f) { + h.prototype.writeBoolean = function(f) { this.writeByte(f ? 1 : 0); }; - g.prototype.writeByte = function(f) { + h.prototype.writeByte = function(f) { var b = this._position + 1; this._ensureCapacity(b); this._u8[this._position++] = f; b > this._length && (this._length = b); }; - g.prototype.writeUnsignedByte = function(f) { + h.prototype.writeUnsignedByte = function(f) { var b = this._position + 1; this._ensureCapacity(b); this._u8[this._position++] = f; b > this._length && (this._length = b); }; - g.prototype.writeRawBytes = function(f) { + h.prototype.writeRawBytes = function(f) { var b = this._position + f.length; this._ensureCapacity(b); this._u8.set(f, this._position); this._position = b; b > this._length && (this._length = b); }; - g.prototype.writeBytes = function(f, b, e) { + h.prototype.writeBytes = function(f, b, e) { void 0 === b && (b = 0); void 0 === e && (e = 0); d.isNullOrUndefined(f) && throwError("TypeError", Errors.NullPointerError, "bytes"); @@ -3793,10 +3797,10 @@ var __extends = this.__extends || function(d, k) { 0 === e && (e = f.length - b); this.writeRawBytes(new Int8Array(f._buffer, b, e)); }; - g.prototype.writeShort = function(f) { + h.prototype.writeShort = function(f) { this.writeUnsignedShort(f); }; - g.prototype.writeUnsignedShort = function(f) { + h.prototype.writeUnsignedShort = function(f) { var b = this._position; this._ensureCapacity(b + 2); var e = this._u8; @@ -3804,20 +3808,20 @@ var __extends = this.__extends || function(d, k) { this._position = b += 2; b > this._length && (this._length = b); }; - g.prototype.writeInt = function(f) { + h.prototype.writeInt = function(f) { this.writeUnsignedInt(f); }; - g.prototype.write2Ints = function(f, b) { + h.prototype.write2Ints = function(f, b) { this.write2UnsignedInts(f, b); }; - g.prototype.write4Ints = function(f, b, e, g) { - this.write4UnsignedInts(f, b, e, g); + h.prototype.write4Ints = function(f, b, e, h) { + this.write4UnsignedInts(f, b, e, h); }; - g.prototype.writeUnsignedInt = function(f) { + h.prototype.writeUnsignedInt = function(f) { var b = this._position; this._ensureCapacity(b + 4); this._requestViews(2); - if (this._littleEndian === g._nativeLittleEndian && 0 === (b & 3) && this._i32) { + if (this._littleEndian === h._nativeLittleEndian && 0 === (b & 3) && this._i32) { this._i32[b >> 2] = f; } else { var e = this._u8; @@ -3826,23 +3830,23 @@ var __extends = this.__extends || function(d, k) { this._position = b += 4; b > this._length && (this._length = b); }; - g.prototype.write2UnsignedInts = function(f, b) { + h.prototype.write2UnsignedInts = function(f, b) { var e = this._position; this._ensureCapacity(e + 8); this._requestViews(2); - this._littleEndian === g._nativeLittleEndian && 0 === (e & 3) && this._i32 ? (this._i32[(e >> 2) + 0] = f, this._i32[(e >> 2) + 1] = b, this._position = e += 8, e > this._length && (this._length = e)) : (this.writeUnsignedInt(f), this.writeUnsignedInt(b)); + this._littleEndian === h._nativeLittleEndian && 0 === (e & 3) && this._i32 ? (this._i32[(e >> 2) + 0] = f, this._i32[(e >> 2) + 1] = b, this._position = e += 8, e > this._length && (this._length = e)) : (this.writeUnsignedInt(f), this.writeUnsignedInt(b)); }; - g.prototype.write4UnsignedInts = function(f, b, e, m) { - var n = this._position; - this._ensureCapacity(n + 16); + h.prototype.write4UnsignedInts = function(f, b, e, m) { + var p = this._position; + this._ensureCapacity(p + 16); this._requestViews(2); - this._littleEndian === g._nativeLittleEndian && 0 === (n & 3) && this._i32 ? (this._i32[(n >> 2) + 0] = f, this._i32[(n >> 2) + 1] = b, this._i32[(n >> 2) + 2] = e, this._i32[(n >> 2) + 3] = m, this._position = n += 16, n > this._length && (this._length = n)) : (this.writeUnsignedInt(f), this.writeUnsignedInt(b), this.writeUnsignedInt(e), this.writeUnsignedInt(m)); + this._littleEndian === h._nativeLittleEndian && 0 === (p & 3) && this._i32 ? (this._i32[(p >> 2) + 0] = f, this._i32[(p >> 2) + 1] = b, this._i32[(p >> 2) + 2] = e, this._i32[(p >> 2) + 3] = m, this._position = p += 16, p > this._length && (this._length = p)) : (this.writeUnsignedInt(f), this.writeUnsignedInt(b), this.writeUnsignedInt(e), this.writeUnsignedInt(m)); }; - g.prototype.writeFloat = function(f) { + h.prototype.writeFloat = function(f) { var b = this._position; this._ensureCapacity(b + 4); this._requestViews(4); - if (this._littleEndian === g._nativeLittleEndian && 0 === (b & 3) && this._f32) { + if (this._littleEndian === h._nativeLittleEndian && 0 === (b & 3) && this._f32) { this._f32[b >> 2] = f; } else { var e = this._u8; @@ -3853,13 +3857,13 @@ var __extends = this.__extends || function(d, k) { this._position = b += 4; b > this._length && (this._length = b); }; - g.prototype.write6Floats = function(f, b, e, m, n, c) { - var h = this._position; - this._ensureCapacity(h + 24); + h.prototype.write6Floats = function(f, b, e, m, p, c) { + var g = this._position; + this._ensureCapacity(g + 24); this._requestViews(4); - this._littleEndian === g._nativeLittleEndian && 0 === (h & 3) && this._f32 ? (this._f32[(h >> 2) + 0] = f, this._f32[(h >> 2) + 1] = b, this._f32[(h >> 2) + 2] = e, this._f32[(h >> 2) + 3] = m, this._f32[(h >> 2) + 4] = n, this._f32[(h >> 2) + 5] = c, this._position = h += 24, h > this._length && (this._length = h)) : (this.writeFloat(f), this.writeFloat(b), this.writeFloat(e), this.writeFloat(m), this.writeFloat(n), this.writeFloat(c)); + this._littleEndian === h._nativeLittleEndian && 0 === (g & 3) && this._f32 ? (this._f32[(g >> 2) + 0] = f, this._f32[(g >> 2) + 1] = b, this._f32[(g >> 2) + 2] = e, this._f32[(g >> 2) + 3] = m, this._f32[(g >> 2) + 4] = p, this._f32[(g >> 2) + 5] = c, this._position = g += 24, g > this._length && (this._length = g)) : (this.writeFloat(f), this.writeFloat(b), this.writeFloat(e), this.writeFloat(m), this.writeFloat(p), this.writeFloat(c)); }; - g.prototype.writeDouble = function(f) { + h.prototype.writeDouble = function(f) { var b = this._position; this._ensureCapacity(b + 8); var e = this._u8; @@ -3869,31 +3873,31 @@ var __extends = this.__extends || function(d, k) { this._position = b += 8; b > this._length && (this._length = b); }; - g.prototype.readRawBytes = function() { + h.prototype.readRawBytes = function() { return new Int8Array(this._buffer, 0, this._length); }; - g.prototype.writeUTF = function(f) { - f = p(f); - f = t(f); + h.prototype.writeUTF = function(f) { + f = n(f); + f = v(f); this.writeShort(f.length); this.writeRawBytes(f); }; - g.prototype.writeUTFBytes = function(f) { - f = p(f); - f = t(f); + h.prototype.writeUTFBytes = function(f) { + f = n(f); + f = v(f); this.writeRawBytes(f); }; - g.prototype.readUTF = function() { + h.prototype.readUTF = function() { return this.readUTFBytes(this.readShort()); }; - g.prototype.readUTFBytes = function(f) { + h.prototype.readUTFBytes = function(f) { f >>>= 0; var b = this._position; b + f > this._length && throwError("EOFError", Errors.EOFError); this._position += f; return u(new Int8Array(this._buffer, b, f)); }; - Object.defineProperty(g.prototype, "length", {get:function() { + Object.defineProperty(h.prototype, "length", {get:function() { return this._length; }, set:function(f) { f >>>= 0; @@ -3901,69 +3905,69 @@ var __extends = this.__extends || function(d, k) { this._length = f; this._position = l(this._position, 0, this._length); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "bytesAvailable", {get:function() { + Object.defineProperty(h.prototype, "bytesAvailable", {get:function() { return this._length - this._position; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "position", {get:function() { + Object.defineProperty(h.prototype, "position", {get:function() { return this._position; }, set:function(f) { this._position = f >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "buffer", {get:function() { + Object.defineProperty(h.prototype, "buffer", {get:function() { return this._buffer; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "bytes", {get:function() { + Object.defineProperty(h.prototype, "bytes", {get:function() { return this._u8; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "ints", {get:function() { + Object.defineProperty(h.prototype, "ints", {get:function() { this._requestViews(2); return this._i32; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "objectEncoding", {get:function() { + Object.defineProperty(h.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(f) { this._objectEncoding = f >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "endian", {get:function() { + Object.defineProperty(h.prototype, "endian", {get:function() { return this._littleEndian ? "littleEndian" : "bigEndian"; }, set:function(f) { - f = p(f); - this._littleEndian = "auto" === f ? g._nativeLittleEndian : "littleEndian" === f; + f = n(f); + this._littleEndian = "auto" === f ? h._nativeLittleEndian : "littleEndian" === f; }, enumerable:!0, configurable:!0}); - g.prototype.toString = function() { + h.prototype.toString = function() { return u(new Int8Array(this._buffer, 0, this._length)); }; - g.prototype.toBlob = function(f) { + h.prototype.toBlob = function(f) { return new Blob([new Int8Array(this._buffer, this._position, this._length)], {type:f}); }; - g.prototype.writeMultiByte = function(f, b) { - v("packageInternal flash.utils.ObjectOutput::writeMultiByte"); + h.prototype.writeMultiByte = function(f, b) { + w("packageInternal flash.utils.ObjectOutput::writeMultiByte"); }; - g.prototype.readMultiByte = function(f, b) { - v("packageInternal flash.utils.ObjectInput::readMultiByte"); + h.prototype.readMultiByte = function(f, b) { + w("packageInternal flash.utils.ObjectInput::readMultiByte"); }; - g.prototype.getValue = function(f) { + h.prototype.getValue = function(f) { f |= 0; return f >= this._length ? void 0 : this._u8[f]; }; - g.prototype.setValue = function(f, b) { + h.prototype.setValue = function(f, b) { f |= 0; var e = f + 1; this._ensureCapacity(e); this._u8[f] = b; e > this._length && (this._length = e); }; - g.prototype.readFixed = function() { + h.prototype.readFixed = function() { return this.readInt() / 65536; }; - g.prototype.readFixed8 = function() { + h.prototype.readFixed8 = function() { return this.readShort() / 256; }; - g.prototype.readFloat16 = function() { + h.prototype.readFloat16 = function() { var f = this.readUnsignedShort(), b = f >> 15 ? -1 : 1, e = (f & 31744) >> 10, f = f & 1023; return e ? 31 === e ? f ? NaN : Infinity * b : b * Math.pow(2, e - 15) * (1 + f / 1024) : f / 1024 * Math.pow(2, -14) * b; }; - g.prototype.readEncodedU32 = function() { + h.prototype.readEncodedU32 = function() { var f = this.readUnsignedByte(); if (!(f & 128)) { return f; @@ -3979,23 +3983,23 @@ var __extends = this.__extends || function(d, k) { f = f & 2097151 | this.readUnsignedByte() << 21; return f & 268435456 ? f & 268435455 | this.readUnsignedByte() << 28 : f; }; - g.prototype.readBits = function(f) { + h.prototype.readBits = function(f) { return this.readUnsignedBits(f) << 32 - f >> 32 - f; }; - g.prototype.readUnsignedBits = function(f) { + h.prototype.readUnsignedBits = function(f) { for (var b = this._bitBuffer, e = this._bitLength;f > e;) { b = b << 8 | this.readUnsignedByte(), e += 8; } e -= f; - f = b >>> e & h[f]; + f = b >>> e & g[f]; this._bitBuffer = b; this._bitLength = e; return f; }; - g.prototype.readFixedBits = function(f) { + h.prototype.readFixedBits = function(f) { return this.readBits(f) / 65536; }; - g.prototype.readString = function(f) { + h.prototype.readString = function(f) { var b = this._position; if (f) { b + f > this._length && throwError("EOFError", Errors.EOFError), this._position += f; @@ -4008,17 +4012,17 @@ var __extends = this.__extends || function(d, k) { } return u(new Int8Array(this._buffer, b, f)); }; - g.prototype.align = function() { + h.prototype.align = function() { this._bitLength = this._bitBuffer = 0; }; - g.prototype.deflate = function() { + h.prototype.deflate = function() { this.compress("deflate"); }; - g.prototype.inflate = function() { + h.prototype.inflate = function() { this.uncompress("deflate"); }; - g.prototype.compress = function(f) { - f = 0 === arguments.length ? "zlib" : p(f); + h.prototype.compress = function(f) { + f = 0 === arguments.length ? "zlib" : n(f); var b; switch(f) { case "zlib": @@ -4030,7 +4034,7 @@ var __extends = this.__extends || function(d, k) { default: return; } - var e = new g; + var e = new h; b.onData = e.writeRawBytes.bind(e); b.push(this._u8.subarray(0, this._length)); b.close(); @@ -4039,8 +4043,8 @@ var __extends = this.__extends || function(d, k) { this.length = e.length; this._position = 0; }; - g.prototype.uncompress = function(f) { - f = 0 === arguments.length ? "zlib" : p(f); + h.prototype.uncompress = function(f) { + f = 0 === arguments.length ? "zlib" : n(f); var b; switch(f) { case "zlib": @@ -4055,7 +4059,7 @@ var __extends = this.__extends || function(d, k) { default: return; } - var e = new g, m; + var e = new h, m; b.onData = e.writeRawBytes.bind(e); b.onError = function(b) { return m = b; @@ -4068,10 +4072,10 @@ var __extends = this.__extends || function(d, k) { this.length = e.length; this._position = 0; }; - g._nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; - g.INITIAL_SIZE = 128; - g._arrayBufferPool = new d.ArrayBufferPool; - return g; + h._nativeLittleEndian = 1 === (new Int8Array((new Int32Array([1])).buffer))[0]; + h.INITIAL_SIZE = 128; + h._arrayBufferPool = new d.ArrayBufferPool; + return h; }(); k.DataBuffer = q; })(d.ArrayUtilities || (d.ArrayUtilities = {})); @@ -4111,29 +4115,29 @@ var __extends = this.__extends || function(d, k) { a[a.Vertical = 2] = "Vertical"; a[a.Horizontal = 3] = "Horizontal"; })(d.LineScaleMode || (d.LineScaleMode = {})); - var p = function() { - return function(a, p, l, c, h, q, s, m, g, f, b) { + var n = function() { + return function(a, n, l, c, g, q, r, m, h, f, b) { this.commands = a; - this.commandsPosition = p; + this.commandsPosition = n; this.coordinates = l; this.morphCoordinates = c; - this.coordinatesPosition = h; + this.coordinatesPosition = g; this.styles = q; - this.stylesLength = s; + this.stylesLength = r; this.morphStyles = m; - this.morphStylesLength = g; + this.morphStylesLength = h; this.hasFills = f; this.hasLines = b; }; }(); - d.PlainObjectShapeData = p; - var v; + d.PlainObjectShapeData = n; + var w; (function(a) { a[a.Commands = 32] = "Commands"; a[a.Coordinates = 128] = "Coordinates"; a[a.Styles = 16] = "Styles"; - })(v || (v = {})); - v = function() { + })(w || (w = {})); + w = function() { function d(a) { void 0 === a && (a = !0); a && this.clear(); @@ -4164,23 +4168,23 @@ var __extends = this.__extends || function(d, k) { this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = l; }; - d.prototype.curveTo = function(a, l, c, h) { + d.prototype.curveTo = function(a, l, c, g) { this.ensurePathCapacities(1, 4); this.commands[this.commandsPosition++] = 11; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = l; this.coordinates[this.coordinatesPosition++] = c; - this.coordinates[this.coordinatesPosition++] = h; + this.coordinates[this.coordinatesPosition++] = g; }; - d.prototype.cubicCurveTo = function(a, l, c, h, q, s) { + d.prototype.cubicCurveTo = function(a, l, c, g, q, r) { this.ensurePathCapacities(1, 6); this.commands[this.commandsPosition++] = 12; this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = l; this.coordinates[this.coordinatesPosition++] = c; - this.coordinates[this.coordinatesPosition++] = h; + this.coordinates[this.coordinatesPosition++] = g; this.coordinates[this.coordinatesPosition++] = q; - this.coordinates[this.coordinatesPosition++] = s; + this.coordinates[this.coordinatesPosition++] = r; }; d.prototype.beginFill = function(a) { this.ensurePathCapacities(1, 0); @@ -4199,16 +4203,16 @@ var __extends = this.__extends || function(d, k) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = 8; }; - d.prototype.lineStyle = function(a, l, c, h, q, s, m) { + d.prototype.lineStyle = function(a, l, c, g, q, r, m) { this.ensurePathCapacities(2, 0); this.commands[this.commandsPosition++] = 5; this.coordinates[this.coordinatesPosition++] = a; a = this.styles; a.writeUnsignedInt(l); a.writeBoolean(c); - a.writeUnsignedByte(h); + a.writeUnsignedByte(g); a.writeUnsignedByte(q); - a.writeUnsignedByte(s); + a.writeUnsignedByte(r); a.writeUnsignedByte(m); this.hasLines = !0; }; @@ -4216,40 +4220,40 @@ var __extends = this.__extends || function(d, k) { this.morphCoordinates[this.coordinatesPosition - 1] = a; this.morphStyles.writeUnsignedInt(l); }; - d.prototype.beginBitmap = function(a, l, c, h, q) { + d.prototype.beginBitmap = function(a, l, c, g, q) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = a; a = this.styles; a.writeUnsignedInt(l); this._writeStyleMatrix(c, !1); - a.writeBoolean(h); + a.writeBoolean(g); a.writeBoolean(q); this.hasFills = !0; }; d.prototype.writeMorphBitmap = function(a) { this._writeStyleMatrix(a, !0); }; - d.prototype.beginGradient = function(a, l, c, h, q, s, m, g) { + d.prototype.beginGradient = function(a, l, c, g, q, r, m, h) { this.ensurePathCapacities(1, 0); this.commands[this.commandsPosition++] = a; a = this.styles; - a.writeUnsignedByte(h); - a.writeShort(g); + a.writeUnsignedByte(g); + a.writeShort(h); this._writeStyleMatrix(q, !1); - h = l.length; - a.writeByte(h); - for (q = 0;q < h;q++) { + g = l.length; + a.writeByte(g); + for (q = 0;q < g;q++) { a.writeUnsignedByte(c[q]), a.writeUnsignedInt(l[q]); } - a.writeUnsignedByte(s); + a.writeUnsignedByte(r); a.writeUnsignedByte(m); this.hasFills = !0; }; d.prototype.writeMorphGradient = function(a, l, c) { this._writeStyleMatrix(c, !0); c = this.morphStyles; - for (var h = 0;h < a.length;h++) { - c.writeUnsignedByte(l[h]), c.writeUnsignedInt(a[h]); + for (var g = 0;g < a.length;g++) { + c.writeUnsignedByte(l[g]), c.writeUnsignedInt(a[g]); } }; d.prototype.writeCommandAndCoordinates = function(a, l, c) { @@ -4263,9 +4267,9 @@ var __extends = this.__extends || function(d, k) { this.coordinates[this.coordinatesPosition++] = a; this.coordinates[this.coordinatesPosition++] = l; }; - d.prototype.writeMorphCoordinates = function(p, l) { + d.prototype.writeMorphCoordinates = function(n, l) { this.morphCoordinates = a(this.morphCoordinates, this.coordinatesPosition); - this.morphCoordinates[this.coordinatesPosition - 2] = p; + this.morphCoordinates[this.coordinatesPosition - 2] = n; this.morphCoordinates[this.coordinatesPosition - 1] = l; }; d.prototype.clear = function() { @@ -4293,7 +4297,7 @@ var __extends = this.__extends || function(d, k) { return a; }; d.prototype.toPlainObject = function() { - return new p(this.commands, this.commandsPosition, this.coordinates, this.morphCoordinates, this.coordinatesPosition, this.styles.buffer, this.styles.length, this.morphStyles && this.morphStyles.buffer, this.morphStyles ? this.morphStyles.length : 0, this.hasFills, this.hasLines); + return new n(this.commands, this.commandsPosition, this.coordinates, this.morphCoordinates, this.coordinatesPosition, this.styles.buffer, this.styles.length, this.morphStyles && this.morphStyles.buffer, this.morphStyles ? this.morphStyles.length : 0, this.hasFills, this.hasLines); }; Object.defineProperty(d.prototype, "buffers", {get:function() { var a = [this.commands.buffer, this.coordinates.buffer, this.styles.buffer]; @@ -4304,13 +4308,13 @@ var __extends = this.__extends || function(d, k) { d.prototype._writeStyleMatrix = function(a, l) { (l ? this.morphStyles : this.styles).write6Floats(a.a, a.b, a.c, a.d, a.tx, a.ty); }; - d.prototype.ensurePathCapacities = function(p, l) { - this.commands = a(this.commands, this.commandsPosition + p); + d.prototype.ensurePathCapacities = function(n, l) { + this.commands = a(this.commands, this.commandsPosition + n); this.coordinates = a(this.coordinates, this.coordinatesPosition + l); }; return d; }(); - d.ShapeData = v; + d.ShapeData = w; })(Shumway || (Shumway = {})); (function(d) { (function(d) { @@ -4493,9 +4497,9 @@ var __extends = this.__extends || function(d, k) { })(Shumway || (Shumway = {})); (function(d) { var k = d.Debug.unexpected, a = function() { - function a(d, p, u, l) { + function a(d, n, u, l) { this.url = d; - this.method = p; + this.method = n; this.mimeType = u; this.data = l; } @@ -4512,45 +4516,45 @@ var __extends = this.__extends || function(d, k) { this.mimeType && l.setRequestHeader("Content-Type", this.mimeType); l.send(this.data || null); }; - a.prototype.readChunked = function(a, d, u, l, c, h) { + a.prototype.readChunked = function(a, d, u, l, c, g) { if (0 >= a) { - this.readAsync(d, u, l, c, h); + this.readAsync(d, u, l, c, g); } else { - var q = 0, s = new Uint8Array(a), m = 0, g; + var q = 0, r = new Uint8Array(a), m = 0, h; this.readAsync(function(f, b) { - g = b.total; - for (var e = f.length, r = 0;q + e >= a;) { - var n = a - q; - s.set(f.subarray(r, r + n), q); - r += n; - e -= n; + h = b.total; + for (var e = f.length, t = 0;q + e >= a;) { + var p = a - q; + r.set(f.subarray(t, t + p), q); + t += p; + e -= p; m += a; - d(s, {loaded:m, total:g}); + d(r, {loaded:m, total:h}); q = 0; } - s.set(f.subarray(r), q); + r.set(f.subarray(t), q); q += e; }, u, l, function() { - 0 < q && (m += q, d(s.subarray(0, q), {loaded:m, total:g}), q = 0); + 0 < q && (m += q, d(r.subarray(0, q), {loaded:m, total:h}), q = 0); c && c(); - }, h); + }, g); } }; a.prototype.readAsync = function(a, d, u, l, c) { - var h = new XMLHttpRequest({mozSystem:!0}), q = this.url, s = 0, m = 0; - h.open(this.method || "GET", q, !0); - h.responseType = "moz-chunked-arraybuffer"; - var g = "moz-chunked-arraybuffer" !== h.responseType; - g && (h.responseType = "arraybuffer"); - h.onprogress = function(f) { - g || (s = f.loaded, m = f.total, a(new Uint8Array(h.response), {loaded:s, total:m})); + var g = new XMLHttpRequest({mozSystem:!0}), q = this.url, r = 0, m = 0; + g.open(this.method || "GET", q, !0); + g.responseType = "moz-chunked-arraybuffer"; + var h = "moz-chunked-arraybuffer" !== g.responseType; + h && (g.responseType = "arraybuffer"); + g.onprogress = function(f) { + h || (r = f.loaded, m = f.total, a(new Uint8Array(g.response), {loaded:r, total:m})); }; - h.onreadystatechange = function(f) { - 2 === h.readyState && c && c(q, h.status, h.getAllResponseHeaders()); - 4 === h.readyState && (200 !== h.status && 0 !== h.status || null === h.response && (0 === m || s !== m) ? d(h.statusText) : (g && (f = h.response, a(new Uint8Array(f), {loaded:0, total:f.byteLength})), l && l())); + g.onreadystatechange = function(f) { + 2 === g.readyState && c && c(q, g.status, g.getAllResponseHeaders()); + 4 === g.readyState && (200 !== g.status && 0 !== g.status || null === g.response && (0 === m || r !== m) ? d(g.statusText) : (h && (f = g.response, a(new Uint8Array(f), {loaded:0, total:f.byteLength})), l && l())); }; - this.mimeType && h.setRequestHeader("Content-Type", this.mimeType); - h.send(this.data || null); + this.mimeType && g.setRequestHeader("Content-Type", this.mimeType); + g.send(this.data || null); u && u(); }; return a; @@ -4664,9 +4668,9 @@ var throwError, Errors; var d = function() { function a() { } - a.toRGBA = function(a, l, c, h) { - void 0 === h && (h = 1); - return "rgba(" + a + "," + l + "," + c + "," + h + ")"; + a.toRGBA = function(a, l, c, g) { + void 0 === g && (g = 1); + return "rgba(" + a + "," + l + "," + c + "," + g + ")"; }; return a; }(); @@ -4935,8 +4939,8 @@ __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -4952,13 +4956,13 @@ __extends = this.__extends || function(d, k) { }(); a.TimelineFrameStatistics = d; var k = function() { - function a(d, l, c, h, q, s) { + function a(d, l, c, g, q, r) { this.parent = d; this.kind = l; this.startData = c; - this.endData = h; + this.endData = g; this.startTime = q; - this.endTime = s; + this.endTime = r; this.maxDepth = 0; } Object.defineProperty(a.prototype, "totalTime", {get:function() { @@ -4968,7 +4972,7 @@ __extends = this.__extends || function(d, k) { var a = this.totalTime; if (this.children) { for (var l = 0, c = this.children.length;l < c;l++) { - var h = this.children[l], a = a - (h.endTime - h.startTime) + var g = this.children[l], a = a - (g.endTime - g.startTime) } } return a; @@ -4983,9 +4987,9 @@ __extends = this.__extends || function(d, k) { }; a.prototype.getChildRange = function(a, l) { if (this.children && a <= this.endTime && l >= this.startTime && l >= a) { - var c = this._getNearestChild(a), h = this._getNearestChildReverse(l); - if (c <= h) { - return a = this.children[c].startTime, l = this.children[h].endTime, {startIndex:c, endIndex:h, startTime:a, endTime:l, totalTime:l - a}; + var c = this._getNearestChild(a), g = this._getNearestChildReverse(l); + if (c <= g) { + return a = this.children[c].startTime, l = this.children[g].endTime, {startIndex:c, endIndex:g, startTime:a, endTime:l, totalTime:l - a}; } } return null; @@ -4996,15 +5000,15 @@ __extends = this.__extends || function(d, k) { if (a <= l[0].endTime) { return 0; } - for (var c, h = 0, q = l.length - 1;q > h;) { - c = (h + q) / 2 | 0; - var s = l[c]; - if (a >= s.startTime && a <= s.endTime) { + for (var c, g = 0, q = l.length - 1;q > g;) { + c = (g + q) / 2 | 0; + var r = l[c]; + if (a >= r.startTime && a <= r.endTime) { return c; } - a > s.endTime ? h = c + 1 : q = c; + a > r.endTime ? g = c + 1 : q = c; } - return Math.ceil((h + q) / 2); + return Math.ceil((g + q) / 2); } return 0; }; @@ -5015,15 +5019,15 @@ __extends = this.__extends || function(d, k) { if (a >= l[c].startTime) { return c; } - for (var h, q = 0;c > q;) { - h = Math.ceil((q + c) / 2); - var s = l[h]; - if (a >= s.startTime && a <= s.endTime) { - return h; + for (var g, q = 0;c > q;) { + g = Math.ceil((q + c) / 2); + var r = l[g]; + if (a >= r.startTime && a <= r.endTime) { + return g; } - a > s.endTime ? q = h : c = h - 1; + a > r.endTime ? q = g : c = g - 1; } - return(q + c) / 2 | 0; + return (q + c) / 2 | 0; } return 0; }; @@ -5033,13 +5037,13 @@ __extends = this.__extends || function(d, k) { } var l = this.children; if (l && 0 < l.length) { - for (var c, h = 0, q = l.length - 1;q > h;) { - var s = (h + q) / 2 | 0; - c = l[s]; + for (var c, g = 0, q = l.length - 1;q > g;) { + var r = (g + q) / 2 | 0; + c = l[r]; if (a >= c.startTime && a <= c.endTime) { return c.query(a); } - a > c.endTime ? h = s + 1 : q = s; + a > c.endTime ? g = r + 1 : q = r; } c = l[q]; if (a >= c.startTime && a <= c.endTime) { @@ -5067,10 +5071,10 @@ __extends = this.__extends || function(d, k) { a.prototype.calculateStatistics = function() { function a(c) { if (c.kind) { - var h = l[c.kind.id] || (l[c.kind.id] = new d(c.kind)); - h.count++; - h.selfTime += c.selfTime; - h.totalTime += c.totalTime; + var g = l[c.kind.id] || (l[c.kind.id] = new d(c.kind)); + g.count++; + g.selfTime += c.selfTime; + g.totalTime += c.totalTime; } c.children && c.children.forEach(a); } @@ -5107,22 +5111,22 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = function() { - function p(a, u) { + var n = function() { + function n(a, u) { void 0 === a && (a = ""); this.name = a || ""; this._startTime = d.isNullOrUndefined(u) ? jsGlobal.START_TIME : u; } - p.prototype.getKind = function(a) { + n.prototype.getKind = function(a) { return this._kinds[a]; }; - Object.defineProperty(p.prototype, "kinds", {get:function() { + Object.defineProperty(n.prototype, "kinds", {get:function() { return this._kinds.concat(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(p.prototype, "depth", {get:function() { + Object.defineProperty(n.prototype, "depth", {get:function() { return this._depth; }, enumerable:!0, configurable:!0}); - p.prototype._initialize = function() { + n.prototype._initialize = function() { this._depth = 0; this._stack = []; this._data = []; @@ -5131,66 +5135,66 @@ __extends = this.__extends || function(d, k) { this._marks = new d.CircularBuffer(Int32Array, 20); this._times = new d.CircularBuffer(Float64Array, 20); }; - p.prototype._getKindId = function(a) { - var d = p.MAX_KINDID; + n.prototype._getKindId = function(a) { + var d = n.MAX_KINDID; if (void 0 === this._kindNameMap[a]) { - if (d = this._kinds.length, d < p.MAX_KINDID) { + if (d = this._kinds.length, d < n.MAX_KINDID) { var l = {id:d, name:a, visible:!0}; this._kinds.push(l); this._kindNameMap[a] = l; } else { - d = p.MAX_KINDID; + d = n.MAX_KINDID; } } else { d = this._kindNameMap[a].id; } return d; }; - p.prototype._getMark = function(a, u, l) { - var c = p.MAX_DATAID; - d.isNullOrUndefined(l) || u === p.MAX_KINDID || (c = this._data.length, c < p.MAX_DATAID ? this._data.push(l) : c = p.MAX_DATAID); + n.prototype._getMark = function(a, u, l) { + var c = n.MAX_DATAID; + d.isNullOrUndefined(l) || u === n.MAX_KINDID || (c = this._data.length, c < n.MAX_DATAID ? this._data.push(l) : c = n.MAX_DATAID); return a | c << 16 | u; }; - p.prototype.enter = function(a, u, l) { + n.prototype.enter = function(a, u, l) { l = (d.isNullOrUndefined(l) ? performance.now() : l) - this._startTime; this._marks || this._initialize(); this._depth++; a = this._getKindId(a); - this._marks.write(this._getMark(p.ENTER, a, u)); + this._marks.write(this._getMark(n.ENTER, a, u)); this._times.write(l); this._stack.push(a); }; - p.prototype.leave = function(a, u, l) { + n.prototype.leave = function(a, u, l) { l = (d.isNullOrUndefined(l) ? performance.now() : l) - this._startTime; var c = this._stack.pop(); a && (c = this._getKindId(a)); - this._marks.write(this._getMark(p.LEAVE, c, u)); + this._marks.write(this._getMark(n.LEAVE, c, u)); this._times.write(l); this._depth--; }; - p.prototype.count = function(a, d, l) { + n.prototype.count = function(a, d, l) { }; - p.prototype.createSnapshot = function() { - var t; - void 0 === t && (t = Number.MAX_VALUE); + n.prototype.createSnapshot = function() { + var v; + void 0 === v && (v = Number.MAX_VALUE); if (!this._marks) { return null; } - var u = this._times, l = this._kinds, c = this._data, h = new a.TimelineBufferSnapshot(this.name), q = [h], s = 0; + var u = this._times, l = this._kinds, c = this._data, g = new a.TimelineBufferSnapshot(this.name), q = [g], r = 0; this._marks || this._initialize(); - this._marks.forEachInReverse(function(m, g) { - var f = c[m >>> 16 & p.MAX_DATAID], b = l[m & p.MAX_KINDID]; + this._marks.forEachInReverse(function(m, h) { + var f = c[m >>> 16 & n.MAX_DATAID], b = l[m & n.MAX_KINDID]; if (d.isNullOrUndefined(b) || b.visible) { - var e = m & 2147483648, r = u.get(g), n = q.length; - if (e === p.LEAVE) { - if (1 === n && (s++, s > t)) { - return!0; + var e = m & 2147483648, t = u.get(h), p = q.length; + if (e === n.LEAVE) { + if (1 === p && (r++, r > v)) { + return !0; } - q.push(new a.TimelineFrame(q[n - 1], b, null, f, NaN, r)); + q.push(new a.TimelineFrame(q[p - 1], b, null, f, NaN, t)); } else { - if (e === p.ENTER) { + if (e === n.ENTER) { if (b = q.pop(), e = q[q.length - 1]) { - for (e.children ? e.children.unshift(b) : e.children = [b], e = q.length, b.depth = e, b.startData = f, b.startTime = r;b;) { + for (e.children ? e.children.unshift(b) : e.children = [b], e = q.length, b.depth = e, b.startData = f, b.startTime = t;b;) { if (b.maxDepth < e) { b.maxDepth = e, b = b.parent; } else { @@ -5198,79 +5202,79 @@ __extends = this.__extends || function(d, k) { } } } else { - return!0; + return !0; } } } } }); - h.children && h.children.length && (h.startTime = h.children[0].startTime, h.endTime = h.children[h.children.length - 1].endTime); - return h; + g.children && g.children.length && (g.startTime = g.children[0].startTime, g.endTime = g.children[g.children.length - 1].endTime); + return g; }; - p.prototype.reset = function(a) { + n.prototype.reset = function(a) { this._startTime = d.isNullOrUndefined(a) ? performance.now() : a; this._marks ? (this._depth = 0, this._data = [], this._marks.reset(), this._times.reset()) : this._initialize(); }; - p.FromFirefoxProfile = function(a, d) { - for (var l = a.profile.threads[0].samples, c = new p(d, l[0].time), h = [], q, s = 0;s < l.length;s++) { - q = l[s]; - var m = q.time, g = q.frames, f = 0; - for (q = Math.min(g.length, h.length);f < q && g[f].location === h[f].location;) { + n.FromFirefoxProfile = function(a, d) { + for (var l = a.profile.threads[0].samples, c = new n(d, l[0].time), g = [], q, r = 0;r < l.length;r++) { + q = l[r]; + var m = q.time, h = q.frames, f = 0; + for (q = Math.min(h.length, g.length);f < q && h[f].location === g[f].location;) { f++; } - for (var b = h.length - f, e = 0;e < b;e++) { - q = h.pop(), c.leave(q.location, null, m); + for (var b = g.length - f, e = 0;e < b;e++) { + q = g.pop(), c.leave(q.location, null, m); } - for (;f < g.length;) { - q = g[f++], c.enter(q.location, null, m); + for (;f < h.length;) { + q = h[f++], c.enter(q.location, null, m); } - h = g; + g = h; } - for (;q = h.pop();) { + for (;q = g.pop();) { c.leave(q.location, null, m); } return c; }; - p.FromChromeProfile = function(a, d) { - var l = a.timestamps, c = a.samples, h = new p(d, l[0] / 1E3), q = [], s = {}, m; - p._resolveIds(a.head, s); - for (var g = 0;g < l.length;g++) { - var f = l[g] / 1E3, b = []; - for (m = s[c[g]];m;) { + n.FromChromeProfile = function(a, d) { + var l = a.timestamps, c = a.samples, g = new n(d, l[0] / 1E3), q = [], r = {}, m; + n._resolveIds(a.head, r); + for (var h = 0;h < l.length;h++) { + var f = l[h] / 1E3, b = []; + for (m = r[c[h]];m;) { b.unshift(m), m = m.parent; } var e = 0; for (m = Math.min(b.length, q.length);e < m && b[e] === q[e];) { e++; } - for (var r = q.length - e, n = 0;n < r;n++) { - m = q.pop(), h.leave(m.functionName, null, f); + for (var t = q.length - e, p = 0;p < t;p++) { + m = q.pop(), g.leave(m.functionName, null, f); } for (;e < b.length;) { - m = b[e++], h.enter(m.functionName, null, f); + m = b[e++], g.enter(m.functionName, null, f); } q = b; } for (;m = q.pop();) { - h.leave(m.functionName, null, f); + g.leave(m.functionName, null, f); } - return h; + return g; }; - p._resolveIds = function(a, d) { + n._resolveIds = function(a, d) { d[a.id] = a; if (a.children) { for (var l = 0;l < a.children.length;l++) { - a.children[l].parent = a, p._resolveIds(a.children[l], d); + a.children[l].parent = a, n._resolveIds(a.children[l], d); } } }; - p.ENTER = 0; - p.LEAVE = -2147483648; - p.MAX_KINDID = 65535; - p.MAX_DATAID = 32767; - return p; + n.ENTER = 0; + n.LEAVE = -2147483648; + n.MAX_KINDID = 65535; + n.MAX_DATAID = 32767; + return n; }(); - a.TimelineBuffer = p; + a.TimelineBuffer = n; })(k.Profiler || (k.Profiler = {})); })(d.Tools || (d.Tools = {})); })(Shumway || (Shumway = {})); @@ -5281,8 +5285,8 @@ __extends = this.__extends || function(d, k) { a[a.DARK = 0] = "DARK"; a[a.LIGHT = 1] = "LIGHT"; })(a.UIThemeType || (a.UIThemeType = {})); - var p = function() { - function p(a, d) { + var n = function() { + function n(a, d) { void 0 === d && (d = 0); this._container = a; this._headers = []; @@ -5292,41 +5296,41 @@ __extends = this.__extends || function(d, k) { this.themeType = d; this._tooltip = this._createTooltip(); } - p.prototype.createProfile = function(d, p) { - var l = new a.Profile(d, p); + n.prototype.createProfile = function(d, n) { + var l = new a.Profile(d, n); l.createSnapshots(); this._profiles.push(l); this.activateProfile(l); return l; }; - p.prototype.activateProfile = function(a) { + n.prototype.activateProfile = function(a) { this.deactivateProfile(); this._activeProfile = a; this._createViews(); this._initializeViews(); }; - p.prototype.activateProfileAt = function(a) { + n.prototype.activateProfileAt = function(a) { this.activateProfile(this.getProfileAt(a)); }; - p.prototype.deactivateProfile = function() { + n.prototype.deactivateProfile = function() { this._activeProfile && (this._destroyViews(), this._activeProfile = null); }; - p.prototype.resize = function() { + n.prototype.resize = function() { this._onResize(); }; - p.prototype.getProfileAt = function(a) { + n.prototype.getProfileAt = function(a) { return this._profiles[a]; }; - Object.defineProperty(p.prototype, "activeProfile", {get:function() { + Object.defineProperty(n.prototype, "activeProfile", {get:function() { return this._activeProfile; }, enumerable:!0, configurable:!0}); - Object.defineProperty(p.prototype, "profileCount", {get:function() { + Object.defineProperty(n.prototype, "profileCount", {get:function() { return this._profiles.length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(p.prototype, "container", {get:function() { + Object.defineProperty(n.prototype, "container", {get:function() { return this._container; }, enumerable:!0, configurable:!0}); - Object.defineProperty(p.prototype, "themeType", {get:function() { + Object.defineProperty(n.prototype, "themeType", {get:function() { return this._themeType; }, set:function(a) { switch(a) { @@ -5337,25 +5341,25 @@ __extends = this.__extends || function(d, k) { this._theme = new k.Theme.UIThemeLight; } }, enumerable:!0, configurable:!0}); - Object.defineProperty(p.prototype, "theme", {get:function() { + Object.defineProperty(n.prototype, "theme", {get:function() { return this._theme; }, enumerable:!0, configurable:!0}); - p.prototype.getSnapshotAt = function(a) { + n.prototype.getSnapshotAt = function(a) { return this._activeProfile.getSnapshotAt(a); }; - p.prototype._createViews = function() { + n.prototype._createViews = function() { if (this._activeProfile) { var d = this; this._overviewHeader = new a.FlameChartHeader(this, 0); this._overview = new a.FlameChartOverview(this, 0); - this._activeProfile.forEachSnapshot(function(p, l) { + this._activeProfile.forEachSnapshot(function(n, l) { d._headers.push(new a.FlameChartHeader(d, 1)); - d._charts.push(new a.FlameChart(d, p)); + d._charts.push(new a.FlameChart(d, n)); }); window.addEventListener("resize", this._onResize.bind(this)); } }; - p.prototype._destroyViews = function() { + n.prototype._destroyViews = function() { if (this._activeProfile) { this._overviewHeader.destroy(); for (this._overview.destroy();this._headers.length;) { @@ -5367,18 +5371,18 @@ __extends = this.__extends || function(d, k) { window.removeEventListener("resize", this._onResize.bind(this)); } }; - p.prototype._initializeViews = function() { + n.prototype._initializeViews = function() { if (this._activeProfile) { var a = this, d = this._activeProfile.startTime, l = this._activeProfile.endTime; this._overviewHeader.initialize(d, l); this._overview.initialize(d, l); - this._activeProfile.forEachSnapshot(function(c, h) { - a._headers[h].initialize(d, l); - a._charts[h].initialize(d, l); + this._activeProfile.forEachSnapshot(function(c, g) { + a._headers[g].initialize(d, l); + a._charts[g].initialize(d, l); }); } }; - p.prototype._onResize = function() { + n.prototype._onResize = function() { if (this._activeProfile) { var a = this, d = this._container.offsetWidth; this._overviewHeader.setSize(d); @@ -5389,94 +5393,94 @@ __extends = this.__extends || function(d, k) { }); } }; - p.prototype._updateViews = function() { + n.prototype._updateViews = function() { if (this._activeProfile) { var a = this, d = this._activeProfile.windowStart, l = this._activeProfile.windowEnd; this._overviewHeader.setWindow(d, l); this._overview.setWindow(d, l); - this._activeProfile.forEachSnapshot(function(c, h) { - a._headers[h].setWindow(d, l); - a._charts[h].setWindow(d, l); + this._activeProfile.forEachSnapshot(function(c, g) { + a._headers[g].setWindow(d, l); + a._charts[g].setWindow(d, l); }); } }; - p.prototype._drawViews = function() { + n.prototype._drawViews = function() { }; - p.prototype._createTooltip = function() { + n.prototype._createTooltip = function() { var a = document.createElement("div"); a.classList.add("profiler-tooltip"); a.style.display = "none"; this._container.insertBefore(a, this._container.firstChild); return a; }; - p.prototype.setWindow = function(a, d) { + n.prototype.setWindow = function(a, d) { this._activeProfile.setWindow(a, d); this._updateViews(); }; - p.prototype.moveWindowTo = function(a) { + n.prototype.moveWindowTo = function(a) { this._activeProfile.moveWindowTo(a); this._updateViews(); }; - p.prototype.showTooltip = function(a, d, l, c) { + n.prototype.showTooltip = function(a, d, l, c) { this.removeTooltipContent(); this._tooltip.appendChild(this.createTooltipContent(a, d)); this._tooltip.style.display = "block"; - var h = this._tooltip.firstChild; - d = h.clientWidth; - h = h.clientHeight; + var g = this._tooltip.firstChild; + d = g.clientWidth; + g = g.clientHeight; l += l + d >= a.canvas.clientWidth - 50 ? -(d + 20) : 25; - c += a.canvas.offsetTop - h / 2; + c += a.canvas.offsetTop - g / 2; this._tooltip.style.left = l + "px"; this._tooltip.style.top = c + "px"; }; - p.prototype.hideTooltip = function() { + n.prototype.hideTooltip = function() { this._tooltip.style.display = "none"; }; - p.prototype.createTooltipContent = function(a, d) { - var l = Math.round(1E5 * d.totalTime) / 1E5, c = Math.round(1E5 * d.selfTime) / 1E5, h = Math.round(1E4 * d.selfTime / d.totalTime) / 100, q = document.createElement("div"), s = document.createElement("h1"); - s.textContent = d.kind.name; - q.appendChild(s); - s = document.createElement("p"); - s.textContent = "Total: " + l + " ms"; - q.appendChild(s); + n.prototype.createTooltipContent = function(a, d) { + var l = Math.round(1E5 * d.totalTime) / 1E5, c = Math.round(1E5 * d.selfTime) / 1E5, g = Math.round(1E4 * d.selfTime / d.totalTime) / 100, q = document.createElement("div"), r = document.createElement("h1"); + r.textContent = d.kind.name; + q.appendChild(r); + r = document.createElement("p"); + r.textContent = "Total: " + l + " ms"; + q.appendChild(r); l = document.createElement("p"); - l.textContent = "Self: " + c + " ms (" + h + "%)"; + l.textContent = "Self: " + c + " ms (" + g + "%)"; q.appendChild(l); if (c = a.getStatistics(d.kind)) { - h = document.createElement("p"), h.textContent = "Count: " + c.count, q.appendChild(h), h = Math.round(1E5 * c.totalTime) / 1E5, l = document.createElement("p"), l.textContent = "All Total: " + h + " ms", q.appendChild(l), c = Math.round(1E5 * c.selfTime) / 1E5, h = document.createElement("p"), h.textContent = "All Self: " + c + " ms", q.appendChild(h); + g = document.createElement("p"), g.textContent = "Count: " + c.count, q.appendChild(g), g = Math.round(1E5 * c.totalTime) / 1E5, l = document.createElement("p"), l.textContent = "All Total: " + g + " ms", q.appendChild(l), c = Math.round(1E5 * c.selfTime) / 1E5, g = document.createElement("p"), g.textContent = "All Self: " + c + " ms", q.appendChild(g); } this.appendDataElements(q, d.startData); this.appendDataElements(q, d.endData); return q; }; - p.prototype.appendDataElements = function(a, p) { - if (!d.isNullOrUndefined(p)) { + n.prototype.appendDataElements = function(a, n) { + if (!d.isNullOrUndefined(n)) { a.appendChild(document.createElement("hr")); var l; - if (d.isObject(p)) { - for (var c in p) { - l = document.createElement("p"), l.textContent = c + ": " + p[c], a.appendChild(l); + if (d.isObject(n)) { + for (var c in n) { + l = document.createElement("p"), l.textContent = c + ": " + n[c], a.appendChild(l); } } else { - l = document.createElement("p"), l.textContent = p.toString(), a.appendChild(l); + l = document.createElement("p"), l.textContent = n.toString(), a.appendChild(l); } } }; - p.prototype.removeTooltipContent = function() { + n.prototype.removeTooltipContent = function() { for (var a = this._tooltip;a.firstChild;) { a.removeChild(a.firstChild); } }; - return p; + return n; }(); - a.Controller = p; + a.Controller = n; })(k.Profiler || (k.Profiler = {})); })(d.Tools || (d.Tools = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var p = d.NumberUtilities.clamp, k = function() { + var n = d.NumberUtilities.clamp, k = function() { function a(l) { this.value = l; } @@ -5520,7 +5524,7 @@ __extends = this.__extends || function(d, k) { return a; }(); a.MouseCursor = k; - var t = function() { + var v = function() { function a(l, c) { this._target = l; this._eventTarget = c; @@ -5570,11 +5574,11 @@ __extends = this.__extends || function(d, k) { a.prototype._onDrag = function(a) { var c = this._dragInfo; a = this._getTargetMousePos(a, c.originalTarget); - var h = {x:a.x - c.start.x, y:a.y - c.start.y}; + var g = {x:a.x - c.start.x, y:a.y - c.start.y}; c.current = a; - c.delta = h; + c.delta = g; c.hasMoved = !0; - this._target.onDrag(c.start.x, c.start.y, a.x, a.y, h.x, h.y); + this._target.onDrag(c.start.x, c.start.y, a.x, a.y, g.x, g.y); }; a.prototype._onMouseUp = function(a) { window.removeEventListener("mousemove", this._boundOnDrag); @@ -5618,7 +5622,7 @@ __extends = this.__extends || function(d, k) { a.prototype._onMouseWheel = function(a) { if (!(a.altKey || a.metaKey || a.ctrlKey || a.shiftKey || (a.preventDefault(), this._dragInfo || this._wheelDisabled))) { var c = this._getTargetMousePos(a, a.target); - a = p("undefined" !== typeof a.deltaY ? a.deltaY / 16 : -a.wheelDelta / 40, -1, 1); + a = n("undefined" !== typeof a.deltaY ? a.deltaY / 16 : -a.wheelDelta / 40, -1, 1); this._target.onMouseWheel(c.x, c.y, Math.pow(1.2, a) - 1); } }; @@ -5640,14 +5644,14 @@ __extends = this.__extends || function(d, k) { this._target.onHoverStart(a.pos.x, a.pos.y); }; a.prototype._getTargetMousePos = function(a, c) { - var h = c.getBoundingClientRect(); - return{x:a.clientX - h.left, y:a.clientY - h.top}; + var g = c.getBoundingClientRect(); + return {x:a.clientX - g.left, y:a.clientY - g.top}; }; a.HOVER_TIMEOUT = 500; a._cursor = k.DEFAULT; return a; }(); - a.MouseController = t; + a.MouseController = v; })(k.Profiler || (k.Profiler = {})); })(d.Tools || (d.Tools = {})); })(Shumway || (Shumway = {})); @@ -5662,16 +5666,16 @@ __extends = this.__extends || function(d, k) { a[a.HANDLE_BOTH = 4] = "HANDLE_BOTH"; })(a.FlameChartDragTarget || (a.FlameChartDragTarget = {})); var d = function() { - function d(p) { - this._controller = p; + function d(n) { + this._controller = n; this._initialized = !1; this._canvas = document.createElement("canvas"); this._context = this._canvas.getContext("2d"); this._mouseController = new a.MouseController(this, this._canvas); - p = p.container; - p.appendChild(this._canvas); - p = p.getBoundingClientRect(); - this.setSize(p.width); + n = n.container; + n.appendChild(this._canvas); + n = n.getBoundingClientRect(); + this.setSize(n.width); } Object.defineProperty(d.prototype, "canvas", {get:function() { return this._canvas; @@ -5726,7 +5730,7 @@ __extends = this.__extends || function(d, k) { return this._almostEq(this._windowStart, this._rangeStart) && this._almostEq(this._windowEnd, this._rangeEnd); }; d.prototype._decimalPlaces = function(a) { - return(+a).toFixed(10).replace(/^-?\d*\.?|0+$/g, "").length; + return (+a).toFixed(10).replace(/^-?\d*\.?|0+$/g, "").length; }; d.prototype._toPixelsRelative = function(a) { return 0; @@ -5740,12 +5744,12 @@ __extends = this.__extends || function(d, k) { d.prototype._toTime = function(a) { return 0; }; - d.prototype.onMouseWheel = function(a, p, l) { + d.prototype.onMouseWheel = function(a, n, l) { a = this._toTime(a); - p = this._windowStart; - var c = this._windowEnd, h = c - p; - l = Math.max((d.MIN_WINDOW_LEN - h) / h, l); - this._controller.setWindow(p + (p - a) * l, c + (c - a) * l); + n = this._windowStart; + var c = this._windowEnd, g = c - n; + l = Math.max((d.MIN_WINDOW_LEN - g) / g, l); + this._controller.setWindow(n + (n - a) * l, c + (c - a) * l); this.onHoverEnd(); }; d.prototype.onMouseDown = function(a, d) { @@ -5756,9 +5760,9 @@ __extends = this.__extends || function(d, k) { }; d.prototype.onMouseOut = function() { }; - d.prototype.onDrag = function(a, d, l, c, h, q) { + d.prototype.onDrag = function(a, d, l, c, g, q) { }; - d.prototype.onDragEnd = function(a, d, l, c, h, q) { + d.prototype.onDragEnd = function(a, d, l, c, g, q) { }; d.prototype.onClick = function(a, d) { }; @@ -5777,7 +5781,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.StringUtilities.trimMiddle, k = function(k) { + var n = d.StringUtilities.trimMiddle, k = function(k) { function u(a, c) { k.call(this, a); this._textWidth = {}; @@ -5812,46 +5816,46 @@ __extends = this.__extends || function(d, k) { }; u.prototype._drawChildren = function(a, c) { void 0 === c && (c = 0); - var h = a.getChildRange(this._windowStart, this._windowEnd); - if (h) { - for (var q = h.startIndex;q <= h.endIndex;q++) { - var s = a.children[q]; - this._drawFrame(s, c) && this._drawChildren(s, c + 1); + var g = a.getChildRange(this._windowStart, this._windowEnd); + if (g) { + for (var q = g.startIndex;q <= g.endIndex;q++) { + var r = a.children[q]; + this._drawFrame(r, c) && this._drawChildren(r, c + 1); } } }; u.prototype._drawFrame = function(a, c) { - var h = this._context, q = this._toPixels(a.startTime), s = this._toPixels(a.endTime), m = s - q; + var g = this._context, q = this._toPixels(a.startTime), r = this._toPixels(a.endTime), m = r - q; if (m <= this._minFrameWidthInPixels) { - return h.fillStyle = this._controller.theme.tabToolbar(1), h.fillRect(q, 12.5 * c, this._minFrameWidthInPixels, 12 + 12.5 * (a.maxDepth - a.depth)), !1; + return g.fillStyle = this._controller.theme.tabToolbar(1), g.fillRect(q, 12.5 * c, this._minFrameWidthInPixels, 12 + 12.5 * (a.maxDepth - a.depth)), !1; } - 0 > q && (s = m + q, q = 0); - var s = s - q, g = this._kindStyle[a.kind.id]; - g || (g = d.ColorStyle.randomStyle(), g = this._kindStyle[a.kind.id] = {bgColor:g, textColor:d.ColorStyle.contrastStyle(g)}); - h.save(); - h.fillStyle = g.bgColor; - h.fillRect(q, 12.5 * c, s, 12); - 12 < m && (m = a.kind.name) && m.length && (m = this._prepareText(h, m, s - 4), m.length && (h.fillStyle = g.textColor, h.textBaseline = "bottom", h.fillText(m, q + 2, 12.5 * (c + 1) - 1))); - h.restore(); - return!0; + 0 > q && (r = m + q, q = 0); + var r = r - q, h = this._kindStyle[a.kind.id]; + h || (h = d.ColorStyle.randomStyle(), h = this._kindStyle[a.kind.id] = {bgColor:h, textColor:d.ColorStyle.contrastStyle(h)}); + g.save(); + g.fillStyle = h.bgColor; + g.fillRect(q, 12.5 * c, r, 12); + 12 < m && (m = a.kind.name) && m.length && (m = this._prepareText(g, m, r - 4), m.length && (g.fillStyle = h.textColor, g.textBaseline = "bottom", g.fillText(m, q + 2, 12.5 * (c + 1) - 1))); + g.restore(); + return !0; }; - u.prototype._prepareText = function(a, c, h) { + u.prototype._prepareText = function(a, c, g) { var q = this._measureWidth(a, c); - if (h > q) { + if (g > q) { return c; } - for (var q = 3, s = c.length;q < s;) { - var m = q + s >> 1; - this._measureWidth(a, p(c, m)) < h ? q = m + 1 : s = m; + for (var q = 3, r = c.length;q < r;) { + var m = q + r >> 1; + this._measureWidth(a, n(c, m)) < g ? q = m + 1 : r = m; } - c = p(c, s - 1); + c = n(c, r - 1); q = this._measureWidth(a, c); - return q <= h ? c : ""; + return q <= g ? c : ""; }; u.prototype._measureWidth = function(a, c) { - var h = this._textWidth[c]; - h || (h = a.measureText(c).width, this._textWidth[c] = h); - return h; + var g = this._textWidth[c]; + g || (g = a.measureText(c).width, this._textWidth[c] = g); + return g; }; u.prototype._toPixelsRelative = function(a) { return a * this._width / (this._windowEnd - this._windowStart); @@ -5866,9 +5870,9 @@ __extends = this.__extends || function(d, k) { return this._toTimeRelative(a) + this._windowStart; }; u.prototype._getFrameAtPosition = function(a, c) { - var h = 1 + c / 12.5 | 0, q = this._snapshot.query(this._toTime(a)); - if (q && q.depth >= h) { - for (;q && q.depth > h;) { + var g = 1 + c / 12.5 | 0, q = this._snapshot.query(this._toTime(a)); + if (q && q.depth >= g) { + for (;q && q.depth > g;) { q = q.parent; } return q; @@ -5884,12 +5888,12 @@ __extends = this.__extends || function(d, k) { }; u.prototype.onMouseOut = function() { }; - u.prototype.onDrag = function(a, c, h, q, s, m) { + u.prototype.onDrag = function(a, c, g, q, r, m) { if (a = this._dragInfo) { - s = this._toTimeRelative(-s), this._controller.setWindow(a.windowStartInitial + s, a.windowEndInitial + s); + r = this._toTimeRelative(-r), this._controller.setWindow(a.windowStartInitial + r, a.windowEndInitial + r); } }; - u.prototype.onDragEnd = function(l, c, h, q, s, m) { + u.prototype.onDragEnd = function(l, c, g, q, r, m) { this._dragInfo = null; this._mouseController.updateCursor(a.MouseCursor.DEFAULT); }; @@ -5898,8 +5902,8 @@ __extends = this.__extends || function(d, k) { this._mouseController.updateCursor(a.MouseCursor.DEFAULT); }; u.prototype.onHoverStart = function(a, c) { - var h = this._getFrameAtPosition(a, c); - h && (this._hoveredFrame = h, this._controller.showTooltip(this, h, a, c)); + var g = this._getFrameAtPosition(a, c); + g && (this._hoveredFrame = g, this._controller.showTooltip(this, g, a, c)); }; u.prototype.onHoverEnd = function() { this._hoveredFrame && (this._hoveredFrame = null, this._controller.hideTooltip()); @@ -5918,7 +5922,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.NumberUtilities.clamp; + var n = d.NumberUtilities.clamp; (function(a) { a[a.OVERLAY = 0] = "OVERLAY"; a[a.STACK = 1] = "STACK"; @@ -5948,24 +5952,24 @@ __extends = this.__extends || function(d, k) { this._overviewCanvasDirty = !0; }; k.prototype.draw = function() { - var a = this._context, c = window.devicePixelRatio, h = this._width, q = this._height; + var a = this._context, c = window.devicePixelRatio, g = this._width, q = this._height; a.save(); a.scale(c, c); a.fillStyle = this._controller.theme.bodyBackground(1); - a.fillRect(0, 0, h, q); + a.fillRect(0, 0, g, q); a.restore(); this._initialized && (this._overviewCanvasDirty && (this._drawChart(), this._overviewCanvasDirty = !1), a.drawImage(this._overviewCanvas, 0, 0), this._drawSelection()); }; k.prototype._drawSelection = function() { - var a = this._context, c = this._height, h = window.devicePixelRatio, q = this._selection ? this._selection.left : this._toPixels(this._windowStart), s = this._selection ? this._selection.right : this._toPixels(this._windowEnd), m = this._controller.theme; + var a = this._context, c = this._height, g = window.devicePixelRatio, q = this._selection ? this._selection.left : this._toPixels(this._windowStart), r = this._selection ? this._selection.right : this._toPixels(this._windowEnd), m = this._controller.theme; a.save(); - a.scale(h, h); - this._selection ? (a.fillStyle = m.selectionText(.15), a.fillRect(q, 1, s - q, c - 1), a.fillStyle = "rgba(133, 0, 0, 1)", a.fillRect(q + .5, 0, s - q - 1, 4), a.fillRect(q + .5, c - 4, s - q - 1, 4)) : (a.fillStyle = m.bodyBackground(.4), a.fillRect(0, 1, q, c - 1), a.fillRect(s, 1, this._width, c - 1)); + a.scale(g, g); + this._selection ? (a.fillStyle = m.selectionText(.15), a.fillRect(q, 1, r - q, c - 1), a.fillStyle = "rgba(133, 0, 0, 1)", a.fillRect(q + .5, 0, r - q - 1, 4), a.fillRect(q + .5, c - 4, r - q - 1, 4)) : (a.fillStyle = m.bodyBackground(.4), a.fillRect(0, 1, q, c - 1), a.fillRect(r, 1, this._width, c - 1)); a.beginPath(); a.moveTo(q, 0); a.lineTo(q, c); - a.moveTo(s, 0); - a.lineTo(s, c); + a.moveTo(r, 0); + a.lineTo(r, c); a.lineWidth = .5; a.strokeStyle = m.foregroundTextGrey(1); a.stroke(); @@ -5974,29 +5978,29 @@ __extends = this.__extends || function(d, k) { a.font = "8px sans-serif"; a.textBaseline = "alphabetic"; a.textAlign = "end"; - a.fillText(c.toFixed(2), Math.min(q, s) - 4, 10); - a.fillText((c / 60).toFixed(2), Math.min(q, s) - 4, 20); + a.fillText(c.toFixed(2), Math.min(q, r) - 4, 10); + a.fillText((c / 60).toFixed(2), Math.min(q, r) - 4, 20); a.restore(); }; k.prototype._drawChart = function() { - var a = window.devicePixelRatio, c = this._height, h = this._controller.activeProfile, q = 4 * this._width, s = h.totalTime / q, m = this._overviewContext, g = this._controller.theme.blueHighlight(1); + var a = window.devicePixelRatio, c = this._height, g = this._controller.activeProfile, q = 4 * this._width, r = g.totalTime / q, m = this._overviewContext, h = this._controller.theme.blueHighlight(1); m.save(); m.translate(0, a * c); - var f = -a * c / (h.maxDepth - 1); + var f = -a * c / (g.maxDepth - 1); m.scale(a / 4, f); - m.clearRect(0, 0, q, h.maxDepth - 1); - 1 == this._mode && m.scale(1, 1 / h.snapshotCount); - for (var b = 0, e = h.snapshotCount;b < e;b++) { - var r = h.getSnapshotAt(b); - if (r) { - var n = null, x = 0; + m.clearRect(0, 0, q, g.maxDepth - 1); + 1 == this._mode && m.scale(1, 1 / g.snapshotCount); + for (var b = 0, e = g.snapshotCount;b < e;b++) { + var t = g.getSnapshotAt(b); + if (t) { + var p = null, C = 0; m.beginPath(); m.moveTo(0, 0); for (var d = 0;d < q;d++) { - x = h.startTime + d * s, x = (n = n ? n.queryNext(x) : r.query(x)) ? n.getDepth() - 1 : 0, m.lineTo(d, x); + C = g.startTime + d * r, C = (p = p ? p.queryNext(C) : t.query(C)) ? p.getDepth() - 1 : 0, m.lineTo(d, C); } m.lineTo(d, 0); - m.fillStyle = g; + m.fillStyle = h; m.fill(); 1 == this._mode && m.translate(0, -c * a / f); } @@ -6017,30 +6021,30 @@ __extends = this.__extends || function(d, k) { }; k.prototype._getDragTargetUnderCursor = function(l, c) { if (0 <= c && c < this._height) { - var h = this._toPixels(this._windowStart), q = this._toPixels(this._windowEnd), s = 2 + a.FlameChartBase.DRAGHANDLE_WIDTH / 2, m = l >= h - s && l <= h + s, g = l >= q - s && l <= q + s; - if (m && g) { + var g = this._toPixels(this._windowStart), q = this._toPixels(this._windowEnd), r = 2 + a.FlameChartBase.DRAGHANDLE_WIDTH / 2, m = l >= g - r && l <= g + r, h = l >= q - r && l <= q + r; + if (m && h) { return 4; } if (m) { return 2; } - if (g) { + if (h) { return 3; } - if (!this._windowEqRange() && l > h + s && l < q - s) { + if (!this._windowEqRange() && l > g + r && l < q - r) { return 1; } } return 0; }; k.prototype.onMouseDown = function(l, c) { - var h = this._getDragTargetUnderCursor(l, c); - 0 === h ? (this._selection = {left:l, right:l}, this.draw()) : (1 === h && this._mouseController.updateCursor(a.MouseCursor.GRABBING), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:h}); + var g = this._getDragTargetUnderCursor(l, c); + 0 === g ? (this._selection = {left:l, right:l}, this.draw()) : (1 === g && this._mouseController.updateCursor(a.MouseCursor.GRABBING), this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:g}); }; k.prototype.onMouseMove = function(l, c) { - var h = a.MouseCursor.DEFAULT, q = this._getDragTargetUnderCursor(l, c); - 0 === q || this._selection || (h = 1 === q ? a.MouseCursor.GRAB : a.MouseCursor.EW_RESIZE); - this._mouseController.updateCursor(h); + var g = a.MouseCursor.DEFAULT, q = this._getDragTargetUnderCursor(l, c); + 0 === q || this._selection || (g = 1 === q ? a.MouseCursor.GRAB : a.MouseCursor.EW_RESIZE); + this._mouseController.updateCursor(g); }; k.prototype.onMouseOver = function(a, c) { this.onMouseMove(a, c); @@ -6048,42 +6052,42 @@ __extends = this.__extends || function(d, k) { k.prototype.onMouseOut = function() { this._mouseController.updateCursor(a.MouseCursor.DEFAULT); }; - k.prototype.onDrag = function(l, c, h, q, s, m) { + k.prototype.onDrag = function(l, c, g, q, r, m) { if (this._selection) { - this._selection = {left:l, right:p(h, 0, this._width - 1)}, this.draw(); + this._selection = {left:l, right:n(g, 0, this._width - 1)}, this.draw(); } else { l = this._dragInfo; if (4 === l.target) { - if (0 !== s) { - l.target = 0 > s ? 2 : 3; + if (0 !== r) { + l.target = 0 > r ? 2 : 3; } else { return; } } c = this._windowStart; - h = this._windowEnd; - s = this._toTimeRelative(s); + g = this._windowEnd; + r = this._toTimeRelative(r); switch(l.target) { case 1: - c = l.windowStartInitial + s; - h = l.windowEndInitial + s; + c = l.windowStartInitial + r; + g = l.windowEndInitial + r; break; case 2: - c = p(l.windowStartInitial + s, this._rangeStart, h - a.FlameChartBase.MIN_WINDOW_LEN); + c = n(l.windowStartInitial + r, this._rangeStart, g - a.FlameChartBase.MIN_WINDOW_LEN); break; case 3: - h = p(l.windowEndInitial + s, c + a.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); + g = n(l.windowEndInitial + r, c + a.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; } - this._controller.setWindow(c, h); + this._controller.setWindow(c, g); } }; - k.prototype.onDragEnd = function(a, c, h, q, s, m) { - this._selection && (this._selection = null, this._controller.setWindow(this._toTime(a), this._toTime(h))); + k.prototype.onDragEnd = function(a, c, g, q, r, m) { + this._selection && (this._selection = null, this._controller.setWindow(this._toTime(a), this._toTime(g))); this._dragInfo = null; - this.onMouseMove(h, q); + this.onMouseMove(g, q); }; k.prototype.onClick = function(a, c) { this._selection = this._dragInfo = null; @@ -6103,7 +6107,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.NumberUtilities.clamp; + var n = d.NumberUtilities.clamp; (function(a) { a[a.OVERVIEW = 0] = "OVERVIEW"; a[a.CHART = 1] = "CHART"; @@ -6115,29 +6119,29 @@ __extends = this.__extends || function(d, k) { } __extends(k, d); k.prototype.draw = function() { - var a = this._context, c = window.devicePixelRatio, h = this._width, q = this._height; + var a = this._context, c = window.devicePixelRatio, g = this._width, q = this._height; a.save(); a.scale(c, c); a.fillStyle = this._controller.theme.tabToolbar(1); - a.fillRect(0, 0, h, q); - this._initialized && (0 == this._type ? (c = this._toPixels(this._windowStart), h = this._toPixels(this._windowEnd), a.fillStyle = this._controller.theme.bodyBackground(1), a.fillRect(c, 0, h - c, q), this._drawLabels(this._rangeStart, this._rangeEnd), this._drawDragHandle(c), this._drawDragHandle(h)) : this._drawLabels(this._windowStart, this._windowEnd)); + a.fillRect(0, 0, g, q); + this._initialized && (0 == this._type ? (c = this._toPixels(this._windowStart), g = this._toPixels(this._windowEnd), a.fillStyle = this._controller.theme.bodyBackground(1), a.fillRect(c, 0, g - c, q), this._drawLabels(this._rangeStart, this._rangeEnd), this._drawDragHandle(c), this._drawDragHandle(g)) : this._drawLabels(this._windowStart, this._windowEnd)); a.restore(); }; k.prototype._drawLabels = function(a, c) { - var h = this._context, q = this._calculateTickInterval(a, c), s = Math.ceil(a / q) * q, m = 500 <= q, g = m ? 1E3 : 1, f = this._decimalPlaces(q / g), m = m ? "s" : "ms", b = this._toPixels(s), e = this._height / 2, r = this._controller.theme; - h.lineWidth = 1; - h.strokeStyle = r.contentTextDarkGrey(.5); - h.fillStyle = r.contentTextDarkGrey(1); - h.textAlign = "right"; - h.textBaseline = "middle"; - h.font = "11px sans-serif"; - for (r = this._width + k.TICK_MAX_WIDTH;b < r;) { - h.fillText((s / g).toFixed(f) + " " + m, b - 7, e + 1), h.beginPath(), h.moveTo(b, 0), h.lineTo(b, this._height + 1), h.closePath(), h.stroke(), s += q, b = this._toPixels(s); + var g = this._context, q = this._calculateTickInterval(a, c), r = Math.ceil(a / q) * q, m = 500 <= q, h = m ? 1E3 : 1, f = this._decimalPlaces(q / h), m = m ? "s" : "ms", b = this._toPixels(r), e = this._height / 2, t = this._controller.theme; + g.lineWidth = 1; + g.strokeStyle = t.contentTextDarkGrey(.5); + g.fillStyle = t.contentTextDarkGrey(1); + g.textAlign = "right"; + g.textBaseline = "middle"; + g.font = "11px sans-serif"; + for (t = this._width + k.TICK_MAX_WIDTH;b < t;) { + g.fillText((r / h).toFixed(f) + " " + m, b - 7, e + 1), g.beginPath(), g.moveTo(b, 0), g.lineTo(b, this._height + 1), g.closePath(), g.stroke(), r += q, b = this._toPixels(r); } }; k.prototype._calculateTickInterval = function(a, c) { - var h = (c - a) / (this._width / k.TICK_MAX_WIDTH), q = Math.pow(10, Math.floor(Math.log(h) / Math.LN10)), h = h / q; - return 5 < h ? 10 * q : 2 < h ? 5 * q : 1 < h ? 2 * q : q; + var g = (c - a) / (this._width / k.TICK_MAX_WIDTH), q = Math.pow(10, Math.floor(Math.log(g) / Math.LN10)), g = g / q; + return 5 < g ? 10 * q : 2 < g ? 5 * q : 1 < g ? 2 * q : q; }; k.prototype._drawDragHandle = function(l) { var c = this._context; @@ -6146,23 +6150,23 @@ __extends = this.__extends || function(d, k) { c.fillStyle = this._controller.theme.foregroundTextGrey(.7); this._drawRoundedRect(c, l - a.FlameChartBase.DRAGHANDLE_WIDTH / 2, a.FlameChartBase.DRAGHANDLE_WIDTH, this._height - 2); }; - k.prototype._drawRoundedRect = function(a, c, h, q) { - var s, m = !0; + k.prototype._drawRoundedRect = function(a, c, g, q) { + var r, m = !0; void 0 === m && (m = !0); - void 0 === s && (s = !0); + void 0 === r && (r = !0); a.beginPath(); a.moveTo(c + 2, 1); - a.lineTo(c + h - 2, 1); - a.quadraticCurveTo(c + h, 1, c + h, 3); - a.lineTo(c + h, 1 + q - 2); - a.quadraticCurveTo(c + h, 1 + q, c + h - 2, 1 + q); + a.lineTo(c + g - 2, 1); + a.quadraticCurveTo(c + g, 1, c + g, 3); + a.lineTo(c + g, 1 + q - 2); + a.quadraticCurveTo(c + g, 1 + q, c + g - 2, 1 + q); a.lineTo(c + 2, 1 + q); a.quadraticCurveTo(c, 1 + q, c, 1 + q - 2); a.lineTo(c, 3); a.quadraticCurveTo(c, 1, c + 2, 1); a.closePath(); m && a.stroke(); - s && a.fill(); + r && a.fill(); }; k.prototype._toPixelsRelative = function(a) { return a * this._width / (0 === this._type ? this._rangeEnd - this._rangeStart : this._windowEnd - this._windowStart); @@ -6179,11 +6183,11 @@ __extends = this.__extends || function(d, k) { k.prototype._getDragTargetUnderCursor = function(l, c) { if (0 <= c && c < this._height) { if (0 === this._type) { - var h = this._toPixels(this._windowStart), q = this._toPixels(this._windowEnd), s = 2 + a.FlameChartBase.DRAGHANDLE_WIDTH / 2, h = l >= h - s && l <= h + s, q = l >= q - s && l <= q + s; - if (h && q) { + var g = this._toPixels(this._windowStart), q = this._toPixels(this._windowEnd), r = 2 + a.FlameChartBase.DRAGHANDLE_WIDTH / 2, g = l >= g - r && l <= g + r, q = l >= q - r && l <= q + r; + if (g && q) { return 4; } - if (h) { + if (g) { return 2; } if (q) { @@ -6197,14 +6201,14 @@ __extends = this.__extends || function(d, k) { return 0; }; k.prototype.onMouseDown = function(l, c) { - var h = this._getDragTargetUnderCursor(l, c); - 1 === h && this._mouseController.updateCursor(a.MouseCursor.GRABBING); - this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:h}; + var g = this._getDragTargetUnderCursor(l, c); + 1 === g && this._mouseController.updateCursor(a.MouseCursor.GRABBING); + this._dragInfo = {windowStartInitial:this._windowStart, windowEndInitial:this._windowEnd, target:g}; }; k.prototype.onMouseMove = function(l, c) { - var h = a.MouseCursor.DEFAULT, q = this._getDragTargetUnderCursor(l, c); - 0 !== q && (1 !== q ? h = a.MouseCursor.EW_RESIZE : 1 !== q || this._windowEqRange() || (h = a.MouseCursor.GRAB)); - this._mouseController.updateCursor(h); + var g = a.MouseCursor.DEFAULT, q = this._getDragTargetUnderCursor(l, c); + 0 !== q && (1 !== q ? g = a.MouseCursor.EW_RESIZE : 1 !== q || this._windowEqRange() || (g = a.MouseCursor.GRAB)); + this._mouseController.updateCursor(g); }; k.prototype.onMouseOver = function(a, c) { this.onMouseMove(a, c); @@ -6212,38 +6216,38 @@ __extends = this.__extends || function(d, k) { k.prototype.onMouseOut = function() { this._mouseController.updateCursor(a.MouseCursor.DEFAULT); }; - k.prototype.onDrag = function(l, c, h, q, s, m) { + k.prototype.onDrag = function(l, c, g, q, r, m) { l = this._dragInfo; if (4 === l.target) { - if (0 !== s) { - l.target = 0 > s ? 2 : 3; + if (0 !== r) { + l.target = 0 > r ? 2 : 3; } else { return; } } c = this._windowStart; - h = this._windowEnd; - s = this._toTimeRelative(s); + g = this._windowEnd; + r = this._toTimeRelative(r); switch(l.target) { case 1: - h = 0 === this._type ? 1 : -1; - c = l.windowStartInitial + h * s; - h = l.windowEndInitial + h * s; + g = 0 === this._type ? 1 : -1; + c = l.windowStartInitial + g * r; + g = l.windowEndInitial + g * r; break; case 2: - c = p(l.windowStartInitial + s, this._rangeStart, h - a.FlameChartBase.MIN_WINDOW_LEN); + c = n(l.windowStartInitial + r, this._rangeStart, g - a.FlameChartBase.MIN_WINDOW_LEN); break; case 3: - h = p(l.windowEndInitial + s, c + a.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); + g = n(l.windowEndInitial + r, c + a.FlameChartBase.MIN_WINDOW_LEN, this._rangeEnd); break; default: return; } - this._controller.setWindow(c, h); + this._controller.setWindow(c, g); }; - k.prototype.onDragEnd = function(a, c, h, q, s, m) { + k.prototype.onDragEnd = function(a, c, g, q, r, m) { this._dragInfo = null; - this.onMouseMove(h, q); + this.onMouseMove(g, q); }; k.prototype.onClick = function(l, c) { 1 === this._dragInfo.target && this._mouseController.updateCursor(a.MouseCursor.GRAB); @@ -6264,15 +6268,15 @@ __extends = this.__extends || function(d, k) { (function(a) { (function(a) { var d = function() { - function a(l, c, h, q, s) { + function a(l, c, g, q, r) { this.pageLoaded = l; this.threadsTotal = c; - this.threadsLoaded = h; + this.threadsLoaded = g; this.threadFilesTotal = q; - this.threadFilesLoaded = s; + this.threadFilesLoaded = r; } a.prototype.toString = function() { - return "[" + ["pageLoaded", "threadsTotal", "threadsLoaded", "threadFilesTotal", "threadFilesLoaded"].map(function(a, c, h) { + return "[" + ["pageLoaded", "threadsTotal", "threadsLoaded", "threadFilesTotal", "threadFilesLoaded"].map(function(a, c, g) { return a + ":" + this[a]; }, this).join(", ") + "]"; }; @@ -6285,15 +6289,15 @@ __extends = this.__extends || function(d, k) { this._threads = []; this._progressInfo = null; } - k.prototype.loadPage = function(a, c, h) { + k.prototype.loadPage = function(a, c, g) { this._threads = []; this._pageLoadCallback = c; - this._pageLoadProgressCallback = h; + this._pageLoadProgressCallback = g; this._progressInfo = new d(!1, 0, 0, 0, 0); this._loadData([a], this._onLoadPage.bind(this)); }; Object.defineProperty(k.prototype, "buffers", {get:function() { - for (var a = [], c = 0, h = this._threads.length;c < h;c++) { + for (var a = [], c = 0, g = this._threads.length;c < g;c++) { a.push(this._threads[c].buffer); } return a; @@ -6303,25 +6307,25 @@ __extends = this.__extends || function(d, k) { }; k.prototype._onLoadPage = function(l) { if (l && 1 == l.length) { - var c = this, h = 0; + var c = this, g = 0; l = l[0]; var q = l.length; this._threads = Array(q); this._progressInfo.pageLoaded = !0; this._progressInfo.threadsTotal = q; - for (var s = 0;s < l.length;s++) { - var m = l[s], g = [m.dict, m.tree]; - m.corrections && g.push(m.corrections); - this._progressInfo.threadFilesTotal += g.length; - this._loadData(g, function(f) { + for (var r = 0;r < l.length;r++) { + var m = l[r], h = [m.dict, m.tree]; + m.corrections && h.push(m.corrections); + this._progressInfo.threadFilesTotal += h.length; + this._loadData(h, function(f) { return function(b) { b && (b = new a.Thread(b), b.buffer.name = "Thread " + f, c._threads[f] = b); - h++; + g++; c._progressInfo.threadsLoaded++; c._onProgress(); - h === q && c._pageLoadCallback.call(c, null, c._threads); + g === q && c._pageLoadCallback.call(c, null, c._threads); }; - }(s), function(f) { + }(r), function(f) { c._progressInfo.threadFilesLoaded++; c._onProgress(); }); @@ -6331,33 +6335,33 @@ __extends = this.__extends || function(d, k) { this._pageLoadCallback.call(this, "Error loading page.", null); } }; - k.prototype._loadData = function(a, c, h) { - var q = 0, s = 0, m = a.length, g = []; - g.length = m; + k.prototype._loadData = function(a, c, g) { + var q = 0, r = 0, m = a.length, h = []; + h.length = m; for (var f = 0;f < m;f++) { - var b = this._baseUrl + a[f], e = new XMLHttpRequest, r = /\.tl$/i.test(b) ? "arraybuffer" : "json"; + var b = this._baseUrl + a[f], e = new XMLHttpRequest, t = /\.tl$/i.test(b) ? "arraybuffer" : "json"; e.open("GET", b, !0); - e.responseType = r; + e.responseType = t; e.onload = function(b, e) { return function(f) { if ("json" === e) { if (f = this.response, "string" === typeof f) { try { - f = JSON.parse(f), g[b] = f; + f = JSON.parse(f), h[b] = f; } catch (a) { - s++; + r++; } } else { - g[b] = f; + h[b] = f; } } else { - g[b] = this.response; + h[b] = this.response; } ++q; - h && h(q); - q === m && c(g); + g && g(q); + q === m && c(h); }; - }(f, r); + }(f, t); e.send(); } }; @@ -6383,8 +6387,8 @@ __extends = this.__extends || function(d, k) { a[a.NEXTID = 20] = "NEXTID"; })(k || (k = {})); k = function() { - function d(p) { - 2 <= p.length && (this._text = p[0], this._data = new DataView(p[1]), this._buffer = new a.TimelineBuffer, this._walkTree(0)); + function d(n) { + 2 <= n.length && (this._text = n[0], this._data = new DataView(n[1]), this._buffer = new a.TimelineBuffer, this._walkTree(0)); } Object.defineProperty(d.prototype, "buffer", {get:function() { return this._buffer; @@ -6392,11 +6396,11 @@ __extends = this.__extends || function(d, k) { d.prototype._walkTree = function(a) { var l = this._data, c = this._buffer; do { - var h = a * d.ITEM_SIZE, q = 4294967295 * l.getUint32(h + 0) + l.getUint32(h + 4), s = 4294967295 * l.getUint32(h + 8) + l.getUint32(h + 12), m = l.getUint32(h + 16), h = l.getUint32(h + 20), g = 1 === (m & 1), m = m >>> 1, m = this._text[m]; + var g = a * d.ITEM_SIZE, q = 4294967295 * l.getUint32(g + 0) + l.getUint32(g + 4), r = 4294967295 * l.getUint32(g + 8) + l.getUint32(g + 12), m = l.getUint32(g + 16), g = l.getUint32(g + 20), h = 1 === (m & 1), m = m >>> 1, m = this._text[m]; c.enter(m, null, q / 1E6); - g && this._walkTree(a + 1); - c.leave(m, null, s / 1E6); - a = h; + h && this._walkTree(a + 1); + c.leave(m, null, r / 1E6); + a = g; } while (0 !== a); }; d.ITEM_SIZE = 24; @@ -6410,7 +6414,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.NumberUtilities.clamp, k = function() { + var n = d.NumberUtilities.clamp, k = function() { function a() { this.length = 0; this.lines = []; @@ -6420,8 +6424,8 @@ __extends = this.__extends || function(d, k) { this.length = 0; } a.prototype.append = function(a, c) { - var h = this.lines; - 0 < h.length && h[h.length - 1] === a ? this.repeat[h.length - 1]++ : (this.lines.push(a), this.repeat.push(1), this.format.push(c ? {backgroundFillStyle:c} : void 0), this.time.push(performance.now()), this.length++); + var g = this.lines; + 0 < g.length && g[g.length - 1] === a ? this.repeat[g.length - 1]++ : (this.lines.push(a), this.repeat.push(1), this.format.push(c ? {backgroundFillStyle:c} : void 0), this.time.push(performance.now()), this.length++); }; a.prototype.get = function(a) { return this.lines[a]; @@ -6438,7 +6442,7 @@ __extends = this.__extends || function(d, k) { return a; }(); a.Buffer = k; - var t = function() { + var v = function() { function a(l) { this.lineColor = "#2A2A2A"; this.alternateLineColor = "#262626"; @@ -6465,28 +6469,28 @@ __extends = this.__extends || function(d, k) { l.addEventListener("keydown", function(a) { var l = 0; switch(a.keyCode) { - case n: + case p: this.showLineNumbers = !this.showLineNumbers; break; - case x: + case C: this.showLineTime = !this.showLineTime; break; case m: l = -1; break; - case g: + case h: l = 1; break; case c: l = -this.pageLineCount; break; - case h: + case g: l = this.pageLineCount; break; case q: l = -this.lineIndex; break; - case s: + case r: l = this.buffer.length - this.lineIndex; break; case f: @@ -6501,12 +6505,12 @@ __extends = this.__extends || function(d, k) { case e: a.metaKey && (this.selection = {start:0, end:this.buffer.length}, a.preventDefault()); break; - case r: + case t: if (a.metaKey) { var d = ""; if (this.selection) { - for (var p = this.selection.start;p <= this.selection.end;p++) { - d += this.buffer.get(p) + "\n"; + for (var n = this.selection.start;n <= this.selection.end;n++) { + d += this.buffer.get(n) + "\n"; } } else { d = this.buffer.get(this.lineIndex); @@ -6526,18 +6530,18 @@ __extends = this.__extends || function(d, k) { l.addEventListener("blur", function(b) { this.hasFocus = !1; }.bind(this), !1); - var c = 33, h = 34, q = 36, s = 35, m = 38, g = 40, f = 37, b = 39, e = 65, r = 67, n = 78, x = 84; + var c = 33, g = 34, q = 36, r = 35, m = 38, h = 40, f = 37, b = 39, e = 65, t = 67, p = 78, C = 84; } a.prototype.resize = function() { this._resizeHandler(); }; a.prototype._resizeHandler = function() { - var a = this.canvas.parentElement, c = a.clientWidth, a = a.clientHeight - 1, h = window.devicePixelRatio || 1; - 1 !== h ? (this.ratio = h / 1, this.canvas.width = c * this.ratio, this.canvas.height = a * this.ratio, this.canvas.style.width = c + "px", this.canvas.style.height = a + "px") : (this.ratio = 1, this.canvas.width = c, this.canvas.height = a); + var a = this.canvas.parentElement, c = a.clientWidth, a = a.clientHeight - 1, g = window.devicePixelRatio || 1; + 1 !== g ? (this.ratio = g / 1, this.canvas.width = c * this.ratio, this.canvas.height = a * this.ratio, this.canvas.style.width = c + "px", this.canvas.style.height = a + "px") : (this.ratio = 1, this.canvas.width = c, this.canvas.height = a); this.pageLineCount = Math.floor(this.canvas.height / this.lineHeight); }; a.prototype.gotoLine = function(a) { - this.lineIndex = p(a, 0, this.buffer.length - 1); + this.lineIndex = n(a, 0, this.buffer.length - 1); }; a.prototype.scrollIntoView = function() { this.lineIndex < this.pageIndex ? this.pageIndex = this.lineIndex : this.lineIndex >= this.pageIndex + this.pageLineCount && (this.pageIndex = this.lineIndex - this.pageLineCount + 1); @@ -6549,41 +6553,41 @@ __extends = this.__extends || function(d, k) { a.prototype.paint = function() { var a = this.pageLineCount; this.pageIndex + a > this.buffer.length && (a = this.buffer.length - this.pageIndex); - var c = this.textMarginLeft, h = c + (this.showLineNumbers ? 5 * (String(this.buffer.length).length + 2) : 0), q = h + (this.showLineTime ? 40 : 10), s = q + 25; + var c = this.textMarginLeft, g = c + (this.showLineNumbers ? 5 * (String(this.buffer.length).length + 2) : 0), q = g + (this.showLineTime ? 40 : 10), r = q + 25; this.context.font = this.fontSize + 'px Consolas, "Liberation Mono", Courier, monospace'; this.context.setTransform(this.ratio, 0, 0, this.ratio, 0, 0); - for (var m = this.canvas.width, g = this.lineHeight, f = 0;f < a;f++) { - var b = f * this.lineHeight, e = this.pageIndex + f, r = this.buffer.get(e), n = this.buffer.getFormat(e), x = this.buffer.getRepeat(e), d = 1 < e ? this.buffer.getTime(e) - this.buffer.getTime(0) : 0; + for (var m = this.canvas.width, h = this.lineHeight, f = 0;f < a;f++) { + var b = f * this.lineHeight, e = this.pageIndex + f, t = this.buffer.get(e), p = this.buffer.getFormat(e), C = this.buffer.getRepeat(e), d = 1 < e ? this.buffer.getTime(e) - this.buffer.getTime(0) : 0; this.context.fillStyle = e % 2 ? this.lineColor : this.alternateLineColor; - n && n.backgroundFillStyle && (this.context.fillStyle = n.backgroundFillStyle); - this.context.fillRect(0, b, m, g); + p && p.backgroundFillStyle && (this.context.fillStyle = p.backgroundFillStyle); + this.context.fillRect(0, b, m, h); this.context.fillStyle = this.selectionTextColor; this.context.fillStyle = this.textColor; - this.selection && e >= this.selection.start && e <= this.selection.end && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, b, m, g), this.context.fillStyle = this.selectionTextColor); - this.hasFocus && e === this.lineIndex && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, b, m, g), this.context.fillStyle = this.selectionTextColor); - 0 < this.columnIndex && (r = r.substring(this.columnIndex)); + this.selection && e >= this.selection.start && e <= this.selection.end && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, b, m, h), this.context.fillStyle = this.selectionTextColor); + this.hasFocus && e === this.lineIndex && (this.context.fillStyle = this.selectionColor, this.context.fillRect(0, b, m, h), this.context.fillStyle = this.selectionTextColor); + 0 < this.columnIndex && (t = t.substring(this.columnIndex)); b = (f + 1) * this.lineHeight - this.textMarginBottom; this.showLineNumbers && this.context.fillText(String(e), c, b); - this.showLineTime && this.context.fillText(d.toFixed(1).padLeft(" ", 6), h, b); - 1 < x && this.context.fillText(String(x).padLeft(" ", 3), q, b); - this.context.fillText(r, s, b); + this.showLineTime && this.context.fillText(d.toFixed(1).padLeft(" ", 6), g, b); + 1 < C && this.context.fillText(String(C).padLeft(" ", 3), q, b); + this.context.fillText(t, r, b); } }; a.prototype.refreshEvery = function(a) { function c() { - h.paint(); - h.refreshFrequency && setTimeout(c, h.refreshFrequency); + g.paint(); + g.refreshFrequency && setTimeout(c, g.refreshFrequency); } - var h = this; + var g = this; this.refreshFrequency = a; - h.refreshFrequency && setTimeout(c, h.refreshFrequency); + g.refreshFrequency && setTimeout(c, g.refreshFrequency); }; a.prototype.isScrolledToBottom = function() { return this.lineIndex === this.buffer.length - 1; }; return a; }(); - a.Terminal = t; + a.Terminal = v; })(k.Terminal || (k.Terminal = {})); })(d.Tools || (d.Tools = {})); })(Shumway || (Shumway = {})); @@ -6626,21 +6630,21 @@ __extends = this.__extends || function(d, k) { if (0 === this._lastTime) { this._lastTime = performance.now(); } else { - var l = 1 * (performance.now() - this._lastTime) + 0 * this._lastWeightedTime, c = this._context, h = 2 * this._ratio, q = 30 * this._ratio, s = performance; - s.memory && (q += 30 * this._ratio); - var m = (this._canvas.width - q) / (h + 1) | 0, g = this._index++; + var l = 1 * (performance.now() - this._lastTime) + 0 * this._lastWeightedTime, c = this._context, g = 2 * this._ratio, q = 30 * this._ratio, r = performance; + r.memory && (q += 30 * this._ratio); + var m = (this._canvas.width - q) / (g + 1) | 0, h = this._index++; this._index > m && (this._index = 0); m = this._canvas.height; c.globalAlpha = 1; c.fillStyle = "black"; - c.fillRect(q + g * (h + 1), 0, 4 * h, this._canvas.height); + c.fillRect(q + h * (g + 1), 0, 4 * g, this._canvas.height); var f = Math.min(1E3 / 60 / l, 1); c.fillStyle = "#00FF00"; c.globalAlpha = a ? .5 : 1; f = m / 2 * f | 0; - c.fillRect(q + g * (h + 1), m - f, h, f); - d && (f = Math.min(1E3 / 240 / d, 1), c.fillStyle = "#FF6347", f = m / 2 * f | 0, c.fillRect(q + g * (h + 1), m / 2 - f, h, f)); - 0 === g % 16 && (c.globalAlpha = 1, c.fillStyle = "black", c.fillRect(0, 0, q, this._canvas.height), c.fillStyle = "white", c.font = 8 * this._ratio + "px Arial", c.textBaseline = "middle", h = (1E3 / l).toFixed(0), d && (h += " " + d.toFixed(0)), s.memory && (h += " " + (s.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)), c.fillText(h, 2 * this._ratio, this._containerHeight / 2 * this._ratio)); + c.fillRect(q + h * (g + 1), m - f, g, f); + d && (f = Math.min(1E3 / 240 / d, 1), c.fillStyle = "#FF6347", f = m / 2 * f | 0, c.fillRect(q + h * (g + 1), m / 2 - f, g, f)); + 0 === h % 16 && (c.globalAlpha = 1, c.fillStyle = "black", c.fillRect(0, 0, q, this._canvas.height), c.fillStyle = "white", c.font = 8 * this._ratio + "px Arial", c.textBaseline = "middle", g = (1E3 / l).toFixed(0), d && (g += " " + d.toFixed(0)), r.memory && (g += " " + (r.memory.usedJSHeapSize / 1024 / 1024).toFixed(2)), c.fillText(g, 2 * this._ratio, this._containerHeight / 2 * this._ratio)); this._lastTime = performance.now(); this._lastWeightedTime = l; } @@ -6690,33 +6694,33 @@ console.time("Load AVM2 Dependencies"); InvalidLoaderMethodError:{code:2069, message:"The Loader class does not implement this method."}, InvalidStageMethodError:{code:2071, message:"The Stage class does not implement this property or method."}, LoadingObjectNotSWFError:{code:2098, message:"The loading object is not a .swf file, you cannot request SWF properties from it."}, LoadingObjectNotInitializedError:{code:2099, message:"The loading object is not sufficiently loaded to provide this information."}, DecodeParamError:{code:2101, message:"The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs."}, SceneNotFoundError:{code:2108, message:"Scene %1 was not found."}, FrameLabelNotFoundError:{code:2109, message:"Frame label %1 not found in scene %2."}, InvalidLoaderInfoMethodError:{code:2118, message:"The LoaderInfo class does not implement this method."}, CantAddParentError:{code:2150, message:"An object cannot be added as a child to one of it's children (or children's children, etc.)."}, ObjectWithStringsParamError:{code:2196, message:"Parameter %1 must be an Object with only String values."}}; - for (var p in k.Errors) { - var v = k.Errors[p]; - v.typeName = p; - k.Errors[v.code] = v; + for (var n in k.Errors) { + var w = k.Errors[n]; + w.typeName = n; + k.Errors[w.code] = w; } k.getErrorMessage = function(a) { - var p = "Error #" + a; + var n = "Error #" + a; if (!d.AVM2.Runtime.debuggerMode.value) { - return p; + return n; } a = k.Errors[a]; - return p + ": " + (a && a.message || "(unknown)"); + return n + ": " + (a && a.message || "(unknown)"); }; k.getErrorInfo = function(a) { return k.Errors[a]; }; k.formatErrorMessage = a; - k.translateErrorMessage = function(p) { - if (p.type) { - switch(p.type) { + k.translateErrorMessage = function(n) { + if (n.type) { + switch(n.type) { case "undefined_method": return a(k.Errors.CallOfNonFunctionError, "value"); default: - throw d.Debug.notImplemented(p.type);; + throw d.Debug.notImplemented(n.type);; } } else { - return 0 <= p.message.indexOf("is not a function") ? a(k.Errors.CallOfNonFunctionError, "value") : p.message; + return 0 <= n.message.indexOf("is not a function") ? a(k.Errors.CallOfNonFunctionError, "value") : n.message; } }; })(d.AVM2 || (d.AVM2 = {})); @@ -6725,8 +6729,8 @@ Errors = Shumway.AVM2.Errors; (function(d) { (function(k) { (function(a) { - var p = null; - "undefined" !== typeof TextDecoder && (p = new TextDecoder); + var n = null; + "undefined" !== typeof TextDecoder && (n = new TextDecoder); var k = function() { function a(d) { this._bytes = d; @@ -6783,7 +6787,7 @@ Errors = Shumway.AVM2.Errors; return a; }; a.prototype.readS24 = function() { - return(this.readU8() | this.readU8() << 8 | this.readU8() << 16) << 8 >> 8; + return (this.readU8() | this.readU8() << 8 | this.readU8() << 16) << 8 >> 8; }; a.prototype.readDouble = function() { var a = this._view.getFloat64(this._position, !0); @@ -6791,20 +6795,20 @@ Errors = Shumway.AVM2.Errors; return a; }; a.prototype.readUTFString = function(k) { - if (p) { + if (n) { var l = this._position; this._position += k; - return p.decode(this._bytes.subarray(l, l + k)); + return n.decode(this._bytes.subarray(l, l + k)); } - var l = this._position, c = l + k, h = this._bytes, q = 0; + var l = this._position, c = l + k, g = this._bytes, q = 0; for (k = a._getResultBuffer(2 * k);l < c;) { - var s = h[l++]; - if (127 >= s) { - k[q++] = s; + var r = g[l++]; + if (127 >= r) { + k[q++] = r; } else { - if (192 <= s) { + if (192 <= r) { var m = 0; - 224 > s ? m = (s & 31) << 6 | h[l++] & 63 : 240 > s ? m = (s & 15) << 12 | (h[l++] & 63) << 6 | h[l++] & 63 : (m = ((s & 7) << 18 | (h[l++] & 63) << 12 | (h[l++] & 63) << 6 | h[l++] & 63) - 65536, k[q++] = ((m & 1047552) >>> 10) + 55296, m = (m & 1023) + 56320); + 224 > r ? m = (r & 31) << 6 | g[l++] & 63 : 240 > r ? m = (r & 15) << 12 | (g[l++] & 63) << 6 | g[l++] & 63 : (m = ((r & 7) << 18 | (g[l++] & 63) << 12 | (g[l++] & 63) << 6 | g[l++] & 63) - 65536, k[q++] = ((m & 1047552) >>> 10) + 55296, m = (m & 1023) + 56320); k[q++] = m; } } @@ -6823,8 +6827,8 @@ __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -6832,7 +6836,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.isNumeric, v = d.isObject, t = d.Debug.notImplemented, u = function() { + var n = d.isNumeric, w = d.isObject, v = d.Debug.notImplemented, u = function() { return function(b, e, a, f) { this.name = b; this.type = e; @@ -6842,13 +6846,13 @@ __extends = this.__extends || function(d, k) { }(); a.Parameter = u; var l = function() { - function e(b, f, n) { - var m = b.constantPool, r = b.methods, c = b.classes, h = b.metadata; - this.holder = n; + function e(b, f, p) { + var m = b.constantPool, t = b.methods, c = b.classes, g = b.metadata; + this.holder = p; this.name = m.multinames[f.readU30()]; - n = f.readU8(); - this.kind = n & 15; - this.attributes = n >> 4 & 15; + p = f.readU8(); + this.kind = p & 15; + this.attributes = p >> 4 & 15; switch(this.kind) { case 0: ; @@ -6865,10 +6869,10 @@ __extends = this.__extends || function(d, k) { ; case 2: this.dispId = f.readU30(); - this.methodInfo = r[f.readU30()]; + this.methodInfo = t[f.readU30()]; this.methodInfo.name = this.name; this.methodInfo.flags |= a.MethodTypeFlagByTraitKind[this.kind]; - g.attachHolder(this.methodInfo, this.holder); + h.attachHolder(this.methodInfo, this.holder); this.methodInfo.abc = b; break; case 4: @@ -6877,7 +6881,7 @@ __extends = this.__extends || function(d, k) { if (this.attributes & 4) { var q, m = 0; for (b = f.readU30();m < b;m++) { - r = h[f.readU30()], "__go_to_definition_help" !== r.name && "__go_to_ctor_definition_help" !== r.name && (q || (q = {}), q[r.name] = r); + t = g[f.readU30()], "__go_to_definition_help" !== t.name && "__go_to_ctor_definition_help" !== t.name && (q || (q = {}), q[t.name] = t); } q && (this.isClass() && (this.classInfo.metadata = q), this.metadata = q); } @@ -6954,7 +6958,7 @@ __extends = this.__extends || function(d, k) { } }; e.parseTraits = function(b, a, f) { - for (var g = a.readU30(), m = [], r = 0;r < g;r++) { + for (var h = a.readU30(), m = [], t = 0;t < h;t++) { m.push(new e(b, a, f)); } return m; @@ -6971,31 +6975,31 @@ __extends = this.__extends || function(d, k) { }; }(); a.Info = c; - var h = function(b) { - function e(a, f, g) { + var g = function(b) { + function e(a, f, h) { b.call(this, a, f, 131072); this.holder = null; this.maxScopeDepth = this.initScopeDepth = this.localCount = this.maxStack = 0; this.analysis = this.activationPrototype = this.lastBoundMethod = this.classScope = this.cachedMemoizer = this.cachedMethodOrTrampoline = this.freeMethod = this.exceptions = this.code = null; a = a.constantPool; - f = g.readU30(); - this.returnType = a.multinames[g.readU30()]; + f = h.readU30(); + this.returnType = a.multinames[h.readU30()]; this.parameters = []; for (var m = 0;m < f;m++) { - this.parameters.push(new u(void 0, a.multinames[g.readU30()], void 0, !1)); + this.parameters.push(new u(void 0, a.multinames[h.readU30()], void 0, !1)); } - g.readU30(); - this.flags = g.readU8(); + h.readU30(); + this.flags = h.readU8(); if (this.flags & 8) { - for (m = g.readU30(), m = f - m;m < f;m++) { - var r = g.readU30(); - this.parameters[m].value = a.getValue(g.readU8(), r); + for (m = h.readU30(), m = f - m;m < f;m++) { + var t = h.readU30(); + this.parameters[m].value = a.getValue(h.readU8(), t); this.parameters[m].optional = !0; } } if (this.flags & 128) { for (m = 0;m < f;m++) { - e.parseParameterNames ? this.parameters[m].name = a.strings[g.readU30()] : (g.readU30(), this.parameters[m].name = e._getParameterName(m)); + e.parseParameterNames ? this.parameters[m].name = a.strings[h.readU30()] : (h.readU30(), this.parameters[m].name = e._getParameterName(m)); } } else { for (m = 0;m < f;m++) { @@ -7005,37 +7009,37 @@ __extends = this.__extends || function(d, k) { } __extends(e, b); Object.defineProperty(e.prototype, "hasBody", {get:function() { - return!!(this.flags & 256); + return !!(this.flags & 256); }, set:function(b) { this.flags |= 256; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isInstanceInitializer", {get:function() { - return!!(this.flags & 512); + return !!(this.flags & 512); }, set:function(b) { this.flags |= 512; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isClassInitializer", {get:function() { - return!!(this.flags & 1024); + return !!(this.flags & 1024); }, set:function(b) { this.flags |= 1024; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isScriptInitializer", {get:function() { - return!!(this.flags & 2048); + return !!(this.flags & 2048); }, set:function(b) { this.flags |= 2048; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isMethod", {get:function() { - return!!(this.flags & 4096); + return !!(this.flags & 4096); }, set:function(b) { this.flags |= 4096; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isGetter", {get:function() { - return!!(this.flags & 8192); + return !!(this.flags & 8192); }, set:function(b) { this.flags |= 8192; }, enumerable:!0, configurable:!0}); Object.defineProperty(e.prototype, "isSetter", {get:function() { - return!!(this.flags & 16384); + return !!(this.flags & 16384); }, set:function(b) { this.flags |= 16384; }, enumerable:!0, configurable:!0}); @@ -7044,25 +7048,25 @@ __extends = this.__extends || function(d, k) { }; e.prototype.toString = function() { var b = d.IntegerUtilities.getFlags(this.flags, "NEED_ARGUMENTS NEED_ACTIVATION NEED_REST HAS_OPTIONAL SET_DXN HAS_PARAM_NAMES".split(" ")); - return(b ? b + " " : "") + this.name; + return (b ? b + " " : "") + this.name; }; e.prototype.hasOptional = function() { - return!!(this.flags & 8); + return !!(this.flags & 8); }; e.prototype.needsActivation = function() { - return!!(this.flags & 2); + return !!(this.flags & 2); }; e.prototype.needsRest = function() { - return!!(this.flags & 4); + return !!(this.flags & 4); }; e.prototype.needsArguments = function() { - return!!(this.flags & 1); + return !!(this.flags & 1); }; e.prototype.isNative = function() { - return!!(this.flags & 32); + return !!(this.flags & 32); }; e.prototype.isClassMember = function() { - return this.holder instanceof s; + return this.holder instanceof r; }; e.prototype.isInstanceMember = function() { return this.holder instanceof q; @@ -7071,7 +7075,7 @@ __extends = this.__extends || function(d, k) { return this.holder instanceof m; }; e.prototype.hasSetsDxns = function() { - return!!(this.flags & 64); + return !!(this.flags & 64); }; e.parseException = function(b, e) { var a = b.constantPool.multinames, f = {start:e.readU30(), end:e.readU30(), target:e.readU30(), typeNameIndex:e.readU30(), typeName:void 0, varName:a[e.readU30()]}; @@ -7079,18 +7083,18 @@ __extends = this.__extends || function(d, k) { return f; }; e.parseBody = function(b, a) { - var f = b.methods, n = a.readU30(), f = f[n]; - f.index = n; + var f = b.methods, p = a.readU30(), f = f[p]; + f.index = p; f.hasBody = !0; f.maxStack = a.readU30(); f.localCount = a.readU30(); f.initScopeDepth = a.readU30(); f.maxScopeDepth = a.readU30(); f.code = a.readU8s(a.readU30()); - for (var n = [], g = a.readU30(), m = 0;m < g;++m) { - n.push(e.parseException(b, a)); + for (var p = [], h = a.readU30(), m = 0;m < h;++m) { + p.push(e.parseException(b, a)); } - f.exceptions = n; + f.exceptions = p; f.traits = l.parseTraits(b, a, f); }; e.prototype.hasExceptions = function() { @@ -7099,13 +7103,13 @@ __extends = this.__extends || function(d, k) { e.parseParameterNames = !1; return e; }(c); - a.MethodInfo = h; + a.MethodInfo = g; var q = function(b) { function e(a, f, m) { b.call(this, a, f, 65536); this.runtimeId = e.nextID++; f = a.constantPool; - var r = a.methods; + var t = a.methods; this.name = f.multinames[m.readU30()]; this.superName = f.multinames[m.readU30()]; this.flags = m.readU8(); @@ -7113,13 +7117,13 @@ __extends = this.__extends || function(d, k) { this.flags & 8 && (this.protectedNs = f.namespaces[m.readU30()]); var c = m.readU30(); this.interfaces = []; - for (var h = 0;h < c;h++) { - this.interfaces[h] = f.multinames[m.readU30()]; + for (var g = 0;g < c;g++) { + this.interfaces[g] = f.multinames[m.readU30()]; } - this.init = r[m.readU30()]; + this.init = t[m.readU30()]; this.init.isInstanceInitializer = !0; this.init.name = this.name; - g.attachHolder(this.init, this); + h.attachHolder(this.init, this); this.traits = l.parseTraits(a, m, this); } __extends(e, b); @@ -7129,13 +7133,13 @@ __extends = this.__extends || function(d, k) { return b; }; e.prototype.isFinal = function() { - return!!(this.flags & 2); + return !!(this.flags & 2); }; e.prototype.isSealed = function() { - return!!(this.flags & 1); + return !!(this.flags & 1); }; e.prototype.isInterface = function() { - return!!(this.flags & 4); + return !!(this.flags & 4); }; e.nextID = 1; return e; @@ -7151,13 +7155,13 @@ __extends = this.__extends || function(d, k) { b[b.NamespaceSet = 262144] = "NamespaceSet"; b[b.IndexOffset = 19] = "IndexOffset"; })(a.Hashes || (a.Hashes = {})); - var s = function(e) { + var r = function(e) { function a(b, f, m) { e.call(this, b, f, 0); this.runtimeId = a.nextID++; this.init = b.methods[m.readU30()]; this.init.isClassInitializer = !0; - g.attachHolder(this.init, this); + h.attachHolder(this.init, this); this.traits = l.parseTraits(b, m, this); this.instanceInfo = b.instances[f]; this.instanceInfo.classInfo = this; @@ -7173,15 +7177,15 @@ __extends = this.__extends || function(d, k) { a.nextID = 1; return a; }(c); - a.ClassInfo = s; + a.ClassInfo = r; var m = function(b) { function e(a, f, m) { b.call(this, a, f, 196608); - this.runtimeId = s.nextID++; + this.runtimeId = r.nextID++; this.name = a.name + "$script" + f; this.init = a.methods[m.readU30()]; this.init.isScriptInitializer = !0; - g.attachHolder(this.init, this); + h.attachHolder(this.init, this); this.traits = l.parseTraits(a, m, this); } __extends(e, b); @@ -7191,11 +7195,11 @@ __extends = this.__extends || function(d, k) { return e; }(c); a.ScriptInfo = m; - var g = function() { - function b(f, g, c) { + var h = function() { + function b(f, h, c) { void 0 === c && (c = 0); k.enterTimeline("Parse ABC"); - this.name = g; + this.name = h; this.env = {}; var l; c || (k.enterTimeline("Adler"), l = d.HashUtilities.hashBytesTo32BitsAdler(f, 0, f.length), k.leaveTimeline()); @@ -7203,46 +7207,46 @@ __extends = this.__extends || function(d, k) { c = new a.AbcStream(f); b._checkMagic(c); k.enterTimeline("Parse constantPool"); - this.constantPool = new r(c, this); + this.constantPool = new t(c, this); k.leaveTimeline(); k.enterTimeline("Parse Method Infos"); this.methods = []; f = c.readU30(); - for (g = 0;g < f;++g) { - this.methods.push(new h(this, g, c)); + for (h = 0;h < f;++h) { + this.methods.push(new g(this, h, c)); } k.leaveTimeline(); k.enterTimeline("Parse MetaData Infos"); this.metadata = []; f = c.readU30(); - for (g = 0;g < f;++g) { + for (h = 0;h < f;++h) { this.metadata.push(new e(this, c)); } k.leaveTimeline(); k.enterTimeline("Parse Instance Infos"); this.instances = []; f = c.readU30(); - for (g = 0;g < f;++g) { - this.instances.push(new q(this, g, c)); + for (h = 0;h < f;++h) { + this.instances.push(new q(this, h, c)); } k.leaveTimeline(); k.enterTimeline("Parse Class Infos"); this.classes = []; - for (g = 0;g < f;++g) { - this.classes.push(new s(this, g, c)); + for (h = 0;h < f;++h) { + this.classes.push(new r(this, h, c)); } k.leaveTimeline(); k.enterTimeline("Parse Script Infos"); this.scripts = []; f = c.readU30(); - for (g = 0;g < f;++g) { - this.scripts.push(new m(this, g, c)); + for (h = 0;h < f;++h) { + this.scripts.push(new m(this, h, c)); } k.leaveTimeline(); k.enterTimeline("Parse Method Body Info"); f = c.readU30(); - for (g = 0;g < f;++g) { - h.parseBody(this, c); + for (h = 0;h < f;++h) { + g.parseBody(this, c); } k.leaveTimeline(); k.leaveTimeline(); @@ -7276,21 +7280,21 @@ __extends = this.__extends || function(d, k) { case 262144: return this.constantPool.namespaceSets[e]; default: - t("Kind"); + v("Kind"); } }; return b; }(); - a.AbcFile = g; + a.AbcFile = h; var f = function() { - function b(e, a, f, g) { + function b(e, a, f, p) { void 0 === a && (a = ""); void 0 === a && (a = ""); this.kind = e; this.uri = a; this.prefix = f; this.qualifiedName = void 0; - this._buildNamespace(g); + this._buildNamespace(p); } b.prototype._buildNamespace = function(e) { 22 === this.kind && (this.kind = 8); @@ -7299,28 +7303,28 @@ __extends = this.__extends || function(d, k) { this.qualifiedName = b._qualifyNamespace(this.kind, this.uri, this.prefix ? this.prefix : ""); }; b._hashNamespace = function(e, a, f) { - var g = b._knownURIs.indexOf(a); - if (0 <= g) { - return e << 2 | g; + var h = b._knownURIs.indexOf(a); + if (0 <= h) { + return e << 2 | h; } - var g = new Int32Array(1 + a.length + f.length), m = 0; - g[m++] = e; + var h = new Int32Array(1 + a.length + f.length), m = 0; + h[m++] = e; for (e = 0;e < a.length;e++) { - g[m++] = a.charCodeAt(e); + h[m++] = a.charCodeAt(e); } for (e = 0;e < f.length;e++) { - g[m++] = f.charCodeAt(e); + h[m++] = f.charCodeAt(e); } - return d.HashUtilities.hashBytesTo32BitsMD5(g, 0, m); + return d.HashUtilities.hashBytesTo32BitsMD5(h, 0, m); }; b._qualifyNamespace = function(e, a, f) { - var g = e + a, m = b._mangledNamespaceCache[g]; + var h = e + a, m = b._mangledNamespaceCache[h]; if (m) { return m; } - "8http://adobe.com/AS3/2006/builtin" === g ? m = "$AS3_" : (m = b._hashNamespace(e, a, f), m = d.StringUtilities.variableLengthEncodeInt32(m)); + "8http://adobe.com/AS3/2006/builtin" === h ? m = "$AS3_" : (m = b._hashNamespace(e, a, f), m = d.StringUtilities.variableLengthEncodeInt32(m)); b._mangledNamespaceMap[m] = {kind:e, uri:a, prefix:f}; - return b._mangledNamespaceCache[g] = m; + return b._mangledNamespaceCache[h] = m; }; b.fromQualifiedName = function(e) { var a = e.charCodeAt(0), a = 36 === a ? e.indexOf("_", 1) : d.StringUtilities.fromEncoding(a); @@ -7340,9 +7344,9 @@ __extends = this.__extends || function(d, k) { return new b(8, e, a); }; b.parse = function(e, a, f) { - var g = a.readU8(); + var h = a.readU8(); e = e.strings[a.readU30()]; - return new b(g, e, void 0, f); + return new b(h, e, void 0, f); }; b.prototype.isPublic = function() { return 8 === this.kind || 22 === this.kind; @@ -7382,10 +7386,10 @@ __extends = this.__extends || function(d, k) { b.prototype.inNamespaceSet = function(b) { for (var e = 0;e < b.length;e++) { if (b[e].qualifiedName === this.qualifiedName) { - return!0; + return !0; } } - return!1; + return !1; }; b.prototype.getAccessModifier = function() { return b._kinds[this.kind]; @@ -7440,43 +7444,43 @@ __extends = this.__extends || function(d, k) { this.name = a; this.flags = f | 0; } - b.parse = function(e, a, f, g, m) { - var r = 0, c = a.readU8(), h, q = [], s = 0; + b.parse = function(e, a, f, h, m) { + var t = 0, c = a.readU8(), g, q = [], r = 0; switch(c) { case 7: ; case 13: - (r = a.readU30()) ? q = [e.namespaces[r]] : s &= ~b.RUNTIME_NAME; - (r = a.readU30()) && (h = e.strings[r]); + (t = a.readU30()) ? q = [e.namespaces[t]] : r &= ~b.RUNTIME_NAME; + (t = a.readU30()) && (g = e.strings[t]); break; case 15: ; case 16: - (r = a.readU30()) ? h = e.strings[r] : s &= ~b.RUNTIME_NAME; - s |= b.RUNTIME_NAMESPACE; + (t = a.readU30()) ? g = e.strings[t] : r &= ~b.RUNTIME_NAME; + r |= b.RUNTIME_NAMESPACE; break; case 17: ; case 18: - s |= b.RUNTIME_NAMESPACE; - s |= b.RUNTIME_NAME; + r |= b.RUNTIME_NAMESPACE; + r |= b.RUNTIME_NAME; break; case 9: ; case 14: - (r = a.readU30()) ? h = e.strings[r] : s &= ~b.RUNTIME_NAME; - r = a.readU30(); - q = e.namespaceSets[r]; + (t = a.readU30()) ? g = e.strings[t] : r &= ~b.RUNTIME_NAME; + t = a.readU30(); + q = e.namespaceSets[t]; break; case 27: ; case 28: - s |= b.RUNTIME_NAME; - r = a.readU30(); - q = e.namespaceSets[r]; + r |= b.RUNTIME_NAME; + t = a.readU30(); + q = e.namespaceSets[t]; break; case 29: - return e = a.readU32(), a.readU32(), a = a.readU32(), r = void 0, f[e] && f[a] ? (r = new b(f[e].namespaces, f[e].name, s), r.typeParameter = f[a]) : g.push({index:m, factoryTypeIndex:e, typeParameterIndex:a, flags:s}), r; + return e = a.readU32(), a.readU32(), a = a.readU32(), t = void 0, f[e] && f[a] ? (t = new b(f[e].namespaces, f[e].name, r), t.typeParameter = f[a]) : h.push({index:m, factoryTypeIndex:e, typeParameterIndex:a, flags:r}), t; default: d.Debug.unexpected(); } @@ -7490,9 +7494,9 @@ __extends = this.__extends || function(d, k) { case 14: ; case 28: - s |= b.ATTRIBUTE; + r |= b.ATTRIBUTE; } - return new b(q, h, s); + return new b(q, g, r); }; b.isMultiname = function(e) { return "number" === typeof e || "string" === typeof e || e instanceof b || e instanceof Number; @@ -7518,7 +7522,7 @@ __extends = this.__extends || function(d, k) { return e.qualifiedName; } var a = String(e.name); - if (p(a) && e.namespaces[0].isPublic()) { + if (n(a) && e.namespaces[0].isPublic()) { return e.qualifiedName = a; } e = e.qualifiedName = b.qualifyName(e.namespaces[0], a); @@ -7536,7 +7540,7 @@ __extends = this.__extends || function(d, k) { if (e instanceof b) { return e; } - if (p(e)) { + if (n(e)) { return new b([f.PUBLIC], e, 0); } if ("$" === e[0]) { @@ -7557,10 +7561,10 @@ __extends = this.__extends || function(d, k) { if ("string" === typeof e && (a = b._publicQualifiedNameCache[e])) { return a; } - if (p(e)) { + if (n(e)) { return d.toNumber(e); } - if (null !== e && v(e)) { + if (null !== e && w(e)) { return e; } a = b.qualifyName(f.PUBLIC, e); @@ -7568,13 +7572,13 @@ __extends = this.__extends || function(d, k) { return a; }; b.isPublicQualifiedName = function(b) { - return "number" === typeof b || p(b) || 1 === b.indexOf(f.PUBLIC.qualifiedName); + return "number" === typeof b || n(b) || 1 === b.indexOf(f.PUBLIC.qualifiedName); }; b.getAccessModifier = function(b) { return "number" === typeof b || "string" === typeof b || b instanceof Number ? "public" : b.namespaces[0].getAccessModifier(); }; b.isNumeric = function(e) { - return "number" === typeof e ? !0 : "string" === typeof e ? p(e) : !isNaN(parseInt(b.getName(e), 10)); + return "number" === typeof e ? !0 : "string" === typeof e ? n(e) : !isNaN(parseInt(b.getName(e), 10)); }; b.getName = function(b) { return b.getName(); @@ -7586,11 +7590,11 @@ __extends = this.__extends || function(d, k) { if (e in b._simpleNameCache) { return b._simpleNameCache[e]; } - var a, g; + var a, h; a = e.lastIndexOf("."); 0 >= a && (a = e.lastIndexOf(" ")); - 0 < a && a < e.length - 1 ? (g = e.substring(a + 1).trim(), a = e.substring(0, a).trim()) : (g = e, a = ""); - return b._simpleNameCache[e] = new b(f.fromSimpleName(a), g, 0); + 0 < a && a < e.length - 1 ? (h = e.substring(a + 1).trim(), a = e.substring(0, a).trim()) : (h = e, a = ""); + return b._simpleNameCache[e] = new b(f.fromSimpleName(a), h, 0); }; b.prototype.getQName = function(e) { this._qualifiedNameCache || (this._qualifiedNameCache = []); @@ -7600,41 +7604,41 @@ __extends = this.__extends || function(d, k) { }; b.prototype.hasQName = function(b) { if (this.name !== b.name) { - return!1; + return !1; } for (var e = 0;e < this.namespaces.length;e++) { if (this.namespaces[e].isEqualTo(b.namespaces[0])) { - return!0; + return !0; } } - return!1; + return !1; }; b.prototype.isAttribute = function() { - return!!(this.flags & b.ATTRIBUTE); + return !!(this.flags & b.ATTRIBUTE); }; b.prototype.isAnyName = function() { return b.isAnyName(this); }; b.prototype.isAnyNamespace = function() { - return!this.isRuntimeNamespace() && (0 === this.namespaces.length || this.isAnyName() && 1 !== this.namespaces.length); + return !this.isRuntimeNamespace() && (0 === this.namespaces.length || this.isAnyName() && 1 !== this.namespaces.length); }; b.prototype.isRuntimeName = function() { - return!!(this.flags & b.RUNTIME_NAME); + return !!(this.flags & b.RUNTIME_NAME); }; b.prototype.isRuntimeNamespace = function() { - return!!(this.flags & b.RUNTIME_NAMESPACE); + return !!(this.flags & b.RUNTIME_NAMESPACE); }; b.prototype.isRuntime = function() { - return!!(this.flags & (b.RUNTIME_NAME | b.RUNTIME_NAMESPACE)); + return !!(this.flags & (b.RUNTIME_NAME | b.RUNTIME_NAMESPACE)); }; b.prototype.isQName = function() { return 1 === this.namespaces.length && !this.isAnyName(); }; b.prototype.isSimpleStatic = function() { - return!(this.flags & (b.RUNTIME_NAME | b.RUNTIME_NAMESPACE)) && 1 === this.namespaces.length; + return !(this.flags & (b.RUNTIME_NAME | b.RUNTIME_NAMESPACE)) && 1 === this.namespaces.length; }; b.prototype.hasTypeParameter = function() { - return!!this.typeParameter; + return !!this.typeParameter; }; b.prototype.getName = function() { return this.name; @@ -7703,15 +7707,15 @@ __extends = this.__extends || function(d, k) { a.Multiname = b; var e = function() { function b(e, a) { - for (var f = e.constantPool.strings, g = this.name = f[a.readU30()], m = a.readU30(), n = [], r = [], c = 0;c < m;c++) { - n[c] = f[a.readU30()]; + for (var f = e.constantPool.strings, h = this.name = f[a.readU30()], p = a.readU30(), m = [], t = [], c = 0;c < p;c++) { + m[c] = f[a.readU30()]; } - for (c = 0;c < m;c++) { - var h = n[c]; - r[c] = {key:h, value:f[a.readU30()]}; - h && "native" === g && (this[h] = r[c].value); + for (c = 0;c < p;c++) { + var g = m[c]; + t[c] = {key:g, value:f[a.readU30()]}; + g && "native" === h && (this[g] = t[c].value); } - this.value = r; + this.value = t; } b.prototype.toString = function() { return "[" + this.name + "]"; @@ -7794,17 +7798,17 @@ __extends = this.__extends || function(d, k) { b[b.RETURNINDEXEDARRAY = 8] = "RETURNINDEXEDARRAY"; b[b.NUMERIC = 16] = "NUMERIC"; })(a.SORT || (a.SORT = {})); - var r = function() { - function e(a, g) { - var m, r = [0]; + var t = function() { + function e(a, h) { + var m, t = [0]; m = a.readU30(); for (var c = 1;c < m;++c) { - r.push(a.readS32()); + t.push(a.readS32()); } - var h = [0]; + var g = [0]; m = a.readU30(); for (c = 1;c < m;++c) { - h.push(a.readU32()); + g.push(a.readU32()); } var q = [NaN]; m = a.readU30(); @@ -7812,51 +7816,51 @@ __extends = this.__extends || function(d, k) { q.push(a.readDouble()); } k.enterTimeline("Parse Strings"); - var s = [""]; + var r = [""]; m = a.readU30(); for (c = 1;c < m;++c) { - s.push(a.readUTFString(a.readU30())); + r.push(a.readUTFString(a.readU30())); } k.leaveTimeline(); - this.ints = r; - this.uints = h; + this.ints = t; + this.uints = g; this.doubles = q; - this.strings = s; + this.strings = r; k.enterTimeline("Parse Namespaces"); - r = [void 0]; + t = [void 0]; m = a.readU30(); for (c = 1;c < m;++c) { - r.push(f.parse(this, a, g.hash + c)); + t.push(f.parse(this, a, h.hash + c)); } k.leaveTimeline(); k.enterTimeline("Parse Namespace Sets"); - h = [void 0]; + g = [void 0]; m = a.readU30(); for (c = 1;c < m;++c) { q = a.readU30(); - s = []; - s.runtimeId = e._nextNamespaceSetID++; - s.hash = g.hash & 65535 | 262144 | c << 19; + r = []; + r.runtimeId = e._nextNamespaceSetID++; + r.hash = h.hash & 65535 | 262144 | c << 19; for (var l = 0;l < q;++l) { - s.push(r[a.readU30()]); + r.push(t[a.readU30()]); } - h.push(s); + g.push(r); } k.leaveTimeline(); - this.namespaces = r; - this.namespaceSets = h; + this.namespaces = t; + this.namespaceSets = g; k.enterTimeline("Parse Multinames"); - r = [void 0]; - h = []; + t = [void 0]; + g = []; m = a.readU30(); for (c = 1;c < m;++c) { - r.push(b.parse(this, a, r, h, c)); + t.push(b.parse(this, a, t, g, c)); } - for (c = 0;c < h.length;c++) { - m = h[c], s = r[m.factoryTypeIndex], q = r[m.typeParameterIndex], s = new b(s.namespaces, s.name, m.flags), s.typeParameter = q, r[m.index] = s; + for (c = 0;c < g.length;c++) { + m = g[c], r = t[m.factoryTypeIndex], q = t[m.typeParameterIndex], r = new b(r.namespaces, r.name, m.flags), r.typeParameter = q, t[m.index] = r; } k.leaveTimeline(); - this.multinames = r; + this.multinames = t; } e.prototype.getValue = function(b, e) { switch(b) { @@ -7869,9 +7873,9 @@ __extends = this.__extends || function(d, k) { case 1: return this.strings[e]; case 11: - return!0; + return !0; case 10: - return!1; + return !1; case 12: return null; case 8: @@ -7899,109 +7903,109 @@ __extends = this.__extends || function(d, k) { e._nextNamespaceSetID = 1; return e; }(); - a.ConstantPool = r; + a.ConstantPool = t; })(k.ABC || (k.ABC = {})); })(d.AVM2 || (d.AVM2 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - function p(a, c, m, g) { - void 0 === g && (g = null); + function n(a, c, m, h) { + void 0 === h && (h = null); 0 !== m.length && (a.enter(c + " {"), m.forEach(function(f, b) { - f.trace(a, g); + f.trace(a, h); }), a.leave("}")); } - function v(a, c, m) { - var g; - void 0 === g && (g = !1); + function w(a, c, m) { + var h; + void 0 === h && (h = !1); var f = m.position, b = ""; null === a.operands ? b = "null" : a.operands.forEach(function(e, f) { - var g = b, h; + var h = b, g; a: { - h = 0; + g = 0; switch(e.size) { case 1: - h = m.readS8(); + g = m.readS8(); break; case 0: - h = m.readU8(); + g = m.readU8(); break; case 2: - h = m.readS16(); + g = m.readS16(); break; case 3: - h = m.readS24(); + g = m.readS24(); break; case 4: - h = m.readU30(); + g = m.readU30(); break; case 5: - h = m.readU32(); + g = m.readU32(); } var l = ""; switch(e.type) { case "": break; case "I": - l = c.constantPool.ints[h]; + l = c.constantPool.ints[g]; break; case "U": - l = c.constantPool.uints[h]; + l = c.constantPool.uints[g]; break; case "D": - l = c.constantPool.doubles[h]; + l = c.constantPool.doubles[g]; break; case "S": - l = c.constantPool.strings[h]; + l = c.constantPool.strings[g]; break; case "N": - l = c.constantPool.namespaces[h]; + l = c.constantPool.namespaces[g]; break; case "CI": - l = c.classes[h]; + l = c.classes[g]; break; case "M": - h = c.constantPool.multinames[h]; + g = c.constantPool.multinames[g]; break a; default: l = "?"; } - h = e.name + ":" + h + ("" === l ? "" : " (" + l + ")"); + g = e.name + ":" + g + ("" === l ? "" : " (" + l + ")"); } - b = g + h; + b = h + g; f < a.operands.length - 1 && (b += ", "); }); - g && m.seek(f); + h && m.seek(f); return b; } - function t(a, c) { - var m = new h(a); + function v(a, c) { + var m = new g(a); c.scripts.forEach(function(a) { m.traceTraits(a.traits); }); } - function u(c, h) { - var m = new d.Metrics.Counter(!0), g = new d.Metrics.Counter(!0), f = new d.Metrics.Counter(!0), b = new d.Metrics.Counter(!0), e = {}, r = {}, n = {}; - h.classes.forEach(function(b) { + function u(c, g) { + var m = new d.Metrics.Counter(!0), h = new d.Metrics.Counter(!0), f = new d.Metrics.Counter(!0), b = new d.Metrics.Counter(!0), e = {}, t = {}, p = {}; + g.classes.forEach(function(b) { e[b.instanceInfo.name.name] = !0; }); - h.scripts.forEach(function(b) { + g.scripts.forEach(function(b) { b.traits.forEach(function(b) { if (b.isClass()) { var a = b.classInfo.instanceInfo.superName ? b.classInfo.instanceInfo.superName.name : "?"; - a in e || g.count(a); + a in e || h.count(a); b.classInfo.traits.forEach(function(b) { - b.isMethod() ? r[b.name.name] = !0 : n[b.name.name] = !0; + b.isMethod() ? t[b.name.name] = !0 : p[b.name.name] = !0; }); b.classInfo.instanceInfo.traits.forEach(function(b) { - !b.isMethod() || b.attributes & 2 ? n[b.name.name] = !0 : r[b.name.name] = !0; + !b.isMethod() || b.attributes & 2 ? p[b.name.name] = !0 : t[b.name.name] = !0; }); } }); }); var l = new d.Metrics.Counter(!0); - h.methods.forEach(function(g) { + g.methods.forEach(function(h) { function c(b) { var e = 0; switch(b.size) { @@ -8028,37 +8032,37 @@ __extends = this.__extends || function(d, k) { case "": break; case "I": - a = h.constantPool.ints[e]; + a = g.constantPool.ints[e]; break; case "U": - a = h.constantPool.uints[e]; + a = g.constantPool.uints[e]; break; case "D": - a = h.constantPool.doubles[e]; + a = g.constantPool.doubles[e]; break; case "S": - a = h.constantPool.strings[e]; + a = g.constantPool.strings[e]; break; case "N": - a = h.constantPool.namespaces[e]; + a = g.constantPool.namespaces[e]; break; case "CI": - a = h.classes[e]; + a = g.classes[e]; break; case "M": - a = h.constantPool.multinames[e]; + a = g.constantPool.multinames[e]; break; default: a = "?"; } return a; } - if (g.code) { - for (var q = new a.AbcStream(g.code);0 < q.remaining();) { - g = q.readU8(); - var d = k.opcodeTable[g], p = null; + if (h.code) { + for (var q = new a.AbcStream(h.code);0 < q.remaining();) { + h = q.readU8(); + var d = k.opcodeTable[h], n = null; if (d) { - switch(l.count(k.opcodeName(d)), d.operands && (p = d.operands.map(c)), g) { + switch(l.count(k.opcodeName(d)), d.operands && (n = d.operands.map(c)), h) { case 65: ; case 67: @@ -8074,46 +8078,46 @@ __extends = this.__extends || function(d, k) { case 69: ; case 78: - !p[0] || p[0].name in r || f.count(p[0].name); + !n[0] || n[0].name in t || f.count(n[0].name); break; case 74: - !p[0] || p[0].name in e || m.count(p[0].name); + !n[0] || n[0].name in e || m.count(n[0].name); break; case 102: ; case 97: - !p[0] || p[0].name in n || b.count(p[0].name); + !n[0] || n[0].name in p || b.count(n[0].name); } } } } }); - c.writeLn(JSON.stringify({definedClasses:e, definedMethods:r, definedProperties:n, libraryClasses:m.counts, librarySuperClasses:g.counts, libraryMethods:f.counts, libraryProperties:b.counts, operations:l.counts}, null, 2)); + c.writeLn(JSON.stringify({definedClasses:e, definedMethods:t, definedProperties:p, libraryClasses:m.counts, librarySuperClasses:h.counts, libraryMethods:f.counts, libraryProperties:b.counts, operations:l.counts}, null, 2)); } var l = d.Debug.notImplemented, c = new d.Options.Option("f", "filter", "string", "SpciMsmNtu", "[S]ource, constant[p]ool, [c]lasses, [i]nstances, [M]etadata, [s]cripts, [m]ethods, multi[N]ames, S[t]atistics, [u]tf"); a.AbcFile.prototype.trace = function(a) { 0 <= c.value.indexOf("p") && this.constantPool.trace(a); 0 <= c.value.indexOf("N") && a.writeArray(this.constantPool.multinames, null, !0); - 0 <= c.value.indexOf("c") && p(a, "classes", this.classes); - 0 <= c.value.indexOf("i") && p(a, "instances", this.instances); - 0 <= c.value.indexOf("M") && p(a, "metadata", this.metadata); - 0 <= c.value.indexOf("s") && p(a, "scripts", this.scripts); - 0 <= c.value.indexOf("m") && p(a, "methods", this.methods, this); - 0 <= c.value.indexOf("S") && t(a, this); + 0 <= c.value.indexOf("c") && n(a, "classes", this.classes); + 0 <= c.value.indexOf("i") && n(a, "instances", this.instances); + 0 <= c.value.indexOf("M") && n(a, "metadata", this.metadata); + 0 <= c.value.indexOf("s") && n(a, "scripts", this.scripts); + 0 <= c.value.indexOf("m") && n(a, "methods", this.methods, this); + 0 <= c.value.indexOf("S") && v(a, this); 0 <= c.value.indexOf("t") && u(a, this); }; a.ConstantPool.prototype.trace = function(a) { a.enter("constantPool {"); for (var c in this) { - "namespaces" === c ? (a.enter("namespaces {"), this.namespaces.forEach(function(m, g) { - a.writeLn(("" + g).padRight(" ", 3) + (m ? m.toString() : "*")); + "namespaces" === c ? (a.enter("namespaces {"), this.namespaces.forEach(function(m, h) { + a.writeLn(("" + h).padRight(" ", 3) + (m ? m.toString() : "*")); }), a.leave("}")) : this[c] instanceof Array && (a.enter(c + " " + this[c].length + " {"), a.writeArray(this[c]), a.leave("}")); } a.leave("}"); }; a.ClassInfo.prototype.trace = function(a) { a.enter("class " + this + " {"); - p(a, "traits", this.traits); + n(a, "traits", this.traits); a.leave("}"); }; a.MetaDataInfo.prototype.trace = function(a) { @@ -8125,12 +8129,12 @@ __extends = this.__extends || function(d, k) { }; a.InstanceInfo.prototype.trace = function(a) { a.enter("instance " + this + " {"); - p(a, "traits", this.traits); + n(a, "traits", this.traits); a.leave("}"); }; a.ScriptInfo.prototype.trace = function(a) { a.enter("script " + this + " {"); - p(a, "traits", this.traits); + n(a, "traits", this.traits); a.leave("}"); }; a.Trait.prototype.trace = function(a) { @@ -8142,41 +8146,41 @@ __extends = this.__extends || function(d, k) { a.writeLn(this); }; a.MethodInfo.prototype.trace = function(c) { - var h = this.abc; + var g = this.abc; c.enter("method" + (this.name ? " " + this.name : "") + " {"); c.writeLn("flags: " + d.IntegerUtilities.getFlags(this.flags, "NEED_ARGUMENTS NEED_ACTIVATION NEED_REST HAS_OPTIONAL NATIVE SET_DXN HAS_PARAM_NAMES".split(" "))); c.writeLn("parameters: " + this.parameters.map(function(b) { - return(b.type ? a.Multiname.getQualifiedName(b.type) + "::" : "") + b.name; + return (b.type ? a.Multiname.getQualifiedName(b.type) + "::" : "") + b.name; })); if (this.code) { var m = new a.AbcStream(this.code); - p(c, "traits", this.traits); + n(c, "traits", this.traits); for (c.enter("code {");0 < m.remaining();) { - var g = m.readU8(), f = d.AVM2.opcodeTable[g], b; + var h = m.readU8(), f = d.AVM2.opcodeTable[h], b; b = ("" + m.position).padRight(" ", 6); - switch(g) { + switch(h) { case 27: - b += k.opcodeName(g) + ": defaultOffset: " + m.readS24(); - g = m.readU30(); - b += ", caseCount: " + g; - for (f = 0;f < g + 1;f++) { + b += k.opcodeName(h) + ": defaultOffset: " + m.readS24(); + h = m.readU30(); + b += ", caseCount: " + h; + for (f = 0;f < h + 1;f++) { b += " offset: " + m.readS24(); } c.writeLn(b); break; default: - f && (b += k.opcodeName(g).padRight(" ", 20), f.operands && (0 < f.operands.length && (b += v(f, h, m)), c.writeLn(b))); + f && (b += k.opcodeName(h).padRight(" ", 20), f.operands && (0 < f.operands.length && (b += w(f, g, m)), c.writeLn(b))); } } c.leave("}"); } c.leave("}"); }; - var h = function() { + var g = function() { function c(a) { return void 0 === a ? "undefined" : null === a ? "null" : "string" === typeof a ? '"' + a + '"' : String(a); } - function h(a, f) { + function g(a, f) { void 0 === f && (f = !1); return a.parameters.map(function(b) { var e = b.name; @@ -8187,32 +8191,32 @@ __extends = this.__extends || function(d, k) { function m(a) { this.writer = a; } - m.prototype = {traceTraits:function(g, f, b) { + m.prototype = {traceTraits:function(h, f, b) { var e = this.writer, m = this; - g.forEach(function(g) { + h.forEach(function(h) { var d; - d = a.Multiname.getAccessModifier(g.name); - var p = g.name.namespaces[0].uri; - p && ("http://adobe.com/AS3/2006/builtin" === p && (p = "AS3"), d = "public" === d ? b === p ? "" : p : d); + d = a.Multiname.getAccessModifier(h.name); + var n = h.name.namespaces[0].uri; + n && ("http://adobe.com/AS3/2006/builtin" === n && (n = "AS3"), d = "public" === d ? b === n ? "" : n : d); f && (d += " static"); - if (g.isSlot() || g.isConst()) { - m.traceMetadata(g.metadata), d = g.isConst() ? d + " const" : d + " var", d += " " + g.name.getName(), g.typeName && (d += ":" + g.typeName.getName()), g.value && (d += " = " + c(g.value)), e.writeLn(d + ";"); + if (h.isSlot() || h.isConst()) { + m.traceMetadata(h.metadata), d = h.isConst() ? d + " const" : d + " var", d += " " + h.name.getName(), h.typeName && (d += ":" + h.typeName.getName()), h.value && (d += " = " + c(h.value)), e.writeLn(d + ";"); } else { - if (g.isMethod() || g.isGetter() || g.isSetter()) { - m.traceMetadata(g.metadata); - p = g.methodInfo; - g.attributes & 2 && (d += " override"); - p.isNative() && (d += " native"); - d = d + " function" + (g.isGetter() ? " get" : g.isSetter() ? " set" : ""); - d += " " + g.name.getName(); - d += "(" + h(p) + ")"; - d += p.returnType ? ":" + p.returnType.getName() : ""; + if (h.isMethod() || h.isGetter() || h.isSetter()) { + m.traceMetadata(h.metadata); + n = h.methodInfo; + h.attributes & 2 && (d += " override"); + n.isNative() && (d += " native"); + d = d + " function" + (h.isGetter() ? " get" : h.isSetter() ? " set" : ""); + d += " " + h.name.getName(); + d += "(" + g(n) + ")"; + d += n.returnType ? ":" + n.returnType.getName() : ""; var k; - g.holder instanceof a.ClassInfo ? (k = g.holder.instanceInfo.name, k.getName()) : g.holder instanceof a.InstanceInfo && (k = g.holder.name, k.getName()); - p.isNative(); - p.isNative() ? e.writeLn(d + ";") : b ? e.writeLn(d + ";") : e.writeLn(d + ' { notImplemented("' + g.name.getName() + '"); }'); + h.holder instanceof a.ClassInfo ? (k = h.holder.instanceInfo.name, k.getName()) : h.holder instanceof a.InstanceInfo && (k = h.holder.name, k.getName()); + n.isNative(); + n.isNative() ? e.writeLn(d + ";") : b ? e.writeLn(d + ";") : e.writeLn(d + ' { notImplemented("' + h.name.getName() + '"); }'); } else { - g.isClass() ? (k = g.classInfo.instanceInfo.name, e.enter("package " + k.namespaces[0].uri + " {\n"), m.traceMetadata(g.metadata), m.traceClass(g.classInfo), e.leave("\n}"), m.traceClassStub(g)) : l(g); + h.isClass() ? (k = h.classInfo.instanceInfo.name, e.enter("package " + k.namespaces[0].uri + " {\n"), m.traceMetadata(h.metadata), m.traceClass(h.classInfo), e.leave("\n}"), m.traceClassStub(h)) : l(h); } } }); @@ -8224,22 +8228,22 @@ __extends = this.__extends || function(d, k) { (b.isMethod() || b.isGetter() || b.isSetter()) && b.methodInfo.isNative() && f.push(b); }); f.forEach(function(e, a) { - var g = e.methodInfo, m = e.name.getName(); - b.writeLn("// " + m + " :: " + (g.parameters.length ? h(g) : "void") + " -> " + (g.returnType ? g.returnType.getName() : "any")); - b.enter((e.isGetter() ? '"get ' + m + '"' : e.isSetter() ? '"set ' + m + '"' : m) + ": function " + m + "(" + h(g, !0) + ") {"); - b.writeLn(' notImplemented("' + c + "." + m + '");'); + var h = e.methodInfo, m = e.name.getName(); + b.writeLn("// " + m + " :: " + (h.parameters.length ? g(h) : "void") + " -> " + (h.returnType ? h.returnType.getName() : "any")); + b.enter((e.isGetter() ? '"get ' + m + '"' : e.isSetter() ? '"set ' + m + '"' : m) + ": function " + m + "(" + g(h, !0) + ") {"); + b.writeLn(' notImplemented("' + p + "." + m + '");'); b.leave("}" + (a === f.length - 1 ? "" : ",\n")); }); } - var b = this.writer, e = a.classInfo, m = e.instanceInfo, c = m.name.getName(); + var b = this.writer, e = a.classInfo, m = e.instanceInfo, p = m.name.getName(); a = a.metadata ? a.metadata.native : null; if (!a) { - return!1; + return !1; } b.writeLn("Cut and paste the following into `native.js' and edit accordingly"); b.writeLn("8< --------------------------------------------------------------"); b.enter("natives." + a.cls + " = function " + a.cls + "(runtime, scope, instanceConstructor, baseClass) {"); - b.writeLn('var c = new Class("' + c + '", instanceConstructor, ApplicationDomain.passthroughCallable(instanceConstructor));'); + b.writeLn('var c = new Class("' + p + '", instanceConstructor, ApplicationDomain.passthroughCallable(instanceConstructor));'); b.writeLn("c.extend(baseClass);\n"); b.enter("c.nativeStatics = {"); f(e.traits, !0); @@ -8250,57 +8254,57 @@ __extends = this.__extends || function(d, k) { b.writeLn("return c;"); b.leave("};"); b.writeLn("-------------------------------------------------------------- >8"); - return!0; + return !0; }, traceClassStub:function(a) { function f(b) { - return{properties:b.filter(function(b) { - return!1; + return {properties:b.filter(function(b) { + return !1; }), methods:b.filter(function(b) { - return(b.isMethod() || b.isGetter() || b.isSetter()) && !0 === b.methodInfo.isNative(); + return (b.isMethod() || b.isGetter() || b.isSetter()) && !0 === b.methodInfo.isNative(); })}; } function b(b, a) { - function g(b, f) { - var m = b.methodInfo, r = b.name.getName(), q = "// (" + (m.parameters.length ? h(m) : "void") + ") -> " + (m.returnType ? m.returnType.getName() : "any"), d = r; - b.isGetter() ? d = "get" : b.isSetter() && (d = "set"); - e.enter(d + ": function " + r + "(" + h(m, !0) + ") { " + q); - e.writeLn('notImplemented("' + c + "." + r + '");'); - a || (b.isGetter() ? e.writeLn("return this._" + r + ";") : b.isSetter() && e.writeLn("this._" + r + " = " + m.parameters[0].name + ";")); + function h(b, f) { + var m = b.methodInfo, c = b.name.getName(), t = "// (" + (m.parameters.length ? g(m) : "void") + ") -> " + (m.returnType ? m.returnType.getName() : "any"), q = c; + b.isGetter() ? q = "get" : b.isSetter() && (q = "set"); + e.enter(q + ": function " + c + "(" + g(m, !0) + ") { " + t); + e.writeLn('notImplemented("' + p + "." + c + '");'); + a || (b.isGetter() ? e.writeLn("return this._" + c + ";") : b.isSetter() && e.writeLn("this._" + c + " = " + m.parameters[0].name + ";")); e.leave("}" + (f ? "," : "")); } void 0 === a && (a = !1); b = f(b); - var m = [], r = Object.create(null); + var m = [], c = Object.create(null); b.methods.forEach(function(b, e) { var a = b.name.getName(); - b.isGetter() || b.isSetter() ? (r[a] || (r[a] = []), r[a].push(b)) : m.push(b); + b.isGetter() || b.isSetter() ? (c[a] || (c[a] = []), c[a].push(b)) : m.push(b); }); - for (var q = 0;q < m.length;q++) { - g(m[q], q < m.length - 1); + for (var t = 0;t < m.length;t++) { + h(m[t], t < m.length - 1); } - for (var l = d.ObjectUtilities.toKeyValueArray(r), x = 0;x < l.length;x++) { - e.enter(l[x][0] + ": {"); - for (var p = l[x][1], q = 0;q < p.length;q++) { - g(p[q], q < p.length - 1); + for (var q = d.ObjectUtilities.toKeyValueArray(c), l = 0;l < q.length;l++) { + e.enter(q[l][0] + ": {"); + for (var C = q[l][1], t = 0;t < C.length;t++) { + h(C[t], t < C.length - 1); } - e.leave("}" + (x < l.length - 1 ? "," : "")); + e.leave("}" + (l < q.length - 1 ? "," : "")); } b.properties.forEach(function(a, f) { - var g = a.name.getName(), m = f === b.properties.length - 1; - a.name.getNamespace().isPublic() && e.writeLn(g + ": " + ("'public " + a.name.name + "'") + (m ? "" : ",")); + var h = a.name.getName(), m = f === b.properties.length - 1; + a.name.getNamespace().isPublic() && e.writeLn(h + ": " + ("'public " + a.name.name + "'") + (m ? "" : ",")); }); } var e = this.writer; a = a.classInfo; - var m = a.instanceInfo, c = m.name.getName(); + var m = a.instanceInfo, p = m.name.getName(); e.writeLn("Cut and paste the following glue and edit accordingly."); e.writeLn("Class " + m); e.writeLn("8< --------------------------------------------------------------"); - var q = m.name.namespaces[0].uri; - e.enter("var " + c + "Definition = (function () {"); + var c = m.name.namespaces[0].uri; + e.enter("var " + p + "Definition = (function () {"); e.enter("return {"); - e.writeLn("// (" + h(m.init, !1) + ")"); - e.writeLn('__class__: "' + q + "." + c + '",'); + e.writeLn("// (" + g(m.init, !1) + ")"); + e.writeLn('__class__: "' + c + "." + p + '",'); e.enter("initialize: function () {"); e.leave("},"); e.enter("__glue__: {"); @@ -8319,9 +8323,9 @@ __extends = this.__extends || function(d, k) { e.leave("};"); e.leave("}).call(this);"); e.writeLn("-------------------------------------------------------------- >8"); - return!0; - }, traceClass:function(g) { - var f = this.writer, b = g.instanceInfo, e = b.name, m = a.Multiname.getAccessModifier(e); + return !0; + }, traceClass:function(h) { + var f = this.writer, b = h.instanceInfo, e = b.name, m = a.Multiname.getAccessModifier(e); b.isFinal() && (m += " final"); b.isSealed() || (m += " dynamic"); m += b.isInterface() ? " interface " : " class "; @@ -8331,17 +8335,17 @@ __extends = this.__extends || function(d, k) { return b.getName(); }).join(", ")); f.enter(m + " {"); - b.isInterface() || f.writeLn("public function " + e.getName() + "(" + h(b.init) + ") {}"); - var c; - b.isInterface() && (c = e.namespaces[0].uri + ":" + e.name); - this.traceTraits(g.traits, !0, c); - this.traceTraits(b.traits, !1, c); + b.isInterface() || f.writeLn("public function " + e.getName() + "(" + g(b.init) + ") {}"); + var p; + b.isInterface() && (p = e.namespaces[0].uri + ":" + e.name); + this.traceTraits(h.traits, !0, p); + this.traceTraits(b.traits, !1, p); f.leave("}"); }, traceMetadata:function(a) { var f = this.writer, b; for (b in a) { a.hasOwnProperty(b) && 0 !== b.indexOf("__") && f.writeLn("[" + b + "(" + a[b].value.map(function(b) { - return(b.key ? b.key + "=" : "") + '"' + b.value + '"'; + return (b.key ? b.key + "=" : "") + '"' + b.value + '"'; }).join(", ") + ")]"); } }}; @@ -8352,7 +8356,7 @@ __extends = this.__extends || function(d, k) { })(Shumway || (Shumway = {})); (function(d) { (function(k) { - var a = d.AVM2.ABC.AbcStream, p = d.ArrayUtilities.top, v = d.ArrayUtilities.peek; + var a = d.AVM2.ABC.AbcStream, n = d.ArrayUtilities.top, w = d.ArrayUtilities.peek; (function(a) { a[a.bkpt = 1] = "bkpt"; a[a.nop = 2] = "nop"; @@ -8534,7 +8538,7 @@ __extends = this.__extends || function(d, k) { a[a["instanceof"] = 177] = "instanceof"; a[a["in"] = 180] = "in"; })(k.OP || (k.OP = {})); - var t = k.OP; + var v = k.OP; k.opcodeTable = [null, {canThrow:!1, operands:[]}, {canThrow:!1, operands:[]}, {canThrow:!0, operands:[]}, {canThrow:!0, operands:[{name:"index", size:4, type:""}]}, {canThrow:!0, operands:[{name:"index", size:4, type:""}]}, {canThrow:!0, operands:[{name:"index", size:4, type:""}]}, {canThrow:!0, operands:[]}, {canThrow:!1, operands:[{name:"index", size:4, type:""}]}, {canThrow:!1, operands:[]}, {canThrow:!0, operands:[]}, {canThrow:!0, operands:[]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!0, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:[{name:"offset", size:3, type:""}]}, {canThrow:!1, operands:null}, {canThrow:!1, operands:[]}, {canThrow:!1, operands:[]}, {canThrow:!0, operands:[]}, {canThrow:!0, operands:[]}, {canThrow:!1, @@ -8560,7 +8564,7 @@ __extends = this.__extends || function(d, k) { a[a.u32 = 5] = "u32"; })(k.OpcodeSize || (k.OpcodeSize = {})); k.opcodeName = function(a) { - return t[a]; + return v[a]; }; var u = function() { function a() { @@ -8594,7 +8598,7 @@ __extends = this.__extends || function(d, k) { }(); k.BytecodePool = u; var l = function() { - function a(g) { + function a(h) { this.ti = null; this.position = 0; this.targets = this.target = this.offsets = null; @@ -8604,7 +8608,7 @@ __extends = this.__extends || function(d, k) { this.hasCatches = !1; this.verifierEntryState = null; this.value = this.offset = this.argCount = this.object = this.index = 0; - this.parse(g); + this.parse(h); } a.prototype.parse = function(a) { if (!a) { @@ -8686,9 +8690,9 @@ __extends = this.__extends || function(d, k) { case 71: ; case 3: - return!0; + return !0; } - return!1; + return !1; }; a.prototype.makeBlockHead = function(a) { if (this.succs) { @@ -8704,20 +8708,20 @@ __extends = this.__extends || function(d, k) { this.succs && a.writeLn("#" + this.bid); }; a.prototype.toString = function(a) { - var f = d.AVM2.opcodeTable[this.op], b = t[this.op].padRight(" ", 20), e, c; + var f = d.AVM2.opcodeTable[this.op], b = v[this.op].padRight(" ", 20), e, c; if (27 === this.op) { for (b += "targets:", e = 0, c = this.targets.length;e < c;e++) { b += (0 < e ? "," : "") + this.targets[e].position; } } else { for (e = 0, c = f.operands.length;e < c;e++) { - var n = f.operands[e]; - if ("offset" === n.name) { + var p = f.operands[e]; + if ("offset" === p.name) { this.target && (b += "target:" + this.target.position); } else { - var b = b + (n.name + ": "), m = this[n.name]; + var b = b + (p.name + ": "), m = this[p.name]; if (a) { - switch(n.type) { + switch(p.type) { case "": b += m; break; @@ -8757,55 +8761,55 @@ __extends = this.__extends || function(d, k) { return a; }(); k.Bytecode = l; - var c = d.BitSets.BITS_PER_WORD, h = d.BitSets.ADDRESS_BITS_PER_WORD, q = d.BitSets.BIT_INDEX_MASK, s = function(a) { - function g(f, b) { + var c = d.BitSets.BITS_PER_WORD, g = d.BitSets.ADDRESS_BITS_PER_WORD, q = d.BitSets.BIT_INDEX_MASK, r = function(a) { + function h(f, b) { a.call(this, f); this.blockById = b; } - __extends(g, a); - g.prototype.forEachBlock = function(a) { - for (var b = this.blockById, e = this.bits, g = 0, n = e.length;g < n;g++) { - var m = e[g]; + __extends(h, a); + h.prototype.forEachBlock = function(a) { + for (var b = this.blockById, e = this.bits, h = 0, p = e.length;h < p;h++) { + var m = e[h]; if (m) { - for (var h = 0;h < c;h++) { - m & 1 << h && a(b[g * c + h]); + for (var g = 0;g < c;g++) { + m & 1 << g && a(b[h * c + g]); } } } }; - g.prototype.choose = function() { - for (var a = this.blockById, b = this.bits, e = 0, g = b.length;e < g;e++) { - var n = b[e]; - if (n) { + h.prototype.choose = function() { + for (var a = this.blockById, b = this.bits, e = 0, h = b.length;e < h;e++) { + var p = b[e]; + if (p) { for (var m = 0;m < c;m++) { - if (n & 1 << m) { + if (p & 1 << m) { return a[e * c + m]; } } } } }; - g.prototype.members = function() { - for (var a = this.blockById, b = [], e = this.bits, g = 0, n = e.length;g < n;g++) { - var m = e[g]; + h.prototype.members = function() { + for (var a = this.blockById, b = [], e = this.bits, h = 0, p = e.length;h < p;h++) { + var m = e[h]; if (m) { - for (var h = 0;h < c;h++) { - m & 1 << h && b.push(a[g * c + h]); + for (var g = 0;g < c;g++) { + m & 1 << g && b.push(a[h * c + g]); } } } return b; }; - g.prototype.setBlocks = function(a) { - for (var b = this.bits, e = 0, g = a.length;e < g;e++) { + h.prototype.setBlocks = function(a) { + for (var b = this.bits, e = 0, h = a.length;e < h;e++) { var c = a[e].bid; - b[c >> h] |= 1 << (c & q); + b[c >> g] |= 1 << (c & q); } }; - return g; + return h; }(d.BitSets.Uint32ArrayBitSet); - k.BlockSet = s; - s = function() { + k.BlockSet = r; + r = function() { function c(a) { this.methodInfo = a; this.boundBlockSet = this.bytecodes = this.blocks = null; @@ -8830,20 +8834,20 @@ __extends = this.__extends || function(d, k) { return b; }; c.prototype.normalizeBytecode = function() { - for (var g = this.methodInfo, f = [], b = [], e = new a(g.code), c;0 < e.remaining();) { - var n = e.position; + for (var h = this.methodInfo, f = [], b = [], e = new a(h.code), c;0 < e.remaining();) { + var p = e.position; c = u.get(e); - c.pc = n; + c.pc = p; switch(c.op) { case 2: ; case 9: - f[n] = b.length; + f[p] = b.length; continue; case 27: c.targets = []; - for (var m = c.offsets, h = 0, q = m.length;h < q;h++) { - m[h] += n; + for (var m = c.offsets, g = 0, q = m.length;g < q;g++) { + m[g] += p; } break; case 16: @@ -8890,16 +8894,16 @@ __extends = this.__extends || function(d, k) { this.accessLocal(c.index); } c.position = b.length; - f[n] = b.length; + f[p] = b.length; b.push(c); } - for (var e = {}, s = 0, d = b.length;s < d;s++) { - switch(c = b[s], c.op) { + for (var e = {}, r = 0, l = b.length;r < l;r++) { + switch(c = b[r], c.op) { case 27: m = c.offsets; - h = 0; - for (q = m.length;h < q;h++) { - n = f[m[h]], c.targets.push(b[n] || this.getInvalidTarget(e, m[h])), m[h] = n; + g = 0; + for (q = m.length;g < q;g++) { + p = f[m[g]], c.targets.push(b[p] || this.getInvalidTarget(e, m[g])), m[g] = p; } break; case 16: @@ -8931,14 +8935,14 @@ __extends = this.__extends || function(d, k) { case 17: ; case 18: - n = f[c.offset], c.target = b[n] || this.getInvalidTarget(e, c.offset), c.offset = n; + p = f[c.offset], c.target = b[p] || this.getInvalidTarget(e, c.offset), c.offset = p; } } this.bytecodes = b; - g = g.exceptions; - h = 0; - for (q = g.length;h < q;h++) { - c = g[h], c.start_pc = c.start, c.end_pc = c.end, c.target_pc = c.target, c.start = f[c.start], c.end = f[c.end], c.offset = f[c.target], c.target = b[c.offset], c.target.exception = c; + h = h.exceptions; + g = 0; + for (q = h.length;g < q;g++) { + c = h[g], c.start_pc = c.start, c.end_pc = c.end, c.target_pc = c.target, c.start = f[c.start], c.end = f[c.end], c.offset = f[c.target], c.target = b[c.offset], c.target.exception = c; } }; c.prototype.analyzeControlFlow = function() { @@ -8948,27 +8952,27 @@ __extends = this.__extends || function(d, k) { this.computeDominance(); this.analyzedControlFlow = !0; k.leaveTimeline(); - return!0; + return !0; }; c.prototype.detectBasicBlocks = function() { - var a = this.bytecodes, f = this.methodInfo.exceptions, b = 0 < f.length, e = {}, c, n, m, h; - h = a[0].makeBlockHead(0); - n = 0; - for (m = a.length - 1;n < m;n++) { - switch(c = a[n], c.op) { + var a = this.bytecodes, f = this.methodInfo.exceptions, b = 0 < f.length, e = {}, c, p, m, g; + g = a[0].makeBlockHead(0); + p = 0; + for (m = a.length - 1;p < m;p++) { + switch(c = a[p], c.op) { case 71: ; case 72: ; case 3: - h = a[n + 1].makeBlockHead(h); + g = a[p + 1].makeBlockHead(g); break; case 27: c = c.targets; - for (var q = 0, s = c.length;q < s;q++) { - h = c[q].makeBlockHead(h); + for (var q = 0, r = c.length;q < r;q++) { + g = c[q].makeBlockHead(g); } - h = a[n + 1].makeBlockHead(h); + g = a[p + 1].makeBlockHead(g); break; case 16: ; @@ -8999,7 +9003,7 @@ __extends = this.__extends || function(d, k) { case 17: ; case 18: - h = c.target.makeBlockHead(h), h = a[n + 1].makeBlockHead(h); + g = c.target.makeBlockHead(g), g = a[p + 1].makeBlockHead(g); } } c = a[m]; @@ -9007,12 +9011,12 @@ __extends = this.__extends || function(d, k) { case 27: c = c.targets; q = 0; - for (s = c.length;q < s;q++) { - h = c[q].makeBlockHead(h); + for (r = c.length;q < r;q++) { + g = c[q].makeBlockHead(g); } break; case 16: - h = c.target.makeBlockHead(h); + g = c.target.makeBlockHead(g); break; case 21: ; @@ -9041,21 +9045,21 @@ __extends = this.__extends || function(d, k) { case 17: ; case 18: - h = c.target.makeBlockHead(h), a[n + 1] = this.getInvalidTarget(null, n + 1), h = a[n + 1].makeBlockHead(h); + g = c.target.makeBlockHead(g), a[p + 1] = this.getInvalidTarget(null, p + 1), g = a[p + 1].makeBlockHead(g); } if (b) { for (q = 0;q < f.length;q++) { - n = f[q], m = a[n.end + 1], h = a[n.start].makeBlockHead(h), m && (h = m.makeBlockHead(h)), h = n.target.makeBlockHead(h); + p = f[q], m = a[p.end + 1], g = a[p.start].makeBlockHead(g), m && (g = m.makeBlockHead(g)), g = p.target.makeBlockHead(g); } } - var d = a[0]; - n = 1; - for (m = a.length;n < m;n++) { - if (a[n].succs) { - e[d.bid] = d; - c = a[n - 1]; - d.end = c; - var l = a[n]; + var l = a[0]; + p = 1; + for (m = a.length;p < m;p++) { + if (a[p].succs) { + e[l.bid] = l; + c = a[p - 1]; + l.end = c; + var d = a[p]; switch(c.op) { case 71: ; @@ -9065,12 +9069,12 @@ __extends = this.__extends || function(d, k) { break; case 27: q = 0; - for (s = c.targets.length;q < s;q++) { - d.succs.push(c.targets[q]); + for (r = c.targets.length;q < r;q++) { + l.succs.push(c.targets[q]); } break; case 16: - d.succs.push(c.target); + l.succs.push(c.target); break; case 21: ; @@ -9099,58 +9103,58 @@ __extends = this.__extends || function(d, k) { case 17: ; case 18: - d.succs.push(c.target); - c.target !== l && d.succs.push(l); + l.succs.push(c.target); + c.target !== d && l.succs.push(d); break; default: - d.succs.push(l); + l.succs.push(d); } if (b) { - q = d; - s = []; + q = l; + r = []; c = 0; - for (var p = f.length;c < p;c++) { + for (var n = f.length;c < n;c++) { var k = f[c]; - q.position >= k.start && q.end.position <= k.end && s.push(k.target); + q.position >= k.start && q.end.position <= k.end && r.push(k.target); } - c = s; - d.hasCatches = 0 < c.length; - d.succs.push.apply(d.succs, c); + c = r; + l.hasCatches = 0 < c.length; + l.succs.push.apply(l.succs, c); } - d = l; + l = d; } } - e[d.bid] = d; + e[l.bid] = l; c = a[m - 1]; switch(c.op) { case 27: q = 0; - for (s = c.targets.length;q < s;q++) { - d.succs.push(c.targets[q]); + for (r = c.targets.length;q < r;q++) { + l.succs.push(c.targets[q]); } break; case 16: - d.succs.push(c.target); + l.succs.push(c.target); } - d.end = c; - this.makeBlockSetFactory(h, e); + l.end = c; + this.makeBlockSetFactory(g, e); }; c.prototype.normalizeReachableBlocks = function() { var a = this.bytecodes[0], f = [], b = {}, e = {}, c = [a]; - for (e[a.bid] = !0;a = p(c);) { + for (e[a.bid] = !0;a = n(c);) { if (b[a.bid]) { if (1 === b[a.bid]) { b[a.bid] = 2; f.push(a); - for (var n = a.succs, m = 0, h = n.length;m < h;m++) { - n[m].preds.push(a); + for (var p = a.succs, m = 0, g = p.length;m < g;m++) { + p[m].preds.push(a); } } e[a.bid] = !1; c.pop(); } else { - for (b[a.bid] = 1, e[a.bid] = !0, n = a.succs, m = 0, h = n.length;m < h;m++) { - var q = n[m]; + for (b[a.bid] = 1, e[a.bid] = !0, p = a.succs, m = 0, g = p.length;m < g;m++) { + var q = p[m]; e[q.bid] && (a.spbacks || (a.spbacks = new this.boundBlockSet), a.spbacks.set(q.bid)); !b[q.bid] && c.push(q); } @@ -9164,72 +9168,72 @@ __extends = this.__extends || function(d, k) { for (var e = {}, c = 0;c < f;c++) { e[a[c].bid] = c; } - for (var n = !0;n;) { - for (n = !1, c = 1;c < f;c++) { - var m = a[c].preds, h = m.length, q = e[m[0].bid]; + for (var p = !0;p;) { + for (p = !1, c = 1;c < f;c++) { + var m = a[c].preds, g = m.length, q = e[m[0].bid]; if (!(q in b)) { - for (var s = 1;s < h && !(q = e[m[s].bid], q in b);s++) { + for (var r = 1;r < g && !(q = e[m[r].bid], q in b);r++) { } } - for (s = 0;s < h;s++) { - var d = e[m[s].bid]; - if (d !== q && d in b) { - for (;d !== q;) { - for (;d > q;) { - d = b[d]; + for (r = 0;r < g;r++) { + var l = e[m[r].bid]; + if (l !== q && l in b) { + for (;l !== q;) { + for (;l > q;) { + l = b[l]; } - for (;q > d;) { + for (;q > l;) { q = b[q]; } } - q = d; + q = l; } } - b[c] !== q && (b[c] = q, n = !0); + b[c] !== q && (b[c] = q, p = !0); } } a[0].dominator = a[0]; for (c = 1;c < f;c++) { - e = a[c], s = a[b[c]], e.dominator = s, s.dominatees.push(e), e.npreds = e.preds.length; + e = a[c], r = a[b[c]], e.dominator = r, r.dominatees.push(e), e.npreds = e.preds.length; } f = [a[0]]; for (a[0].level || (a[0].level = 0);e = f.shift();) { a = e.dominatees; - for (s = 0;s < a.length;s++) { - a[s].level = e.level + 1; + for (r = 0;r < a.length;r++) { + a[r].level = e.level + 1; } f.push.apply(f, a); } }; c.prototype.markLoops = function() { function a(b) { - var e = 1, f = {}, g = {}, c = [], n = [], r = [], m = b.level + 1; + var e = 1, f = {}, h = {}, c = [], p = [], t = [], m = b.level + 1; b = [b]; - for (var h, q;h = p(b);) { - if (f[h.bid]) { - if (v(n) === h) { - n.pop(); - var s = []; + for (var g, q;g = n(b);) { + if (f[g.bid]) { + if (w(p) === g) { + p.pop(); + var r = []; do { - q = c.pop(), g[q.bid] = !0, s.push(q); - } while (q !== h); - (1 < s.length || q.spbacks && q.spbacks.get(q.bid)) && r.push(s); + q = c.pop(), h[q.bid] = !0, r.push(q); + } while (q !== g); + (1 < r.length || q.spbacks && q.spbacks.get(q.bid)) && t.push(r); } b.pop(); } else { - f[h.bid] = e++; - c.push(h); - n.push(h); - q = h.succs; - for (var s = 0, d = q.length;s < d;s++) { - if (h = q[s], !(h.level < m)) { - var l = h.bid; - if (!f[l]) { - b.push(h); + f[g.bid] = e++; + c.push(g); + p.push(g); + q = g.succs; + for (var r = 0, l = q.length;r < l;r++) { + if (g = q[r], !(g.level < m)) { + var d = g.bid; + if (!f[d]) { + b.push(g); } else { - if (!g[l]) { - for (;f[v(n).bid] > f[l];) { - n.pop(); + if (!h[d]) { + for (;f[w(p).bid] > f[d];) { + p.pop(); } } } @@ -9237,7 +9241,7 @@ __extends = this.__extends || function(d, k) { } } } - return r; + return t; } function f(b, a) { var f = new e; @@ -9252,7 +9256,7 @@ __extends = this.__extends || function(d, k) { this._dirtyLocals = null; } if (!this.analyzedControlFlow && !this.analyzeControlFlow()) { - return!1; + return !1; } var b = this.bytecodes, e = this.boundBlockSet; f.prototype.getDirtyLocals = function() { @@ -9263,7 +9267,7 @@ __extends = this.__extends || function(d, k) { this.body.members().forEach(function(e) { var f = e.position; for (e = e.end.position;f <= e;f++) { - var g = b[f], c = g.op; + var h = b[f], c = h.op; switch(c) { case 146: ; @@ -9274,11 +9278,11 @@ __extends = this.__extends || function(d, k) { case 194: ; case 195: - a[g.index] = !0; + a[h.index] = !0; break; case 50: - a[g.index] = !0; - a[g.object] = !0; + a[h.index] = !0; + a[h.object] = !0; break; case 212: ; @@ -9294,12 +9298,12 @@ __extends = this.__extends || function(d, k) { return a; }; var c = function(b) { - for (var a = new e, f = 0, g = b.length;f < g;f++) { - var c = b[f], n = c.spbacks; - if (n) { - for (var c = c.succs, r = 0, m = c.length;r < m;r++) { - var h = c[r]; - n.get(h.bid) && a.set(h.dominator.bid); + for (var a = new e, f = 0, h = b.length;f < h;f++) { + var c = b[f], p = c.spbacks; + if (p) { + for (var c = c.succs, t = 0, m = c.length;t < m;t++) { + var g = c[t]; + p.get(g.bid) && a.set(g.dominator.bid); } } } @@ -9310,24 +9314,24 @@ __extends = this.__extends || function(d, k) { } for (var c = c.sort(function(b, a) { return b.level - a.level; - }), n = 0, m = c.length - 1;0 <= m;m--) { - var h = c[m], q = a(h); + }), p = 0, m = c.length - 1;0 <= m;m--) { + var g = c[m], q = a(g); if (0 !== q.length) { - for (var s = 0, d = q.length;s < d;s++) { - for (var l = q[s], k = new f(l, n++), t = 0, u = l.length;t < u;t++) { - var B = l[t]; - if (B.level === h.level + 1 && !B.loop) { - B.loop = k; - k.head.set(B.bid); - for (var H = B.preds, A = 0, y = H.length;A < y;A++) { - k.body.get(H[A].bid) && B.npreds--; + for (var r = 0, l = q.length;r < l;r++) { + for (var d = q[r], k = new f(d, p++), v = 0, u = d.length;v < u;v++) { + var K = d[v]; + if (K.level === g.level + 1 && !K.loop) { + K.loop = k; + k.head.set(K.bid); + for (var H = K.preds, A = 0, z = H.length;A < z;A++) { + k.body.get(H[A].bid) && K.npreds--; } - k.npreds += B.npreds; + k.npreds += K.npreds; } } - t = 0; - for (u = l.length;t < u;t++) { - B = l[t], B.level === h.level + 1 && (B.npreds = k.npreds); + v = 0; + for (u = d.length;v < u;v++) { + K = d[v], K.level === g.level + 1 && (K.npreds = k.npreds); } k.head.recount(); } @@ -9337,15 +9341,15 @@ __extends = this.__extends || function(d, k) { }; return c; }(); - k.Analysis = s; + k.Analysis = r; })(d.AVM2 || (d.AVM2 = {})); })(Shumway || (Shumway = {})); var Bytecode = Shumway.AVM2.Bytecode, Analysis = Shumway.AVM2.Analysis; (function(d) { (function(k) { - var a = d.Options.Option, p = d.Options.OptionSet, v = d.Settings.shumwayOptions.register(new p("AVM2")); + var a = d.Options.Option, n = d.Options.OptionSet, w = d.Settings.shumwayOptions.register(new n("AVM2")); (function(d) { - var k = v.register(new p("Runtime")); + var k = w.register(new n("Runtime")); d.traceExecution = k.register(new a("tx", "traceExecution", "number", 0, "trace script execution", {choices:{off:0, normal:2, verbose:3}})); d.traceCallExecution = k.register(new a("txc", "traceCallExecution", "number", 0, "trace call execution", {choices:{off:0, normal:1, verbose:2}})); d.traceFunctions = k.register(new a("t", "traceFunctions", "number", 0, "trace functions", {choices:{off:0, compiled:1, "compiled & abc":2}})); @@ -9361,7 +9365,7 @@ var Bytecode = Shumway.AVM2.Bytecode, Analysis = Shumway.AVM2.Analysis; d[d.COMPILE = 2] = "COMPILE"; })(k.Runtime || (k.Runtime = {})); (function(d) { - d.options = v.register(new p("Compiler")); + d.options = w.register(new n("Compiler")); d.traceLevel = d.options.register(new a("tc4", "tc4", "number", 0, "Compiler Trace Level")); d.breakFilter = d.options.register(new a("", "break", "string", "", "Set a break point at methods whose qualified name matches this string pattern.")); d.compileFilter = d.options.register(new a("", "compile", "string", "", "Only compile methods whose qualified name matches this string pattern.")); @@ -9370,7 +9374,7 @@ var Bytecode = Shumway.AVM2.Bytecode, Analysis = Shumway.AVM2.Analysis; d.baselineDebugLevel = d.options.register(new a("bl-dbg", "baselineDebugLevel", "number", 0, "Level of trace and code debug output in baseline compiler.", {choices:{off:0, normal:1, verbose:2}})); })(k.Compiler || (k.Compiler = {})); (function(d) { - d.options = v.register(new p("Verifier")); + d.options = w.register(new n("Verifier")); d.enabled = d.options.register(new a("verifier", "verifier", "boolean", !0, "Enable verifier.")); d.traceLevel = d.options.register(new a("tv", "tv", "number", 0, "Verifier Trace Level")); })(k.Verifier || (k.Verifier = {})); @@ -9380,32 +9384,32 @@ var Namespace = Shumway.AVM2.ABC.Namespace; (function(d) { (function(k) { (function(a) { - function p(b) { + function n(b) { var e = this.resolutionMap[b.runtimeId]; if (e) { return e; } - var e = this.resolutionMap[b.runtimeId] = d.ObjectUtilities.createMap(), f = this.bindings, g; - for (g in f.map) { - var c = g, n = f.map[g].trait; - if (n.isGetter() || n.isSetter()) { + var e = this.resolutionMap[b.runtimeId] = d.ObjectUtilities.createMap(), f = this.bindings, h; + for (h in f.map) { + var c = h, p = f.map[h].trait; + if (p.isGetter() || p.isSetter()) { c = c.substring(a.Binding.KEY_PREFIX_LENGTH); } - c = O.fromQualifiedName(c); - c.getNamespace().inNamespaceSet(b) && (e[c.getName()] = O.getQualifiedName(n.name)); + c = Q.fromQualifiedName(c); + c.getNamespace().inNamespaceSet(b) && (e[c.getName()] = Q.getQualifiedName(p.name)); } return e; } - function v(b, a, e) { - sa(a) ? a = String(K(a)) : "object" === typeof a && (a = String(a)); - return d.isNumeric(a) ? d.toNumber(a) : b ? 1 < b.length ? (b = this.getNamespaceResolutionMap(b)[a]) ? b : O.getPublicQualifiedName(a) : O.qualifyName(b[0], a) : O.getPublicQualifiedName(a); + function w(b, a, e) { + ua(a) ? a = String(N(a)) : "object" === typeof a && (a = String(a)); + return d.isNumeric(a) ? d.toNumber(a) : b ? 1 < b.length ? (b = this.getNamespaceResolutionMap(b)[a]) ? b : Q.getPublicQualifiedName(a) : Q.qualifyName(b[0], a) : Q.getPublicQualifiedName(a); } - function t(b) { + function v(b) { return this.asGetProperty(void 0, b, 0); } function u(b, a, e) { b = this.resolveMultinameProperty(b, a, e); - return this.asGetNumericProperty && O.isNumeric(b) ? this.asGetNumericProperty(b) : this[b]; + return this.asGetNumericProperty && Q.isNumeric(b) ? this.asGetNumericProperty(b) : this[b]; } function l(b) { return this[b]; @@ -9415,19 +9419,19 @@ var Namespace = Shumway.AVM2.ABC.Namespace; var f = this.asOpenMethods; return a && f && f[b] ? f[b].apply(a, e) : this[b].asApply(a, e); } - function h(b, a) { + function g(b, a) { return this.asSetProperty(void 0, b, 0, a); } function q(b, a, e, f) { "object" === typeof a && (a = String(a)); b = this.resolveMultinameProperty(b, a, e); - if (this.asSetNumericProperty && O.isNumeric(b)) { + if (this.asSetNumericProperty && Q.isNumeric(b)) { return this.asSetNumericProperty(b, f); } (a = this.asSlots.byQN[b]) && (a = a.type) && a.coerce && (f = a.coerce(f)); this[b] = f; } - function s(b, a) { + function r(b, a) { return this.asDefineProperty(void 0, b, 0, a); } function m(b, a, e, f) { @@ -9435,7 +9439,7 @@ var Namespace = Shumway.AVM2.ABC.Namespace; b = this.resolveMultinameProperty(b, a, e); Object.defineProperty(this, b, f); } - function g(b, a, e) { + function h(b, a, e) { "object" === typeof a && (a = String(a)); b = this.resolveMultinameProperty(b, a, e); return Object.getOwnPropertyDescriptor(this, b); @@ -9443,38 +9447,38 @@ var Namespace = Shumway.AVM2.ABC.Namespace; function f(b, a) { return this.asCallProperty(void 0, b, 0, !1, a); } - function b(b, a, e, f, g) { + function b(b, a, e, f, h) { f = f ? null : this; b = this.resolveMultinameProperty(b, a, e); - this.asGetNumericProperty && O.isNumeric(b) ? (b = this.asGetNumericProperty(b), g = b.asApply(f, g)) : (a = this.asOpenMethods, g = f && a && a[b] ? a[b].apply(f, g) : this[b].asApply(f, g)); - return g; + this.asGetNumericProperty && Q.isNumeric(b) ? (b = this.asGetNumericProperty(b), h = b.asApply(f, h)) : (a = this.asOpenMethods, h = f && a && a[b] ? a[b].apply(f, h) : this[b].asApply(f, h)); + return h; } - function e(b, a, e, f, g) { + function e(b, a, e, f, h) { b = b.object.baseClass; a = b.traitsPrototype.resolveMultinameProperty(a, e, f); - return b.traitsPrototype.asOpenMethods[a].apply(this, g); + return b.traitsPrototype.asOpenMethods[a].apply(this, h); } - function r(b, e, f, g, c) { + function t(b, e, f, h, c) { b = b.object.baseClass; - var n = b.traitsPrototype.resolveMultinameProperty(e, f, g); - this.asSlots.byQN[n] ? this.asSetProperty(e, f, g, c) : b.traitsPrototype[a.VM_OPEN_SET_METHOD_PREFIX + n].call(this, c); + var p = b.traitsPrototype.resolveMultinameProperty(e, f, h); + this.asSlots.byQN[p] ? this.asSetProperty(e, f, h, c) : b.traitsPrototype[a.VM_OPEN_SET_METHOD_PREFIX + p].call(this, c); } - function n(b, e, f, g) { + function p(b, e, f, h) { b = b.object.baseClass; - var c = b.traitsPrototype.resolveMultinameProperty(e, f, g); - e = this.asSlots.byQN[c] ? this.asGetProperty(e, f, g) : (e = b.traitsPrototype[a.VM_OPEN_GET_METHOD_PREFIX + c]) ? e.call(this) : b.traitsPrototype[a.VM_OPEN_METHOD_PREFIX + c]; + var c = b.traitsPrototype.resolveMultinameProperty(e, f, h); + e = this.asSlots.byQN[c] ? this.asGetProperty(e, f, h) : (e = b.traitsPrototype[a.VM_OPEN_GET_METHOD_PREFIX + c]) ? e.call(this) : b.traitsPrototype[a.VM_OPEN_METHOD_PREFIX + c]; return e; } - function x(b, a) { + function C(b, a) { if (b.classInfo) { - var e = O.getQualifiedName(b.classInfo.instanceInfo.name); - if (e === O.String) { + var e = Q.getQualifiedName(b.classInfo.instanceInfo.name); + if (e === Q.String) { return String.apply(null, a); } - if (e === O.Boolean) { + if (e === Q.Boolean) { return Boolean.apply(null, a); } - if (e === O.Number) { + if (e === Q.Number) { return Number.apply(null, a); } } @@ -9503,44 +9507,44 @@ var Namespace = Shumway.AVM2.ABC.Namespace; case 10: return new e(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9]); } - for (var f = [], g = 0;g < a.length;g++) { - f[g + 1] = a[g]; + for (var f = [], h = 0;h < a.length;h++) { + f[h + 1] = a[h]; } return new (Function.bind.apply(e, f)); } - function I(b, e, f, g) { + function I(b, e, f, h) { b = this.asGetProperty(b, e, f); - a.traceCallExecution.value && a.callWriter.enter("construct " + e + "(" + (g ? Ba(g) : "") + ") #" + da.count(e)); - e = x(b, g); - 0 < a.traceCallExecution.value && a.callWriter.leave("return " + Ha(e)); + a.traceCallExecution.value && a.callWriter.enter("construct " + e + "(" + (h ? Da(h) : "") + ") #" + fa.count(e)); + e = C(b, h); + 0 < a.traceCallExecution.value && a.callWriter.leave("return " + Ja(e)); return e; } - function z(b, a, e) { + function B(b, a, e) { return this.resolveMultinameProperty(b, a, e) in this; } function D(b, a, e) { b = this.resolveMultinameProperty(b, a, e); - return this.asBindings[b] || na(this, b); + return this.asBindings[b] || pa(this, b); } function M(b, a, e) { b = this.resolveMultinameProperty(b, a, e); - return Ca(this, b); + return Ea(this, b); } - function F(b, a, e) { + function E(b, a, e) { return this.asHasTraitProperty(b, a, e) ? !1 : delete this[this.resolveMultinameProperty(b, a, e)]; } - function T(b, a, e) { + function J(b, a, e) { b = this.resolveMultinameProperty(b, a, e); return this.asBindings[b]; } - function N(b) { + function P(b) { return this[b]; } - function C(b, a) { + function y(b, a) { this[b] = a; } - function B(b) { - 0 === b && fa(this, "asEnumerableKeys", this.asGetEnumerableKeys()); + function K(b) { + 0 === b && ha(this, "asEnumerableKeys", this.asGetEnumerableKeys()); for (var a = this.asEnumerableKeys;b < a.length;) { if (this.asHasProperty(void 0, a[b], 0)) { return b + 1; @@ -9555,11 +9559,11 @@ var Namespace = Shumway.AVM2.ABC.Namespace; function A(b) { return this.asGetPublicProperty(this.asNextName(b)); } - function y(b) { - if (sa(b.object)) { + function z(b) { + if (ua(b.object)) { b.index = 0, b.object = null; } else { - var a = wa(b.object), e = a.asNextNameIndex(b.index); + var a = ya(b.object), e = a.asNextNameIndex(b.index); if (0 < e) { b.index = e, b.object = a; } else { @@ -9582,76 +9586,76 @@ var Namespace = Shumway.AVM2.ABC.Namespace; } function G() { if (this instanceof String || this instanceof Number) { - return[]; + return []; } for (var b = Object.keys(this), a = [], e = 0;e < b.length;e++) { var f = b[e]; - d.isNumeric(f) ? a.push(f) : (f = O.stripPublicQualifier(f), void 0 !== f && a.push(f)); + d.isNumeric(f) ? a.push(f) : (f = Q.stripPublicQualifier(f), void 0 !== f && a.push(f)); } return a; } - function J(b, a) { - b || E("TypeError", k.Errors.NullPointerError, a); + function L(b, a) { + b || F("TypeError", k.Errors.NullPointerError, a); } - function E(b, e, f, g, c, n) { + function F(b, e, f, h, c, p) { e.fqn && (b = e.fqn); - var r = d.AVM2.formatErrorMessage.apply(null, Array.prototype.slice.call(arguments, 1)), m = a.AVM2.currentDomain(), h = e.code; - throw new (m.getClass(b).instanceConstructor)(r, h); + var t = d.AVM2.formatErrorMessage.apply(null, Array.prototype.slice.call(arguments, 1)), m = a.AVM2.currentDomain(), g = e.code; + throw new (m.getClass(b).instanceConstructor)(t, g); } - function Q(b) { + function S(b) { return b instanceof k.AS.ASXML || b instanceof k.AS.ASXMLList || b instanceof k.AS.ASQName || b instanceof k.AS.ASNamespace; } - function S(b, a) { + function U(b, a) { return b.coerce(a); } - function K(b) { + function N(b) { return "string" === typeof b ? b : void 0 == b ? null : b.toString(); } - function P(b) { + function R(b) { return b instanceof Boolean ? b.valueOf() : void 0 == b ? null : "string" === typeof b || "number" === typeof b ? b : Object(b); } - function R(b, a) { + function T(b, a) { return String(b).localeCompare(String(a)); } - function W(b) { + function X(b) { return b instanceof k.AS.ASXML || b instanceof k.AS.ASXMLList; } - function ba(d) { + function da(d) { "Object Number Boolean String Array Date RegExp".split(" ").forEach(function(b) { - Da(d[b].prototype, a.VM_NATIVE_PROTOTYPE_FLAG, !0); + Fa(d[b].prototype, a.VM_NATIVE_PROTOTYPE_FLAG, !0); }); - fa(d.Object.prototype, "getNamespaceResolutionMap", p); - fa(d.Object.prototype, "resolveMultinameProperty", v); - fa(d.Object.prototype, "asGetProperty", u); - fa(d.Object.prototype, "asGetPublicProperty", t); - fa(d.Object.prototype, "asGetResolvedStringProperty", l); - fa(d.Object.prototype, "asSetProperty", q); - fa(d.Object.prototype, "asSetPublicProperty", h); - fa(d.Object.prototype, "asDefineProperty", m); - fa(d.Object.prototype, "asDefinePublicProperty", s); - fa(d.Object.prototype, "asGetPropertyDescriptor", g); - fa(d.Object.prototype, "asCallProperty", b); - fa(d.Object.prototype, "asCallSuper", e); - fa(d.Object.prototype, "asGetSuper", n); - fa(d.Object.prototype, "asSetSuper", r); - fa(d.Object.prototype, "asCallPublicProperty", f); - fa(d.Object.prototype, "asCallResolvedStringProperty", c); - fa(d.Object.prototype, "asConstructProperty", I); - fa(d.Object.prototype, "asHasProperty", z); - fa(d.Object.prototype, "asHasPropertyInternal", z); - fa(d.Object.prototype, "asHasOwnProperty", D); - fa(d.Object.prototype, "asPropertyIsEnumerable", M); - fa(d.Object.prototype, "asHasTraitProperty", T); - fa(d.Object.prototype, "asDeleteProperty", F); - fa(d.Object.prototype, "asHasNext2", y); - fa(d.Object.prototype, "asNextName", H); - fa(d.Object.prototype, "asNextValue", A); - fa(d.Object.prototype, "asNextNameIndex", B); - fa(d.Object.prototype, "asGetEnumerableKeys", G); - fa(d.Function.prototype, "asCall", d.Function.prototype.call); - fa(d.Function.prototype, "asApply", d.Function.prototype.apply); + ha(d.Object.prototype, "getNamespaceResolutionMap", n); + ha(d.Object.prototype, "resolveMultinameProperty", w); + ha(d.Object.prototype, "asGetProperty", u); + ha(d.Object.prototype, "asGetPublicProperty", v); + ha(d.Object.prototype, "asGetResolvedStringProperty", l); + ha(d.Object.prototype, "asSetProperty", q); + ha(d.Object.prototype, "asSetPublicProperty", g); + ha(d.Object.prototype, "asDefineProperty", m); + ha(d.Object.prototype, "asDefinePublicProperty", r); + ha(d.Object.prototype, "asGetPropertyDescriptor", h); + ha(d.Object.prototype, "asCallProperty", b); + ha(d.Object.prototype, "asCallSuper", e); + ha(d.Object.prototype, "asGetSuper", p); + ha(d.Object.prototype, "asSetSuper", t); + ha(d.Object.prototype, "asCallPublicProperty", f); + ha(d.Object.prototype, "asCallResolvedStringProperty", c); + ha(d.Object.prototype, "asConstructProperty", I); + ha(d.Object.prototype, "asHasProperty", B); + ha(d.Object.prototype, "asHasPropertyInternal", B); + ha(d.Object.prototype, "asHasOwnProperty", D); + ha(d.Object.prototype, "asPropertyIsEnumerable", M); + ha(d.Object.prototype, "asHasTraitProperty", J); + ha(d.Object.prototype, "asDeleteProperty", E); + ha(d.Object.prototype, "asHasNext2", z); + ha(d.Object.prototype, "asNextName", H); + ha(d.Object.prototype, "asNextValue", A); + ha(d.Object.prototype, "asNextNameIndex", K); + ha(d.Object.prototype, "asGetEnumerableKeys", G); + ha(d.Function.prototype, "asCall", d.Function.prototype.call); + ha(d.Function.prototype, "asApply", d.Function.prototype.apply); "Array Object Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ").forEach(function(b) { - b in d ? (fa(d[b].prototype, "asGetNumericProperty", N), fa(d[b].prototype, "asSetNumericProperty", C)) : console.warn(b + " was not found in globals"); + b in d ? (ha(d[b].prototype, "asGetNumericProperty", P), ha(d[b].prototype, "asSetNumericProperty", y)) : console.warn(b + " was not found in globals"); }); d.Array.prototype.asGetProperty = function(b, a, e) { return "number" === typeof a ? this[a] : u.call(this, b, a, e); @@ -9664,43 +9668,43 @@ var Namespace = Shumway.AVM2.ABC.Namespace; } }; } - function w(b, e) { + function x(b, e) { e && (new a.CatchBindings(new a.Scope(null, this), e)).applyTo(b, this); } - function X(b, a, e) { + function Y(b, a, e) { void 0 === a && (a = 0); void 0 === e && (e = void 0); b = Array.prototype.slice.call(b, a); e && b.asDefinePublicProperty("callee", {value:e, configurable:!0}); return b; } - function U(b) { - return!b.hasBody || b.hasExceptions() && !a.compilerEnableExceptions.value || b.hasSetsDxns() || b.code.length > a.compilerMaximumMethodSize.value ? !1 : !0; + function V(b) { + return !b.hasBody || b.hasExceptions() && !a.compilerEnableExceptions.value || b.hasSetsDxns() || b.code.length > a.compilerMaximumMethodSize.value ? !1 : !0; } - function $(b) { - return!U(b) || b.isClassInitializer || b.isScriptInitializer ? !1 : !0; + function ba(b) { + return !V(b) || b.isClassInitializer || b.isScriptInitializer ? !1 : !0; } - function Y(b) { + function Z(b) { if (b.hasExceptions()) { - return!1; + return !1; } b = b.holder; - b instanceof V && (b = b.instanceInfo); - if (b instanceof ja) { + b instanceof W && (b = b.instanceInfo); + if (b instanceof la) { switch(b.name.namespaces[0].uri) { case "flash.geom": ; case "flash.events": - return!0; + return !0; } switch(b.name.getOriginalName()) { case "com.google.youtube.model.VideoData": - return!0; + return !0; } } - return!1; + return !1; } - function L(b) { + function O(b) { if (a.codeCaching.value) { var e = a.CODE_CACHE[b.abc.hash]; if (e) { @@ -9715,29 +9719,29 @@ var Namespace = Shumway.AVM2.ABC.Namespace; } } } - function Z(b) { - var a = b.name ? O.getFullQualifiedName(b.name) : "fn" + xa; + function aa(b) { + var a = b.name ? Q.getFullQualifiedName(b.name) : "fn" + za; if (b.holder) { var e = ""; - b.holder instanceof V ? e = "static$" + b.holder.instanceInfo.name.getName() : b.holder instanceof ja ? e = b.holder.name.getName() : b.holder instanceof la && (e = "script"); + b.holder instanceof W ? e = "static$" + b.holder.instanceInfo.name.getName() : b.holder instanceof la ? e = b.holder.name.getName() : b.holder instanceof na && (e = "script"); a = e + a; } a = d.StringUtilities.escapeString(a); b.isGetter ? a += "_get" : b.isSetter && (a += "_set"); return a += "_" + (b.abc.hash >>> 0); } - function ca(b, a, e) { - var f = !1, g = b.parameters.map(function(b) { + function ea(b, a, e) { + var f = !1, h = b.parameters.map(function(b) { void 0 !== b.value && (f = !0); return b.value; }); e = e ? function(a) { - var e = this === jsGlobal ? a.global.object : this, c = X(arguments, 1, arguments.callee); - f && c.length < g.length && (c = c.concat(g.slice(c.length - g.length))); + var e = this === jsGlobal ? a.global.object : this, c = Y(arguments, 1, arguments.callee); + f && c.length < h.length && (c = c.concat(h.slice(c.length - h.length))); return d.AVM2.Interpreter.interpretMethod(e, b, a, c); } : function() { - var e = this === jsGlobal ? a.global.object : this, c = X(arguments, 0, arguments.callee); - f && c.length < g.length && (c = c.concat(g.slice(arguments.length - g.length))); + var e = this === jsGlobal ? a.global.object : this, c = Y(arguments, 0, arguments.callee); + f && c.length < h.length && (c = c.concat(h.slice(arguments.length - h.length))); return d.AVM2.Interpreter.interpretMethod(e, b, a, c); }; b.hasSetsDxns() && (e = function(b) { @@ -9753,84 +9757,84 @@ var Namespace = Shumway.AVM2.ABC.Namespace; }; }(e)); e.instanceConstructor = e; - var c = Z(b); + var c = aa(b); e.displayName = e.debugName = c; e.methodInfo = b; return jsGlobal[c] = e; } - function ga(b, a, e, f, g) { + function ia(b, a, e, f, h) { var c; - g = Z(b); - var n = "mi_" + g; - jsGlobal[n] = b; - var r = L(b); - r || (k.Compiler.useBaseline.value ? (k.enterTimeline("Baseline compile"), c = k.Compiler.baselineCompileMethod(b, a, e, n), c.body = "{\n" + c.body + "\n}", k.leaveTimeline()) : c = k.Compiler.compileMethod(b, a, e)); - f || (a = d.AVM2.Compiler.breakFilter.value) && 0 <= g.search(a) && (f = !0); + h = aa(b); + var p = "mi_" + h; + jsGlobal[p] = b; + var t = O(b); + t || (k.Compiler.useBaseline.value ? (k.enterTimeline("Baseline compile"), c = k.Compiler.baselineCompileMethod(b, a, e, p), c.body = "{\n" + c.body + "\n}", k.leaveTimeline()) : c = k.Compiler.compileMethod(b, a, e)); + f || (a = d.AVM2.Compiler.breakFilter.value) && 0 <= h.search(a) && (f = !0); a = c.body; f && (a = "{ debugger; \n" + a + "}"); - if (!r) { - var m = "jsGlobal." + g + " = function " + g + " (" + c.parameters.join(", ") + ") " + a, m = m + ("//# sourceURL=fun-" + g + ".as") + if (!t) { + var m = "jsGlobal." + h + " = function " + h + " (" + c.parameters.join(", ") + ") " + a, m = m + ("//# sourceURL=fun-" + h + ".as") } - (new Function("return " + (r || m)))(); - f = jsGlobal[g]; - f.debugName = g; + (new Function("return " + (t || m)))(); + f = jsGlobal[h]; + f.debugName = h; f.methodInfo = b; return f; } - function ha(b, e, f, g, c) { + function ja(b, e, f, h, c) { void 0 === c && (c = !1); if (b.freeMethod) { return f ? a.bindFreeMethodScope(b, e) : b.freeMethod; } - var n; - if ((n = a.checkMethodOverrides(b)) || (n = a.checkCommonMethodPatterns(b))) { - return n; + var p; + if ((p = a.checkMethodOverrides(b)) || (p = a.checkCommonMethodPatterns(b))) { + return p; } - ea(b); - 1 !== b.abc.applicationDomain.mode && $(b) || Y(b) || (c = !0); - (n = d.AVM2.Compiler.compileFilter.value) && b.name && 0 > O.getQualifiedName(b.name).search(n) && (c = !0); - c ? b.freeMethod = ca(b, e, f) : (xa++, b.freeMethod = ga(b, e, f, g, b.isInstanceInitializer)); + ga(b); + 1 !== b.abc.applicationDomain.mode && ba(b) || Z(b) || (c = !0); + (p = d.AVM2.Compiler.compileFilter.value) && b.name && 0 > Q.getQualifiedName(b.name).search(p) && (c = !0); + c ? b.freeMethod = ea(b, e, f) : (za++, b.freeMethod = ia(b, e, f, h, b.isInstanceInitializer)); b.freeMethod.methodInfo = b; return f ? a.bindFreeMethodScope(b, e) : b.freeMethod; } - function ea(b) { + function ga(b) { if (!b.analysis) { b.analysis = new k.Analysis(b); - b.needsActivation() && (b.activationPrototype = new ya(b), (new a.ActivationBindings(b)).applyTo(b.abc.applicationDomain, b.activationPrototype)); - for (var e = b.exceptions, f = 0, g = e.length;f < g;f++) { + b.needsActivation() && (b.activationPrototype = new Aa(b), (new a.ActivationBindings(b)).applyTo(b.abc.applicationDomain, b.activationPrototype)); + for (var e = b.exceptions, f = 0, h = e.length;f < h;f++) { var c = e[f]; if (c.varName) { - var n = Object.create(ma.prototype); - n.kind = 0; - n.name = c.varName; - n.typeName = c.typeName; - n.holder = b; - c.scopeObject = new w(b.abc.applicationDomain, n); + var p = Object.create(oa.prototype); + p.kind = 0; + p.name = c.varName; + p.typeName = c.typeName; + p.holder = b; + c.scopeObject = new x(b.abc.applicationDomain, p); } else { - c.scopeObject = new w(void 0, void 0); + c.scopeObject = new x(void 0, void 0); } } } } - function aa(b, a, e) { - var f = b.methodInfo, g; + function ca(b, a, e) { + var f = b.methodInfo, h; if (f.isNative()) { - if ((a = b.metadata) && a.native ? g = d.AVM2.AS.getNative(a.native.value[0].value) : e && (g = d.AVM2.AS.getMethodOrAccessorNative(b, e)), !g) { + if ((a = b.metadata) && a.native ? h = d.AVM2.AS.getNative(a.native.value[0].value) : e && (h = d.AVM2.AS.getMethodOrAccessorNative(b, e)), !h) { return function(a) { return function() { - d.Debug.warning("Calling undefined native method: " + b.kindName() + " " + a.holder.name + "::" + O.getQualifiedName(a.name)); + d.Debug.warning("Calling undefined native method: " + b.kindName() + " " + a.holder.name + "::" + Q.getQualifiedName(a.name)); }; }(f); } } else { - g = ha(f, a, !1, !1); + h = ja(f, a, !1, !1); } - return g; + return h; } a.sealConstTraits = !1; a.useAsAdd = !0; - var da = new d.Metrics.Counter(!0), O = d.AVM2.ABC.Multiname, ka = d.AVM2.ABC.Namespace, V = d.AVM2.ABC.ClassInfo, ja = d.AVM2.ABC.InstanceInfo, la = d.AVM2.ABC.ScriptInfo, ma = d.AVM2.ABC.Trait, ra = d.IndentingWriter, na = d.ObjectUtilities.hasOwnProperty, Ca = d.ObjectUtilities.propertyIsEnumerable, sa = d.isNullOrUndefined, wa = d.ObjectUtilities.boxValue, ta = d.ObjectUtilities.defineNonEnumerableGetterOrSetter, fa = d.ObjectUtilities.defineNonEnumerableProperty, Da = d.ObjectUtilities.defineReadOnlyProperty, - Ea = d.ObjectUtilities.defineNonEnumerableGetter, Ha = d.StringUtilities.toSafeString, Ba = d.StringUtilities.toSafeArrayString; + var fa = new d.Metrics.Counter(!0), Q = d.AVM2.ABC.Multiname, ma = d.AVM2.ABC.Namespace, W = d.AVM2.ABC.ClassInfo, la = d.AVM2.ABC.InstanceInfo, na = d.AVM2.ABC.ScriptInfo, oa = d.AVM2.ABC.Trait, ta = d.IndentingWriter, pa = d.ObjectUtilities.hasOwnProperty, Ea = d.ObjectUtilities.propertyIsEnumerable, ua = d.isNullOrUndefined, ya = d.ObjectUtilities.boxValue, va = d.ObjectUtilities.defineNonEnumerableGetterOrSetter, ha = d.ObjectUtilities.defineNonEnumerableProperty, Fa = d.ObjectUtilities.defineReadOnlyProperty, + Ga = d.ObjectUtilities.defineNonEnumerableGetter, Ja = d.StringUtilities.toSafeString, Da = d.StringUtilities.toSafeArrayString; a.VM_SLOTS = "asSlots"; a.VM_LENGTH = "asLength"; a.VM_BINDINGS = "asBindings"; @@ -9842,69 +9846,69 @@ var Namespace = Shumway.AVM2.ABC.Namespace; a.VM_OPEN_GET_METHOD_PREFIX = "g"; a.SAVED_SCOPE_NAME = "$SS"; a.VM_METHOD_OVERRIDES = Object.create(null); - var xa = 0; + var za = 0; a.isNativePrototype = function(b) { return Object.prototype.hasOwnProperty.call(b, a.VM_NATIVE_PROTOTYPE_FLAG); }; a.traitsWriter = null; a.callWriter = null; lazyInitializer(d.AVM2.Runtime, function() { - return new ra; + return new ta; }); a.patch = function(b, e) { for (var f = 0;f < b.length;f++) { - var g = b[f]; + var h = b[f]; if (3 <= a.traceExecution.value) { var c = "Patching: "; - g.name ? c += g.name : g.get ? c += "get " + g.get : g.set && (c += "set " + g.set); + h.name ? c += h.name : h.get ? c += "get " + h.get : h.set && (c += "set " + h.set); a.traitsWriter && a.traitsWriter.redLn(c); } - g.get ? ta(g.object, g.get, e, !0) : g.set ? ta(g.object, g.set, e, !1) : fa(g.object, g.name, e); + h.get ? va(h.object, h.get, e, !0) : h.set ? va(h.object, h.set, e, !1) : ha(h.object, h.name, e); } }; - a.applyMethodTrait = function(b, e, f, g) { - var c = f.trait, n = c.isMethod(), r = c.isGetter(), m = n ? a.VM_OPEN_METHOD_PREFIX : r ? a.VM_OPEN_GET_METHOD_PREFIX : a.VM_OPEN_SET_METHOD_PREFIX, h = c.methodInfo.cachedMethodOrTrampoline, q; - h ? h.isTrampoline && (q = h.patchTargets) : (c.methodInfo.isNative() ? h = aa(c, f.scope, f.natives) : (q = [], h = a.makeTrampoline(c, f.scope, f.natives, q, n ? c.methodInfo.parameters.length : 0, String(c.name))), c.methodInfo.cachedMethodOrTrampoline = h); - q && (q.push({object:e, name:m + b}), n ? q.push({object:e.asOpenMethods, name:b}) : (f = {object:e}, r ? f.get = b : f.set = b, q.push(f))); - fa(e, m + b, h); - n ? (e.asOpenMethods[b] = h, g ? (g = c.methodInfo.cachedMemoizer, g || (h = {value:h}, q && q.push({object:h, name:"value"}), g = a.makeMemoizer(b, h), c.methodInfo.cachedMemoizer = g), Ea(e, b, g)) : fa(e, b, h)) : ta(e, b, h, r); + a.applyMethodTrait = function(b, e, f, h) { + var c = f.trait, p = c.isMethod(), t = c.isGetter(), m = p ? a.VM_OPEN_METHOD_PREFIX : t ? a.VM_OPEN_GET_METHOD_PREFIX : a.VM_OPEN_SET_METHOD_PREFIX, g = c.methodInfo.cachedMethodOrTrampoline, q; + g ? g.isTrampoline && (q = g.patchTargets) : (c.methodInfo.isNative() ? g = ca(c, f.scope, f.natives) : (q = [], g = a.makeTrampoline(c, f.scope, f.natives, q, p ? c.methodInfo.parameters.length : 0, String(c.name))), c.methodInfo.cachedMethodOrTrampoline = g); + q && (q.push({object:e, name:m + b}), p ? q.push({object:e.asOpenMethods, name:b}) : (f = {object:e}, t ? f.get = b : f.set = b, q.push(f))); + ha(e, m + b, g); + p ? (e.asOpenMethods[b] = g, h ? (h = c.methodInfo.cachedMemoizer, h || (g = {value:g}, q && q.push({object:g, name:"value"}), h = a.makeMemoizer(b, g), c.methodInfo.cachedMemoizer = h), Ga(e, b, h)) : ha(e, b, g)) : va(e, b, g, t); }; - a.getNamespaceResolutionMap = p; - a.resolveMultinameProperty = v; - a.asGetPublicProperty = t; + a.getNamespaceResolutionMap = n; + a.resolveMultinameProperty = w; + a.asGetPublicProperty = v; a.asGetProperty = u; a.asGetResolvedStringProperty = l; a.asCallResolvedStringProperty = c; - a.asSetPublicProperty = h; + a.asSetPublicProperty = g; a.asToString = function() { - var b = wa(this); + var b = ya(this); return b instanceof k.AS.ASClass ? d.StringUtilities.concat3("[class ", b.classInfo.instanceInfo.name.name, "]") : d.StringUtilities.concat3("[object ", b.class.classInfo.instanceInfo.name.name, "]"); }; a.asSetProperty = q; - a.asDefinePublicProperty = s; + a.asDefinePublicProperty = r; a.asDefineProperty = m; - a.asGetPropertyDescriptor = g; + a.asGetPropertyDescriptor = h; a.asCallPublicProperty = f; a.asCallProperty = b; a.asCallSuper = e; - a.asSetSuper = r; - a.asGetSuper = n; - a.construct = x; + a.asSetSuper = t; + a.asGetSuper = p; + a.construct = C; a.asConstructProperty = I; - a.asHasProperty = z; + a.asHasProperty = B; a.asHasOwnProperty = D; a.asPropertyIsEnumerable = M; - a.asDeleteProperty = F; - a.asHasTraitProperty = T; - a.asGetNumericProperty = N; - a.asSetNumericProperty = C; + a.asDeleteProperty = E; + a.asHasTraitProperty = J; + a.asGetNumericProperty = P; + a.asSetNumericProperty = y; a.asGetDescendants = function(b, a, e) { d.Debug.notImplemented("asGetDescendants"); }; - a.asNextNameIndex = B; + a.asNextNameIndex = K; a.asNextName = H; a.asNextValue = A; - a.asHasNext2 = y; + a.asHasNext2 = z; a.asGetEnumerableKeys = G; a.asTypeOf = function(b) { if (b) { @@ -9929,9 +9933,9 @@ var Namespace = Shumway.AVM2.ABC.Namespace; a.publicizeProperties = function(b) { for (var a = Object.keys(b), e = 0;e < a.length;e++) { var f = a[e]; - if (!O.isPublicQualifiedName(f)) { - var g = b[f]; - b[O.getPublicQualifiedName(f)] = g; + if (!Q.isPublicQualifiedName(f)) { + var h = b[f]; + b[Q.getPublicQualifiedName(f)] = h; delete b[f]; } } @@ -9947,17 +9951,17 @@ var Namespace = Shumway.AVM2.ABC.Namespace; } }; a.asCheckVectorSetNumericProperty = function(b, a, e) { - (0 > b || b > a || b === a && e || !d.isNumeric(b)) && E("RangeError", k.Errors.OutOfRangeError, b, a); + (0 > b || b > a || b === a && e || !d.isNumeric(b)) && F("RangeError", k.Errors.OutOfRangeError, b, a); }; a.asCheckVectorGetNumericProperty = function(b, a) { - (0 > b || b >= a || !d.isNumeric(b)) && E("RangeError", k.Errors.OutOfRangeError, b, a); + (0 > b || b >= a || !d.isNumeric(b)) && F("RangeError", k.Errors.OutOfRangeError, b, a); }; - a.checkNullParameter = J; + a.checkNullParameter = L; a.checkParameterType = function(b, a, e) { - J(b, a); - e.isType(b) || E("TypeError", k.Errors.CheckTypeFailedError, b, e.classInfo.instanceInfo.name.getOriginalName()); + L(b, a); + e.isType(b) || F("TypeError", k.Errors.CheckTypeFailedError, b, e.classInfo.instanceInfo.name.getOriginalName()); }; - a.throwError = E; + a.throwError = F; a.translateError = function(b, a) { if (a instanceof Error) { var e = b.getClass(a.name); @@ -9984,27 +9988,27 @@ var Namespace = Shumway.AVM2.ABC.Namespace; return k.AS.escapeElementValue(b); }; a.asEquals = function(b, a) { - return Q(b) ? b.equals(a) : Q(a) ? a.equals(b) : b == a; + return S(b) ? b.equals(a) : S(a) ? a.equals(b) : b == a; }; a.asCoerceByMultiname = function(b, a, e) { - switch(O.getQualifiedName(a)) { - case O.Int: + switch(Q.getQualifiedName(a)) { + case Q.Int: return e | 0; - case O.Uint: + case Q.Uint: return e >>> 0; - case O.String: - return K(e); - case O.Number: - return+e; - case O.Boolean: - return!!e; - case O.Object: - return P(e); + case Q.String: + return N(e); + case Q.Number: + return +e; + case Q.Boolean: + return !!e; + case Q.Object: + return R(e); } - return S(b.abc.applicationDomain.getType(a), e); + return U(b.abc.applicationDomain.getType(a), e); }; - a.asCoerce = S; - a.asCoerceString = K; + a.asCoerce = U; + a.asCoerceString = N; a.asCoerceInt = function(b) { return b | 0; }; @@ -10012,47 +10016,47 @@ var Namespace = Shumway.AVM2.ABC.Namespace; return b >>> 0; }; a.asCoerceNumber = function(b) { - return+b; + return +b; }; a.asCoerceBoolean = function(b) { - return!!b; + return !!b; }; - a.asCoerceObject = P; - a.asDefaultCompareFunction = R; + a.asCoerceObject = R; + a.asDefaultCompareFunction = T; a.asCompare = function(b, a, e, f) { - var g = 0; - f || (f = R); + var h = 0; + f || (f = T); e & 1 && (b = String(b).toLowerCase(), a = String(a).toLowerCase()); - e & 16 ? (b = d.toNumber(b), a = d.toNumber(a), g = b < a ? -1 : b > a ? 1 : 0) : g = f(b, a); - e & 2 && (g *= -1); - return g; + e & 16 ? (b = d.toNumber(b), a = d.toNumber(a), h = b < a ? -1 : b > a ? 1 : 0) : h = f(b, a); + e & 2 && (h *= -1); + return h; }; a.asAdd = function(b, a) { - return "string" === typeof b || "string" === typeof a ? String(b) + String(a) : W(b) && W(a) ? d.AVM2.AS.ASXMLList.addXML(b, a) : b + a; + return "string" === typeof b || "string" === typeof a ? String(b) + String(a) : X(b) && X(a) ? d.AVM2.AS.ASXMLList.addXML(b, a) : b + a; }; a.getDescendants = function(b, a) { - if (!W(b)) { + if (!X(b)) { throw "Not XML object in getDescendants"; } return b.descendants(a); }; a.checkFilter = function(b) { - if (!b.class || !W(b)) { + if (!b.class || !X(b)) { throw "TypeError operand of childFilter not of XML type"; } return b; }; - a.initializeGlobalObject = ba; - ba(jsGlobal); + a.initializeGlobalObject = da; + da(jsGlobal); a.nameInTraits = function(b, e) { if (b.hasOwnProperty(a.VM_BINDINGS) && b.hasOwnProperty(e)) { - return!0; + return !0; } var f = Object.getPrototypeOf(b); return f.hasOwnProperty(a.VM_BINDINGS) && f.hasOwnProperty(e); }; - a.CatchScopeObject = w; - var pa = function() { + a.CatchScopeObject = x; + var ra = function() { function b(e) { this.scriptInfo = e; e.global = this; @@ -10074,11 +10078,11 @@ var Namespace = Shumway.AVM2.ABC.Namespace; }; return b; }(); - a.Global = pa; - fa(pa.prototype, O.getPublicQualifiedName("toString"), function() { + a.Global = ra; + ha(ra.prototype, Q.getPublicQualifiedName("toString"), function() { return this.toString(); }); - pa = function() { + ra = function() { function b(a) { this._isLazyInitializer = !0; this._target = a; @@ -10091,19 +10095,19 @@ var Namespace = Shumway.AVM2.ABC.Namespace; if (this._resolved) { return this._resolved; } - if (this._target instanceof la) { + if (this._target instanceof na) { var b = this._target; a.ensureScriptIsExecuted(b, "Lazy Initializer"); return this._resolved = b.global; } - if (this._target instanceof V) { + if (this._target instanceof W) { return b = this._target, b.classObject ? this._resolved = b.classObject : this._resolved = b.abc.applicationDomain.getProperty(b.instanceInfo.name, !1, !1); } d.Debug.notImplemented(String(this._target)); }; return b; }(); - a.LazyInitializer = pa; + a.LazyInitializer = ra; a.forEachPublicProperty = function(b, a, e) { if (!b.asBindings) { for (var f in b) { @@ -10114,9 +10118,9 @@ var Namespace = Shumway.AVM2.ABC.Namespace; if (d.isNumeric(f)) { a.call(e, f, b[f]); } else { - if (!b.asBindings[f] && O.isPublicQualifiedName(f)) { - var g = O.stripPublicQualifier(f); - a.call(e, g, b[f]); + if (!b.asBindings[f] && Q.isPublicQualifiedName(f)) { + var h = Q.stripPublicQualifier(f); + a.call(e, h, b[f]); } } } @@ -10125,8 +10129,8 @@ var Namespace = Shumway.AVM2.ABC.Namespace; a.wrapJSObject = function(b) { var a = Object.create(b), e; for (e in b) { - Object.defineProperty(a, O.getPublicQualifiedName(e), function(b, a) { - return{get:function() { + Object.defineProperty(a, Q.getPublicQualifiedName(e), function(b, a) { + return {get:function() { return b[a]; }, set:function(e) { b[a] = e; @@ -10138,24 +10142,24 @@ var Namespace = Shumway.AVM2.ABC.Namespace; a.asCreateActivation = function(b) { return Object.create(b.activationPrototype); }; - pa = function() { + ra = function() { function b() { } b.updateTraits = function(a) { for (var e = 0;e < a.length;e++) { - var f = a[e], g = f.name.name, f = f.name.getNamespace(); - f.isDynamic() || (b.hasNonDynamicNamespaces[g] = !0, b.wasResolved[g] && d.Debug.notImplemented("We have to the undo the optimization, " + g + " can now bind to " + f)); + var f = a[e], h = f.name.name, f = f.name.getNamespace(); + f.isDynamic() || (b.hasNonDynamicNamespaces[h] = !0, b.wasResolved[h] && d.Debug.notImplemented("We have to the undo the optimization, " + h + " can now bind to " + f)); } }; b.loadAbc = function(e) { if (a.globalMultinameAnalysis.value) { - var f = e.scripts, g = e.classes; + var f = e.scripts, h = e.classes; e = e.methods; for (var c = 0;c < f.length;c++) { b.updateTraits(f[c].traits); } - for (c = 0;c < g.length;c++) { - b.updateTraits(g[c].traits), b.updateTraits(g[c].instanceInfo.traits); + for (c = 0;c < h.length;c++) { + b.updateTraits(h[c].traits), b.updateTraits(h[c].instanceInfo.traits); } for (c = 0;c < e.length;c++) { e[c].traits && b.updateTraits(e[c].traits); @@ -10165,52 +10169,52 @@ var Namespace = Shumway.AVM2.ABC.Namespace; b.resolveMultiname = function(a) { var e = a.name; if (!b.hasNonDynamicNamespaces[e]) { - return b.wasResolved[e] = !0, new O([ka.PUBLIC], a.name, 0); + return b.wasResolved[e] = !0, new Q([ma.PUBLIC], a.name, 0); } }; b.hasNonDynamicNamespaces = Object.create(null); b.wasResolved = Object.create(null); return b; }(); - a.GlobalMultinameResolver = pa; - var ya = function() { + a.GlobalMultinameResolver = ra; + var Aa = function() { return function(b) { this.methodInfo = b; }; }(); - a.ActivationInfo = ya; + a.ActivationInfo = Aa; a.HasNext2Info = function() { return function(b, a) { this.object = b; this.index = a; }; }(); - a.sliceArguments = X; - a.canCompile = U; - a.shouldCompile = $; - a.forceCompile = Y; + a.sliceArguments = Y; + a.canCompile = V; + a.shouldCompile = ba; + a.forceCompile = Z; a.CODE_CACHE = Object.create(null); - a.searchCodeCache = L; - a.createInterpretedFunction = ca; + a.searchCodeCache = O; + a.createInterpretedFunction = ea; a.debugName = function(b) { return d.isFunction(b) ? b.name : b; }; - a.createCompiledFunction = ga; - a.createFunction = ha; - a.ensureFunctionIsInitialized = ea; - a.getTraitFunction = aa; + a.createCompiledFunction = ia; + a.createFunction = ja; + a.ensureFunctionIsInitialized = ga; + a.getTraitFunction = ca; a.createClass = function(b, e, f) { - var g = b.instanceInfo, c = b.abc.applicationDomain, n = O.getName(g.name); - k.enterTimeline("createClass", {className:n, classInfo:b}); - e = g.isInterface() ? d.AVM2.AS.createInterface(b) : d.AVM2.AS.createClass(b, e, f); + var h = b.instanceInfo, c = b.abc.applicationDomain, p = Q.getName(h.name); + k.enterTimeline("createClass", {className:p, classInfo:b}); + e = h.isInterface() ? d.AVM2.AS.createInterface(b) : d.AVM2.AS.createClass(b, e, f); a.traceClasses.value && (c.loadedClasses.push(e), c.traceLoadedClasses()); - if (g.isInterface()) { + if (h.isInterface()) { return k.leaveTimeline(), e; } c.onMessage.notify1("classCreated", e); b.classObject = e; k.enterTimeline("staticInitializer"); - ha(b.init, f, !1, !1, !0).call(e); + ja(b.init, f, !1, !1, !0).call(e); k.leaveTimeline(); a.sealConstTraits && this.sealConstantTraits(e, b.traits); k.leaveTimeline(); @@ -10218,21 +10222,21 @@ var Namespace = Shumway.AVM2.ABC.Namespace; }; a.sealConstantTraits = function(b, a) { for (var e = 0, f = a.length;e < f;e++) { - var g = a[e]; - g.isConst() && (g = O.getQualifiedName(g.name), function(a, e) { + var h = a[e]; + h.isConst() && (h = Q.getQualifiedName(h.name), function(a, e) { Object.defineProperty(b, a, {configurable:!1, enumerable:!1, get:function() { return e; }, set:function() { - E("ReferenceError", k.Errors.ConstWriteError, a); + F("ReferenceError", k.Errors.ConstWriteError, a); }}); - }(g, b[g])); + }(h, b[h])); } }; a.applyType = function(b, a, e) { a = a.classInfo.instanceInfo.name.name; if ("Vector" === a) { e = e[0]; - if (!sa(e)) { + if (!ua(e)) { switch(a = e.classInfo.instanceInfo.name.name.toLowerCase(), a) { case "number": a = "double"; @@ -10250,7 +10254,7 @@ var Namespace = Shumway.AVM2.ABC.Namespace; }; a.createName = function(b, a, e) { void 0 === a && (a = "*"); - return new O(b, a, e); + return new Q(b, a, e); }; })(k.Runtime || (k.Runtime = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -10262,24 +10266,24 @@ asGetSlot = Shumway.AVM2.Runtime.asGetSlot, asSetSlot = Shumway.AVM2.Runtime.asS (function(d) { (function(k) { (function(a) { - var p = d.AVM2.ABC.Multiname, v = d.ObjectUtilities.boxValue, t = function() { - function a(d, c, h) { - void 0 === h && (h = !1); + var n = d.AVM2.ABC.Multiname, w = d.ObjectUtilities.boxValue, v = function() { + function a(d, c, g) { + void 0 === g && (g = !1); this.parent = d; - this.object = v(c); + this.object = w(c); this.global = d ? d.global : this; - this.isWith = h; + this.isWith = g; this.cache = Object.create(null); } a.prototype.findDepth = function(a) { - for (var c = this, h = 0;c;) { + for (var c = this, g = 0;c;) { if (c.object === a) { - return h; + return g; } - h++; + g++; c = c.parent; } - return-1; + return -1; }; a.prototype.getScopeObjects = function() { for (var a = [], c = this;c;) { @@ -10287,70 +10291,70 @@ asGetSlot = Shumway.AVM2.Runtime.asGetSlot, asSetSlot = Shumway.AVM2.Runtime.asS } return a; }; - a.prototype.findScopeProperty = function(a, c, h, q, s, m) { + a.prototype.findScopeProperty = function(a, c, g, q, r, m) { k.countTimeline("findScopeProperty"); - var g, f; + var h, f; f = a ? 1 < a.length ? a.runtimeId + "$" + c : a[0].qualifiedName + "$" + c : c; - if (!m && (g = this.cache[f])) { - return g; + if (!m && (h = this.cache[f])) { + return h; } - if (this.object.asHasPropertyInternal(a, c, h)) { + if (this.object.asHasPropertyInternal(a, c, g)) { return this.isWith ? this.object : this.cache[f] = this.object; } if (this.parent) { - return this.cache[f] = this.parent.findScopeProperty(a, c, h, q, s, m); + return this.cache[f] = this.parent.findScopeProperty(a, c, g, q, r, m); } if (m) { return null; } - if (g = q.abc.applicationDomain.findDomainProperty(new p(a, c, h), s, !0)) { - return g; + if (h = q.abc.applicationDomain.findDomainProperty(new n(a, c, g), r, !0)) { + return h; } - s && d.Debug.unexpected("Cannot find property " + c); + r && d.Debug.unexpected("Cannot find property " + c); return this.global.object; }; return a; }(); - a.Scope = t; + a.Scope = v; a.bindFreeMethodScope = function(a, d) { var c = a.freeMethod; if (a.lastBoundMethod && a.lastBoundMethod.scope === d) { return a.lastBoundMethod.boundMethod; } - var h, q = d.global.object; + var g, q = d.global.object; if (!a.hasOptional() && !a.needsArguments() && !a.needsRest()) { switch(a.parameters.length) { case 0: - h = function() { + g = function() { return c.call(this === jsGlobal ? q : this, d); }; break; case 1: - h = function(a) { + g = function(a) { return c.call(this === jsGlobal ? q : this, d, a); }; break; case 2: - h = function(a, m) { + g = function(a, m) { return c.call(this === jsGlobal ? q : this, d, a, m); }; break; case 3: - h = function(a, m, g) { - return c.call(this === jsGlobal ? q : this, d, a, m, g); + g = function(a, m, h) { + return c.call(this === jsGlobal ? q : this, d, a, m, h); }; } } - h || (h = function() { + g || (g = function() { for (var a = [d], m = 0;m < arguments.length;m++) { a.push(arguments[m]); } return c.apply(this === jsGlobal ? d.global.object : this, a); }); - h.methodInfo = a; - h.instanceConstructor = h; - a.lastBoundMethod = {scope:d, boundMethod:h}; - return h; + g.methodInfo = a; + g.instanceConstructor = g; + a.lastBoundMethod = {scope:d, boundMethod:g}; + return g; }; })(k.Runtime || (k.Runtime = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -10359,7 +10363,7 @@ var Scope = Shumway.AVM2.Runtime.Scope; (function(d) { (function(k) { (function(a) { - var p = d.AVM2.ABC.Multiname, k = d.ObjectUtilities.createMap, t = d.ObjectUtilities.cloneObject, u = d.ObjectUtilities.copyProperties, l = d.ObjectUtilities.defineNonEnumerableProperty, c = d.ObjectUtilities.defineNonEnumerableGetter, h = d.FunctionUtilities.makeForwardingGetter, q = function() { + var n = d.AVM2.ABC.Multiname, k = d.ObjectUtilities.createMap, v = d.ObjectUtilities.cloneObject, u = d.ObjectUtilities.copyProperties, l = d.ObjectUtilities.defineNonEnumerableProperty, c = d.ObjectUtilities.defineNonEnumerableGetter, g = d.FunctionUtilities.makeForwardingGetter, q = function() { function b(a) { this.trait = a; } @@ -10377,7 +10381,7 @@ var Scope = Shumway.AVM2.Runtime.Scope; return b; }(); a.Binding = q; - var s = function() { + var r = function() { return function(b, a, e, f) { this.name = b; this.isConst = a; @@ -10385,7 +10389,7 @@ var Scope = Shumway.AVM2.Runtime.Scope; this.trait = f; }; }(); - a.SlotInfo = s; + a.SlotInfo = r; var m = function() { return function() { this.byID = k(); @@ -10393,7 +10397,7 @@ var Scope = Shumway.AVM2.Runtime.Scope; }; }(); a.SlotInfoMap = m; - var g = function() { + var h = function() { function f() { this.map = k(); this.slots = []; @@ -10413,155 +10417,155 @@ var Scope = Shumway.AVM2.Runtime.Scope; b.writeArray(this.slots); b.outdent(); }; - f.prototype.applyTo = function(f, g, r) { - void 0 === r && (r = !1); - r || (l(g, a.VM_SLOTS, new m), l(g, a.VM_BINDINGS, Object.create(null)), l(g, a.VM_OPEN_METHODS, k()), l(g, "bindings", this), l(g, "resolutionMap", [])); - e && e.greenLn("Applying Traits" + (r ? " (Append)" : "")); + f.prototype.applyTo = function(f, h, t) { + void 0 === t && (t = !1); + t || (l(h, a.VM_SLOTS, new m), l(h, a.VM_BINDINGS, Object.create(null)), l(h, a.VM_OPEN_METHODS, k()), l(h, "bindings", this), l(h, "resolutionMap", [])); + e && e.greenLn("Applying Traits" + (t ? " (Append)" : "")); for (var d in this.map) { - var t = this.map[d]; - r = t.trait; - var u = p.getQualifiedName(r.name); - if (r.isSlot() || r.isConst() || r.isClass()) { - t = void 0; - if (r.isSlot() || r.isConst()) { - if (r.hasDefaultValue) { - t = r.value; + var v = this.map[d]; + t = v.trait; + var u = n.getQualifiedName(t.name); + if (t.isSlot() || t.isConst() || t.isClass()) { + v = void 0; + if (t.isSlot() || t.isConst()) { + if (t.hasDefaultValue) { + v = t.value; } else { - if (r.typeName) { - var F = f.findClassInfo(r.typeName); - F && (t = F.defaultValue); + if (t.typeName) { + var E = f.findClassInfo(t.typeName); + E && (v = E.defaultValue); } } } - d !== u ? (e && e.yellowLn("Binding Trait: " + d + " -> " + u), c(g, d, h(u))) : (e && e.greenLn("Applying Trait " + r.kindName() + ": " + r), l(g, u, t), t = new s(u, r.isConst(), r.typeName ? f.getProperty(r.typeName, !1, !1) : null, r), g.asSlots.byID[r.slotId] = t, g.asSlots.byQN[u] = t); + d !== u ? (e && e.yellowLn("Binding Trait: " + d + " -> " + u), c(h, d, g(u))) : (e && e.greenLn("Applying Trait " + t.kindName() + ": " + t), l(h, u, v), v = new r(u, t.isConst(), t.typeName ? f.getProperty(t.typeName, !1, !1) : null, t), h.asSlots.byID[t.slotId] = v, h.asSlots.byQN[u] = v); } else { - if (r.isMethod() || r.isGetter() || r.isSetter()) { - if (r.isGetter() || r.isSetter()) { + if (t.isMethod() || t.isGetter() || t.isSetter()) { + if (t.isGetter() || t.isSetter()) { d = d.substring(q.KEY_PREFIX_LENGTH); } - d !== u ? e && e.yellowLn("Binding Trait: " + d + " -> " + u) : e && e.greenLn("Applying Trait " + r.kindName() + ": " + r); - a.applyMethodTrait(d, g, t, !(this instanceof b)); + d !== u ? e && e.yellowLn("Binding Trait: " + d + " -> " + u) : e && e.greenLn("Applying Trait " + t.kindName() + ": " + t); + a.applyMethodTrait(d, h, v, !(this instanceof b)); } } - g.asBindings[d] = !0; + h.asBindings[d] = !0; } }; return f; }(); - a.Bindings = g; + a.Bindings = h; var f = function(b) { function a(e) { b.call(this); this.methodInfo = e; e = e.traits; for (var f = 0;f < e.length;f++) { - var g = e[f], c = p.getQualifiedName(g.name); - this.map[c] = new q(g); - this.assignNextSlot(g); + var h = e[f], c = n.getQualifiedName(h.name); + this.map[c] = new q(h); + this.assignNextSlot(h); } } __extends(a, b); return a; - }(g); + }(h); a.ActivationBindings = f; f = function(b) { function a(e, f) { b.call(this); - var g = p.getQualifiedName(f.name); - this.map[g] = new q(f); + var h = n.getQualifiedName(f.name); + this.map[h] = new q(f); this.assignNextSlot(f); } __extends(a, b); return a; - }(g); + }(h); a.CatchBindings = f; var b = function(b) { function a(e, f) { b.call(this); this.scope = f; this.scriptInfo = e; - for (var g = e.traits, c = 0;c < g.length;c++) { - var n = g[c], m = p.getQualifiedName(n.name), m = q.getKey(m, n), m = this.map[m] = new q(n); - (n.isSlot() || n.isConst() || n.isClass()) && this.assignNextSlot(n); - n.isClass() && n.metadata && n.metadata.native && (n.classInfo.native = n.metadata.native); - if (n.isMethod() || n.isGetter() || n.isSetter()) { + for (var h = e.traits, c = 0;c < h.length;c++) { + var p = h[c], m = n.getQualifiedName(p.name), m = q.getKey(m, p), m = this.map[m] = new q(p); + (p.isSlot() || p.isConst() || p.isClass()) && this.assignNextSlot(p); + p.isClass() && p.metadata && p.metadata.native && (p.classInfo.native = p.metadata.native); + if (p.isMethod() || p.isGetter() || p.isSetter()) { m.scope = this.scope; } } } __extends(a, b); return a; - }(g); + }(h); a.ScriptBindings = b; f = function(b) { - function a(e, f, g) { + function a(e, f, h) { b.call(this); this.scope = f; - this.natives = g; + this.natives = h; this.classInfo = e; e = e.traits; for (f = 0;f < e.length;f++) { - g = e[f]; - var c = p.getQualifiedName(g.name), c = q.getKey(c, g), c = this.map[c] = new q(g); - (g.isSlot() || g.isConst()) && this.assignNextSlot(g); - if (g.isMethod() || g.isGetter() || g.isSetter()) { + h = e[f]; + var c = n.getQualifiedName(h.name), c = q.getKey(c, h), c = this.map[c] = new q(h); + (h.isSlot() || h.isConst()) && this.assignNextSlot(h); + if (h.isMethod() || h.isGetter() || h.isSetter()) { c.scope = this.scope, c.natives = this.natives; } } } __extends(a, b); return a; - }(g); + }(h); a.ClassBindings = f; - g = function(b) { - function a(e, f, g, c) { + h = function(b) { + function a(e, f, h, c) { b.call(this); - this.scope = g; + this.scope = h; this.natives = c; this.parent = e; this.instanceInfo = f; - this.implementedInterfaces = e ? t(e.implementedInterfaces) : Object.create(null); + this.implementedInterfaces = e ? v(e.implementedInterfaces) : Object.create(null); e && (this.slots = e.slots.slice(), this.nextSlotId = e.nextSlotId); this.extend(e); } __extends(a, b); a.prototype.extend = function(b) { - var a = this.instanceInfo, e, f = this.map, g, c, n, r; + var a = this.instanceInfo, e, f = this.map, h, c, p, t; if (b) { for (c in b.map) { - g = b.map[c], n = g.trait, f[c] = g, n.isProtected() && (r = p.getQualifiedName(new p([a.protectedNs], n.name.getName(), 0)), r = q.getKey(r, n), f[r] = g); + h = b.map[c], p = h.trait, f[c] = h, p.isProtected() && (t = n.getQualifiedName(new n([a.protectedNs], p.name.getName(), 0)), t = q.getKey(t, p), f[t] = h); } } var m = a.traits; for (b = 0;b < m.length;b++) { - n = m[b]; - g = p.getQualifiedName(n.name); - c = q.getKey(g, n); - g = new q(n); + p = m[b]; + h = n.getQualifiedName(p.name); + c = q.getKey(h, p); + h = new q(p); e = f; - r = g; - var h = e[c]; - e[c] = r; - if (n.isProtected()) { + t = h; + var g = e[c]; + e[c] = t; + if (p.isProtected()) { for (e = this.parent;e && e.instanceInfo.protectedNs;) { - r = p.getQualifiedName(new p([e.instanceInfo.protectedNs], n.name.getName(), 0)), r = q.getKey(r, n), r in f && (f[r] = g), e = e.parent; + t = n.getQualifiedName(new n([e.instanceInfo.protectedNs], p.name.getName(), 0)), t = q.getKey(t, p), t in f && (f[t] = h), e = e.parent; } } - (n.isSlot() || n.isConst()) && this.assignNextSlot(n); - if (n.isMethod() || n.isGetter() || n.isSetter()) { - g.scope = this.scope, g.natives = this.natives; + (p.isSlot() || p.isConst()) && this.assignNextSlot(p); + if (p.isMethod() || p.isGetter() || p.isSetter()) { + h.scope = this.scope, h.natives = this.natives; } } - n = a.abc.applicationDomain; - g = a.interfaces; - for (b = 0;b < g.length;b++) { - m = n.getProperty(g[b], !0, !0), u(this.implementedInterfaces, m.interfaceBindings.implementedInterfaces), this.implementedInterfaces[p.getQualifiedName(m.classInfo.instanceInfo.name)] = m; + p = a.abc.applicationDomain; + h = a.interfaces; + for (b = 0;b < h.length;b++) { + m = p.getProperty(h[b], !0, !0), u(this.implementedInterfaces, m.interfaceBindings.implementedInterfaces), this.implementedInterfaces[n.getQualifiedName(m.classInfo.instanceInfo.name)] = m; } - for (var s in this.implementedInterfaces) { - m = this.implementedInterfaces[s]; + for (var r in this.implementedInterfaces) { + m = this.implementedInterfaces[r]; e = m.interfaceBindings; for (var d in e.map) { - b = e.map[d], a.isInterface() ? f[d] = b : (g = p.getPublicQualifiedName(b.trait.name.getName()), c = q.getKey(g, b.trait), f[d] = f[c]); + b = e.map[d], a.isInterface() ? f[d] = b : (h = n.getPublicQualifiedName(b.trait.name.getName()), c = q.getKey(h, b.trait), f[d] = f[c]); } } }; @@ -10569,8 +10573,8 @@ var Scope = Shumway.AVM2.Runtime.Scope; return this.instanceInfo.toString(); }; return a; - }(g); - a.InstanceBindings = g; + }(h); + a.InstanceBindings = h; var e = null; })(k.Runtime || (k.Runtime = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -10583,10 +10587,10 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind var f; if (e) { if (b.__proto__) { - b.__proto__ = g.prototype; + b.__proto__ = h.prototype; } else { - for (f in g.prototype) { - b[f] = g.prototype[f]; + for (f in h.prototype) { + b[f] = h.prototype[f]; } } } @@ -10597,7 +10601,7 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind return b.replace.call(a, /([\s\S])(?=[\s\S]*\1)/g, ""); } function k(e, f) { - if (!g.isRegExp(e)) { + if (!h.isRegExp(e)) { throw new TypeError("Type RegExp expected"); } var c = b.exec.call(/\/([a-z]*)$/i, String(e))[1]; @@ -10606,7 +10610,7 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind f.remove && (c = b.replace.call(c, new RegExp("[" + f.remove + "]+", "g"), "")); return e = a(new RegExp(e.source, c), e.xregexp && e.xregexp.captureNames ? e.xregexp.captureNames.slice(0) : null, f.addProto); } - function t(b, a) { + function v(b, a) { if (Array.prototype.indexOf) { return b.indexOf(a); } @@ -10616,10 +10620,10 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind return f; } } - return-1; + return -1; } function u(b, a) { - return T.call(b) === "[object " + a + "]"; + return J.call(b) === "[object " + a + "]"; } function l(a, e, f) { return b.test.call(-1 < f.indexOf("x") ? /^(?:\s+|#.*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/ : /^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/, a.slice(e)); @@ -10637,15 +10641,15 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind return ""; }); for (f = 0;f < e.length;++f) { - if (!F[e.charAt(f)]) { + if (!E[e.charAt(f)]) { throw new SyntaxError("Unknown regex flag " + e.charAt(f)); } } - return{pattern:a, flags:e}; + return {pattern:a, flags:e}; } - function h(b) { + function g(b) { b = b || {}; - u(b, "String") && (b = g.forEach(b, /[^\s,]+/, function(b) { + u(b, "String") && (b = h.forEach(b, /[^\s,]+/, function(b) { this[b] = !0; }, {})); return b; @@ -10654,9 +10658,9 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind if (!/^[\w$]$/.test(b)) { throw Error("Flag must be a single character A-Za-z0-9_$"); } - F[b] = !0; + E[b] = !0; } - function s(a) { + function r(a) { RegExp.prototype.exec = (a ? e : b).exec; RegExp.prototype.test = (a ? e : b).test; String.prototype.match = (a ? e : b).match; @@ -10670,11 +10674,11 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind } return b; } - var g, f = {astral:!1, natives:!1}, b = {exec:RegExp.prototype.exec, test:RegExp.prototype.test, match:String.prototype.match, replace:String.prototype.replace, split:String.prototype.split}, e = {}, r = {}, n = {}, x = [], I = {"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/, "class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|[\s\S]/}, z = /\$(?:{([\w$]+)}|([\d$&`']))/g, - D = void 0 === b.exec.call(/()??/, "")[1], M = void 0 !== RegExp.prototype.sticky, F = {g:!0, i:!0, m:!0, y:M}, T = {}.toString, N; - g = function(e, f) { - var r = {hasNamedCapture:!1, captureNames:[]}, m = "default", h = "", q = 0, d, s; - if (g.isRegExp(e)) { + var h, f = {astral:!1, natives:!1}, b = {exec:RegExp.prototype.exec, test:RegExp.prototype.test, match:String.prototype.match, replace:String.prototype.replace, split:String.prototype.split}, e = {}, t = {}, p = {}, C = [], I = {"default":/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|\(\?[:=!]|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/, "class":/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|c[A-Za-z]|[\s\S])|[\s\S]/}, B = /\$(?:{([\w$]+)}|([\d$&`']))/g, + D = void 0 === b.exec.call(/()??/, "")[1], M = void 0 !== RegExp.prototype.sticky, E = {g:!0, i:!0, m:!0, y:M}, J = {}.toString, P; + h = function(e, f) { + var t = {hasNamedCapture:!1, captureNames:[]}, m = "default", g = "", q = 0, r, d; + if (h.isRegExp(e)) { if (void 0 !== f) { throw new TypeError("Cannot supply flags when copying a RegExp"); } @@ -10682,141 +10686,141 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind } e = void 0 === e ? "" : String(e); f = void 0 === f ? "" : String(f); - s = e + "***" + f; - if (!n[s]) { - d = c(e, f); - e = d.pattern; - for (f = d.flags;q < e.length;) { + d = e + "***" + f; + if (!p[d]) { + r = c(e, f); + e = r.pattern; + for (f = r.flags;q < e.length;) { do { - d = e; - for (var l = f, p = q, t = m, z = r, u = x.length, D = null, M = void 0, F = void 0;u--;) { - if (F = x[u], (F.scope === t || "all" === F.scope) && (!F.flag || -1 < l.indexOf(F.flag)) && (M = g.exec(d, F.regex, p, "sticky"))) { - D = {matchLength:M[0].length, output:F.handler.call(z, M, t, l), reparse:F.reparse}; + r = e; + for (var l = f, n = q, B = m, v = t, u = C.length, D = null, M = void 0, E = void 0;u--;) { + if (E = C[u], (E.scope === B || "all" === E.scope) && (!E.flag || -1 < l.indexOf(E.flag)) && (M = h.exec(r, E.regex, n, "sticky"))) { + D = {matchLength:M[0].length, output:E.handler.call(v, M, B, l), reparse:E.reparse}; break; } } - (d = D) && d.reparse && (e = e.slice(0, q) + d.output + e.slice(q + d.matchLength)); - } while (d && d.reparse); - d ? (h += d.output, q += d.matchLength || 1) : (d = g.exec(e, I[m], q, "sticky")[0], h += d, q += d.length, "[" === d && "default" === m ? m = "class" : "]" === d && "class" === m && (m = "default")); + (r = D) && r.reparse && (e = e.slice(0, q) + r.output + e.slice(q + r.matchLength)); + } while (r && r.reparse); + r ? (g += r.output, q += r.matchLength || 1) : (r = h.exec(e, I[m], q, "sticky")[0], g += r, q += r.length, "[" === r && "default" === m ? m = "class" : "]" === r && "class" === m && (m = "default")); } - n[s] = {pattern:b.replace.call(h, /\(\?:\)(?=\(\?:\))|^\(\?:\)|\(\?:\)$/g, ""), flags:b.replace.call(f, /[^gimy]+/g, ""), captures:r.hasNamedCapture ? r.captureNames : null}; + p[d] = {pattern:b.replace.call(g, /\(\?:\)(?=\(\?:\))|^\(\?:\)|\(\?:\)$/g, ""), flags:b.replace.call(f, /[^gimy]+/g, ""), captures:t.hasNamedCapture ? t.captureNames : null}; } - s = n[s]; - return a(new RegExp(s.pattern, s.flags), s.captures, !0); + d = p[d]; + return a(new RegExp(d.pattern, d.flags), d.captures, !0); }; - g.prototype = RegExp(); - g.version = "3.0.0-pre"; - g.addToken = function(a, e, f) { + h.prototype = RegExp(); + h.version = "3.0.0-pre"; + h.addToken = function(a, e, f) { f = f || {}; - var c = f.optionalFlags, n; + var c = f.optionalFlags, p; f.flag && q(f.flag); if (c) { - for (c = b.split.call(c, ""), n = 0;n < c.length;++n) { - q(c[n]); + for (c = b.split.call(c, ""), p = 0;p < c.length;++p) { + q(c[p]); } } - x.push({regex:k(a, {add:"g" + (M ? "y" : "")}), handler:e, scope:f.scope || "default", flag:f.flag, reparse:f.reparse}); - g.cache.flush("patterns"); + C.push({regex:k(a, {add:"g" + (M ? "y" : "")}), handler:e, scope:f.scope || "default", flag:f.flag, reparse:f.reparse}); + h.cache.flush("patterns"); }; - g.cache = function(b, a) { + h.cache = function(b, a) { var e = b + "***" + (a || ""); - return r[e] || (r[e] = g(b, a)); + return t[e] || (t[e] = h(b, a)); }; - g.cache.flush = function(b) { - "patterns" === b ? n = {} : r = {}; + h.cache.flush = function(b) { + "patterns" === b ? p = {} : t = {}; }; - g.escape = function(a) { + h.escape = function(a) { return b.replace.call(m(a), /[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); }; - g.exec = function(b, a, f, g) { + h.exec = function(b, a, f, h) { var c = "g"; - M && (g || a.sticky && !1 !== g) && (c += "y"); + M && (h || a.sticky && !1 !== h) && (c += "y"); a.xregexp = a.xregexp || {captureNames:null}; - c = a.xregexp[c] || (a.xregexp[c] = k(a, {add:c, remove:!1 === g ? "y" : ""})); + c = a.xregexp[c] || (a.xregexp[c] = k(a, {add:c, remove:!1 === h ? "y" : ""})); c.lastIndex = f = f || 0; b = e.exec.call(c, b); - g && b && b.index !== f && (b = null); + h && b && b.index !== f && (b = null); a.global && (a.lastIndex = b ? c.lastIndex : 0); return b; }; - g.forEach = function(b, a, e, f) { - for (var c = 0, n = -1;c = g.exec(b, a, c);) { - e.call(f, c, ++n, b, a), c = c.index + (c[0].length || 1); + h.forEach = function(b, a, e, f) { + for (var c = 0, p = -1;c = h.exec(b, a, c);) { + e.call(f, c, ++p, b, a), c = c.index + (c[0].length || 1); } return f; }; - g.globalize = function(b) { + h.globalize = function(b) { return k(b, {add:"g", addProto:!0}); }; - g.install = function() { - var b = {natives:!0}, b = h(b); - !f.astral && b.astral && (g.cache.flush("patterns"), f.astral = !0); - !f.natives && b.natives && s(!0); + h.install = function() { + var b = {natives:!0}, b = g(b); + !f.astral && b.astral && (h.cache.flush("patterns"), f.astral = !0); + !f.natives && b.natives && r(!0); }; - g.isInstalled = function(b) { - return!!f[b]; + h.isInstalled = function(b) { + return !!f[b]; }; - g.isRegExp = function(b) { - return "[object RegExp]" === T.call(b); + h.isRegExp = function(b) { + return "[object RegExp]" === J.call(b); }; - g.match = function(a, e, f) { - var g = e.global && "one" !== f || "all" === f, c = (g ? "g" : "") + (e.sticky ? "y" : ""); + h.match = function(a, e, f) { + var h = e.global && "one" !== f || "all" === f, c = (h ? "g" : "") + (e.sticky ? "y" : ""); e.xregexp = e.xregexp || {captureNames:null}; c = e.xregexp[c || "noGY"] || (e.xregexp[c || "noGY"] = k(e, {add:c, remove:"one" === f ? "g" : ""})); a = b.match.call(m(a), c); e.global && (e.lastIndex = "one" === f && a ? a.index + a[0].length : 0); - return g ? a || [] : a && a[0]; + return h ? a || [] : a && a[0]; }; - g.matchChain = function(b, a) { + h.matchChain = function(b, a) { return function A(b, e) { function f(b) { if (c.backref) { if (!(b.hasOwnProperty(c.backref) || +c.backref < b.length)) { throw new ReferenceError("Backreference to undefined group: " + c.backref); } - n.push(b[c.backref] || ""); + p.push(b[c.backref] || ""); } else { - n.push(b[0]); + p.push(b[0]); } } - var c = a[e].regex ? a[e] : {regex:a[e]}, n = [], r; - for (r = 0;r < b.length;++r) { - g.forEach(b[r], c.regex, f); + var c = a[e].regex ? a[e] : {regex:a[e]}, p = [], t; + for (t = 0;t < b.length;++t) { + h.forEach(b[t], c.regex, f); } - return e !== a.length - 1 && n.length ? A(n, e + 1) : n; + return e !== a.length - 1 && p.length ? A(p, e + 1) : p; }([b], 0); }; - g.replace = function(b, a, f, c) { - var n = g.isRegExp(a), r = a.global && "one" !== c || "all" === c, h = (r ? "g" : "") + (a.sticky ? "y" : ""), q = a; - n ? (a.xregexp = a.xregexp || {captureNames:null}, q = a.xregexp[h || "noGY"] || (a.xregexp[h || "noGY"] = k(a, {add:h, remove:"one" === c ? "g" : ""}))) : r && (q = new RegExp(g.escape(String(a)), "g")); + h.replace = function(b, a, f, c) { + var p = h.isRegExp(a), t = a.global && "one" !== c || "all" === c, g = (t ? "g" : "") + (a.sticky ? "y" : ""), q = a; + p ? (a.xregexp = a.xregexp || {captureNames:null}, q = a.xregexp[g || "noGY"] || (a.xregexp[g || "noGY"] = k(a, {add:g, remove:"one" === c ? "g" : ""}))) : t && (q = new RegExp(h.escape(String(a)), "g")); b = e.replace.call(m(b), q, f); - n && a.global && (a.lastIndex = 0); + p && a.global && (a.lastIndex = 0); return b; }; - g.replaceEach = function(b, a) { + h.replaceEach = function(b, a) { var e, f; for (e = 0;e < a.length;++e) { - f = a[e], b = g.replace(b, f[0], f[1], f[2]); + f = a[e], b = h.replace(b, f[0], f[1], f[2]); } return b; }; - g.split = function(b, a, f) { + h.split = function(b, a, f) { return e.split.call(m(b), a, f); }; - g.test = function(b, a, e, f) { - return!!g.exec(b, a, e, f); + h.test = function(b, a, e, f) { + return !!h.exec(b, a, e, f); }; - g.uninstall = function(b) { - b = h(b); - f.astral && b.astral && (g.cache.flush("patterns"), f.astral = !1); - f.natives && b.natives && s(!1); + h.uninstall = function(b) { + b = g(b); + f.astral && b.astral && (h.cache.flush("patterns"), f.astral = !1); + f.natives && b.natives && r(!1); }; - g.union = function(a, e) { + h.union = function(a, e) { function f(b, a, e) { - var g = h[r - m]; + var h = g[t - m]; if (a) { - if (++r, g) { - return "(?<" + g + ">"; + if (++t, h) { + return "(?<" + h + ">"; } } else { if (e) { @@ -10825,19 +10829,19 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind } return b; } - var c = /(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g, n = [], r = 0, m, h, q, d; + var c = /(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*]/g, p = [], t = 0, m, g, q, r; if (!u(a, "Array") || !a.length) { throw new TypeError("Must provide a nonempty array of patterns to merge"); } - for (d = 0;d < a.length;++d) { - q = a[d], g.isRegExp(q) ? (m = r, h = q.xregexp && q.xregexp.captureNames || [], n.push(b.replace.call(g(q.source).source, c, f))) : n.push(g.escape(q)); + for (r = 0;r < a.length;++r) { + q = a[r], h.isRegExp(q) ? (m = t, g = q.xregexp && q.xregexp.captureNames || [], p.push(b.replace.call(h(q.source).source, c, f))) : p.push(h.escape(q)); } - return g(n.join("|"), e); + return h(p.join("|"), e); }; e.exec = function(a) { - var e = this.lastIndex, f = b.exec.apply(this, arguments), g, c; + var e = this.lastIndex, f = b.exec.apply(this, arguments), h, c; if (f) { - !D && 1 < f.length && -1 < t(f, "") && (g = k(this, {remove:"g"}), b.replace.call(String(a).slice(f.index), g, function() { + !D && 1 < f.length && -1 < v(f, "") && (h = k(this, {remove:"g"}), b.replace.call(String(a).slice(f.index), h, function() { var b = arguments.length, a; for (a = 1;a < b - 2;++a) { void 0 === arguments[a] && (f[a] = void 0); @@ -10845,7 +10849,7 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind })); if (this.xregexp && this.xregexp.captureNames) { for (c = 1;c < f.length;++c) { - (g = this.xregexp.captureNames[c - 1]) && (f[g] = f[c]); + (h = this.xregexp.captureNames[c - 1]) && (f[h] = f[c]); } } this.global && !f[0].length && this.lastIndex > f.index && (this.lastIndex = f.index); @@ -10854,11 +10858,11 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind return f; }; e.test = function(b) { - return!!e.exec.call(this, b); + return !!e.exec.call(this, b); }; e.match = function(a) { var f; - if (!g.isRegExp(a)) { + if (!h.isRegExp(a)) { a = new RegExp(a); } else { if (a.global) { @@ -10868,26 +10872,26 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind return e.exec.call(a, m(this)); }; e.replace = function(a, e) { - var f = g.isRegExp(a), c, n, r; - f ? (a.xregexp && (n = a.xregexp.captureNames), c = a.lastIndex) : a += ""; - r = u(e, "Function") ? b.replace.call(String(this), a, function() { - var b = arguments, g; - if (n) { - for (b[0] = new String(b[0]), g = 0;g < n.length;++g) { - n[g] && (b[0][n[g]] = b[g + 1]); + var f = h.isRegExp(a), c, p, t; + f ? (a.xregexp && (p = a.xregexp.captureNames), c = a.lastIndex) : a += ""; + t = u(e, "Function") ? b.replace.call(String(this), a, function() { + var b = arguments, h; + if (p) { + for (b[0] = new String(b[0]), h = 0;h < p.length;++h) { + p[h] && (b[0][p[h]] = b[h + 1]); } } f && a.global && (a.lastIndex = b[b.length - 2] + b[0].length); return e.apply(void 0, b); }) : b.replace.call(null == this ? this : String(this), a, function() { var a = arguments; - return b.replace.call(String(e), z, function(b, e, f) { + return b.replace.call(String(e), B, function(b, e, f) { if (e) { f = +e; if (f <= a.length - 3) { return a[f] || ""; } - f = n ? t(n, e) : -1; + f = p ? v(p, e) : -1; if (0 > f) { throw new SyntaxError("Backreference to undefined group " + b); } @@ -10916,75 +10920,75 @@ var Binding = Shumway.AVM2.Runtime.Binding, Bindings = Shumway.AVM2.Runtime.Bind }); }); f && (a.lastIndex = a.global ? 0 : c); - return r; + return t; }; e.split = function(a, e) { - if (!g.isRegExp(a)) { + if (!h.isRegExp(a)) { return b.split.apply(this, arguments); } - var f = String(this), c = [], n = a.lastIndex, r = 0, m; + var f = String(this), c = [], p = a.lastIndex, t = 0, m; e = (void 0 === e ? -1 : e) >>> 0; - g.forEach(f, a, function(b) { - b.index + b[0].length > r && (c.push(f.slice(r, b.index)), 1 < b.length && b.index < f.length && Array.prototype.push.apply(c, b.slice(1)), m = b[0].length, r = b.index + m); + h.forEach(f, a, function(b) { + b.index + b[0].length > t && (c.push(f.slice(t, b.index)), 1 < b.length && b.index < f.length && Array.prototype.push.apply(c, b.slice(1)), m = b[0].length, t = b.index + m); }); - r === f.length ? b.test.call(a, "") && !m || c.push("") : c.push(f.slice(r)); - a.lastIndex = n; + t === f.length ? b.test.call(a, "") && !m || c.push("") : c.push(f.slice(t)); + a.lastIndex = p; return c.length > e ? c.slice(0, e) : c; }; - N = g.addToken; - N(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/, function(b, a) { + P = h.addToken; + P(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4})|x(?![\dA-Fa-f]{2}))/, function(b, a) { if ("B" === b[1] && "default" === a) { return b[0]; } throw new SyntaxError("Invalid escape " + b[0]); }, {scope:"all"}); - N(/\[(\^?)]/, function(b) { + P(/\[(\^?)]/, function(b) { return b[1] ? "[\\s\\S]" : "\\b\\B"; }); - N(/\(\?#[^)]*\)/, function(b, a, e) { + P(/\(\?#[^)]*\)/, function(b, a, e) { return l(b.input, b.index + b[0].length, e) ? "" : "(?:)"; }); - N(/\s+|#.*/, function(b, a, e) { + P(/\s+|#.*/, function(b, a, e) { return l(b.input, b.index + b[0].length, e) ? "" : "(?:)"; }, {flag:"x"}); - N(/\./, function() { + P(/\./, function() { return "[\\s\\S]"; }, {flag:"s"}); - N(/\\k<([\w$]+)>/, function(b) { - var a = isNaN(b[1]) ? t(this.captureNames, b[1]) + 1 : +b[1], e = b.index + b[0].length; + P(/\\k<([\w$]+)>/, function(b) { + var a = isNaN(b[1]) ? v(this.captureNames, b[1]) + 1 : +b[1], e = b.index + b[0].length; if (!a || a > this.captureNames.length) { throw new SyntaxError("Backreference to undefined group " + b[0]); } return "\\" + a + (e === b.input.length || isNaN(b.input.charAt(e)) ? "" : "(?:)"); }); - N(/\\(\d+)/, function(b, a) { + P(/\\(\d+)/, function(b, a) { if (!("default" === a && /^[1-9]/.test(b[1]) && +b[1] <= this.captureNames.length) && "0" !== b[1]) { throw new SyntaxError("Cannot use octal escape or backreference to undefined group " + b[0]); } return b[0]; }, {scope:"all"}); - N(/\(\?P?<([\w$]+)>/, function(b) { + P(/\(\?P?<([\w$]+)>/, function(b) { if (!isNaN(b[1])) { throw new SyntaxError("Cannot use integer as capture name " + b[0]); } if ("length" === b[1] || "__proto__" === b[1]) { throw new SyntaxError("Cannot use reserved word as capture name " + b[0]); } - if (-1 < t(this.captureNames, b[1])) { + if (-1 < v(this.captureNames, b[1])) { throw new SyntaxError("Cannot use same name for multiple groups " + b[0]); } this.captureNames.push(b[1]); this.hasNamedCapture = !0; return "("; }); - N(/\((?!\?)/, function(b, a, e) { + P(/\((?!\?)/, function(b, a, e) { if (-1 < e.indexOf("n")) { return "(?:"; } this.captureNames.push(null); return "("; }, {optionalFlags:"n"}); - return g; + return h; }(); })(d.AVM2 || (d.AVM2 = {})); })(Shumway || (Shumway = {})); @@ -10992,27 +10996,27 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(a, e, f) { - var g = a[e]; - if (Array.isArray(g)) { - for (var c = 0, n = g.length;c < n;c++) { - var r = p(g, b(c), f); - void 0 === r ? delete g[c] : g[c] = r; + function n(a, e, f) { + var h = a[e]; + if (Array.isArray(h)) { + for (var c = 0, p = h.length;c < p;c++) { + var t = n(h, b(c), f); + void 0 === t ? delete h[c] : h[c] = t; } } else { - if (null !== g && "boolean" !== typeof g && "number" !== typeof g && "string" !== typeof g) { - for (c in g) { - if (!g.hasOwnProperty(c) || !t.isPublicQualifiedName(c)) { + if (null !== h && "boolean" !== typeof h && "number" !== typeof h && "string" !== typeof h) { + for (c in h) { + if (!h.hasOwnProperty(c) || !v.isPublicQualifiedName(c)) { break; } - r = p(g, c, f); - void 0 === r ? delete g[c] : g[c] = r; + t = n(h, c, f); + void 0 === t ? delete h[c] : h[c] = t; } } } - return f.call(a, e, g); + return f.call(a, e, h); } - function v(b) { + function w(b) { switch(b) { case "prototype": return "native_prototype"; @@ -11026,22 +11030,22 @@ Shumway.AVM2.XRegExp.install(); return b; } } - var t = d.AVM2.ABC.Multiname, u = d.AVM2.Runtime.Scope, l = d.ObjectUtilities.hasOwnProperty, c = d.ObjectUtilities.defineReadOnlyProperty, h = d.ObjectUtilities.defineNonEnumerableProperty, q = d.isNumber, s = d.isNullOrUndefined, m = d.ObjectUtilities.isPrototypeWriteable, g = d.ObjectUtilities.getOwnPropertyDescriptor, f = d.Debug.notImplemented, b = d.AVM2.Runtime.asCoerceString, e = d.AVM2.Runtime.createFunction, r = d.AVM2.Runtime, n = d.ObjectUtilities.boxValue, x = d.AVM2.Runtime.ClassBindings, - I = d.AVM2.Runtime.InstanceBindings, z = d.AVM2.Runtime.asCompare, D = function() { + var v = d.AVM2.ABC.Multiname, u = d.AVM2.Runtime.Scope, l = d.ObjectUtilities.hasOwnProperty, c = d.ObjectUtilities.defineReadOnlyProperty, g = d.ObjectUtilities.defineNonEnumerableProperty, q = d.isNumber, r = d.isNullOrUndefined, m = d.ObjectUtilities.isPrototypeWriteable, h = d.ObjectUtilities.getOwnPropertyDescriptor, f = d.Debug.notImplemented, b = d.AVM2.Runtime.asCoerceString, e = d.AVM2.Runtime.createFunction, t = d.AVM2.Runtime, p = d.ObjectUtilities.boxValue, C = d.AVM2.Runtime.ClassBindings, + I = d.AVM2.Runtime.InstanceBindings, B = d.AVM2.Runtime.asCompare, D = function() { function b() { } b.init = function() { }; b.morphIntoASClass = function(b) { this.classInfo = b; - this.__proto__ = F.prototype; + this.__proto__ = E.prototype; }; b.create = function(b, a, e) { b.baseClass = a; - F.create(b, a, this.instanceConstructor); + E.create(b, a, this.instanceConstructor); }; b.initializeFrom = function(b) { - return T.initializeFrom.call(this, b); + return J.initializeFrom.call(this, b); }; b.asCall = function(b) { for (var a = [], e = 1;e < arguments.length;e++) { @@ -11053,18 +11057,18 @@ Shumway.AVM2.XRegExp.install(); return this.callableConstructor.apply(b, a); }; b.verify = function() { - T.verify.call(this); + J.verify.call(this); }; b.trace = function(b) { - T.trace.call(this, b); + J.trace.call(this, b); }; b.getQualifiedClassName = function() { - return T.getQualifiedClassName.call(this); + return J.getQualifiedClassName.call(this); }; b._setPropertyIsEnumerable = function(b, a, e) { void 0 === e && (e = !0); - a = t.getPublicQualifiedName(a); - var f = g(b, a); + a = v.getPublicQualifiedName(a); + var f = h(b, a); f.enumerable = !!e; Object.defineProperty(b, a, f); }; @@ -11072,14 +11076,14 @@ Shumway.AVM2.XRegExp.install(); c(b, "$Bglength", 1); c(Object, "$Bglength", 1); var a = this.dynamicPrototype; - h(a, "$BghasOwnProperty", b.prototype.native_hasOwnProperty); - h(a, "$BgpropertyIsEnumerable", b.prototype.native_propertyIsEnumerable); - h(a, "$BgsetPropertyIsEnumerable", b.prototype.setPropertyIsEnumerable); - h(a, "$BgisPrototypeOf", b.prototype.native_isPrototypeOf); - h(a, "$BgtoString", r.asToString); - h(a, "toString", b.prototype.toString); - h(a, "$BgvalueOf", Object.prototype.valueOf); - h(a, "valueOf", b.prototype.valueOf); + g(a, "$BghasOwnProperty", b.prototype.native_hasOwnProperty); + g(a, "$BgpropertyIsEnumerable", b.prototype.native_propertyIsEnumerable); + g(a, "$BgsetPropertyIsEnumerable", b.prototype.setPropertyIsEnumerable); + g(a, "$BgisPrototypeOf", b.prototype.native_isPrototypeOf); + g(a, "$BgtoString", t.asToString); + g(a, "toString", b.prototype.toString); + g(a, "$BgvalueOf", Object.prototype.valueOf); + g(a, "valueOf", b.prototype.valueOf); }; b.prototype.toString = function() { return this.$BgtoString(); @@ -11089,7 +11093,7 @@ Shumway.AVM2.XRegExp.install(); }; b.prototype.native_isPrototypeOf = function(b) { f("isPrototypeOf"); - return!1; + return !1; }; b.prototype.native_hasOwnProperty = function(b) { return this.asHasOwnProperty(null, b, 0); @@ -11110,7 +11114,7 @@ Shumway.AVM2.XRegExp.install(); b.defaultValue = null; b.call = Function.prototype.call; b.apply = Function.prototype.apply; - b.coerce = r.asCoerceObject; + b.coerce = t.asCoerceObject; b.defineProperty = Object.defineProperty; return b; }(); @@ -11134,7 +11138,7 @@ Shumway.AVM2.XRegExp.install(); return a; }(D); a.ASNative = M; - var F = function(b) { + var E = function(b) { function a(b) { this.classInfo = b; this.defaultValue = this.instanceNatives = this.staticNatives = null; @@ -11149,16 +11153,16 @@ Shumway.AVM2.XRegExp.install(); for (var e = b.traitsPrototype, f = [];b;) { f.push(b), b = b.baseClass; } - for (var g = 0;g < f.length;g++) { - var c = [f[g].typeScriptPrototype]; - f[g].instanceNatives && d.ArrayUtilities.pushMany(c, f[g].instanceNatives); - for (var n = 0;n < c.length;n++) { - var r = c[n], m; - for (m in r) { - if (!(0 < g && "toString" === m) && l(r, m) && !l(e, m)) { - var h = Object.getOwnPropertyDescriptor(r, m); + for (var h = 0;h < f.length;h++) { + var c = [f[h].typeScriptPrototype]; + f[h].instanceNatives && d.ArrayUtilities.pushMany(c, f[h].instanceNatives); + for (var p = 0;p < c.length;p++) { + var t = c[p], m; + for (m in t) { + if (!(0 < h && "toString" === m) && l(t, m) && !l(e, m)) { + var g = Object.getOwnPropertyDescriptor(t, m); try { - Object.defineProperty(e, m, h); + Object.defineProperty(e, m, g); } catch (q) { } } @@ -11173,8 +11177,8 @@ Shumway.AVM2.XRegExp.install(); b.callableConstructor || (b.callableConstructor = b.coerce.bind(b)); b.instanceConstructorNoInitialize = b.instanceConstructor; b.instanceConstructor.prototype = b.traitsPrototype; - h(b.instanceConstructor.prototype, "class", b); - h(b.dynamicPrototype, t.getPublicQualifiedName("constructor"), b); + g(b.instanceConstructor.prototype, "class", b); + g(b.dynamicPrototype, v.getPublicQualifiedName("constructor"), b); b.protocol && d.ObjectUtilities.copyOwnPropertyDescriptors(b.traitsPrototype, b.protocol); }; a.prototype.initializeFrom = function(b) { @@ -11197,38 +11201,38 @@ Shumway.AVM2.XRegExp.install(); b.initializers && (b.instanceConstructor = function() { a.runInitializers(this, void 0); return b.instanceConstructorNoInitialize.apply(this, arguments); - }, b.instanceConstructor.prototype = b.traitsPrototype, h(b.instanceConstructor.prototype, "class", b), b.instanceConstructor.classInfo = b.classInfo, b.instanceConstructor.__proto__ = b); + }, b.instanceConstructor.prototype = b.traitsPrototype, g(b.instanceConstructor.prototype, "class", b), b.instanceConstructor.classInfo = b.classInfo, b.instanceConstructor.__proto__ = b); }; a.runClassInitializer = function(b) { b.classInitializer && b.classInitializer(); }; a.linkSymbols = function(b) { - function a(b, e, g) { + function a(b, e, h) { for (var c = 0;c < e.length;c++) { - var n = e[c], r; + var p = e[c], t; a: { - r = b; - for (var m = n.name.name, h = 0;h < r.length;h++) { - var q = r[h]; + t = b; + for (var m = p.name.name, g = 0;g < t.length;g++) { + var q = t[g]; if (0 <= q.indexOf(m)) { - var d = "!" === q[q.length - 1]; - d && (q = q.slice(0, q.length - 1)); + var r = "!" === q[q.length - 1]; + r && (q = q.slice(0, q.length - 1)); if (m === q) { - r = d; + t = r; break a; } } } - r = !1; + t = !1; } - if (r) { - if (n.isConst()) { + if (t) { + if (p.isConst()) { f("Don't link against const traits."); break; } - r = n.name.name; - m = t.getQualifiedName(n.name); - n.isSlot() ? Object.defineProperty(g, r, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as"), set:new Function("v", "this." + m + " = v;//# sourceURL=set-" + m + ".as")}) : n.isMethod() ? g[r] = g.asOpenMethods[m] : n.isGetter() ? Object.defineProperty(g, r, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as")}) : f(n); + t = p.name.name; + m = v.getQualifiedName(p.name); + p.isSlot() ? Object.defineProperty(h, t, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as"), set:new Function("v", "this." + m + " = v;//# sourceURL=set-" + m + ".as")}) : p.isMethod() ? h[t] = h.asOpenMethods[m] : p.isGetter() ? Object.defineProperty(h, t, {get:new Function("", "return this." + m + "//# sourceURL=get-" + m + ".as")}) : f(p); } } } @@ -11255,14 +11259,14 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.isType = function(b) { if (d.isNullOrUndefined(b)) { - return!1; + return !1; } - b = n(b); + b = p(b); if (this.isInterface()) { if (null === b || "object" !== typeof b) { - return!1; + return !1; } - var a = t.getQualifiedName(this.classInfo.instanceInfo.name); + var a = v.getQualifiedName(this.classInfo.instanceInfo.name); return void 0 !== b.class.implementedInterfaces[a]; } return this.dynamicPrototype.isPrototypeOf(b); @@ -11270,11 +11274,11 @@ Shumway.AVM2.XRegExp.install(); a.prototype.isSubtypeOf = function(b) { for (var a = this;a;) { if (a.traitsPrototype === b.traitsPrototype) { - return!0; + return !0; } a = a.baseClass; } - return!1; + return !1; }; a.prototype.coerce = function(b) { return b; @@ -11288,24 +11292,24 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.verify = function() { function b(a, e, f) { - for (var g = 0;g < a.length;g++) { - if (e(a[g], f)) { - return!0; + for (var h = 0;h < a.length;h++) { + if (e(a[h], f)) { + return !0; } } - return!1; + return !1; } if (!this.isInterface()) { var a = [this.classInfo.traits, this.classInfo.instanceInfo.traits], e = [this]; this.staticNatives && d.ArrayUtilities.pushMany(e, this.staticNatives); var f = [this.prototype]; this.instanceNatives && d.ArrayUtilities.pushMany(f, this.instanceNatives); - for (var g = 0;g < a.length;g++) { - for (var c = 0 === g, n = 0;n < a[g].length;n++) { - var r = a[g][n], m = v(r.name.name); - if (r.isMethodOrAccessor() && r.methodInfo.isNative()) { - var h = c ? e : f; - r.isMethod() ? b(h, d.ObjectUtilities.hasOwnProperty, m) : r.isGetter() ? b(h, d.ObjectUtilities.hasOwnGetter, m) : r.isSetter() && b(h, d.ObjectUtilities.hasOwnSetter, m); + for (var h = 0;h < a.length;h++) { + for (var c = 0 === h, p = 0;p < a[h].length;p++) { + var t = a[h][p], m = w(t.name.name); + if (t.isMethodOrAccessor() && t.methodInfo.isNative()) { + var g = c ? e : f; + t.isMethod() ? b(g, d.ObjectUtilities.hasOwnProperty, m) : t.isGetter() ? b(g, d.ObjectUtilities.hasOwnGetter, m) : t.isSetter() && b(g, d.ObjectUtilities.hasOwnSetter, m); } } } @@ -11339,16 +11343,16 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = null; a.instanceNatives = null; a.classInitializer = function() { - h(this, "$Bglength", 1); + g(this, "$Bglength", 1); }; a.labelCounter = 0; return a; }(D); - a.ASClass = F; - var T = F.prototype; - T.call = Function.prototype.call; - T.apply = Function.prototype.apply; - var N = function(b) { + a.ASClass = E; + var J = E.prototype; + J.call = Function.prototype.call; + J.apply = Function.prototype.apply; + var P = function(b) { function a() { } __extends(a, b); @@ -11358,7 +11362,7 @@ Shumway.AVM2.XRegExp.install(); this.prototype = b; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "native_length", {get:function() { - return this.hasOwnProperty(r.VM_LENGTH) ? this.asLength : this.length; + return this.hasOwnProperty(t.VM_LENGTH) ? this.asLength : this.length; }, enumerable:!0, configurable:!0}); a.prototype.toString = function() { return "function Function() {}"; @@ -11368,18 +11372,18 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = [Function]; a.instanceNatives = [Function.prototype]; a.classInitializer = function() { - h(this, "$Bglength", 1); + g(this, "$Bglength", 1); var b = a.dynamicPrototype, e = a.prototype; - h(b, "$BgtoString", e.toString); - h(b, "toString", e.toString); - h(b, "$BgtoLocaleString", e.toString); - h(b, "$Bgcall", b.call); - h(b, "$Bgapply", b.apply); + g(b, "$BgtoString", e.toString); + g(b, "toString", e.toString); + g(b, "$BgtoLocaleString", e.toString); + g(b, "$Bgcall", b.call); + g(b, "$Bgapply", b.apply); }; return a; }(D); - a.ASFunction = N; - var C = function(b) { + a.ASFunction = P; + var y = function(b) { function a(b) { } __extends(a, b); @@ -11387,23 +11391,23 @@ Shumway.AVM2.XRegExp.install(); a.callableConstructor = a.instanceConstructor; a.staticNatives = null; a.instanceNatives = null; - a.coerce = r.asCoerceBoolean; + a.coerce = t.asCoerceBoolean; a.classInitializer = function() { - h(this, "$Bglength", 1); + g(this, "$Bglength", 1); var b = Boolean.prototype; - h(b, "$BgtoString", b.toString); - h(b, "$BgvalueOf", b.valueOf); + g(b, "$BgtoString", b.toString); + g(b, "$BgvalueOf", b.valueOf); }; return a; }(D); - a.ASBoolean = C; - C.prototype.toString = Boolean.prototype.toString; - C.prototype.valueOf = Boolean.prototype.valueOf; - var B = function(b) { + a.ASBoolean = y; + y.prototype.toString = Boolean.prototype.toString; + y.prototype.valueOf = Boolean.prototype.valueOf; + var K = function(b) { function a(b, e) { var f = d.FunctionUtilities.bindSafely(e, b); - h(this, "call", f.call.bind(f)); - h(this, "apply", f.apply.bind(f)); + g(this, "call", f.call.bind(f)); + g(this, "apply", f.apply.bind(f)); } __extends(a, b); Object.defineProperty(a.prototype, "native_prototype", {get:function() { @@ -11417,44 +11421,44 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = null; a.instanceNatives = null; return a.instanceConstructor = a; - }(N); - a.ASMethodClosure = B; + }(P); + a.ASMethodClosure = K; var H = function(b) { function a(b) { } __extends(a, b); a.initializeDynamicMethods = function() { var b = this.dynamicPrototype, a = Number.prototype; - h(b, "toString", a.toString); - h(b, "$BgtoString", a.toString); - h(b, "$BgtoLocaleString", a.toString); - h(b, "valueOf", a.valueOf); - h(b, "$BgvalueOf", a.valueOf); - h(b, "$BgtoExponential", a.toExponential); - h(b, "$BgtoPrecision", a.toPrecision); - h(b, "$BgtoFixed", a.toFixed); + g(b, "toString", a.toString); + g(b, "$BgtoString", a.toString); + g(b, "$BgtoLocaleString", a.toString); + g(b, "valueOf", a.valueOf); + g(b, "$BgvalueOf", a.valueOf); + g(b, "$BgtoExponential", a.toExponential); + g(b, "$BgtoPrecision", a.toPrecision); + g(b, "$BgtoFixed", a.toFixed); }; a.instanceConstructor = Number; a.callableConstructor = a.instanceConstructor; a.staticNatives = [Math]; a.instanceNatives = [Number.prototype]; a.defaultValue = Number(0); - a.coerce = r.asCoerceNumber; + a.coerce = t.asCoerceNumber; a.classInitializer = function() { - h(this, "$Bglength", 1); - h(this, "$BgNaN", Number.NaN); - h(this, "$BgNEGATIVE_INFINITY", Number.NEGATIVE_INFINITY); - h(this, "$BgPOSITIVE_INFINITY", Number.POSITIVE_INFINITY); - h(this, "$BgMIN_VALUE", Number.MIN_VALUE); - h(this, "$BgMAX_VALUE", Number.MAX_VALUE); - h(this, "$BgE", Math.E); - h(this, "$BgLN10", Math.LN10); - h(this, "$BgLN2", Math.LN2); - h(this, "$BgLOG10E", Math.LOG10E); - h(this, "$BgLOG2E", Math.LOG2E); - h(this, "$BgPI", Math.PI); - h(this, "$BgSQRT1_2", Math.SQRT2); - h(this, "$BgSQRT2", Math.SQRT2); + g(this, "$Bglength", 1); + g(this, "$BgNaN", Number.NaN); + g(this, "$BgNEGATIVE_INFINITY", Number.NEGATIVE_INFINITY); + g(this, "$BgPOSITIVE_INFINITY", Number.POSITIVE_INFINITY); + g(this, "$BgMIN_VALUE", Number.MIN_VALUE); + g(this, "$BgMAX_VALUE", Number.MAX_VALUE); + g(this, "$BgE", Math.E); + g(this, "$BgLN10", Math.LN10); + g(this, "$BgLN2", Math.LN2); + g(this, "$BgLOG10E", Math.LOG10E); + g(this, "$BgLOG2E", Math.LOG2E); + g(this, "$BgPI", Math.PI); + g(this, "$BgSQRT1_2", Math.SQRT2); + g(this, "$BgSQRT2", Math.SQRT2); a.initializeDynamicMethods.call(this); }; return a; @@ -11472,7 +11476,7 @@ Shumway.AVM2.XRegExp.install(); return a[0] | 0; }; a.isInstanceOf = function(b) { - return!1; + return !1; }; a.isType = function(b) { return q(b) || b instanceof Number ? (b = +b, (b | 0) === b) : !1; @@ -11482,17 +11486,17 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = [Math]; a.instanceNatives = [Number.prototype]; a.defaultValue = 0; - a.coerce = r.asCoerceInt; + a.coerce = t.asCoerceInt; a.classInitializer = function() { - h(this, "$Bglength", 1); - h(this, "$BgMIN_VALUE", -2147483648); - h(this, "$BgMAX_VALUE", 2147483647); + g(this, "$Bglength", 1); + g(this, "$BgMIN_VALUE", -2147483648); + g(this, "$BgMAX_VALUE", 2147483647); H.initializeDynamicMethods.call(this); }; return a; }(D); a.ASInt = A; - var y = function(b) { + var z = function(b) { function a(b) { return Object(Number(b >>> 0)); } @@ -11504,7 +11508,7 @@ Shumway.AVM2.XRegExp.install(); return a[0] >>> 0; }; a.isInstanceOf = function(b) { - return!1; + return !1; }; a.isType = function(b) { return q(b) || b instanceof Number ? (b = +b, b >>> 0 === b) : !1; @@ -11514,16 +11518,16 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = [Math]; a.instanceNatives = [Number.prototype]; a.defaultValue = 0; - a.coerce = r.asCoerceUint; + a.coerce = t.asCoerceUint; a.classInitializer = function() { - h(this, "$Bglength", 1); - h(this, "$BgMIN_VALUE", 0); - h(this, "$BgMAX_VALUE", 4294967295); + g(this, "$Bglength", 1); + g(this, "$BgMIN_VALUE", 0); + g(this, "$BgMAX_VALUE", 4294967295); H.initializeDynamicMethods.call(this); }; return a; }(D); - a.ASUint = y; + a.ASUint = z; var G = function(a) { function e(b) { } @@ -11559,31 +11563,31 @@ Shumway.AVM2.XRegExp.install(); e.callableConstructor = e.instanceConstructor; e.staticNatives = [String]; e.instanceNatives = [String.prototype]; - e.coerce = r.asCoerceString; + e.coerce = t.asCoerceString; e.classInitializer = function() { - h(this, "$Bglength", 1); - h(String, "$Bglength", 1); - h(String, "$BgfromCharCode", String.fromCharCode); + g(this, "$Bglength", 1); + g(String, "$Bglength", 1); + g(String, "$BgfromCharCode", String.fromCharCode); var b = String.prototype; - h(b, "$BgindexOf", b.indexOf); - h(b, "$BglastIndexOf", b.lastIndexOf); - h(b, "$BgcharAt", b.charAt); - h(b, "$BgcharCodeAt", b.charCodeAt); - h(b, "$Bgconcat", b.concat); - h(b, "$BglocaleCompare", b.localeCompare); - h(b, "$Bgmatch", b.match); - h(b, "$Bgreplace", b.replace); - h(b, "$Bgsearch", b.search); - h(b, "$Bgslice", b.slice); - h(b, "$Bgsplit", b.split); - h(b, "$Bgsubstring", b.substring); - h(b, "$Bgsubstr", b.substr); - h(b, "$BgtoLowerCase", b.toLowerCase); - h(b, "$BgtoLocaleLowerCase", b.toLowerCase); - h(b, "$BgtoUpperCase", b.toUpperCase); - h(b, "$BgtoLocaleUpperCase", b.toUpperCase); - h(b, "$BgtoString", b.toString); - h(b, "$BgvalueOf", b.valueOf); + g(b, "$BgindexOf", b.indexOf); + g(b, "$BglastIndexOf", b.lastIndexOf); + g(b, "$BgcharAt", b.charAt); + g(b, "$BgcharCodeAt", b.charCodeAt); + g(b, "$Bgconcat", b.concat); + g(b, "$BglocaleCompare", b.localeCompare); + g(b, "$Bgmatch", b.match); + g(b, "$Bgreplace", b.replace); + g(b, "$Bgsearch", b.search); + g(b, "$Bgslice", b.slice); + g(b, "$Bgsplit", b.split); + g(b, "$Bgsubstring", b.substring); + g(b, "$Bgsubstr", b.substr); + g(b, "$BgtoLowerCase", b.toLowerCase); + g(b, "$BgtoLocaleLowerCase", b.toLowerCase); + g(b, "$BgtoUpperCase", b.toUpperCase); + g(b, "$BgtoLocaleUpperCase", b.toUpperCase); + g(b, "$BgtoString", b.toString); + g(b, "$BgvalueOf", b.valueOf); }; return e; }(D); @@ -11596,19 +11600,19 @@ Shumway.AVM2.XRegExp.install(); a[0] instanceof Function ? e = a[0] : q(a[0]) && (f = a[0]); q(a[1]) && (f = a[1]); b.sort(function(b, a) { - return z(b, a, f, e); + return B(b, a, f, e); }); return b; }; - var J = function(b) { + var L = function(b) { function a(b) { } __extends(a, b); a.prototype.toLocaleString = function() { - for (var b = a.coerce(this), e = "", f = 0, g = b.length;f < g;f++) { + for (var b = a.coerce(this), e = "", f = 0, h = b.length;f < h;f++) { var c = b[f]; null !== c && void 0 !== c && (e += c.toLocaleString()); - f + 1 < g && (e += ","); + f + 1 < h && (e += ","); } return e; }; @@ -11618,7 +11622,7 @@ Shumway.AVM2.XRegExp.install(); a.prototype.every = function(b, a) { for (var e = 0;e < this.length && !0 === b.call(a, this[e], e, this);e++) { } - return!1; + return !1; }; a.prototype.filter = function(b, a) { for (var e = [], f = 0;f < this.length;f++) { @@ -11634,22 +11638,22 @@ Shumway.AVM2.XRegExp.install(); arguments[0] instanceof Function ? b = arguments[0] : q(arguments[0]) && (a = arguments[0]); q(arguments[1]) && (a = arguments[1]); this.sort(function(e, f) { - return r.asCompare(e, f, a, b); + return t.asCompare(e, f, a, b); }); return this; }; a.prototype.sortOn = function(b, e) { d.isString(b) && (b = [b]); - s(e) ? e = [] : q(e) && (e = [e]); + r(e) ? e = [] : q(e) && (e = [e]); for (var f = b.length - 1;0 <= f;f--) { - var g = t.getPublicQualifiedName(b[f]); + var h = v.getPublicQualifiedName(b[f]); if (a.CACHE_NUMERIC_COMPARATORS && e[f] & 16) { - var c = "var x = +(a." + g + "), y = +(b." + g + ");", c = e[f] & 2 ? c + "return x < y ? 1 : (x > y ? -1 : 0);" : c + "return x < y ? -1 : (x > y ? 1 : 0);", n = a.numericComparatorCache[c]; - n || (n = a.numericComparatorCache[c] = new Function("a", "b", c)); - this.sort(n); + var c = "var x = +(a." + h + "), y = +(b." + h + ");", c = e[f] & 2 ? c + "return x < y ? 1 : (x > y ? -1 : 0);" : c + "return x < y ? -1 : (x > y ? 1 : 0);", p = a.numericComparatorCache[c]; + p || (p = a.numericComparatorCache[c] = new Function("a", "b", c)); + this.sort(p); } else { this.sort(function(b, a) { - return r.asCompare(b[g], a[g], e[f] | 0); + return t.asCompare(b[h], a[h], e[f] | 0); }); } } @@ -11664,40 +11668,40 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = [Array]; a.instanceNatives = [Array.prototype]; a.classInitializer = function() { - h(this, "$Bglength", 1); - h(this, "$BgCASEINSENSITIVE", 1); - h(this, "$BgDESCENDING", 2); - h(this, "$BgUNIQUESORT", 4); - h(this, "$BgRETURNINDEXEDARRAY", 8); - h(this, "$BgNUMERIC", 16); + g(this, "$Bglength", 1); + g(this, "$BgCASEINSENSITIVE", 1); + g(this, "$BgDESCENDING", 2); + g(this, "$BgUNIQUESORT", 4); + g(this, "$BgRETURNINDEXEDARRAY", 8); + g(this, "$BgNUMERIC", 16); var b = Array.prototype, e = a.prototype; - h(b, "$Bgjoin", b.join); - h(b, "$BgtoString", b.join); - h(b, "$BgtoLocaleString", e.toLocaleString); - h(b, "$Bgpop", b.pop); - h(b, "$Bgpush", b.push); - h(b, "$Bgreverse", b.reverse); - h(b, "$Bgconcat", b.concat); - h(b, "$Bgsplice", e.splice); - h(b, "$Bgslice", b.slice); - h(b, "$Bgshift", b.shift); - h(b, "$Bgunshift", b.unshift); - h(b, "$BgindexOf", b.indexOf); - h(b, "$BglastIndexOf", b.lastIndexOf); - h(b, "$BgforEach", b.forEach); - h(b, "$Bgmap", b.map); - h(b, "$Bgfilter", b.filter); - h(b, "$Bgsome", b.some); - h(b, "$Bgevery", e.every); - h(b, "$Bgsort", e.sort); - h(b, "$BgsortOn", e.sortOn); + g(b, "$Bgjoin", b.join); + g(b, "$BgtoString", b.join); + g(b, "$BgtoLocaleString", e.toLocaleString); + g(b, "$Bgpop", b.pop); + g(b, "$Bgpush", b.push); + g(b, "$Bgreverse", b.reverse); + g(b, "$Bgconcat", b.concat); + g(b, "$Bgsplice", e.splice); + g(b, "$Bgslice", b.slice); + g(b, "$Bgshift", b.shift); + g(b, "$Bgunshift", b.unshift); + g(b, "$BgindexOf", b.indexOf); + g(b, "$BglastIndexOf", b.lastIndexOf); + g(b, "$BgforEach", b.forEach); + g(b, "$Bgmap", b.map); + g(b, "$Bgfilter", b.filter); + g(b, "$Bgsome", b.some); + g(b, "$Bgevery", e.every); + g(b, "$Bgsort", e.sort); + g(b, "$BgsortOn", e.sortOn); }; a.CACHE_NUMERIC_COMPARATORS = !0; a.numericComparatorCache = Object.create(null); return a; }(D); - a.ASArray = J; - var E = function(b) { + a.ASArray = L; + var F = function(b) { function a() { b.apply(this, arguments); } @@ -11711,8 +11715,8 @@ Shumway.AVM2.XRegExp.install(); a.callableConstructor = null; return a; }(M); - a.ASVector = E; - var Q = function(a) { + a.ASVector = F; + var S = function(a) { function e() { a.apply(this, arguments); } @@ -11721,7 +11725,7 @@ Shumway.AVM2.XRegExp.install(); a = b(a); null === a && throwError("SyntaxError", k.Errors.JSONInvalidParseInput); var f = this.transformJSValueToAS(JSON.parse(a), !0); - return null === e || 2 > arguments.length ? f : p({"":f}, "", e); + return null === e || 2 > arguments.length ? f : n({"":f}, "", e); }; e.stringify = function(b, a, e) { void 0 === a && (a = null); @@ -11731,49 +11735,49 @@ Shumway.AVM2.XRegExp.install(); return null === a ? this.stringifySpecializedToString(b, null, null, e) : Array.isArray(a) ? this.stringifySpecializedToString(b, this.computePropertyList(a), null, e) : this.stringifySpecializedToString(b, null, a, e); }; e.computePropertyList = function(a) { - for (var e = [], f = Object.create(null), g = 0, c = a.length;g < c;g++) { - if (a.hasOwnProperty(g)) { - var n = a[g], r = null; - "string" === typeof n ? r = n : "number" === typeof n && (r = b(n)); - null === r || f[r] || (f[r] = !0, e.push(r)); + for (var e = [], f = Object.create(null), h = 0, c = a.length;h < c;h++) { + if (a.hasOwnProperty(h)) { + var p = a[h], t = null; + "string" === typeof p ? t = p : "number" === typeof p && (t = b(p)); + null === t || f[t] || (f[t] = !0, e.push(t)); } } return e; }; e.transformJSValueToAS = function(b, a) { - if ("object" !== typeof b || s(b)) { + if ("object" !== typeof b || r(b)) { return b; } - for (var f = Object.keys(b), g = Array.isArray(b) ? [] : {}, c = 0;c < f.length;c++) { - var n = b[f[c]]; - a && (n = e.transformJSValueToAS(n, !0)); - g.asSetPublicProperty(f[c], n); + for (var f = Object.keys(b), h = Array.isArray(b) ? [] : {}, c = 0;c < f.length;c++) { + var p = b[f[c]]; + a && (p = e.transformJSValueToAS(p, !0)); + h.asSetPublicProperty(f[c], p); } - return g; + return h; }; e.transformASValueToJS = function(b, a) { - if ("object" !== typeof b || s(b)) { + if ("object" !== typeof b || r(b)) { return b; } - for (var f = Object.keys(b), g = Array.isArray(b) ? [] : {}, c = 0;c < f.length;c++) { - var n = f[c], r = n; - d.isNumeric(n) || (r = t.getNameFromPublicQualifiedName(n)); - n = b[n]; - a && (n = e.transformASValueToJS(n, !0)); - g[r] = n; + for (var f = Object.keys(b), h = Array.isArray(b) ? [] : {}, c = 0;c < f.length;c++) { + var p = f[c], t = p; + d.isNumeric(p) || (t = v.getNameFromPublicQualifiedName(p)); + p = b[p]; + a && (p = e.transformASValueToJS(p, !0)); + h[t] = p; } - return g; + return h; }; - e.stringifySpecializedToString = function(b, a, f, g) { - return JSON.stringify(e.transformASValueToJS(b, !0), f, g); + e.stringifySpecializedToString = function(b, a, f, h) { + return JSON.stringify(e.transformASValueToJS(b, !0), f, h); }; e.instanceConstructor = e; e.staticNatives = null; e.instanceNatives = null; return e; }(D); - a.ASJSON = Q; - var S = function(a) { + a.ASJSON = S; + var U = function(a) { function e(a, f) { this.message = b(a); this._errorID = f | 0; @@ -11801,153 +11805,153 @@ Shumway.AVM2.XRegExp.install(); e.instanceNatives = null; e.getErrorMessage = d.AVM2.getErrorMessage; e.classInitializer = function() { - h(this, "$Bglength", 1); - h(this.dynamicPrototype, "$Bgname", "Error"); - h(this.dynamicPrototype, "$Bgmessage", "Error"); - h(this.dynamicPrototype, "$BgtoString", this.prototype.toString); + g(this, "$Bglength", 1); + g(this.dynamicPrototype, "$Bgname", "Error"); + g(this.dynamicPrototype, "$Bgmessage", "Error"); + g(this.dynamicPrototype, "$BgtoString", this.prototype.toString); }; return e; }(M); - a.ASError = S; - var K = function(b) { + a.ASError = U; + var N = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); a.classInitializer = function() { - h(this, "$Bglength", 1); - h(this.dynamicPrototype, "$Bgname", this.name.substr(2)); + g(this, "$Bglength", 1); + g(this.dynamicPrototype, "$Bgname", this.name.substr(2)); }; return a; - }(S); - a.ASDefinitionError = K; - var P = function(b) { - function a() { - b.apply(this, arguments); - } - __extends(a, b); - a.classInitializer = K.classInitializer; - return a; - }(S); - a.ASEvalError = P; + }(U); + a.ASDefinitionError = N; var R = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASRangeError = R; - var W = function(b) { + }(U); + a.ASEvalError = R; + var T = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASReferenceError = W; - var ba = function(b) { - function a() { - b.apply(this, arguments); - } - __extends(a, b); - a.classInitializer = K.classInitializer; - return a; - }(S); - a.ASSecurityError = ba; - var w = function(b) { - function a() { - b.apply(this, arguments); - } - __extends(a, b); - a.classInitializer = K.classInitializer; - return a; - }(S); - a.ASSyntaxError = w; + }(U); + a.ASRangeError = T; var X = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASTypeError = X; - var U = function(b) { + }(U); + a.ASReferenceError = X; + var da = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASURIError = U; - var $ = function(b) { + }(U); + a.ASSecurityError = da; + var x = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASVerifyError = $; + }(U); + a.ASSyntaxError = x; var Y = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASUninitializedError = Y; - var L = function(b) { + }(U); + a.ASTypeError = Y; + var V = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASArgumentError = L; + }(U); + a.ASURIError = V; + var ba = function(b) { + function a() { + b.apply(this, arguments); + } + __extends(a, b); + a.classInitializer = N.classInitializer; + return a; + }(U); + a.ASVerifyError = ba; var Z = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASIOError = Z; - var ca = function(b) { + }(U); + a.ASUninitializedError = Z; + var O = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASEOFError = ca; - var ga = function(b) { + }(U); + a.ASArgumentError = O; + var aa = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); - a.classInitializer = K.classInitializer; + a.classInitializer = N.classInitializer; return a; - }(S); - a.ASMemoryError = ga; - var ha = function(b) { - function a() { - b.apply(this, arguments); - } - __extends(a, b); - a.classInitializer = K.classInitializer; - return a; - }(S); - a.ASIllegalOperationError = ha; + }(U); + a.ASIOError = aa; var ea = function(b) { + function a() { + b.apply(this, arguments); + } + __extends(a, b); + a.classInitializer = N.classInitializer; + return a; + }(U); + a.ASEOFError = ea; + var ia = function(b) { + function a() { + b.apply(this, arguments); + } + __extends(a, b); + a.classInitializer = N.classInitializer; + return a; + }(U); + a.ASMemoryError = ia; + var ja = function(b) { + function a() { + b.apply(this, arguments); + } + __extends(a, b); + a.classInitializer = N.classInitializer; + return a; + }(U); + a.ASIllegalOperationError = ja; + var ga = function(b) { function a(b) { } __extends(a, b); @@ -11961,38 +11965,38 @@ Shumway.AVM2.XRegExp.install(); return b; }; Object.defineProperty(a.prototype, "source", {get:function() { - var b = g(RegExp.prototype, "source"); + var b = h(RegExp.prototype, "source"); if (b && "get" in b) { return b.get.call(this); } - if ((b = g(this, "source")) && "value" in b) { + if ((b = h(this, "source")) && "value" in b) { return b.value; } }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "global", {get:function() { - var b = g(RegExp.prototype, "global"); + var b = h(RegExp.prototype, "global"); if (b && "get" in b) { return b.get.call(this); } - if ((b = g(this, "global")) && "value" in b) { + if ((b = h(this, "global")) && "value" in b) { return b.value; } }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "ignoreCase", {get:function() { - var b = g(RegExp.prototype, "ignoreCase"); + var b = h(RegExp.prototype, "ignoreCase"); if (b && "get" in b) { return b.get.call(this); } - if ((b = g(this, "ignoreCase")) && "value" in b) { + if ((b = h(this, "ignoreCase")) && "value" in b) { return b.value; } }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "multiline", {get:function() { - var b = g(RegExp.prototype, "multiline"); + var b = h(RegExp.prototype, "multiline"); if (b && "get" in b) { return b.get.call(this); } - if ((b = g(this, "multiline")) && "value" in b) { + if ((b = h(this, "multiline")) && "value" in b) { return b.value; } }, enumerable:!0, configurable:!0}); @@ -12026,8 +12030,8 @@ Shumway.AVM2.XRegExp.install(); return a; } for (var e = Object.keys(a), f = 0;f < e.length;f++) { - var g = e[f]; - d.isNumeric(g) || void 0 === a[g] && (a[g] = ""); + var h = e[f]; + d.isNumeric(h) || void 0 === a[h] && (a[h] = ""); } d.AVM2.Runtime.publicizeProperties(a); return a; @@ -12040,35 +12044,35 @@ Shumway.AVM2.XRegExp.install(); a.staticNatives = [k.XRegExp]; a.instanceNatives = [k.XRegExp.prototype]; a.classInitializer = function() { - h(this, "$Bglength", 1); + g(this, "$Bglength", 1); var b = k.XRegExp.prototype; - h(b, "$BgtoString", a.prototype.ecmaToString); - h(b, "$Bgexec", b.exec); - h(b, "$Bgtest", b.test); + g(b, "$BgtoString", a.prototype.ecmaToString); + g(b, "$Bgexec", b.exec); + g(b, "$Bgtest", b.test); }; return a; }(D); - a.ASRegExp = ea; - var aa = function(b) { + a.ASRegExp = ga; + var ca = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); a.staticNatives = [Math]; a.classInitializer = function() { - h(this, "$BgE", Math.E); - h(this, "$BgLN10", Math.LN10); - h(this, "$BgLN2", Math.LN2); - h(this, "$BgLOG10E", Math.LOG10E); - h(this, "$BgLOG2E", Math.LOG2E); - h(this, "$BgPI", Math.PI); - h(this, "$BgSQRT1_2", Math.SQRT2); - h(this, "$BgSQRT2", Math.SQRT2); + g(this, "$BgE", Math.E); + g(this, "$BgLN10", Math.LN10); + g(this, "$BgLN2", Math.LN2); + g(this, "$BgLOG10E", Math.LOG10E); + g(this, "$BgLOG2E", Math.LOG2E); + g(this, "$BgPI", Math.PI); + g(this, "$BgSQRT1_2", Math.SQRT2); + g(this, "$BgSQRT2", Math.SQRT2); }; return a; }(M); - a.ASMath = aa; - var da = function(b) { + a.ASMath = ca; + var fa = function(b) { function a(b) { } __extends(a, b); @@ -12163,120 +12167,120 @@ Shumway.AVM2.XRegExp.install(); c(a, "$Bglength", 7); c(Date, "$Bglength", 7); var b = Date.prototype; - h(b, "$BgtoString", b.toString); - h(b, "$BgvalueOf", b.valueOf); - h(b, "$BgtoDateString", b.toDateString); - h(b, "$BgtoTimeString", b.toTimeString); - h(b, "$BgtoLocaleString", b.toLocaleString); - h(b, "$BgtoLocaleDateString", b.toLocaleDateString); - h(b, "$BgtoLocaleTimeString", b.toLocaleTimeString); - h(b, "$BgtoUTCString", b.toUTCString); - h(b, "$BgtoJSON", b.toJSON); - h(b, "$BggetUTCFullYear", b.getUTCFullYear); - h(b, "$BggetUTCMonth", b.getUTCMonth); - h(b, "$BggetUTCDate", b.getUTCDate); - h(b, "$BggetUTCDay", b.getUTCDay); - h(b, "$BggetUTCHours", b.getUTCHours); - h(b, "$BggetUTCMinutes", b.getUTCMinutes); - h(b, "$BggetUTCSeconds", b.getUTCSeconds); - h(b, "$BggetUTCMilliseconds", b.getUTCMilliseconds); - h(b, "$BggetFullYear", b.getFullYear); - h(b, "$BggetMonth", b.getMonth); - h(b, "$BggetDate", b.getDate); - h(b, "$BggetDay", b.getDay); - h(b, "$BggetHours", b.getHours); - h(b, "$BggetMinutes", b.getMinutes); - h(b, "$BggetSeconds", b.getSeconds); - h(b, "$BggetMilliseconds", b.getMilliseconds); - h(b, "$BggetTimezoneOffset", b.getTimezoneOffset); - h(b, "$BggetTime", b.getTime); - h(b, "$BgsetFullYear", b.setFullYear); - h(b, "$BgsetMonth", b.setMonth); - h(b, "$BgsetDate", b.setDate); - h(b, "$BgsetHours", b.setHours); - h(b, "$BgsetMinutes", b.setMinutes); - h(b, "$BgsetSeconds", b.setSeconds); - h(b, "$BgsetMilliseconds", b.setMilliseconds); - h(b, "$BgsetUTCFullYear", b.setUTCFullYear); - h(b, "$BgsetUTCMonth", b.setUTCMonth); - h(b, "$BgsetUTCDate", b.setUTCDate); - h(b, "$BgsetUTCHours", b.setUTCHours); - h(b, "$BgsetUTCMinutes", b.setUTCMinutes); - h(b, "$BgsetUTCSeconds", b.setUTCSeconds); - h(b, "$BgsetUTCMilliseconds", b.setUTCMilliseconds); + g(b, "$BgtoString", b.toString); + g(b, "$BgvalueOf", b.valueOf); + g(b, "$BgtoDateString", b.toDateString); + g(b, "$BgtoTimeString", b.toTimeString); + g(b, "$BgtoLocaleString", b.toLocaleString); + g(b, "$BgtoLocaleDateString", b.toLocaleDateString); + g(b, "$BgtoLocaleTimeString", b.toLocaleTimeString); + g(b, "$BgtoUTCString", b.toUTCString); + g(b, "$BgtoJSON", b.toJSON); + g(b, "$BggetUTCFullYear", b.getUTCFullYear); + g(b, "$BggetUTCMonth", b.getUTCMonth); + g(b, "$BggetUTCDate", b.getUTCDate); + g(b, "$BggetUTCDay", b.getUTCDay); + g(b, "$BggetUTCHours", b.getUTCHours); + g(b, "$BggetUTCMinutes", b.getUTCMinutes); + g(b, "$BggetUTCSeconds", b.getUTCSeconds); + g(b, "$BggetUTCMilliseconds", b.getUTCMilliseconds); + g(b, "$BggetFullYear", b.getFullYear); + g(b, "$BggetMonth", b.getMonth); + g(b, "$BggetDate", b.getDate); + g(b, "$BggetDay", b.getDay); + g(b, "$BggetHours", b.getHours); + g(b, "$BggetMinutes", b.getMinutes); + g(b, "$BggetSeconds", b.getSeconds); + g(b, "$BggetMilliseconds", b.getMilliseconds); + g(b, "$BggetTimezoneOffset", b.getTimezoneOffset); + g(b, "$BggetTime", b.getTime); + g(b, "$BgsetFullYear", b.setFullYear); + g(b, "$BgsetMonth", b.setMonth); + g(b, "$BgsetDate", b.setDate); + g(b, "$BgsetHours", b.setHours); + g(b, "$BgsetMinutes", b.setMinutes); + g(b, "$BgsetSeconds", b.setSeconds); + g(b, "$BgsetMilliseconds", b.setMilliseconds); + g(b, "$BgsetUTCFullYear", b.setUTCFullYear); + g(b, "$BgsetUTCMonth", b.setUTCMonth); + g(b, "$BgsetUTCDate", b.setUTCDate); + g(b, "$BgsetUTCHours", b.setUTCHours); + g(b, "$BgsetUTCMinutes", b.setUTCMinutes); + g(b, "$BgsetUTCSeconds", b.setUTCSeconds); + g(b, "$BgsetUTCMilliseconds", b.setUTCMilliseconds); }; return a; }(M); - a.ASDate = da; - var O = d.ObjectUtilities.createMap(), ka = !1; + a.ASDate = fa; + var Q = d.ObjectUtilities.createMap(), ma = !1; a.initialize = function(b) { - ka || (O.ObjectClass = D, O.Class = F, O.FunctionClass = N, O.BooleanClass = C, O.MethodClosureClass = B, O.NamespaceClass = a.ASNamespace, O.NumberClass = H, O.IntClass = A, O.UIntClass = y, O.StringClass = G, O.ArrayClass = J, O.VectorClass = E, O.ObjectVectorClass = a.GenericVector, O.IntVectorClass = a.Int32Vector, O.UIntVectorClass = a.Uint32Vector, O.DoubleVectorClass = a.Float64Vector, O.JSONClass = Q, O.XMLClass = a.ASXML, O.XMLListClass = a.ASXMLList, O.QNameClass = a.ASQName, O.ErrorClass = - S, O.DefinitionErrorClass = K, O.EvalErrorClass = P, O.RangeErrorClass = R, O.ReferenceErrorClass = W, O.SecurityErrorClass = ba, O.SyntaxErrorClass = w, O.TypeErrorClass = X, O.URIErrorClass = U, O.VerifyErrorClass = $, O.UninitializedErrorClass = Y, O.ArgumentErrorClass = L, O.IOErrorClass = Z, O.EOFErrorClass = ca, O.MemoryErrorClass = ga, O.IllegalOperationErrorClass = ha, O.DateClass = da, O.MathClass = aa, O.RegExpClass = ea, O.ProxyClass = a.flash.utils.OriginalProxy, O.DictionaryClass = - a.flash.utils.OriginalDictionary, O.ByteArrayClass = a.flash.utils.OriginalByteArray, O.CompressionAlgorithmClass = a.flash.utils.CompressionAlgorithm, O.SystemClass = a.flash.system.OriginalSystem, ka = !0); + ma || (Q.ObjectClass = D, Q.Class = E, Q.FunctionClass = P, Q.BooleanClass = y, Q.MethodClosureClass = K, Q.NamespaceClass = a.ASNamespace, Q.NumberClass = H, Q.IntClass = A, Q.UIntClass = z, Q.StringClass = G, Q.ArrayClass = L, Q.VectorClass = F, Q.ObjectVectorClass = a.GenericVector, Q.IntVectorClass = a.Int32Vector, Q.UIntVectorClass = a.Uint32Vector, Q.DoubleVectorClass = a.Float64Vector, Q.JSONClass = S, Q.XMLClass = a.ASXML, Q.XMLListClass = a.ASXMLList, Q.QNameClass = a.ASQName, Q.ErrorClass = + U, Q.DefinitionErrorClass = N, Q.EvalErrorClass = R, Q.RangeErrorClass = T, Q.ReferenceErrorClass = X, Q.SecurityErrorClass = da, Q.SyntaxErrorClass = x, Q.TypeErrorClass = Y, Q.URIErrorClass = V, Q.VerifyErrorClass = ba, Q.UninitializedErrorClass = Z, Q.ArgumentErrorClass = O, Q.IOErrorClass = aa, Q.EOFErrorClass = ea, Q.MemoryErrorClass = ia, Q.IllegalOperationErrorClass = ja, Q.DateClass = fa, Q.MathClass = ca, Q.RegExpClass = ga, Q.ProxyClass = a.flash.utils.OriginalProxy, Q.DictionaryClass = + a.flash.utils.OriginalDictionary, Q.ByteArrayClass = a.flash.utils.OriginalByteArray, Q.CompressionAlgorithmClass = a.flash.utils.CompressionAlgorithm, Q.SystemClass = a.flash.system.OriginalSystem, ma = !0); }; - var V = d.ObjectUtilities.createMap(), ja = d.ObjectUtilities.createMap(); + var W = d.ObjectUtilities.createMap(), la = d.ObjectUtilities.createMap(); a.registerNativeClass = function(b, a) { - V[b] = a; + W[b] = a; }; a.registerNativeFunction = function(b, a) { - ja[b] = a; + la[b] = a; }; a.createInterface = function(b) { var a = b.instanceInfo; - b = new F(b); + b = new E(b); b.interfaceBindings = new I(null, a, null, null); b.verify(); return b; }; - var la = []; + var na = []; a.createClass = function(b, a, f) { - var g = b.instanceInfo, c = b.abc.applicationDomain, n = b.native, r; - n ? ((r = O[b.native.cls]) || (r = V[b.native.cls]), r || d.Debug.unexpected("No native class for " + b.native.cls), r.morphIntoASClass(b), la && la.push(r)) : r = new F(b); - r.baseClass = a; + var h = b.instanceInfo, c = b.abc.applicationDomain, p = b.native, t; + p ? ((t = Q[b.native.cls]) || (t = W[b.native.cls]), t || d.Debug.unexpected("No native class for " + b.native.cls), t.morphIntoASClass(b), na && na.push(t)) : t = new E(b); + t.baseClass = a; f = new u(f, null); - f.object = r; - var m = null, m = g.init.isNative() ? r : e(g.init, f, !1, !1), h = null, q = null; - n && (h = [r], r.staticNatives && d.ArrayUtilities.pushMany(h, r.staticNatives), q = [r.prototype], r.instanceNatives && d.ArrayUtilities.pushMany(q, r.instanceNatives)); - F.create(r, a, m); + f.object = t; + var m = null, m = h.init.isNative() ? t : e(h.init, f, !1, !1), g = null, q = null; + p && (g = [t], t.staticNatives && d.ArrayUtilities.pushMany(g, t.staticNatives), q = [t.prototype], t.instanceNatives && d.ArrayUtilities.pushMany(q, t.instanceNatives)); + E.create(t, a, m); if ("Class" === b.instanceInfo.name.name) { - for (n = 0;n < la.length;n++) { - la[n].__proto__ = F.prototype; + for (p = 0;p < na.length;p++) { + na[p].__proto__ = E.prototype; } - la = null; + na = null; } k.enterTimeline("InstanceBindings"); - r.instanceBindings = new I(a ? a.instanceBindings : null, g, f, q); - r.instanceConstructor && (k.enterTimeline("applyTo"), r.instanceBindings.applyTo(c, r.traitsPrototype), k.leaveTimeline()); + t.instanceBindings = new I(a ? a.instanceBindings : null, h, f, q); + t.instanceConstructor && (k.enterTimeline("applyTo"), t.instanceBindings.applyTo(c, t.traitsPrototype), k.leaveTimeline()); k.leaveTimeline(); k.enterTimeline("ClassBindings"); - r.classBindings = new x(b, f, h); + t.classBindings = new C(b, f, g); k.enterTimeline("applyTo"); - r.classBindings.applyTo(c, r); - r === F ? r.instanceBindings.applyTo(c, D, !0) : F.instanceBindings && F.instanceBindings.applyTo(c, r, !0); + t.classBindings.applyTo(c, t); + t === E ? t.instanceBindings.applyTo(c, D, !0) : E.instanceBindings && E.instanceBindings.applyTo(c, t, !0); k.leaveTimeline(); k.leaveTimeline(); - r.implementedInterfaces = r.instanceBindings.implementedInterfaces; + t.implementedInterfaces = t.instanceBindings.implementedInterfaces; k.enterTimeline("Configure"); - F.configureInitializers(r); - F.linkSymbols(r); - F.runClassInitializer(r); + E.configureInitializers(t); + E.linkSymbols(t); + E.runClassInitializer(t); k.leaveTimeline(); - return r; + return t; }; a.getMethodOrAccessorNative = function(b, a) { - for (var e = v(t.getName(b.name)), f = 0;f < a.length;f++) { - var c = a[f], n = e; - l(c, "original_" + e) && (n = "original_" + e); - !l(c, e) && l(c, "native_" + e) && (n = "native_" + e); - if (l(c, n)) { - return b.isAccessor() ? (e = g(c, n), e = b.isGetter() ? e.get : e.set) : e = c[n], e; + for (var e = w(v.getName(b.name)), f = 0;f < a.length;f++) { + var c = a[f], p = e; + l(c, "original_" + e) && (p = "original_" + e); + !l(c, e) && l(c, "native_" + e) && (p = "native_" + e); + if (l(c, p)) { + return b.isAccessor() ? (e = h(c, p), e = b.isGetter() ? e.get : e.set) : e = c[p], e; } } - d.Debug.warning("No native method for: " + b.kindName() + " " + b.methodInfo.holder + "::" + t.getQualifiedName(b.name) + ", make sure you've got the static keyword for static methods."); + d.Debug.warning("No native method for: " + b.kindName() + " " + b.methodInfo.holder + "::" + v.getQualifiedName(b.name) + ", make sure you've got the static keyword for static methods."); return null; }; - a.escapeNativeName = v; - var ma; + a.escapeNativeName = w; + var oa; (function(b) { b.String = jsGlobal.String; b.Function = jsGlobal.Function; @@ -12285,7 +12289,7 @@ Shumway.AVM2.XRegExp.install(); b.Date = jsGlobal.Date; b.ASObject = d.AVM2.AS.ASObject; b.ASFunction = d.AVM2.AS.ASFunction; - b.print = function(b, a, e, f, g) { + b.print = function(b, a, e, f, h) { jsGlobal.print.apply(null, arguments); }; b.debugBreak = function(b) { @@ -12294,9 +12298,9 @@ Shumway.AVM2.XRegExp.install(); b.bugzilla = function(b) { switch(b) { case 574600: - return!0; + return !0; } - return!1; + return !1; }; b.decodeURI = jsGlobal.decodeURI; b.decodeURIComponent = jsGlobal.decodeURIComponent; @@ -12320,15 +12324,15 @@ Shumway.AVM2.XRegExp.install(); if (A.isType(b)) { return "int"; } - b = n(b); - return F.isType(b) ? b.getQualifiedClassName() : b.class.getQualifiedClassName(); + b = p(b); + return E.isType(b) ? b.getQualifiedClassName() : b.class.getQualifiedClassName(); }; b.getQualifiedSuperclassName = function(b) { - if (s(b)) { + if (r(b)) { return "null"; } - b = n(b); - b = F.isType(b) ? b : b.class; + b = p(b); + b = E.isType(b) ? b : b.class; return b.baseClass ? b.baseClass.getQualifiedClassName() : "null"; }; b.getDefinitionByName = function(a) { @@ -12341,12 +12345,12 @@ Shumway.AVM2.XRegExp.install(); b.describeTypeJSON = function(b, a) { return d.AVM2.AS.describeTypeJSON(b, a); }; - })(ma = a.Natives || (a.Natives = {})); + })(oa = a.Natives || (a.Natives = {})); a.getNative = function(b) { - for (var a = b.split("."), e = ma, f = 0, g = a.length;f < g;f++) { + for (var a = b.split("."), e = oa, f = 0, h = a.length;f < h;f++) { e = e && e[a[f]]; } - e || (e = ja[b]); + e || (e = la[b]); return e; }; })(k.AS || (k.AS = {})); @@ -12355,15 +12359,15 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.AVM2.Runtime.asCoerceString, v = d.ObjectUtilities.defineNonEnumerableProperty, t = d.AVM2.Runtime.throwError, u = d.AVM2.Runtime.asCheckVectorGetNumericProperty, l = d.AVM2.Runtime.asCheckVectorSetNumericProperty, c = function(c) { - function q(c, m, g) { + var n = d.AVM2.Runtime.asCoerceString, w = d.ObjectUtilities.defineNonEnumerableProperty, v = d.AVM2.Runtime.throwError, u = d.AVM2.Runtime.asCheckVectorGetNumericProperty, l = d.AVM2.Runtime.asCheckVectorSetNumericProperty, c = function(c) { + function q(c, m, h) { void 0 === c && (c = 0); void 0 === m && (m = !1); - void 0 === g && (g = a.ASObject); + void 0 === h && (h = a.ASObject); c >>>= 0; this._fixed = !!m; this._buffer = Array(c); - this._defaultValue = (this._type = g) ? g.defaultValue : null; + this._defaultValue = (this._type = h) ? h.defaultValue : null; this._fill(c, this._defaultValue); } __extends(q, c); @@ -12373,11 +12377,11 @@ Shumway.AVM2.XRegExp.install(); q.defaultCompareFunction = function(a, c) { return String(a).localeCompare(String(c)); }; - q.compare = function(a, c, g, f) { + q.compare = function(a, c, h, f) { var b = 0; f || (f = q.defaultCompareFunction); - g & q.NUMERIC ? (a = d.toNumber(a), c = d.toNumber(c), b = a < c ? -1 : a > c ? 1 : 0) : b = f(a, c); - g & q.DESCENDING && (b *= -1); + h & q.NUMERIC ? (a = d.toNumber(a), c = d.toNumber(c), b = a < c ? -1 : a > c ? 1 : 0) : b = f(a, c); + h & q.DESCENDING && (b *= -1); return b; }; q.applyType = function(c) { @@ -12386,14 +12390,14 @@ Shumway.AVM2.XRegExp.install(); } m.prototype = q.prototype; m.instanceConstructor = m; - m.callableConstructor = function(g) { - if (g instanceof a.Int32Vector) { - return g; + m.callableConstructor = function(h) { + if (h instanceof a.Int32Vector) { + return h; } - var f = g.asGetProperty(void 0, "length"); + var f = h.asGetProperty(void 0, "length"); if (void 0 !== f) { for (var b = new m(f, !1), e = 0;e < f;e++) { - b.asSetNumericProperty(e, g.asGetPublicProperty(e)); + b.asSetNumericProperty(e, h.asGetPublicProperty(e)); } return b; } @@ -12403,8 +12407,8 @@ Shumway.AVM2.XRegExp.install(); return m; }; q.prototype._fill = function(a, c) { - for (var g = 0;g < a;g++) { - this._buffer[0 + g] = c; + for (var h = 0;h < a;h++) { + this._buffer[0 + h] = c; } }; q.prototype.toString = function() { @@ -12432,48 +12436,48 @@ Shumway.AVM2.XRegExp.install(); }) : this._buffer.sort(function(a, f) { return asCoerceNumber(a) - asCoerceNumber(f); }) : c && q.CASEINSENSITIVE ? c & q.DESCENDING ? this._buffer.sort(function(a, f) { - return p(f).toLowerCase() - p(a).toLowerCase(); + return n(f).toLowerCase() - n(a).toLowerCase(); }) : this._buffer.sort(function(a, f) { - return p(a).toLowerCase() - p(f).toLowerCase(); + return n(a).toLowerCase() - n(f).toLowerCase(); }) : c & q.DESCENDING ? this._buffer.sort(function(a, f) { return f - a; }) : this._buffer.sort(); }; q.prototype.every = function(a, c) { - for (var g = 0;g < this._buffer.length;g++) { - if (!a.call(c, this.asGetNumericProperty(g), g, this)) { - return!1; + for (var h = 0;h < this._buffer.length;h++) { + if (!a.call(c, this.asGetNumericProperty(h), h, this)) { + return !1; } } - return!0; + return !0; }; q.prototype.filter = function(a, c) { - for (var g = new q(0, !1, this._type), f = 0;f < this._buffer.length;f++) { - a.call(c, this.asGetNumericProperty(f), f, this) && g.push(this.asGetNumericProperty(f)); + for (var h = new q(0, !1, this._type), f = 0;f < this._buffer.length;f++) { + a.call(c, this.asGetNumericProperty(f), f, this) && h.push(this.asGetNumericProperty(f)); } - return g; + return h; }; q.prototype.some = function(a, c) { - 2 !== arguments.length ? t("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || t("ArgumentError", k.Errors.CheckTypeFailedError); - for (var g = 0;g < this._buffer.length;g++) { - if (a.call(c, this.asGetNumericProperty(g), g, this)) { - return!0; + 2 !== arguments.length ? v("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); + for (var h = 0;h < this._buffer.length;h++) { + if (a.call(c, this.asGetNumericProperty(h), h, this)) { + return !0; } } - return!1; + return !1; }; q.prototype.forEach = function(a, c) { - d.isFunction(a) || t("ArgumentError", k.Errors.CheckTypeFailedError); - for (var g = 0;g < this._buffer.length;g++) { - a.call(c, this.asGetNumericProperty(g), g, this); + d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); + for (var h = 0;h < this._buffer.length;h++) { + a.call(c, this.asGetNumericProperty(h), h, this); } }; q.prototype.join = function(a) { void 0 === a && (a = ","); - for (var c = this._buffer, g = this._buffer.length, f = "", b = 0;b < g - 1;b++) { + for (var c = this._buffer, h = this._buffer.length, f = "", b = 0;b < h - 1;b++) { f += c[b] + a; } - 0 < g && (f += c[g - 1]); + 0 < h && (f += c[h - 1]); return f; }; q.prototype.indexOf = function(a, c) { @@ -12485,16 +12489,16 @@ Shumway.AVM2.XRegExp.install(); return this._buffer.lastIndexOf(a, c); }; q.prototype.map = function(a, c) { - d.isFunction(a) || t("ArgumentError", k.Errors.CheckTypeFailedError); - for (var g = new q(0, !1, this._type), f = 0;f < this._buffer.length;f++) { - g.push(a.call(c, this.asGetNumericProperty(f), f, this)); + d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); + for (var h = new q(0, !1, this._type), f = 0;f < this._buffer.length;f++) { + h.push(a.call(c, this.asGetNumericProperty(f), f, this)); } - return g; + return h; }; - q.prototype.push = function(a, c, g, f, b, e, r, n) { + q.prototype.push = function(a, c, h, f, b, e, t, p) { this._checkFixed(); - for (var h = 0;h < arguments.length;h++) { - this._buffer.push(this._coerce(arguments[h])); + for (var g = 0;g < arguments.length;g++) { + this._buffer.push(this._coerce(arguments[g])); } }; q.prototype.pop = function() { @@ -12529,18 +12533,18 @@ Shumway.AVM2.XRegExp.install(); q.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); - var g = this._buffer, f = g.length, b = Math.min(Math.max(a, 0), f), f = Math.min(Math.max(c, b), f), e = new q(f - b, this.fixed, this._type); - e._buffer = g.slice(b, f); + var h = this._buffer, f = h.length, b = Math.min(Math.max(a, 0), f), f = Math.min(Math.max(c, b), f), e = new q(f - b, this.fixed, this._type); + e._buffer = h.slice(b, f); return e; }; q.prototype.splice = function(a, c) { - var g = this._buffer, f = g.length, b = Math.min(Math.max(a, 0), f), f = Math.min(Math.max(c, 0), f - b), e = arguments.length - 2; + var h = this._buffer, f = h.length, b = Math.min(Math.max(a, 0), f), f = Math.min(Math.max(c, 0), f - b), e = arguments.length - 2; f !== e && this._checkFixed(); - for (var b = [b, f], r = 2;r < e + 2;r++) { - b[r] = this._coerce(arguments[r]); + for (var b = [b, f], t = 2;t < e + 2;t++) { + b[t] = this._coerce(arguments[t]); } f = new q(f, this.fixed, this._type); - f._buffer = g.splice.apply(g, b); + f._buffer = h.splice.apply(h, b); return f; }; Object.defineProperty(q.prototype, "length", {get:function() { @@ -12561,7 +12565,7 @@ Shumway.AVM2.XRegExp.install(); this._fixed = !!a; }, enumerable:!0, configurable:!0}); q.prototype._checkFixed = function() { - this._fixed && t("RangeError", k.Errors.VectorFixedError); + this._fixed && v("RangeError", k.Errors.VectorFixedError); }; q.prototype.asNextName = function(a) { return a - 1; @@ -12573,9 +12577,9 @@ Shumway.AVM2.XRegExp.install(); a += 1; return a <= this._buffer.length ? a : 0; }; - q.prototype.asHasProperty = function(a, c, g) { + q.prototype.asHasProperty = function(a, c, h) { if (q.prototype === this || !d.isNumeric(c)) { - return Object.prototype.asHasProperty.call(this, a, c, g); + return Object.prototype.asHasProperty.call(this, a, c, h); } a = d.toNumber(c); return 0 <= a && a < this._buffer.length; @@ -12601,25 +12605,25 @@ Shumway.AVM2.XRegExp.install(); q.instanceNatives = [q.prototype]; q.classInitializer = function() { var a = q.prototype; - v(a, "$Bgjoin", a.join); - v(a, "$BgtoString", a.join); - v(a, "$BgtoLocaleString", a.toLocaleString); - v(a, "$Bgpop", a.pop); - v(a, "$Bgpush", a.push); - v(a, "$Bgreverse", a.reverse); - v(a, "$Bgconcat", a.concat); - v(a, "$Bgsplice", a.splice); - v(a, "$Bgslice", a.slice); - v(a, "$Bgshift", a.shift); - v(a, "$Bgunshift", a.unshift); - v(a, "$BgindexOf", a.indexOf); - v(a, "$BglastIndexOf", a.lastIndexOf); - v(a, "$BgforEach", a.forEach); - v(a, "$Bgmap", a.map); - v(a, "$Bgfilter", a.filter); - v(a, "$Bgsome", a.some); - v(a, "$Bgevery", a.every); - v(a, "$Bgsort", a.sort); + w(a, "$Bgjoin", a.join); + w(a, "$BgtoString", a.join); + w(a, "$BgtoLocaleString", a.toLocaleString); + w(a, "$Bgpop", a.pop); + w(a, "$Bgpush", a.push); + w(a, "$Bgreverse", a.reverse); + w(a, "$Bgconcat", a.concat); + w(a, "$Bgsplice", a.splice); + w(a, "$Bgslice", a.slice); + w(a, "$Bgshift", a.shift); + w(a, "$Bgunshift", a.unshift); + w(a, "$BgindexOf", a.indexOf); + w(a, "$BglastIndexOf", a.lastIndexOf); + w(a, "$BgforEach", a.forEach); + w(a, "$Bgmap", a.map); + w(a, "$Bgfilter", a.filter); + w(a, "$Bgsome", a.some); + w(a, "$Bgevery", a.every); + w(a, "$Bgsort", a.sort); }; return q; }(a.ASVector); @@ -12630,182 +12634,182 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.ObjectUtilities.defineNonEnumerableProperty, v = d.AVM2.Runtime.throwError, t = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { - function h(a, c) { + var n = d.ObjectUtilities.defineNonEnumerableProperty, w = d.AVM2.Runtime.throwError, v = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { + function g(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); a >>>= 0; this._fixed = !!c; - this._buffer = new Int32Array(Math.max(h.INITIAL_CAPACITY, a + h.EXTRA_CAPACITY)); + this._buffer = new Int32Array(Math.max(g.INITIAL_CAPACITY, a + g.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } - __extends(h, a); - h.prototype.newThisType = function() { - return new h; + __extends(g, a); + g.prototype.newThisType = function() { + return new g; }; - h.callable = function(a) { - if (a instanceof h) { + g.callable = function(a) { + if (a instanceof g) { return a; } var c = a.asGetProperty(void 0, "length"); if (void 0 !== c) { - for (var m = new h(c, !1), g = 0;g < c;g++) { - m.asSetNumericProperty(g, a.asGetPublicProperty(g)); + for (var m = new g(c, !1), h = 0;h < c;h++) { + m.asSetNumericProperty(h, a.asGetPublicProperty(h)); } return m; } d.Debug.unexpected(); }; - h.prototype.internalToString = function() { - for (var a = "", c = this._offset, h = c + this._length, g = 0;g < this._buffer.length;g++) { - g === c && (a += "["), g === h && (a += "]"), a += this._buffer[g], g < this._buffer.length - 1 && (a += ","); + g.prototype.internalToString = function() { + for (var a = "", c = this._offset, g = c + this._length, h = 0;h < this._buffer.length;h++) { + h === c && (a += "["), h === g && (a += "]"), a += this._buffer[h], h < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; - h.prototype.toString = function() { + g.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype.toLocaleString = function() { + g.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype._view = function() { + g.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; - h.prototype._ensureCapacity = function(a) { + g.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Int32Array(a), c.set(this._buffer, 0), this._buffer = c)); }; - h.prototype.concat = function() { + g.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var m = arguments[c]; - m._buffer instanceof Int32Array || v("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); + m._buffer instanceof Int32Array || w("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); a += m._length; } - var a = new h(a), g = a._buffer; - g.set(this._buffer); + var a = new g(a), h = a._buffer; + h.set(this._buffer); for (var f = this._length, c = 0;c < arguments.length;c++) { - m = arguments[c], f + m._buffer.length < m._buffer.length ? g.set(m._buffer, f) : g.set(m._buffer.subarray(0, m._length), f), f += m._length; + m = arguments[c], f + m._buffer.length < m._buffer.length ? h.set(m._buffer, f) : h.set(m._buffer.subarray(0, m._length), f), f += m._length; } return a; }; - h.prototype.every = function(a, c) { - for (var h = 0;h < this._length;h++) { - if (!a.call(c, this._buffer[this._offset + h], h, this)) { - return!1; + g.prototype.every = function(a, c) { + for (var g = 0;g < this._length;g++) { + if (!a.call(c, this._buffer[this._offset + g], g, this)) { + return !1; } } - return!0; + return !0; }; - h.prototype.filter = function(a, c) { - for (var m = new h, g = 0;g < this._length;g++) { - a.call(c, this._buffer[this._offset + g], g, this) && m.push(this._buffer[this._offset + g]); + g.prototype.filter = function(a, c) { + for (var m = new g, h = 0;h < this._length;h++) { + a.call(c, this._buffer[this._offset + h], h, this) && m.push(this._buffer[this._offset + h]); } return m; }; - h.prototype.some = function(a, c) { - 2 !== arguments.length ? v("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var h = 0;h < this._length;h++) { - if (a.call(c, this._buffer[this._offset + h], h, this)) { - return!0; + g.prototype.some = function(a, c) { + 2 !== arguments.length ? w("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var g = 0;g < this._length;g++) { + if (a.call(c, this._buffer[this._offset + g], g, this)) { + return !0; } } - return!1; + return !1; }; - h.prototype.forEach = function(a, c) { - for (var h = 0;h < this._length;h++) { - a.call(c, this._buffer[this._offset + h], h, this); + g.prototype.forEach = function(a, c) { + for (var g = 0;g < this._length;g++) { + a.call(c, this._buffer[this._offset + g], g, this); } }; - h.prototype.join = function(a) { + g.prototype.join = function(a) { void 0 === a && (a = ","); - for (var c = this.length, h = this._buffer, g = this._offset, f = "", b = 0;b < c - 1;b++) { - f += h[g + b] + a; + for (var c = this.length, g = this._buffer, h = this._offset, f = "", b = 0;b < c - 1;b++) { + f += g[h + b] + a; } - 0 < c && (f += h[g + c - 1]); + 0 < c && (f += g[h + c - 1]); return f; }; - h.prototype.indexOf = function(a, c) { + g.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); - var h = this._length, g = c | 0; - if (0 > g) { - g += h, 0 > g && (g = 0); + var g = this._length, h = c | 0; + if (0 > h) { + h += g, 0 > h && (h = 0); } else { - if (g >= h) { - return-1; + if (h >= g) { + return -1; } } - for (var f = this._buffer, h = this._length, b = this._offset, h = b + h, g = g + b;g < h;g++) { - if (f[g] === a) { - return g - b; + for (var f = this._buffer, g = this._length, b = this._offset, g = b + g, h = h + b;h < g;h++) { + if (f[h] === a) { + return h - b; } } - return-1; + return -1; }; - h.prototype.lastIndexOf = function(a, c) { + g.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); - var h = this._length, g = c | 0; - if (0 > g) { - if (g += h, 0 > g) { - return-1; + var g = this._length, h = c | 0; + if (0 > h) { + if (h += g, 0 > h) { + return -1; } } else { - g >= h && (g = h); + h >= g && (h = g); } - for (var h = this._buffer, f = this._offset, g = g + f;g-- > f;) { - if (h[g] === a) { - return g - f; + for (var g = this._buffer, f = this._offset, h = h + f;h-- > f;) { + if (g[h] === a) { + return h - f; } } - return-1; + return -1; }; - h.prototype.map = function(a, c) { - d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var m = new h, g = 0;g < this._length;g++) { - m.push(a.call(c, this._buffer[this._offset + g], g, this)); + g.prototype.map = function(a, c) { + d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var m = new g, h = 0;h < this._length;h++) { + m.push(a.call(c, this._buffer[this._offset + h], h, this)); } return m; }; - h.prototype.push = function(a, c, h, g, f, b, e, r) { + g.prototype.push = function(a, c, g, h, f, b, e, t) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); - for (var n = 0;n < arguments.length;n++) { - this._buffer[this._offset + this._length++] = arguments[n]; + for (var p = 0;p < arguments.length;p++) { + this._buffer[this._offset + this._length++] = arguments[p]; } }; - h.prototype.pop = function() { + g.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { - return h.DEFAULT_VALUE; + return g.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; - h.prototype.reverse = function() { - for (var a = this._offset, c = this._offset + this._length - 1, h = this._buffer;a < c;) { - var g = h[a]; - h[a] = h[c]; - h[c] = g; + g.prototype.reverse = function() { + for (var a = this._offset, c = this._offset + this._length - 1, g = this._buffer;a < c;) { + var h = g[a]; + g[a] = g[c]; + g[c] = h; a++; c--; } return this; }; - h.prototype.sort = function(a) { - return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & h.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { + g.prototype.sort = function(a) { + return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & g.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { return c - a; }) : Array.prototype.sort.call(this._view(), function(a, c) { return a - c; }); }; - h.prototype.shift = function() { + g.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; @@ -12813,7 +12817,7 @@ Shumway.AVM2.XRegExp.install(); this._length--; return this._buffer[this._offset++]; }; - h.prototype.unshift = function() { + g.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); @@ -12825,110 +12829,110 @@ Shumway.AVM2.XRegExp.install(); } } }; - h.prototype.slice = function(a, c) { + g.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), g = Math.min(Math.max(c, f), g), b = new h(g - f, this.fixed); - b._buffer.set(m.subarray(this._offset + f, this._offset + g), b._offset); + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), h = Math.min(Math.max(c, f), h), b = new g(h - f, this.fixed); + b._buffer.set(m.subarray(this._offset + f, this._offset + h), b._offset); return b; }; - h.prototype.splice = function(a, c) { - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), b = this._offset + f, e = Math.min(Math.max(c, 0), g - f), f = arguments.length - 2, r, n = new h(e, this.fixed); - 0 < e && (r = m.subarray(b, b + e), n._buffer.set(r, n._offset)); - this._ensureCapacity(g - e + f); - m.set(m.subarray(b + e, g), b + f); + g.prototype.splice = function(a, c) { + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), b = this._offset + f, e = Math.min(Math.max(c, 0), h - f), f = arguments.length - 2, t, p = new g(e, this.fixed); + 0 < e && (t = m.subarray(b, b + e), p._buffer.set(t, p._offset)); + this._ensureCapacity(h - e + f); + m.set(m.subarray(b + e, h), b + f); this._length += f - e; - for (g = 0;g < f;g++) { - m[b + g] = arguments[g + 2]; + for (h = 0;h < f;h++) { + m[b + h] = arguments[h + 2]; } - return n; + return p; }; - h.prototype._slide = function(a) { + g.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; - Object.defineProperty(h.prototype, "length", {get:function() { + Object.defineProperty(g.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, m = this._offset + a;c < m;c++) { - this._buffer[c] = h.DEFAULT_VALUE; + this._buffer[c] = g.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fixed", {get:function() { + Object.defineProperty(g.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); - h.prototype._checkFixed = function() { - this._fixed && v("RangeError", k.Errors.VectorFixedError); + g.prototype._checkFixed = function() { + this._fixed && w("RangeError", k.Errors.VectorFixedError); }; - h.prototype.asGetNumericProperty = function(a) { - t(a, this._length); + g.prototype.asGetNumericProperty = function(a) { + v(a, this._length); return this._buffer[this._offset + a]; }; - h.prototype.asSetNumericProperty = function(a, c) { + g.prototype.asSetNumericProperty = function(a, c) { u(a, this._length, this._fixed); a === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + a] = c; }; - h.prototype.asHasProperty = function(a, c, m) { - if (h.prototype === this || !d.isNumeric(c)) { + g.prototype.asHasProperty = function(a, c, m) { + if (g.prototype === this || !d.isNumeric(c)) { return Object.prototype.asHasProperty.call(this, a, c, m); } a = d.toNumber(c); return 0 <= a && a < this._length; }; - h.prototype.asNextName = function(a) { + g.prototype.asNextName = function(a) { return a - 1; }; - h.prototype.asNextValue = function(a) { + g.prototype.asNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; - h.prototype.asNextNameIndex = function(a) { + g.prototype.asNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; - h.prototype.asHasNext2 = function(a) { + g.prototype.asHasNext2 = function(a) { a.index = this.asNextNameIndex(a.index); }; - h.EXTRA_CAPACITY = 4; - h.INITIAL_CAPACITY = 10; - h.DEFAULT_VALUE = 0; - h.DESCENDING = 2; - h.UNIQUESORT = 4; - h.RETURNINDEXEDARRAY = 8; - h.instanceConstructor = h; - h.staticNatives = [h]; - h.instanceNatives = [h.prototype]; - h.callableConstructor = h.callable; - h.classInitializer = function() { - var a = h.prototype; - p(a, "$Bgjoin", a.join); - p(a, "$BgtoString", a.join); - p(a, "$BgtoLocaleString", a.toLocaleString); - p(a, "$Bgpop", a.pop); - p(a, "$Bgpush", a.push); - p(a, "$Bgreverse", a.reverse); - p(a, "$Bgconcat", a.concat); - p(a, "$Bgsplice", a.splice); - p(a, "$Bgslice", a.slice); - p(a, "$Bgshift", a.shift); - p(a, "$Bgunshift", a.unshift); - p(a, "$BgindexOf", a.indexOf); - p(a, "$BglastIndexOf", a.lastIndexOf); - p(a, "$BgforEach", a.forEach); - p(a, "$Bgmap", a.map); - p(a, "$Bgfilter", a.filter); - p(a, "$Bgsome", a.some); - p(a, "$Bgevery", a.every); - p(a, "$Bgsort", a.sort); + g.EXTRA_CAPACITY = 4; + g.INITIAL_CAPACITY = 10; + g.DEFAULT_VALUE = 0; + g.DESCENDING = 2; + g.UNIQUESORT = 4; + g.RETURNINDEXEDARRAY = 8; + g.instanceConstructor = g; + g.staticNatives = [g]; + g.instanceNatives = [g.prototype]; + g.callableConstructor = g.callable; + g.classInitializer = function() { + var a = g.prototype; + n(a, "$Bgjoin", a.join); + n(a, "$BgtoString", a.join); + n(a, "$BgtoLocaleString", a.toLocaleString); + n(a, "$Bgpop", a.pop); + n(a, "$Bgpush", a.push); + n(a, "$Bgreverse", a.reverse); + n(a, "$Bgconcat", a.concat); + n(a, "$Bgsplice", a.splice); + n(a, "$Bgslice", a.slice); + n(a, "$Bgshift", a.shift); + n(a, "$Bgunshift", a.unshift); + n(a, "$BgindexOf", a.indexOf); + n(a, "$BglastIndexOf", a.lastIndexOf); + n(a, "$BgforEach", a.forEach); + n(a, "$Bgmap", a.map); + n(a, "$Bgfilter", a.filter); + n(a, "$Bgsome", a.some); + n(a, "$Bgevery", a.every); + n(a, "$Bgsort", a.sort); }; - return h; + return g; }(a.ASVector); a.Int32Vector = l; })(k.AS || (k.AS = {})); @@ -12937,182 +12941,182 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.ObjectUtilities.defineNonEnumerableProperty, v = d.AVM2.Runtime.throwError, t = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { - function h(a, c) { + var n = d.ObjectUtilities.defineNonEnumerableProperty, w = d.AVM2.Runtime.throwError, v = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { + function g(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); a >>>= 0; this._fixed = !!c; - this._buffer = new Uint32Array(Math.max(h.INITIAL_CAPACITY, a + h.EXTRA_CAPACITY)); + this._buffer = new Uint32Array(Math.max(g.INITIAL_CAPACITY, a + g.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } - __extends(h, a); - h.prototype.newThisType = function() { - return new h; + __extends(g, a); + g.prototype.newThisType = function() { + return new g; }; - h.callable = function(a) { - if (a instanceof h) { + g.callable = function(a) { + if (a instanceof g) { return a; } var c = a.asGetProperty(void 0, "length"); if (void 0 !== c) { - for (var m = new h(c, !1), g = 0;g < c;g++) { - m.asSetNumericProperty(g, a.asGetPublicProperty(g)); + for (var m = new g(c, !1), h = 0;h < c;h++) { + m.asSetNumericProperty(h, a.asGetPublicProperty(h)); } return m; } d.Debug.unexpected(); }; - h.prototype.internalToString = function() { - for (var a = "", c = this._offset, h = c + this._length, g = 0;g < this._buffer.length;g++) { - g === c && (a += "["), g === h && (a += "]"), a += this._buffer[g], g < this._buffer.length - 1 && (a += ","); + g.prototype.internalToString = function() { + for (var a = "", c = this._offset, g = c + this._length, h = 0;h < this._buffer.length;h++) { + h === c && (a += "["), h === g && (a += "]"), a += this._buffer[h], h < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; - h.prototype.toString = function() { + g.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype.toLocaleString = function() { + g.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype._view = function() { + g.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; - h.prototype._ensureCapacity = function(a) { + g.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Uint32Array(a), c.set(this._buffer, 0), this._buffer = c)); }; - h.prototype.concat = function() { + g.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var m = arguments[c]; - m._buffer instanceof Uint32Array || v("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); + m._buffer instanceof Uint32Array || w("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); a += m._length; } - var a = new h(a), g = a._buffer; - g.set(this._buffer); + var a = new g(a), h = a._buffer; + h.set(this._buffer); for (var f = this._length, c = 0;c < arguments.length;c++) { - m = arguments[c], f + m._buffer.length < m._buffer.length ? g.set(m._buffer, f) : g.set(m._buffer.subarray(0, m._length), f), f += m._length; + m = arguments[c], f + m._buffer.length < m._buffer.length ? h.set(m._buffer, f) : h.set(m._buffer.subarray(0, m._length), f), f += m._length; } return a; }; - h.prototype.every = function(a, c) { - for (var h = 0;h < this._length;h++) { - if (!a.call(c, this._buffer[this._offset + h], h, this)) { - return!1; + g.prototype.every = function(a, c) { + for (var g = 0;g < this._length;g++) { + if (!a.call(c, this._buffer[this._offset + g], g, this)) { + return !1; } } - return!0; + return !0; }; - h.prototype.filter = function(a, c) { - for (var m = new h, g = 0;g < this._length;g++) { - a.call(c, this._buffer[this._offset + g], g, this) && m.push(this._buffer[this._offset + g]); + g.prototype.filter = function(a, c) { + for (var m = new g, h = 0;h < this._length;h++) { + a.call(c, this._buffer[this._offset + h], h, this) && m.push(this._buffer[this._offset + h]); } return m; }; - h.prototype.some = function(a, c) { - 2 !== arguments.length ? v("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var h = 0;h < this._length;h++) { - if (a.call(c, this._buffer[this._offset + h], h, this)) { - return!0; + g.prototype.some = function(a, c) { + 2 !== arguments.length ? w("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var g = 0;g < this._length;g++) { + if (a.call(c, this._buffer[this._offset + g], g, this)) { + return !0; } } - return!1; + return !1; }; - h.prototype.forEach = function(a, c) { - for (var h = 0;h < this._length;h++) { - a.call(c, this._buffer[this._offset + h], h, this); + g.prototype.forEach = function(a, c) { + for (var g = 0;g < this._length;g++) { + a.call(c, this._buffer[this._offset + g], g, this); } }; - h.prototype.join = function(a) { + g.prototype.join = function(a) { void 0 === a && (a = ","); - for (var c = this.length, h = this._buffer, g = this._offset, f = "", b = 0;b < c - 1;b++) { - f += h[g + b] + a; + for (var c = this.length, g = this._buffer, h = this._offset, f = "", b = 0;b < c - 1;b++) { + f += g[h + b] + a; } - 0 < c && (f += h[g + c - 1]); + 0 < c && (f += g[h + c - 1]); return f; }; - h.prototype.indexOf = function(a, c) { + g.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); - var h = this._length, g = c | 0; - if (0 > g) { - g += h, 0 > g && (g = 0); + var g = this._length, h = c | 0; + if (0 > h) { + h += g, 0 > h && (h = 0); } else { - if (g >= h) { - return-1; + if (h >= g) { + return -1; } } - for (var f = this._buffer, h = this._length, b = this._offset, h = b + h, g = g + b;g < h;g++) { - if (f[g] === a) { - return g - b; + for (var f = this._buffer, g = this._length, b = this._offset, g = b + g, h = h + b;h < g;h++) { + if (f[h] === a) { + return h - b; } } - return-1; + return -1; }; - h.prototype.lastIndexOf = function(a, c) { + g.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); - var h = this._length, g = c | 0; - if (0 > g) { - if (g += h, 0 > g) { - return-1; + var g = this._length, h = c | 0; + if (0 > h) { + if (h += g, 0 > h) { + return -1; } } else { - g >= h && (g = h); + h >= g && (h = g); } - for (var h = this._buffer, f = this._offset, g = g + f;g-- > f;) { - if (h[g] === a) { - return g - f; + for (var g = this._buffer, f = this._offset, h = h + f;h-- > f;) { + if (g[h] === a) { + return h - f; } } - return-1; + return -1; }; - h.prototype.map = function(a, c) { - d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var m = new h, g = 0;g < this._length;g++) { - m.push(a.call(c, this._buffer[this._offset + g], g, this)); + g.prototype.map = function(a, c) { + d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var m = new g, h = 0;h < this._length;h++) { + m.push(a.call(c, this._buffer[this._offset + h], h, this)); } return m; }; - h.prototype.push = function(a, c, h, g, f, b, e, r) { + g.prototype.push = function(a, c, g, h, f, b, e, t) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); - for (var n = 0;n < arguments.length;n++) { - this._buffer[this._offset + this._length++] = arguments[n]; + for (var p = 0;p < arguments.length;p++) { + this._buffer[this._offset + this._length++] = arguments[p]; } }; - h.prototype.pop = function() { + g.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { - return h.DEFAULT_VALUE; + return g.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; - h.prototype.reverse = function() { - for (var a = this._offset, c = this._offset + this._length - 1, h = this._buffer;a < c;) { - var g = h[a]; - h[a] = h[c]; - h[c] = g; + g.prototype.reverse = function() { + for (var a = this._offset, c = this._offset + this._length - 1, g = this._buffer;a < c;) { + var h = g[a]; + g[a] = g[c]; + g[c] = h; a++; c--; } return this; }; - h.prototype.sort = function(a) { - return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & h.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { + g.prototype.sort = function(a) { + return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & g.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { return c - a; }) : Array.prototype.sort.call(this._view(), function(a, c) { return a - c; }); }; - h.prototype.shift = function() { + g.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; @@ -13120,7 +13124,7 @@ Shumway.AVM2.XRegExp.install(); this._length--; return this._buffer[this._offset++]; }; - h.prototype.unshift = function() { + g.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); @@ -13132,110 +13136,110 @@ Shumway.AVM2.XRegExp.install(); } } }; - h.prototype.slice = function(a, c) { + g.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), g = Math.min(Math.max(c, f), g), b = new h(g - f, this.fixed); - b._buffer.set(m.subarray(this._offset + f, this._offset + g), b._offset); + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), h = Math.min(Math.max(c, f), h), b = new g(h - f, this.fixed); + b._buffer.set(m.subarray(this._offset + f, this._offset + h), b._offset); return b; }; - h.prototype.splice = function(a, c) { - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), b = this._offset + f, e = Math.min(Math.max(c, 0), g - f), f = arguments.length - 2, r, n = new h(e, this.fixed); - 0 < e && (r = m.subarray(b, b + e), n._buffer.set(r, n._offset)); - this._ensureCapacity(g - e + f); - m.set(m.subarray(b + e, g), b + f); + g.prototype.splice = function(a, c) { + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), b = this._offset + f, e = Math.min(Math.max(c, 0), h - f), f = arguments.length - 2, t, p = new g(e, this.fixed); + 0 < e && (t = m.subarray(b, b + e), p._buffer.set(t, p._offset)); + this._ensureCapacity(h - e + f); + m.set(m.subarray(b + e, h), b + f); this._length += f - e; - for (g = 0;g < f;g++) { - m[b + g] = arguments[g + 2]; + for (h = 0;h < f;h++) { + m[b + h] = arguments[h + 2]; } - return n; + return p; }; - h.prototype._slide = function(a) { + g.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; - Object.defineProperty(h.prototype, "length", {get:function() { + Object.defineProperty(g.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, m = this._offset + a;c < m;c++) { - this._buffer[c] = h.DEFAULT_VALUE; + this._buffer[c] = g.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fixed", {get:function() { + Object.defineProperty(g.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); - h.prototype._checkFixed = function() { - this._fixed && v("RangeError", k.Errors.VectorFixedError); + g.prototype._checkFixed = function() { + this._fixed && w("RangeError", k.Errors.VectorFixedError); }; - h.prototype.asGetNumericProperty = function(a) { - t(a, this._length); + g.prototype.asGetNumericProperty = function(a) { + v(a, this._length); return this._buffer[this._offset + a]; }; - h.prototype.asSetNumericProperty = function(a, c) { + g.prototype.asSetNumericProperty = function(a, c) { u(a, this._length, this._fixed); a === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + a] = c; }; - h.prototype.asHasProperty = function(a, c, m) { - if (h.prototype === this || !d.isNumeric(c)) { + g.prototype.asHasProperty = function(a, c, m) { + if (g.prototype === this || !d.isNumeric(c)) { return Object.prototype.asHasProperty.call(this, a, c, m); } a = d.toNumber(c); return 0 <= a && a < this._length; }; - h.prototype.asNextName = function(a) { + g.prototype.asNextName = function(a) { return a - 1; }; - h.prototype.asNextValue = function(a) { + g.prototype.asNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; - h.prototype.asNextNameIndex = function(a) { + g.prototype.asNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; - h.prototype.asHasNext2 = function(a) { + g.prototype.asHasNext2 = function(a) { a.index = this.asNextNameIndex(a.index); }; - h.EXTRA_CAPACITY = 4; - h.INITIAL_CAPACITY = 10; - h.DEFAULT_VALUE = 0; - h.DESCENDING = 2; - h.UNIQUESORT = 4; - h.RETURNINDEXEDARRAY = 8; - h.instanceConstructor = h; - h.staticNatives = [h]; - h.instanceNatives = [h.prototype]; - h.callableConstructor = h.callable; - h.classInitializer = function() { - var a = h.prototype; - p(a, "$Bgjoin", a.join); - p(a, "$BgtoString", a.join); - p(a, "$BgtoLocaleString", a.toLocaleString); - p(a, "$Bgpop", a.pop); - p(a, "$Bgpush", a.push); - p(a, "$Bgreverse", a.reverse); - p(a, "$Bgconcat", a.concat); - p(a, "$Bgsplice", a.splice); - p(a, "$Bgslice", a.slice); - p(a, "$Bgshift", a.shift); - p(a, "$Bgunshift", a.unshift); - p(a, "$BgindexOf", a.indexOf); - p(a, "$BglastIndexOf", a.lastIndexOf); - p(a, "$BgforEach", a.forEach); - p(a, "$Bgmap", a.map); - p(a, "$Bgfilter", a.filter); - p(a, "$Bgsome", a.some); - p(a, "$Bgevery", a.every); - p(a, "$Bgsort", a.sort); + g.EXTRA_CAPACITY = 4; + g.INITIAL_CAPACITY = 10; + g.DEFAULT_VALUE = 0; + g.DESCENDING = 2; + g.UNIQUESORT = 4; + g.RETURNINDEXEDARRAY = 8; + g.instanceConstructor = g; + g.staticNatives = [g]; + g.instanceNatives = [g.prototype]; + g.callableConstructor = g.callable; + g.classInitializer = function() { + var a = g.prototype; + n(a, "$Bgjoin", a.join); + n(a, "$BgtoString", a.join); + n(a, "$BgtoLocaleString", a.toLocaleString); + n(a, "$Bgpop", a.pop); + n(a, "$Bgpush", a.push); + n(a, "$Bgreverse", a.reverse); + n(a, "$Bgconcat", a.concat); + n(a, "$Bgsplice", a.splice); + n(a, "$Bgslice", a.slice); + n(a, "$Bgshift", a.shift); + n(a, "$Bgunshift", a.unshift); + n(a, "$BgindexOf", a.indexOf); + n(a, "$BglastIndexOf", a.lastIndexOf); + n(a, "$BgforEach", a.forEach); + n(a, "$Bgmap", a.map); + n(a, "$Bgfilter", a.filter); + n(a, "$Bgsome", a.some); + n(a, "$Bgevery", a.every); + n(a, "$Bgsort", a.sort); }; - return h; + return g; }(a.ASVector); a.Uint32Vector = l; })(k.AS || (k.AS = {})); @@ -13244,182 +13248,182 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.ObjectUtilities.defineNonEnumerableProperty, v = d.AVM2.Runtime.throwError, t = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { - function h(a, c) { + var n = d.ObjectUtilities.defineNonEnumerableProperty, w = d.AVM2.Runtime.throwError, v = d.AVM2.Runtime.asCheckVectorGetNumericProperty, u = d.AVM2.Runtime.asCheckVectorSetNumericProperty, l = function(a) { + function g(a, c) { void 0 === a && (a = 0); void 0 === c && (c = !1); a >>>= 0; this._fixed = !!c; - this._buffer = new Float64Array(Math.max(h.INITIAL_CAPACITY, a + h.EXTRA_CAPACITY)); + this._buffer = new Float64Array(Math.max(g.INITIAL_CAPACITY, a + g.EXTRA_CAPACITY)); this._offset = 0; this._length = a; } - __extends(h, a); - h.prototype.newThisType = function() { - return new h; + __extends(g, a); + g.prototype.newThisType = function() { + return new g; }; - h.callable = function(a) { - if (a instanceof h) { + g.callable = function(a) { + if (a instanceof g) { return a; } var c = a.asGetProperty(void 0, "length"); if (void 0 !== c) { - for (var m = new h(c, !1), g = 0;g < c;g++) { - m.asSetNumericProperty(g, a.asGetPublicProperty(g)); + for (var m = new g(c, !1), h = 0;h < c;h++) { + m.asSetNumericProperty(h, a.asGetPublicProperty(h)); } return m; } d.Debug.unexpected(); }; - h.prototype.internalToString = function() { - for (var a = "", c = this._offset, h = c + this._length, g = 0;g < this._buffer.length;g++) { - g === c && (a += "["), g === h && (a += "]"), a += this._buffer[g], g < this._buffer.length - 1 && (a += ","); + g.prototype.internalToString = function() { + for (var a = "", c = this._offset, g = c + this._length, h = 0;h < this._buffer.length;h++) { + h === c && (a += "["), h === g && (a += "]"), a += this._buffer[h], h < this._buffer.length - 1 && (a += ","); } this._offset + this._length === this._buffer.length && (a += "]"); return a + ": offset: " + this._offset + ", length: " + this._length + ", capacity: " + this._buffer.length; }; - h.prototype.toString = function() { + g.prototype.toString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype.toLocaleString = function() { + g.prototype.toLocaleString = function() { for (var a = "", c = 0;c < this._length;c++) { a += this._buffer[this._offset + c], c < this._length - 1 && (a += ","); } return a; }; - h.prototype._view = function() { + g.prototype._view = function() { return this._buffer.subarray(this._offset, this._offset + this._length); }; - h.prototype._ensureCapacity = function(a) { + g.prototype._ensureCapacity = function(a) { var c = this._offset + a; c < this._buffer.length || (a <= this._buffer.length ? (c = this._buffer.length - a >> 2, this._buffer.set(this._view(), c), this._offset = c) : (a = (3 * this._buffer.length >> 1) + 1, a < c && (a = c), c = new Float64Array(a), c.set(this._buffer, 0), this._buffer = c)); }; - h.prototype.concat = function() { + g.prototype.concat = function() { for (var a = this._length, c = 0;c < arguments.length;c++) { var m = arguments[c]; - m._buffer instanceof Float64Array || v("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); + m._buffer instanceof Float64Array || w("TypeError", k.Errors.CheckTypeFailedError, m.constructor.name, "__AS3__.vec.Vector."); a += m._length; } - var a = new h(a), g = a._buffer; - g.set(this._buffer); + var a = new g(a), h = a._buffer; + h.set(this._buffer); for (var f = this._length, c = 0;c < arguments.length;c++) { - m = arguments[c], f + m._buffer.length < m._buffer.length ? g.set(m._buffer, f) : g.set(m._buffer.subarray(0, m._length), f), f += m._length; + m = arguments[c], f + m._buffer.length < m._buffer.length ? h.set(m._buffer, f) : h.set(m._buffer.subarray(0, m._length), f), f += m._length; } return a; }; - h.prototype.every = function(a, c) { - for (var h = 0;h < this._length;h++) { - if (!a.call(c, this._buffer[this._offset + h], h, this)) { - return!1; + g.prototype.every = function(a, c) { + for (var g = 0;g < this._length;g++) { + if (!a.call(c, this._buffer[this._offset + g], g, this)) { + return !1; } } - return!0; + return !0; }; - h.prototype.filter = function(a, c) { - for (var m = new h, g = 0;g < this._length;g++) { - a.call(c, this._buffer[this._offset + g], g, this) && m.push(this._buffer[this._offset + g]); + g.prototype.filter = function(a, c) { + for (var m = new g, h = 0;h < this._length;h++) { + a.call(c, this._buffer[this._offset + h], h, this) && m.push(this._buffer[this._offset + h]); } return m; }; - h.prototype.some = function(a, c) { - 2 !== arguments.length ? v("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var h = 0;h < this._length;h++) { - if (a.call(c, this._buffer[this._offset + h], h, this)) { - return!0; + g.prototype.some = function(a, c) { + 2 !== arguments.length ? w("ArgumentError", k.Errors.WrongArgumentCountError) : d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var g = 0;g < this._length;g++) { + if (a.call(c, this._buffer[this._offset + g], g, this)) { + return !0; } } - return!1; + return !1; }; - h.prototype.forEach = function(a, c) { - for (var h = 0;h < this._length;h++) { - a.call(c, this._buffer[this._offset + h], h, this); + g.prototype.forEach = function(a, c) { + for (var g = 0;g < this._length;g++) { + a.call(c, this._buffer[this._offset + g], g, this); } }; - h.prototype.join = function(a) { + g.prototype.join = function(a) { void 0 === a && (a = ","); - for (var c = this.length, h = this._buffer, g = this._offset, f = "", b = 0;b < c - 1;b++) { - f += h[g + b] + a; + for (var c = this.length, g = this._buffer, h = this._offset, f = "", b = 0;b < c - 1;b++) { + f += g[h + b] + a; } - 0 < c && (f += h[g + c - 1]); + 0 < c && (f += g[h + c - 1]); return f; }; - h.prototype.indexOf = function(a, c) { + g.prototype.indexOf = function(a, c) { void 0 === c && (c = 0); - var h = this._length, g = c | 0; - if (0 > g) { - g += h, 0 > g && (g = 0); + var g = this._length, h = c | 0; + if (0 > h) { + h += g, 0 > h && (h = 0); } else { - if (g >= h) { - return-1; + if (h >= g) { + return -1; } } - for (var f = this._buffer, h = this._length, b = this._offset, h = b + h, g = g + b;g < h;g++) { - if (f[g] === a) { - return g - b; + for (var f = this._buffer, g = this._length, b = this._offset, g = b + g, h = h + b;h < g;h++) { + if (f[h] === a) { + return h - b; } } - return-1; + return -1; }; - h.prototype.lastIndexOf = function(a, c) { + g.prototype.lastIndexOf = function(a, c) { void 0 === c && (c = 2147483647); - var h = this._length, g = c | 0; - if (0 > g) { - if (g += h, 0 > g) { - return-1; + var g = this._length, h = c | 0; + if (0 > h) { + if (h += g, 0 > h) { + return -1; } } else { - g >= h && (g = h); + h >= g && (h = g); } - for (var h = this._buffer, f = this._offset, g = g + f;g-- > f;) { - if (h[g] === a) { - return g - f; + for (var g = this._buffer, f = this._offset, h = h + f;h-- > f;) { + if (g[h] === a) { + return h - f; } } - return-1; + return -1; }; - h.prototype.map = function(a, c) { - d.isFunction(a) || v("ArgumentError", k.Errors.CheckTypeFailedError); - for (var m = new h, g = 0;g < this._length;g++) { - m.push(a.call(c, this._buffer[this._offset + g], g, this)); + g.prototype.map = function(a, c) { + d.isFunction(a) || w("ArgumentError", k.Errors.CheckTypeFailedError); + for (var m = new g, h = 0;h < this._length;h++) { + m.push(a.call(c, this._buffer[this._offset + h], h, this)); } return m; }; - h.prototype.push = function(a, c, h, g, f, b, e, r) { + g.prototype.push = function(a, c, g, h, f, b, e, t) { this._checkFixed(); this._ensureCapacity(this._length + arguments.length); - for (var n = 0;n < arguments.length;n++) { - this._buffer[this._offset + this._length++] = arguments[n]; + for (var p = 0;p < arguments.length;p++) { + this._buffer[this._offset + this._length++] = arguments[p]; } }; - h.prototype.pop = function() { + g.prototype.pop = function() { this._checkFixed(); if (0 === this._length) { - return h.DEFAULT_VALUE; + return g.DEFAULT_VALUE; } this._length--; return this._buffer[this._offset + this._length]; }; - h.prototype.reverse = function() { - for (var a = this._offset, c = this._offset + this._length - 1, h = this._buffer;a < c;) { - var g = h[a]; - h[a] = h[c]; - h[c] = g; + g.prototype.reverse = function() { + for (var a = this._offset, c = this._offset + this._length - 1, g = this._buffer;a < c;) { + var h = g[a]; + g[a] = g[c]; + g[c] = h; a++; c--; } return this; }; - h.prototype.sort = function(a) { - return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & h.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { + g.prototype.sort = function(a) { + return 0 === arguments.length ? Array.prototype.sort.call(this._view()) : a instanceof Function ? Array.prototype.sort.call(this._view(), a) : (a | 0) & g.DESCENDING ? Array.prototype.sort.call(this._view(), function(a, c) { return c - a; }) : Array.prototype.sort.call(this._view(), function(a, c) { return a - c; }); }; - h.prototype.shift = function() { + g.prototype.shift = function() { this._checkFixed(); if (0 === this._length) { return 0; @@ -13427,7 +13431,7 @@ Shumway.AVM2.XRegExp.install(); this._length--; return this._buffer[this._offset++]; }; - h.prototype.unshift = function() { + g.prototype.unshift = function() { this._checkFixed(); if (arguments.length) { this._ensureCapacity(this._length + arguments.length); @@ -13439,110 +13443,110 @@ Shumway.AVM2.XRegExp.install(); } } }; - h.prototype.slice = function(a, c) { + g.prototype.slice = function(a, c) { void 0 === a && (a = 0); void 0 === c && (c = 2147483647); - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), g = Math.min(Math.max(c, f), g), b = new h(g - f, this.fixed); - b._buffer.set(m.subarray(this._offset + f, this._offset + g), b._offset); + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), h = Math.min(Math.max(c, f), h), b = new g(h - f, this.fixed); + b._buffer.set(m.subarray(this._offset + f, this._offset + h), b._offset); return b; }; - h.prototype.splice = function(a, c) { - var m = this._buffer, g = this._length, f = Math.min(Math.max(a, 0), g), b = this._offset + f, e = Math.min(Math.max(c, 0), g - f), f = arguments.length - 2, r, n = new h(e, this.fixed); - 0 < e && (r = m.subarray(b, b + e), n._buffer.set(r, n._offset)); - this._ensureCapacity(g - e + f); - m.set(m.subarray(b + e, g), b + f); + g.prototype.splice = function(a, c) { + var m = this._buffer, h = this._length, f = Math.min(Math.max(a, 0), h), b = this._offset + f, e = Math.min(Math.max(c, 0), h - f), f = arguments.length - 2, t, p = new g(e, this.fixed); + 0 < e && (t = m.subarray(b, b + e), p._buffer.set(t, p._offset)); + this._ensureCapacity(h - e + f); + m.set(m.subarray(b + e, h), b + f); this._length += f - e; - for (g = 0;g < f;g++) { - m[b + g] = arguments[g + 2]; + for (h = 0;h < f;h++) { + m[b + h] = arguments[h + 2]; } - return n; + return p; }; - h.prototype._slide = function(a) { + g.prototype._slide = function(a) { this._buffer.set(this._view(), this._offset + a); this._offset += a; }; - Object.defineProperty(h.prototype, "length", {get:function() { + Object.defineProperty(g.prototype, "length", {get:function() { return this._length; }, set:function(a) { a >>>= 0; if (a > this._length) { this._ensureCapacity(a); for (var c = this._offset + this._length, m = this._offset + a;c < m;c++) { - this._buffer[c] = h.DEFAULT_VALUE; + this._buffer[c] = g.DEFAULT_VALUE; } } this._length = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fixed", {get:function() { + Object.defineProperty(g.prototype, "fixed", {get:function() { return this._fixed; }, set:function(a) { this._fixed = !!a; }, enumerable:!0, configurable:!0}); - h.prototype._checkFixed = function() { - this._fixed && v("RangeError", k.Errors.VectorFixedError); + g.prototype._checkFixed = function() { + this._fixed && w("RangeError", k.Errors.VectorFixedError); }; - h.prototype.asGetNumericProperty = function(a) { - t(a, this._length); + g.prototype.asGetNumericProperty = function(a) { + v(a, this._length); return this._buffer[this._offset + a]; }; - h.prototype.asSetNumericProperty = function(a, c) { + g.prototype.asSetNumericProperty = function(a, c) { u(a, this._length, this._fixed); a === this._length && (this._ensureCapacity(this._length + 1), this._length++); this._buffer[this._offset + a] = c; }; - h.prototype.asHasProperty = function(a, c, m) { - if (h.prototype === this || !d.isNumeric(c)) { + g.prototype.asHasProperty = function(a, c, m) { + if (g.prototype === this || !d.isNumeric(c)) { return Object.prototype.asHasProperty.call(this, a, c, m); } a = d.toNumber(c); return 0 <= a && a < this._length; }; - h.prototype.asNextName = function(a) { + g.prototype.asNextName = function(a) { return a - 1; }; - h.prototype.asNextValue = function(a) { + g.prototype.asNextValue = function(a) { return this._buffer[this._offset + a - 1]; }; - h.prototype.asNextNameIndex = function(a) { + g.prototype.asNextNameIndex = function(a) { a += 1; return a <= this._length ? a : 0; }; - h.prototype.asHasNext2 = function(a) { + g.prototype.asHasNext2 = function(a) { a.index = this.asNextNameIndex(a.index); }; - h.EXTRA_CAPACITY = 4; - h.INITIAL_CAPACITY = 10; - h.DEFAULT_VALUE = 0; - h.DESCENDING = 2; - h.UNIQUESORT = 4; - h.RETURNINDEXEDARRAY = 8; - h.instanceConstructor = h; - h.staticNatives = [h]; - h.instanceNatives = [h.prototype]; - h.callableConstructor = h.callable; - h.classInitializer = function() { - var a = h.prototype; - p(a, "$Bgjoin", a.join); - p(a, "$BgtoString", a.join); - p(a, "$BgtoLocaleString", a.toLocaleString); - p(a, "$Bgpop", a.pop); - p(a, "$Bgpush", a.push); - p(a, "$Bgreverse", a.reverse); - p(a, "$Bgconcat", a.concat); - p(a, "$Bgsplice", a.splice); - p(a, "$Bgslice", a.slice); - p(a, "$Bgshift", a.shift); - p(a, "$Bgunshift", a.unshift); - p(a, "$BgindexOf", a.indexOf); - p(a, "$BglastIndexOf", a.lastIndexOf); - p(a, "$BgforEach", a.forEach); - p(a, "$Bgmap", a.map); - p(a, "$Bgfilter", a.filter); - p(a, "$Bgsome", a.some); - p(a, "$Bgevery", a.every); - p(a, "$Bgsort", a.sort); + g.EXTRA_CAPACITY = 4; + g.INITIAL_CAPACITY = 10; + g.DEFAULT_VALUE = 0; + g.DESCENDING = 2; + g.UNIQUESORT = 4; + g.RETURNINDEXEDARRAY = 8; + g.instanceConstructor = g; + g.staticNatives = [g]; + g.instanceNatives = [g.prototype]; + g.callableConstructor = g.callable; + g.classInitializer = function() { + var a = g.prototype; + n(a, "$Bgjoin", a.join); + n(a, "$BgtoString", a.join); + n(a, "$BgtoLocaleString", a.toLocaleString); + n(a, "$Bgpop", a.pop); + n(a, "$Bgpush", a.push); + n(a, "$Bgreverse", a.reverse); + n(a, "$Bgconcat", a.concat); + n(a, "$Bgsplice", a.splice); + n(a, "$Bgslice", a.slice); + n(a, "$Bgshift", a.shift); + n(a, "$Bgunshift", a.unshift); + n(a, "$BgindexOf", a.indexOf); + n(a, "$BglastIndexOf", a.lastIndexOf); + n(a, "$BgforEach", a.forEach); + n(a, "$Bgmap", a.map); + n(a, "$Bgfilter", a.filter); + n(a, "$Bgsome", a.some); + n(a, "$Bgevery", a.every); + n(a, "$Bgsort", a.sort); }; - return h; + return g; }(a.ASVector); a.Float64Vector = l; })(k.AS || (k.AS = {})); @@ -13551,10 +13555,10 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(b) { + function n(b) { return b instanceof a.ASXML || b instanceof a.ASXMLList; } - function v(b) { + function w(b) { if (!(b instanceof a.ASXML)) { return String(b); } @@ -13567,14 +13571,14 @@ Shumway.AVM2.XRegExp.install(); if (b.hasSimpleContent()) { for (var e = "", f = 0;f < b._children.length;f++) { var c = b._children[f]; - 4 !== c._kind && 5 !== c._kind && (e += v(c)); + 4 !== c._kind && 5 !== c._kind && (e += w(c)); } return e; } - return s(b); + return r(b); } } - function t(b) { + function v(b) { for (var a = 0, e;a < b.length && "&" !== (e = b[a]) && "<" !== e && ">" !== e;) { a++; } @@ -13647,7 +13651,7 @@ Shumway.AVM2.XRegExp.install(); } return 0 === a && e === b.length - 1 ? b : b.substring(a, e + 1); } - function h(b) { + function g(b) { if (0 < b) { if (void 0 !== G[b]) { return G[b]; @@ -13671,68 +13675,68 @@ Shumway.AVM2.XRegExp.install(); } return e; } - function s(b, e, f) { + function r(b, e, f) { if (null === b || void 0 === b) { throw new TypeError; } - if (!(b instanceof R)) { - return b instanceof W ? b._children.map(function(b) { - return s(b, e); - }).join(R.prettyPrinting ? "\n" : "") : t(String(b)); + if (!(b instanceof T)) { + return b instanceof X ? b._children.map(function(b) { + return r(b, e); + }).join(T.prettyPrinting ? "\n" : "") : v(String(b)); } - var g = R.prettyPrinting; + var h = T.prettyPrinting; f |= 0; - var n = g ? h(f) : ""; + var p = h ? g(f) : ""; switch(b._kind) { case 3: - return g ? n + t(c(b._value)) : t(b._value); + return h ? p + v(c(b._value)) : v(b._value); case 2: - return n + u(b._value); + return p + u(b._value); case 4: - return n + "\x3c!--" + b._value + "--\x3e"; + return p + "\x3c!--" + b._value + "--\x3e"; case 5: - return n + ""; + return p + ""; } e = e || []; - for (var r = [], m = 0;b._inScopeNamespaces && m < b._inScopeNamespaces.length;m++) { + for (var t = [], m = 0;b._inScopeNamespaces && m < b._inScopeNamespaces.length;m++) { var d = b._inScopeNamespaces[m].prefix, l = b._inScopeNamespaces[m].uri; if (e.every(function(b) { return b.uri != l || b.prefix != d; })) { - var x = new a.ASNamespace(d, l); - r.push(x); + var C = new a.ASNamespace(d, l); + t.push(C); } } - var p = e.concat(r), x = b._name.getNamespace(p); - void 0 === x.prefix && (m = q(p), m = new a.ASNamespace(m, x.uri), r.push(m), p.push(m)); - var k = (x.prefix ? x.prefix + ":" : "") + b._name.localName, n = n + ("<" + k); + var n = e.concat(t), C = b._name.getNamespace(n); + void 0 === C.prefix && (m = q(n), m = new a.ASNamespace(m, C.uri), t.push(m), n.push(m)); + var k = (C.prefix ? C.prefix + ":" : "") + b._name.localName, p = p + ("<" + k); b._attributes && b._attributes.forEach(function(b) { - b = b._name.getNamespace(p); + b = b._name.getNamespace(n); if (void 0 === b.prefix) { - var e = q(p); + var e = q(n); b = new a.ASNamespace(e, b.uri); - r.push(b); - p.push(b); + t.push(b); + n.push(b); } }); - for (m = 0;m < r.length;m++) { - x = r[m], n += " " + (x.prefix ? "xmlns:" + x.prefix : "xmlns") + '="' + u(x.uri) + '"'; + for (m = 0;m < t.length;m++) { + C = t[m], p += " " + (C.prefix ? "xmlns:" + C.prefix : "xmlns") + '="' + u(C.uri) + '"'; } b._attributes && b._attributes.forEach(function(b) { var a = b._name, f = a.getNamespace(e); - n += " " + (f.prefix ? f.prefix + ":" + a.localName : a.localName) + '="' + u(b._value) + '"'; + p += " " + (f.prefix ? f.prefix + ":" + a.localName : a.localName) + '="' + u(b._value) + '"'; }); if (0 === b.length()) { - return n += "/>"; + return p += "/>"; } - var n = n + ">", I = 1 < b._children.length || 1 === b._children.length && 3 !== b._children[0]._kind, z = g && I ? f + R.prettyIndent : 0; + var p = p + ">", I = 1 < b._children.length || 1 === b._children.length && 3 !== b._children[0]._kind, B = h && I ? f + T.prettyIndent : 0; b._children.forEach(function(b, a) { - g && I && (n += "\n"); - var e = s(b, p, z); - n += e; + h && I && (p += "\n"); + var e = r(b, n, B); + p += e; }); - g && I && (n += "\n" + h(f)); - return n += ""; + h && I && (p += "\n" + g(f)); + return p += ""; } function m(b) { if (null === b) { @@ -13741,29 +13745,29 @@ Shumway.AVM2.XRegExp.install(); if (void 0 === b) { throw new TypeError(k.formatErrorMessage(k.Errors.ConvertUndefinedToObjectError)); } - if (b instanceof R) { + if (b instanceof T) { return b; } - if (b instanceof W) { + if (b instanceof X) { return 1 !== b._children.length && k.Runtime.throwError("TypeError", k.Errors.XMLMarkupMustBeWellFormed), b._children[0]; } - b = J.parseFromString(D(b)); + b = L.parseFromString(D(b)); var a = b.length(); if (0 === a) { - return x(3); + return C(3); } if (1 === a) { return b._children[0]._parent = null, b._children[0]; } k.Runtime.throwError("TypeError", k.Errors.XMLMarkupMustBeWellFormed); } - function g(b, a) { + function h(b, a) { null === b && k.Runtime.throwError("TypeError", k.Errors.ConvertNullToObjectError); void 0 === b && k.Runtime.throwError("TypeError", k.Errors.ConvertUndefinedToObjectError); - if (b instanceof R) { + if (b instanceof T) { a.append(b); } else { - var e = m('' + b + "")._children; + var e = m('' + b + "")._children; if (e) { for (var f = 0;f < e.length;f++) { var c = e[f]; @@ -13776,14 +13780,14 @@ Shumway.AVM2.XRegExp.install(); function f(b) { void 0 !== b && null !== b && "boolean" !== typeof b && "number" !== typeof b || k.Runtime.throwError("TypeError", k.Errors.ConvertUndefinedToObjectError); if ("object" === typeof b) { - if (b instanceof S) { + if (b instanceof U) { return new a.ASQName(b.uri, b.localName, !0); } if (I.isQName(b)) { - return S.fromMultiname(b); + return U.fromMultiname(b); } } - b = v(b); + b = w(b); return new a.ASQName(void 0, b, !0); } function b(b) { @@ -13791,14 +13795,14 @@ Shumway.AVM2.XRegExp.install(); return new a.ASQName("*"); } if ("object" === typeof b && null !== b) { - if (b instanceof S) { + if (b instanceof U) { return b; } if (I.isQName(b)) { - return S.fromMultiname(b); + return U.fromMultiname(b); } var e; - e = b instanceof R || b instanceof W ? v(b) : b instanceof I ? b.name : b.toString(); + e = b instanceof T || b instanceof X ? w(b) : b instanceof I ? b.name : b.toString(); } else { if ("string" === typeof b) { e = b; @@ -13809,34 +13813,34 @@ Shumway.AVM2.XRegExp.install(); return "@" === e[0] ? f(e.substring(1)) : new a.ASQName(void 0, e, !!(b.flags & 1)); } function e(b) { - return b instanceof S && !!(b.name.flags & 1); + return b instanceof U && !!(b.name.flags & 1); } - function r(b, e, f) { - return b && 1 === b.length && b[0] instanceof E && ("string" === typeof e || void 0 === e) ? new a.ASQName(b[0], e || "*", f) : e; + function t(b, e, f) { + return b && 1 === b.length && b[0] instanceof F && ("string" === typeof e || void 0 === e) ? new a.ASQName(b[0], e || "*", f) : e; } - function n(b) { + function p(b) { try { new a.ASQName(b); } catch (e) { - return!1; + return !1; } - return!0; + return !0; } - function x(b, e, f, c) { - var g = new a.ASXML; + function C(b, e, f, c) { + var h = new a.ASXML; void 0 === b && (b = 3); void 0 === e && (e = ""); void 0 === f && (f = ""); - g.init(b, e, f, c); - return g; + h.init(b, e, f, c); + return h; } - var I = d.AVM2.ABC.Multiname, z = d.Debug.notImplemented, D = d.AVM2.Runtime.asCoerceString, M = d.ObjectUtilities.defineNonEnumerableProperty, F = d.ObjectUtilities.createPublicAliases, T = Object.prototype.asGetProperty, N = Object.prototype.asSetProperty, C = Object.prototype.asCallProperty, B = Object.prototype.asHasProperty, H = Object.prototype.asHasOwnProperty, A = Object.prototype.asDeleteProperty, y = Object.prototype.asGetEnumerableKeys; - a.escapeElementValue = t; + var I = d.AVM2.ABC.Multiname, B = d.Debug.notImplemented, D = d.AVM2.Runtime.asCoerceString, M = d.ObjectUtilities.defineNonEnumerableProperty, E = d.ObjectUtilities.createPublicAliases, J = Object.prototype.asGetProperty, P = Object.prototype.asSetProperty, y = Object.prototype.asCallProperty, K = Object.prototype.asHasProperty, H = Object.prototype.asHasOwnProperty, A = Object.prototype.asDeleteProperty, z = Object.prototype.asGetEnumerableKeys; + a.escapeElementValue = v; a.escapeAttributeValue = u; var G = []; - a.isXMLName = n; - d.AVM2.AS.Natives.isXMLName = n; - var J = new function() { + a.isXMLName = p; + d.AVM2.AS.Natives.isXMLName = p; + var L = new function() { function b(a, e) { function f(b) { return b.replace(/&([^;]+);/g, function(b, a) { @@ -13854,45 +13858,45 @@ Shumway.AVM2.XRegExp.install(); case "amp": return "&"; case "quot": - return'"'; + return '"'; } return b; }); } - function g() { - for (var b = s.length - 1;0 <= b;--b) { - if ("preserve" === s[b].space) { - return!0; + function h() { + for (var b = r.length - 1;0 <= b;--b) { + if ("preserve" === r[b].space) { + return !0; } } - return!1; + return !1; } - function n() { - for (var b = s.length - 1;0 <= b;--b) { - if ("xmlns" in s[b]) { - return s[b].xmlns; + function p() { + for (var b = r.length - 1;0 <= b;--b) { + if ("xmlns" in r[b]) { + return r[b].xmlns; } } return ""; } - function r(b) { - for (var a = s.length - 1;0 <= a;--a) { - if (b in s[a].lookup) { - return s[a].lookup[b]; + function g(b) { + for (var a = r.length - 1;0 <= a;--a) { + if (b in r[a].lookup) { + return r[a].lookup[b]; } } } - function h(b, a) { + function t(b, a) { var e = b.indexOf(":"); if (0 <= e) { - var f = b.substring(0, e), c = r(f); + var f = b.substring(0, e), c = g(f); if (void 0 === c) { throw "Unknown namespace: " + f; } e = b.substring(e + 1); - return{name:c + "::" + e, localName:e, prefix:f, namespace:c}; + return {name:c + "::" + e, localName:e, prefix:f, namespace:c}; } - return a ? {name:b, localName:b, prefix:"", namespace:n()} : {name:b, localName:b, prefix:"", namespace:""}; + return a ? {name:b, localName:b, prefix:"", namespace:p()} : {name:b, localName:b, prefix:"", namespace:""}; } function m(b, a) { function e() { @@ -13900,14 +13904,14 @@ Shumway.AVM2.XRegExp.install(); ++c; } } - for (var c = a, g, n = [];c < b.length && !l(b, c) && ">" !== b[c] && "/" !== b[c];) { + for (var c = a, h, p = [];c < b.length && !l(b, c) && ">" !== b[c] && "/" !== b[c];) { ++c; } - g = b.substring(a, c); + h = b.substring(a, c); for (e();c < b.length && ">" !== b[c] && "/" !== b[c] && "?" !== b[c];) { e(); - for (var r = "", h = "";c < b.length && !l(b, c) && "=" !== b[c];) { - r += b[c], ++c; + for (var g = "", t = "";c < b.length && !l(b, c) && "=" !== b[c];) { + g += b[c], ++c; } e(); if ("=" !== b[c]) { @@ -13915,20 +13919,20 @@ Shumway.AVM2.XRegExp.install(); } ++c; e(); - h = b[c]; - if ('"' !== h && "'" !== h) { + t = b[c]; + if ('"' !== t && "'" !== t) { throw "Quote expected"; } - var d = b.indexOf(h, ++c); + var d = b.indexOf(t, ++c); if (0 > d) { throw "Unexpected EOF[6]"; } - h = b.substring(c, d); - n.push({name:r, value:f(h)}); + t = b.substring(c, d); + p.push({name:g, value:f(t)}); c = d + 1; e(); } - return{name:g, attributes:n, parsed:c - a}; + return {name:h, attributes:p, parsed:c - a}; } function d(b, a) { for (var e = a, f;e < b.length && !l(b, e) && ">" !== b[e] && "/" !== b[e];) { @@ -13940,63 +13944,63 @@ Shumway.AVM2.XRegExp.install(); for (var c = e;e < b.length && ("?" !== b[e] || ">" != b[e + 1]);) { ++e; } - return{name:f, value:b.substring(c, e), parsed:e - a}; + return {name:f, value:b.substring(c, e), parsed:e - a}; } - for (var q = 0, s = [{namespaces:[], lookup:{xmlns:"http://www.w3.org/2000/xmlns/", xml:"http://www.w3.org/XML/1998/namespace"}, inScopes:R.defaultNamespace ? [{uri:R.defaultNamespace, prefix:""}] : [], space:"default", xmlns:R.defaultNamespace || ""}];q < a.length;) { - var x = q; + for (var q = 0, r = [{namespaces:[], lookup:{xmlns:"http://www.w3.org/2000/xmlns/", xml:"http://www.w3.org/XML/1998/namespace"}, inScopes:T.defaultNamespace ? [{uri:T.defaultNamespace, prefix:""}] : [], space:"default", xmlns:T.defaultNamespace || ""}];q < a.length;) { + var C = q; if ("<" === a[q]) { - switch(++x, a[x]) { + switch(++C, a[C]) { case "/": - ++x; - q = a.indexOf(">", x); + ++C; + q = a.indexOf(">", C); if (0 > q) { throw "Unexpected EOF[1]"; } - x = h(a.substring(x, q), !0); - e.endElement(x); - s.pop(); - x = q + 1; + C = t(a.substring(C, q), !0); + e.endElement(C); + r.pop(); + C = q + 1; break; case "?": - ++x; - q = d(a, x); - if ("?>" != a.substring(x + q.parsed, x + q.parsed + 2)) { + ++C; + q = d(a, C); + if ("?>" != a.substring(C + q.parsed, C + q.parsed + 2)) { throw "Unexpected EOF[2]"; } e.pi(q.name, q.value); - x += q.parsed + 2; + C += q.parsed + 2; break; case "!": - if ("--" === a.substring(x + 1, x + 3)) { - q = a.indexOf("--\x3e", x + 3); + if ("--" === a.substring(C + 1, C + 3)) { + q = a.indexOf("--\x3e", C + 3); if (0 > q) { throw "Unexpected EOF[3]"; } - e.comment(a.substring(x + 3, q)); - x = q + 3; + e.comment(a.substring(C + 3, q)); + C = q + 3; } else { - if ("[CDATA[" === a.substring(x + 1, x + 8)) { - q = a.indexOf("]]\x3e", x + 8); + if ("[CDATA[" === a.substring(C + 1, C + 8)) { + q = a.indexOf("]]\x3e", C + 8); if (0 > q) { throw "Unexpected EOF[4]"; } - e.cdata(a.substring(x + 8, q)); - x = q + 3; + e.cdata(a.substring(C + 8, q)); + C = q + 3; } else { - if ("DOCTYPE" === a.substring(x + 1, x + 8)) { - var p = a.indexOf("[", x + 8), k = !1, q = a.indexOf(">", x + 8); + if ("DOCTYPE" === a.substring(C + 1, C + 8)) { + var n = a.indexOf("[", C + 8), k = !1, q = a.indexOf(">", C + 8); if (0 > q) { throw "Unexpected EOF[5]"; } - if (0 < p && q > p) { - q = a.indexOf("]>", x + 8); + if (0 < n && q > n) { + q = a.indexOf("]>", C + 8); if (0 > q) { throw "Unexpected EOF[7]"; } k = !0; } - e.doctype(a.substring(x + 8, q + (k ? 1 : 0))); - x = q + (k ? 2 : 1); + e.doctype(a.substring(C + 8, q + (k ? 1 : 0))); + C = q + (k ? 2 : 1); } else { throw "Unknown !tag"; } @@ -14004,29 +14008,29 @@ Shumway.AVM2.XRegExp.install(); } break; default: - p = m(a, x); + n = m(a, C); k = !1; - if ("/>" === a.substring(x + p.parsed, x + p.parsed + 2)) { + if ("/>" === a.substring(C + n.parsed, C + n.parsed + 2)) { k = !0; } else { - if (">" !== a.substring(x + p.parsed, x + p.parsed + 1)) { + if (">" !== a.substring(C + n.parsed, C + n.parsed + 1)) { throw "Unexpected EOF[2]"; } } - for (var I = {namespaces:[], lookup:Object.create(null)}, t = p.attributes, q = 0;q < t.length;++q) { - var z = t[q], u = z.name; + for (var I = {namespaces:[], lookup:Object.create(null)}, B = n.attributes, q = 0;q < B.length;++q) { + var v = B[q], u = v.name; if ("xmlns:" === u.substring(0, 6)) { - u = u.substring(6), z = z.value, r(u) !== z && (I.lookup[u] = c(z), I.namespaces.push({uri:z, prefix:u})), delete t[q]; + u = u.substring(6), v = v.value, g(u) !== v && (I.lookup[u] = c(v), I.namespaces.push({uri:v, prefix:u})), delete B[q]; } else { if ("xmlns" === u) { - z = z.value, n() !== z && (I.xmlns = c(z), I.namespaces.push({uri:z, prefix:""})), delete t[q]; + v = v.value, p() !== v && (I.xmlns = c(v), I.namespaces.push({uri:v, prefix:""})), delete B[q]; } else { if ("xml:" === u.substring(0, 4)) { - var v = u.substring(4); - if ("space" !== v && "lang" !== v && "base" !== v && "id" !== v) { + var w = u.substring(4); + if ("space" !== w && "lang" !== w && "base" !== w && "id" !== w) { throw "Invalid xml attribute: " + u; } - I[v] = c(z.value); + I[w] = c(v.value); } else { if ("xml" === u.substring(0, 3)) { throw "Invalid xml attribute"; @@ -14039,77 +14043,77 @@ Shumway.AVM2.XRegExp.install(); I.namespaces.forEach(function(b) { b.prefix && I.lookup[b.prefix] !== b.uri || D.push(b); }); - s[s.length - 1].inScopes.forEach(function(b) { + r[r.length - 1].inScopes.forEach(function(b) { (!b.prefix || b.prefix in I.lookup) && (b.prefix || "xmlns" in I) || D.push(b); }); I.inScopes = D; - s.push(I); + r.push(I); u = []; - for (q = 0;q < t.length;++q) { - (z = t[q]) && u.push({name:h(z.name, !1), value:z.value}); + for (q = 0;q < B.length;++q) { + (v = B[q]) && u.push({name:t(v.name, !1), value:v.value}); } - e.beginElement(h(p.name, !0), u, D, k); - x += p.parsed + (k ? 2 : 1); - k && s.pop(); + e.beginElement(t(n.name, !0), u, D, k); + C += n.parsed + (k ? 2 : 1); + k && r.pop(); } } else { - for (;x++ < a.length && "<" !== a[x];) { + for (;C++ < a.length && "<" !== a[C];) { } - e.text(f(a.substring(q, x)), g()); + e.text(f(a.substring(q, C)), h()); } - q = x; + q = C; } } this.parseFromString = function(e, f) { - var g = x(1, "", "", ""), n = []; + var h = C(1, "", "", ""), p = []; b(e, {beginElement:function(b, e, f, c) { - var h = g; - n.push(h); - g = x(1, b.namespace, b.localName, b.prefix); + var g = h; + p.push(g); + h = C(1, b.namespace, b.localName, b.prefix); for (b = 0;b < e.length;++b) { - var r = e[b], m = x(2, r.name.namespace, r.name.localName, r.name.prefix); - m._value = r.value; - m._parent = g; - g._attributes.push(m); + var t = e[b], m = C(2, t.name.namespace, t.name.localName, t.name.prefix); + m._value = t.value; + m._parent = h; + h._attributes.push(m); } for (b = 0;b < f.length;++b) { - e = f[b], e = new a.ASNamespace(e.prefix, e.uri), g._inScopeNamespaces.push(e); + e = f[b], e = new a.ASNamespace(e.prefix, e.uri), h._inScopeNamespaces.push(e); } - h.insert(h.length(), g); - c && (g = n.pop()); + g.insert(g.length(), h); + c && (h = p.pop()); }, endElement:function(b) { - g = n.pop(); + h = p.pop(); }, text:function(b, a) { - R.ignoreWhitespace && (b = c(b)); - if (!(0 === b.length || a && R.ignoreWhitespace)) { - var e = x(3, "", "", void 0); + T.ignoreWhitespace && (b = c(b)); + if (!(0 === b.length || a && T.ignoreWhitespace)) { + var e = C(3, "", "", void 0); e._value = b; - g.insert(g.length(), e); + h.insert(h.length(), e); } }, cdata:function(b) { - var a = x(3, "", "", void 0); + var a = C(3, "", "", void 0); a._value = b; - g.insert(g.length(), a); + h.insert(h.length(), a); }, comment:function(b) { - if (!R.ignoreComments) { - var a = x(4, "", "", void 0); + if (!T.ignoreComments) { + var a = C(4, "", "", void 0); a._value = b; - g.insert(g.length(), a); + h.insert(h.length(), a); } }, pi:function(b, a) { - if (!R.ignoreProcessingInstructions) { - var e = x(5, "", b, void 0); + if (!T.ignoreProcessingInstructions) { + var e = C(5, "", b, void 0); e._value = a; - g.insert(g.length(), e); + h.insert(h.length(), e); } }, doctype:function(b) { }}); - return g; + return h; }; - }, E = function(b) { + }, F = function(b) { function e(b, a) { var f = "", c = ""; - 0 !== arguments.length && (1 === arguments.length ? (f = b, d.isObject(f) && f instanceof e ? (c = f.prefix, f = f.uri) : d.isObject(f) && f instanceof S && null !== f.uri ? f = f.uri : (f = v(f), c = "" === f ? "" : void 0)) : (f = a, f = d.isObject(f) && f instanceof S && null !== f.uri ? f.uri : v(f), "" === f ? void 0 === b || "" === v(b) ? c = "" : k.Runtime.throwError("TypeError", k.Errors.XMLNamespaceWithPrefixAndNoURI, b) : c = void 0 === b ? void 0 : !1 === n(b) ? void 0 : v(b))); + 0 !== arguments.length && (1 === arguments.length ? (f = b, d.isObject(f) && f instanceof e ? (c = f.prefix, f = f.uri) : d.isObject(f) && f instanceof U && null !== f.uri ? f = f.uri : (f = w(f), c = "" === f ? "" : void 0)) : (f = a, f = d.isObject(f) && f instanceof U && null !== f.uri ? f.uri : w(f), "" === f ? void 0 === b || "" === w(b) ? c = "" : k.Runtime.throwError("TypeError", k.Errors.XMLNamespaceWithPrefixAndNoURI, b) : c = void 0 === b ? void 0 : !1 === p(b) ? void 0 : w(b))); this._ns = Namespace.createNamespace(f, c); } __extends(e, b); @@ -14151,34 +14155,34 @@ Shumway.AVM2.XRegExp.install(); }; return e; }(a.ASObject); - a.ASNamespace = E; - var Q; + a.ASNamespace = F; + var S; (function(b) { b[b.ATTR_NAME = 1] = "ATTR_NAME"; b[b.ELEM_NAME = 2] = "ELEM_NAME"; b[b.ANY_NAME = 4] = "ANY_NAME"; b[b.ANY_NAMESPACE = 8] = "ANY_NAMESPACE"; - })(Q || (Q = {})); - var S = function(b) { + })(S || (S = {})); + var U = function(b) { function e(b, f, c) { - var g, n; - 0 === arguments.length ? g = "" : 1 === arguments.length ? g = b : (n = b, g = f); - if (d.isObject(g) && g instanceof e) { + var h, p; + 0 === arguments.length ? h = "" : 1 === arguments.length ? h = b : (p = b, h = f); + if (d.isObject(h) && h instanceof e) { if (2 > arguments.length) { - return g; + return h; } - g = g.localName; + h = h.localName; } - g = void 0 === g || 0 === arguments.length ? "" : v(g); - if (void 0 === n || 2 > arguments.length) { - n = "*" === g ? null : new a.ASNamespace("", R.defaultNamespace); + h = void 0 === h || 0 === arguments.length ? "" : w(h); + if (void 0 === p || 2 > arguments.length) { + p = "*" === h ? null : new a.ASNamespace("", T.defaultNamespace); } - var h = g; - null !== n && (n = n instanceof E ? n : new a.ASNamespace(n)); - var r = c ? 1 : 2; - "*" === g && (r |= 4); - null === n && (r |= 8); - this.name = new I([n ? n._ns : null], h, r); + var g = h; + null !== p && (p = p instanceof F ? p : new a.ASNamespace(p)); + var t = c ? 1 : 2; + "*" === h && (t |= 4); + null === p && (t |= 8); + this.name = new I([p ? p._ns : null], g, t); } __extends(e, b); e.fromMultiname = function(b) { @@ -14258,15 +14262,15 @@ Shumway.AVM2.XRegExp.install(); }; return e; }(a.ASNative); - a.ASQName = S; - var K; + a.ASQName = U; + var N; (function(b) { b[b.FLAG_IGNORE_COMMENTS = 1] = "FLAG_IGNORE_COMMENTS"; b[b.FLAG_IGNORE_PROCESSING_INSTRUCTIONS = 2] = "FLAG_IGNORE_PROCESSING_INSTRUCTIONS"; b[b.FLAG_IGNORE_WHITESPACE = 4] = "FLAG_IGNORE_WHITESPACE"; b[b.FLAG_PRETTY_PRINTING = 8] = "FLAG_PRETTY_PRINTING"; b[b.ALL = b.FLAG_IGNORE_COMMENTS | b.FLAG_IGNORE_PROCESSING_INSTRUCTIONS | b.FLAG_IGNORE_WHITESPACE | b.FLAG_PRETTY_PRINTING] = "ALL"; - })(K || (K = {})); + })(N || (N = {})); (function(b) { b[b.Unknown = 0] = "Unknown"; b[b.Element = 1] = "Element"; @@ -14275,7 +14279,7 @@ Shumway.AVM2.XRegExp.install(); b[b.Comment = 4] = "Comment"; b[b.ProcessingInstruction = 5] = "ProcessingInstruction"; })(a.ASXMLKind || (a.ASXMLKind = {})); - var P = [null, "element", "attribute", "text", "comment", "processing-instruction"], R = function(f) { + var R = [null, "element", "attribute", "text", "comment", "processing-instruction"], T = function(f) { function c(b) { this._parent = null; d.isNullOrUndefined(b) && (b = ""); @@ -14283,26 +14287,26 @@ Shumway.AVM2.XRegExp.install(); this._kind = 3, this._value = ""; } else { var a = m(b); - p(b) && (a = a._deepCopy()); + n(b) && (a = a._deepCopy()); return a; } } __extends(c, f); c.native_settings = function() { - return{$BgignoreComments:c.ignoreComments, $BgignoreProcessingInstructions:c.ignoreProcessingInstructions, $BgignoreWhitespace:c.ignoreWhitespace, $BgprettyPrinting:c.prettyPrinting, $BgprettyIndent:c.prettyIndent}; + return {$BgignoreComments:c.ignoreComments, $BgignoreProcessingInstructions:c.ignoreProcessingInstructions, $BgignoreWhitespace:c.ignoreWhitespace, $BgprettyPrinting:c.prettyPrinting, $BgprettyIndent:c.prettyIndent}; }; c.native_setSettings = function(b) { d.isNullOrUndefined(b) ? (c.ignoreComments = !0, c.ignoreProcessingInstructions = !0, c.ignoreWhitespace = !0, c.prettyPrinting = !0, c.prettyIndent = 2) : ("boolean" === typeof b.$BgignoreComments && (c.ignoreComments = b.$BgignoreComments), "boolean" === typeof b.$BgignoreProcessingInstructions && (c.ignoreProcessingInstructions = b.$BgignoreProcessingInstructions), "boolean" === typeof b.$BgignoreWhitespace && (c.ignoreWhitespace = b.$BgignoreWhitespace), "boolean" === b.$BgprettyPrinting && (c.prettyPrinting = b.$BgprettyPrinting), "number" === b.$BgprettyIndent && (c.prettyIndent = b.$BgprettyIndent)); }; c.native_defaultSettings = function() { - return{$BgignoreComments:!0, $BgignoreProcessingInstructions:!0, $BgignoreWhitespace:!0, $BgprettyPrinting:!0, $BgprettyIndent:2}; + return {$BgignoreComments:!0, $BgignoreProcessingInstructions:!0, $BgignoreWhitespace:!0, $BgprettyPrinting:!0, $BgprettyIndent:2}; }; c.prototype.valueOf = function() { return this; }; c.prototype.equals = function(b) { - return b instanceof W ? b.equals(this) : b instanceof c ? (3 === this._kind || 2 === this._kind) && b.hasSimpleContent() || (3 === b._kind || 2 === b._kind) && this.hasSimpleContent() ? this.toString() === b.toString() : this._deepEquals(b) : this.hasSimpleContent() && this.toString() === D(b); + return b instanceof X ? b.equals(this) : b instanceof c ? (3 === this._kind || 2 === this._kind) && b.hasSimpleContent() || (3 === b._kind || 2 === b._kind) && this.hasSimpleContent() ? this.toString() === b.toString() : this._deepEquals(b) : this.hasSimpleContent() && this.toString() === D(b); }; c.prototype.init = function(b, e, f, c) { e = e || c ? new a.ASNamespace(c, e) : void 0; @@ -14328,36 +14332,36 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype._deepEquals = function(b) { if (!(b instanceof c) || this._kind !== b._kind || !!this._name !== !!b._name || this._name && !this._name.equals(b._name)) { - return!1; + return !1; } if (1 !== this._kind) { return this._value !== b._value ? !1 : !0; } var a = this._attributes, e = b._attributes; if (a.length !== e.length) { - return!1; + return !1; } var f = this._children; b = b._children; if (f.length !== b.length) { - return!1; + return !1; } - var g = 0; - a: for (;g < a.length;g++) { - for (var n = a[g], r = 0;r < e.length;r++) { - var h = e[r]; - if (h._name.equals(n._name) && h._value === n._value) { + var h = 0; + a: for (;h < a.length;h++) { + for (var p = a[h], g = 0;g < e.length;g++) { + var t = e[g]; + if (t._name.equals(p._name) && t._value === p._value) { continue a; } } - return!1; + return !1; } - for (g = 0;g < f.length;g++) { - if (!f[g].equals(b[g])) { - return!1; + for (h = 0;h < f.length;h++) { + if (!f[h].equals(b[h])) { + return !1; } } - return!0; + return !0; }; c.prototype._deepCopy = function() { var b = this._kind, e = new a.ASXML; @@ -14400,22 +14404,22 @@ Shumway.AVM2.XRegExp.install(); }) || this._inScopeNamespaces.push(b); }; Object.defineProperty(c, "ignoreComments", {get:function() { - return!!(c._flags & 1); + return !!(c._flags & 1); }, set:function(b) { c._flags = b ? c._flags | 1 : c._flags & -2; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "ignoreProcessingInstructions", {get:function() { - return!!(c._flags & 2); + return !!(c._flags & 2); }, set:function(b) { c._flags = b ? c._flags | 2 : c._flags & -3; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "ignoreWhitespace", {get:function() { - return!!(c._flags & 4); + return !!(c._flags & 4); }, set:function(b) { c._flags = b ? c._flags | 4 : c._flags & -5; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "prettyPrinting", {get:function() { - return!!(c._flags & 8); + return !!(c._flags & 8); }, set:function(b) { c._flags = b ? c._flags | 8 : c._flags & -9; }, enumerable:!0, configurable:!0}); @@ -14425,7 +14429,7 @@ Shumway.AVM2.XRegExp.install(); c._prettyIndent = b | 0; }, enumerable:!0, configurable:!0}); c.prototype.toString = function() { - return c.isTraitsOrDynamicPrototype(this) ? "" : this.hasComplexContent() ? this.toXMLString() : v(this); + return c.isTraitsOrDynamicPrototype(this) ? "" : this.hasComplexContent() ? this.toXMLString() : w(this); }; c.prototype.native_hasOwnProperty = function(e) { if (c.isTraitsOrDynamicPrototype(this)) { @@ -14530,8 +14534,8 @@ Shumway.AVM2.XRegExp.install(); var a = this, e = []; for (b = b ? e : {};null !== a;) { for (var f = a._inScopeNamespaces, c = 0;f && c < f.length;c++) { - var g = f[c]; - b[g.prefix] || (b[g.prefix] = g, e.push(g)); + var h = f[c]; + b[h.prefix] || (b[h.prefix] = h, e.push(h)); } a = a._parent; } @@ -14539,11 +14543,11 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.insertChildAfter = function(b, a) { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); - z("public.XML::insertChildAfter"); + B("public.XML::insertChildAfter"); }; c.prototype.insertChildBefore = function(b, a) { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); - z("public.XML::insertChildBefore"); + B("public.XML::insertChildBefore"); }; c.prototype.length = function() { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); @@ -14576,11 +14580,11 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.namespaceDeclarations = function() { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); - z("public.XML::namespaceDeclarations"); + B("public.XML::namespaceDeclarations"); }; c.prototype.nodeKind = function() { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); - return P[this._kind]; + return R[this._kind]; }; c.prototype.normalize = function() { this instanceof c || k.Runtime.throwError("TypeError", k.Errors.CheckTypeFailedError, this, "XML"); @@ -14626,16 +14630,16 @@ Shumway.AVM2.XRegExp.install(); return e; } for (var c = 0;c < f.length;c++) { - var g = f[c]; - 5 !== g._kind || "*" !== b && g._name.localName !== a || e._children.push(g); + var h = f[c]; + 5 !== h._kind || "*" !== b && h._name.localName !== a || e._children.push(h); } return e; }; c.prototype.prependChild = function(b) { - z("public.XML::prependChild"); + B("public.XML::prependChild"); }; c.prototype.removeNamespace = function(b) { - z("public.XML::removeNamespace"); + B("public.XML::removeNamespace"); }; c.prototype.replace = function(b, a) { var e, f = this; @@ -14667,8 +14671,8 @@ Shumway.AVM2.XRegExp.install(); if (1 === a._kind || 3 === a._kind || 4 === a._kind || 5 === a._kind) { a._parent = f, f._children || (f._children = []), f._children[b] = a; } else { - e = v(a); - var c = x(); + e = w(a); + var c = C(); c._parent = f; c._value = e; f._children || (f._children = []); @@ -14681,12 +14685,12 @@ Shumway.AVM2.XRegExp.install(); return this; }; c.prototype.setLocalName = function(b) { - z("public.XML::setLocalName"); + B("public.XML::setLocalName"); }; c.prototype.setName = function(b) { if (3 !== this._kind && 4 !== this._kind) { b instanceof a.ASQName && null === b.uri && (b = b.localName); - b = new S(b); + b = new U(b); 5 === this._kind && b.setUri(); this._name = b; var e = this; @@ -14700,7 +14704,7 @@ Shumway.AVM2.XRegExp.install(); } }; c.prototype.setNamespace = function(b) { - z("public.XML::setNamespace"); + B("public.XML::setNamespace"); }; c.prototype.text = function() { var b = a.ASXMLList.createList(this, this._name); @@ -14710,7 +14714,7 @@ Shumway.AVM2.XRegExp.install(); return b; }; c.prototype.toXMLString = function() { - return s(this); + return r(this); }; c.prototype.toJSON = function(b) { return "XML"; @@ -14720,7 +14724,7 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.asGetEnumerableKeys = function() { if (c.isTraitsOrDynamicPrototype(this)) { - return y.call(this); + return z.call(this); } var b = []; this._children.forEach(function(a, e) { @@ -14731,15 +14735,15 @@ Shumway.AVM2.XRegExp.install(); c.prototype.setProperty = function(e, f, c) { e === e >>> 0 && k.Runtime.throwError("TypeError", k.Errors.XMLAssignmentToIndexedXMLNotAllowed); if (3 !== this._kind && 4 !== this._kind && 5 !== this._kind && 2 !== this._kind) { - if (c = p(c) && 3 !== c._kind && 2 !== c._kind ? c._deepCopy() : v(c), e = b(e), f) { - if (n(e.name)) { + if (c = n(c) && 3 !== c._kind && 2 !== c._kind ? c._deepCopy() : w(c), e = b(e), f) { + if (p(e.name)) { if (c instanceof a.ASXMLList) { if (0 === c._children.length) { c = ""; } else { - f = v(c._children[0]); - for (var g = 1;g < c._children.length;g++) { - f += " " + v(c._children[g]); + f = w(c._children[0]); + for (var h = 1;h < c._children.length;h++) { + f += " " + w(c._children[h]); } c = f; } @@ -14747,8 +14751,8 @@ Shumway.AVM2.XRegExp.install(); c = D(c); } f = null; - for (var r = this._attributes, h = this._attributes = [], g = 0;r && g < r.length;g++) { - var m = r[g]; + for (var g = this._attributes, t = this._attributes = [], h = 0;g && h < g.length;h++) { + var m = g[h]; if (m._name.equals(e)) { if (f) { m._parent = null; @@ -14757,49 +14761,49 @@ Shumway.AVM2.XRegExp.install(); f = m; } } - h.push(m); + t.push(m); } - f || (f = x(2, e.uri, e.localName), f._parent = this, h.push(f)); + f || (f = C(2, e.uri, e.localName), f._parent = this, t.push(f)); f._value = c; } } else { - f = !p(c) && "*" !== e.localName; - r = e.flags & 4; - h = e.flags & 8; + f = !n(c) && "*" !== e.localName; + g = e.flags & 4; + t = e.flags & 8; for (m = this.length() - 1;0 <= m;m--) { - (r || 1 === this._children[m]._kind && this._children[m]._name.localName === e.localName) && (h || 1 === this._children[m]._kind && this._children[m]._name.uri === e.uri) && (void 0 !== g && this.deleteByIndex(g), g = m); + (g || 1 === this._children[m]._kind && this._children[m]._name.localName === e.localName) && (t || 1 === this._children[m]._kind && this._children[m]._name.uri === e.uri) && (void 0 !== h && this.deleteByIndex(h), h = m); } - void 0 === g && (g = this.length(), f && (r = null === e.uri ? new a.ASQName(new a.ASNamespace("", R.defaultNamespace), e) : new a.ASQName(e), e = x(1, r.uri, r.localName, r.prefix), e._parent = this, r = r.getNamespace(), this.replace(String(g), e), e.addInScopeNamespace(r))); - f ? (this._children[g]._children = [], f = v(c), "" !== f && this._children[g].replace("0", f)) : this.replace(String(g), c); + void 0 === h && (h = this.length(), f && (g = null === e.uri ? new a.ASQName(new a.ASNamespace("", T.defaultNamespace), e) : new a.ASQName(e), e = C(1, g.uri, g.localName, g.prefix), e._parent = this, g = g.getNamespace(), this.replace(String(h), e), e.addInScopeNamespace(g))); + f ? (this._children[h]._children = [], f = w(c), "" !== f && this._children[h].replace("0", f)) : this.replace(String(h), c); } } }; c.prototype.asSetProperty = function(b, a, e, f) { if (c.isTraitsOrDynamicPrototype(this)) { - return N.call(this, b, a, e, f); + return P.call(this, b, a, e, f); } e = !!(e & I.ATTRIBUTE); - this.setProperty(r(b, a, e), e, f); + this.setProperty(t(b, a, e), e, f); }; c.prototype.getProperty = function(e, f) { if (d.isIndex(e) || !I.isQName(e) && d.isNumeric(e)) { return 0 === (e | 0) ? this : null; } - var c = b(e), g = a.ASXMLList.createList(this, this._name); - g._targetObject = this; - g._targetProperty = c; - var n = 0, r = c.name.flags, h = r & 4, m = r & 8; - if (f || r & 1) { - for (r = 0;this._attributes && r < this._attributes.length;r++) { - var l = this._attributes[r]; - !h && l._name.localName !== c.localName || !m && l._name.uri !== c.uri || (g._children[n++] = l); + var c = b(e), h = a.ASXMLList.createList(this, this._name); + h._targetObject = this; + h._targetProperty = c; + var p = 0, g = c.name.flags, t = g & 4, m = g & 8; + if (f || g & 1) { + for (g = 0;this._attributes && g < this._attributes.length;g++) { + var l = this._attributes[g]; + !t && l._name.localName !== c.localName || !m && l._name.uri !== c.uri || (h._children[p++] = l); } - return g; + return h; } - for (r = 0;this._children && r < this._children.length;r++) { - l = this._children[r], (h || 1 === l._kind && l._name.localName === c.localName) && (m || 1 === l._kind && l._name.uri === c.uri) && (g._children[n++] = l); + for (g = 0;this._children && g < this._children.length;g++) { + l = this._children[g], (t || 1 === l._kind && l._name.localName === c.localName) && (m || 1 === l._kind && l._name.uri === c.uri) && (h._children[p++] = l); } - return g; + return h; }; c.prototype.asGetNumericProperty = function(b) { return this.asGetProperty(null, b, 0); @@ -14809,10 +14813,10 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.asGetProperty = function(b, a, e) { if (c.isTraitsOrDynamicPrototype(this)) { - return T.call(this, b, a, e); + return J.call(this, b, a, e); } e = !!(e & I.ATTRIBUTE); - return this.getProperty(r(b, a, e), e); + return this.getProperty(t(b, a, e), e); }; c.prototype.hasProperty = function(a, e, f) { if (f) { @@ -14827,59 +14831,59 @@ Shumway.AVM2.XRegExp.install(); c &= 8; if (e) { for (e = 0;this._attributes && e < this._attributes.length;e++) { - var g = this._attributes[e]; - if (f || g._name.localName === a.localName && (c || g._name.uri === a.uri)) { - return!0; + var h = this._attributes[e]; + if (f || h._name.localName === a.localName && (c || h._name.uri === a.uri)) { + return !0; } } - return!1; + return !1; } for (e = 0;e < this._children.length;e++) { - if (g = this._children[e], (f || 1 === g._kind && g._name.localName === a.localName) && (c || 1 === g._kind && g._name.uri === a.uri)) { - return!0; + if (h = this._children[e], (f || 1 === h._kind && h._name.localName === a.localName) && (c || 1 === h._kind && h._name.uri === a.uri)) { + return !0; } } }; c.prototype.deleteProperty = function(a, e) { if (d.isIndex(a)) { - return!0; + return !0; } - var f = b(a), c = f.localName, g = f.uri, n = f.name.flags, r = n & 4, h = n & 8; + var f = b(a), c = f.localName, h = f.uri, p = f.name.flags, g = p & 4, t = p & 8; if (e) { - if (n = this._attributes) { - for (var m = this._attributes = [], l = 0;l < n.length;l++) { - var q = n[l], x = q._name; - !r && x.localName !== c || !h && x.uri !== g ? m.push(q) : q._parent = null; + if (p = this._attributes) { + for (var m = this._attributes = [], l = 0;l < p.length;l++) { + var q = p[l], r = q._name; + !g && r.localName !== c || !t && r.uri !== h ? m.push(q) : q._parent = null; } } } else { if (this._children.some(function(b, a) { - return(r || 1 === b._kind && b._name.localName === f.localName) && (h || 1 === b._kind && b._name.uri === f.uri); + return (g || 1 === b._kind && b._name.localName === f.localName) && (t || 1 === b._kind && b._name.uri === f.uri); })) { - return!0; + return !0; } } }; c.prototype.asHasProperty = function(b, a, e) { if (c.isTraitsOrDynamicPrototype(this)) { - return B.call(this, b, a, e); + return K.call(this, b, a, e); } var f = !!(e & I.ATTRIBUTE); - a = r(b, a, f); + a = t(b, a, f); if (this.hasProperty(a, f, !1)) { - return!0; + return !0; } b = I.isQName(a) ? a : this.resolveMultinameProperty(b, a, e); - return!!this[I.getQualifiedName(b)]; + return !!this[I.getQualifiedName(b)]; }; c.prototype._asDeleteProperty = function(b, a, e) { if (c.isTraitsOrDynamicPrototype(this)) { return A.call(this, b, a, e); } var f = !!(e & I.ATTRIBUTE); - a = r(b, a, f); + a = t(b, a, f); if (this.deleteProperty(a, f)) { - return!0; + return !0; } b = I.isQName(a) ? a : this.resolveMultinameProperty(b, a, e); return delete this[I.getQualifiedName(b)]; @@ -14887,22 +14891,22 @@ Shumway.AVM2.XRegExp.install(); c.prototype.asHasPropertyInternal = function(b, a, e) { return this.asHasProperty(b, a, e); }; - c.prototype.asCallProperty = function(b, a, e, f, g) { + c.prototype.asCallProperty = function(b, a, e, f, h) { if (c.isTraitsOrDynamicPrototype(this) || f) { - return C.call(this, b, a, e, f, g); + return y.call(this, b, a, e, f, h); } - var n; - n = this.resolveMultinameProperty(b, a, e); - if (n = this.asOpenMethods[n] || this[n]) { - return n.apply(f ? null : this, g); + var p; + p = this.resolveMultinameProperty(b, a, e); + if (p = this.asOpenMethods[p] || this[p]) { + return p.apply(f ? null : this, h); } if (this.hasSimpleContent()) { - return Object(v(this)).asCallProperty(b, a, e, f, g); + return Object(w(this)).asCallProperty(b, a, e, f, h); } throwError("TypeError", k.Errors.CallOfNonFunctionError, "value"); }; c.prototype._delete = function(b, a) { - z("XML.[[Delete]]"); + B("XML.[[Delete]]"); }; c.prototype.deleteByIndex = function(b) { if (String(b >>> 0) !== String(b)) { @@ -14926,7 +14930,7 @@ Shumway.AVM2.XRegExp.install(); f = f._parent; } } - if (this instanceof W) { + if (this instanceof X) { if (f = this.length(), 0 === f) { return; } @@ -14936,7 +14940,7 @@ Shumway.AVM2.XRegExp.install(); for (var c = this.length() - 1;c >= e;c--) { this._children[c + f] = this._children[c]; } - if (this instanceof W) { + if (this instanceof X) { for (f = a.length(), c = 0;c < f;c++) { a._children[c]._parent = this, this[e + c] = a[c]; } @@ -14966,13 +14970,13 @@ Shumway.AVM2.XRegExp.install(); if (1 !== this._kind) { return a; } - var f = a._children.length, c = b.localName, g = b.uri, n = e & 4; + var f = a._children.length, c = b.localName, h = b.uri, p = e & 4; e & 1 ? this._attributes.forEach(function(b, e) { - if (n || c === b._name.localName && g === b._name.uri) { + if (p || c === b._name.localName && h === b._name.uri) { a._children[f++] = b; } }) : this._children.forEach(function(b, e) { - if (n || c === b._name.localName && g === b._name.uri) { + if (p || c === b._name.localName && h === b._name.uri) { a._children[f++] = b; } }); @@ -14989,20 +14993,20 @@ Shumway.AVM2.XRegExp.install(); M(b, "$BgvalueOf", Object.prototype.$BgvalueOf); M(b, "$BghasOwnProperty", b.native_hasOwnProperty); M(b, "$BgpropertyIsEnumerable", b.native_propertyIsEnumerable); - F(c, ["settings", "setSettings", "defaultSettings"]); - F(b, "toString addNamespace appendChild attribute attributes child childIndex children comments contains copy descendants elements hasComplexContent hasSimpleContent inScopeNamespaces insertChildAfter insertChildBefore length localName name namespace namespaceDeclarations nodeKind normalize parent processingInstructions prependChild removeNamespace replace setChildren setLocalName setName setNamespace text toXMLString toJSON".split(" ")); + E(c, ["settings", "setSettings", "defaultSettings"]); + E(b, "toString addNamespace appendChild attribute attributes child childIndex children comments contains copy descendants elements hasComplexContent hasSimpleContent inScopeNamespaces insertChildAfter insertChildBefore length localName name namespace namespaceDeclarations nodeKind normalize parent processingInstructions prependChild removeNamespace replace setChildren setLocalName setName setNamespace text toXMLString toJSON".split(" ")); }; c.callableConstructor = function(b) { d.isNullOrUndefined(b) && (b = ""); return m(b); }; c.defaultNamespace = ""; - c._flags = K.ALL; + c._flags = N.ALL; c._prettyIndent = 2; return c; }(a.ASNative); - a.ASXML = R; - var W = function(f) { + a.ASXML = T; + var X = function(f) { function c(b) { this._children = []; d.isNullOrUndefined(b) && (b = ""); @@ -15013,14 +15017,14 @@ Shumway.AVM2.XRegExp.install(); this._children[a] = b[a]; } } else { - g(b, this); + h(b, this); } } } __extends(c, f); c.addXML = function(b, e) { var f; - b instanceof R ? (f = new a.ASXMLList, f.append(b)) : f = b; + b instanceof T ? (f = new a.ASXMLList, f.append(b)) : f = b; f.append(e); return f; }; @@ -15038,19 +15042,19 @@ Shumway.AVM2.XRegExp.install(); c.prototype.equals = function(b) { var a = this._children; if (void 0 === b && 0 === a.length) { - return!0; + return !0; } if (b instanceof c) { b = b._children; if (b.length !== a.length) { - return!1; + return !1; } for (var e = 0;e < a.length;e++) { if (!a[e].equals(b[e])) { - return!1; + return !1; } } - return!0; + return !0; } return 1 === a.length && a[0].equals(b); }; @@ -15059,7 +15063,7 @@ Shumway.AVM2.XRegExp.install(); return this.toXMLString(); } for (var b = "", a = 0;a < this._children.length;a++) { - b += v(this._children[a]); + b += w(this._children[a]); } return b; }; @@ -15081,16 +15085,16 @@ Shumway.AVM2.XRegExp.install(); return a.ASObject.prototype.native_hasOwnProperty.call(this, e); } if (d.isIndex(e)) { - return(e | 0) < this._children.length; + return (e | 0) < this._children.length; } e = b(e); - for (var f = !!(e.flags & 1), g = this._children, n = 0;n < g.length;n++) { - var r = g[n]; - if (1 === r._kind && r.hasProperty(e, f, !1)) { - return!0; + for (var f = !!(e.flags & 1), h = this._children, p = 0;p < h.length;p++) { + var g = h[p]; + if (1 === g._kind && g.hasProperty(e, f, !1)) { + return !0; } } - return!1; + return !1; }; c.prototype.native_propertyIsEnumerable = function(b) { return d.isIndex(b) && (b | 0) < this._children.length; @@ -15115,8 +15119,8 @@ Shumway.AVM2.XRegExp.install(); c.prototype.descendants = function(e) { e = b(e); for (var f = a.ASXMLList.createList(this._targetObject, this._targetProperty), c = 0;c < this._children.length;c++) { - var g = this._children[c]; - 1 === g._kind && g.descendantsInto(e, f); + var h = this._children[c]; + 1 === h._kind && h.descendantsInto(e, f); } return f; }; @@ -15130,10 +15134,10 @@ Shumway.AVM2.XRegExp.install(); c.prototype.contains = function(b) { for (var a = this._children, e = 0;e < a.length;e++) { if (a[e].equals(b)) { - return!0; + return !0; } } - return!1; + return !1; }; c.prototype.copy = function() { return this._deepCopy(); @@ -15149,7 +15153,7 @@ Shumway.AVM2.XRegExp.install(); c.prototype.hasComplexContent = function() { switch(this.length()) { case 0: - return!1; + return !1; case 1: return this._children[0].hasComplexContent(); default: @@ -15161,7 +15165,7 @@ Shumway.AVM2.XRegExp.install(); c.prototype.hasSimpleContent = function() { switch(this.length()) { case 0: - return!0; + return !0; case 1: return this._children[0].hasSimpleContent(); default: @@ -15215,8 +15219,8 @@ Shumway.AVM2.XRegExp.install(); var f = b(e).localName, c = a.ASXMLList.createList(this._targetObject, this._targetProperty); c._targetObject = this; c._targetProperty = null; - for (var g = this._children, n = 0;n < g.length;n++) { - g[n].processingInstructionsInto(e, f, c); + for (var h = this._children, p = 0;p < h.length;p++) { + h[p].processingInstructionsInto(e, f, c); } return c; }; @@ -15231,7 +15235,7 @@ Shumway.AVM2.XRegExp.install(); return b; }; c.prototype.toXMLString = function() { - return s(this); + return r(this); }; c.prototype.toJSON = function(b) { return "XMLList"; @@ -15325,24 +15329,24 @@ Shumway.AVM2.XRegExp.install(); return b === c.traitsPrototype || b === c.dynamicPrototype; }; c.prototype.asGetEnumerableKeys = function() { - return c.isTraitsOrDynamicPrototype(this) ? y.call(this) : this._children.asGetEnumerableKeys(); + return c.isTraitsOrDynamicPrototype(this) ? z.call(this) : this._children.asGetEnumerableKeys(); }; c.prototype.getProperty = function(e, f) { if (d.isIndex(e)) { return this._children[e]; } - var c = b(e), g = a.ASXMLList.createList(this._targetObject, c); + var c = b(e), h = a.ASXMLList.createList(this._targetObject, c); this._children.forEach(function(b, a) { if (1 === b._kind) { var e = b.getProperty(c, f); if (0 < e.length()) { - for (var e = e._children, n = 0;n < e.length;n++) { - g._children.push(e[n]); + for (var e = e._children, p = 0;p < e.length;p++) { + h._children.push(e[p]); } } } }); - return g; + return h; }; c.prototype.asGetNumericProperty = function(b) { return this.asGetProperty(null, b, 0); @@ -15352,24 +15356,24 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.asGetProperty = function(b, a, e) { if (c.isTraitsOrDynamicPrototype(this)) { - return T.call(this, b, a, e); + return J.call(this, b, a, e); } e = !!(e & I.ATTRIBUTE); - return this.getProperty(r(b, a, e), e); + return this.getProperty(t(b, a, e), e); }; c.prototype.hasProperty = function(b, a) { return d.isIndex(b) ? Number(b) < this._children.length : !0; }; c.prototype.asHasProperty = function(b, a, e) { if (c.isTraitsOrDynamicPrototype(this)) { - return T.call(this, b, a, e); + return J.call(this, b, a, e); } e = !!(e & I.ATTRIBUTE); - return this.hasProperty(r(b, a, e), e); + return this.hasProperty(t(b, a, e), e); }; c.prototype.asHasPropertyInternal = function(b, a, e) { e = !!(e & I.ATTRIBUTE); - return this.hasProperty(r(b, a, e), e); + return this.hasProperty(t(b, a, e), e); }; c.prototype.resolveValue = function() { return this; @@ -15377,136 +15381,136 @@ Shumway.AVM2.XRegExp.install(); c.prototype.setProperty = function(b, f, c) { if (d.isIndex(b)) { b |= 0; - var g = null; - if (this._targetObject && (g = this._targetObject.resolveValue(), null === g)) { + var h = null; + if (this._targetObject && (h = this._targetObject.resolveValue(), null === h)) { return; } f = this.length(); if (b >= f) { - if (g instanceof a.ASXMLList) { - if (1 !== g.length()) { + if (h instanceof a.ASXMLList) { + if (1 !== h.length()) { return; } - g = g._children[0]; + h = h._children[0]; } - if (g && 1 !== g._kind) { + if (h && 1 !== h._kind) { return; } - var n = new a.ASXML; - n._parent = g; - n._name = this._targetProperty; + var p = new a.ASXML; + p._parent = h; + p._name = this._targetProperty; if (e(this._targetProperty)) { - if (g.hasProperty(this._targetProperty, !0, !1)) { + if (h.hasProperty(this._targetProperty, !0, !1)) { return; } - n._kind = 2; + p._kind = 2; } else { - d.isNullOrUndefined(this._targetProperty) || "*" === this._targetProperty.localName ? (n._name = null, n._kind = 3) : n._kind = 1; + d.isNullOrUndefined(this._targetProperty) || "*" === this._targetProperty.localName ? (p._name = null, p._kind = 3) : p._kind = 1; } b = f; - if (2 !== n._kind) { - if (null !== g) { - var r; + if (2 !== p._kind) { + if (null !== h) { + var g; if (0 < b) { - var h = this._children[b - 1]; - for (r = 0;r < g.length - 1 && g._children[r] !== h;r++) { + var t = this._children[b - 1]; + for (g = 0;g < h.length - 1 && h._children[g] !== t;g++) { } } else { - r = g.length() - 1; + g = h.length() - 1; } - g._children[r + 1] = n; - n._parent = g; + h._children[g + 1] = p; + p._parent = h; } - c instanceof a.ASXML ? n._name = c._name : c instanceof a.ASXMLList && (n._name = c._targetProperty); - this.append(n); + c instanceof a.ASXML ? p._name = c._name : c instanceof a.ASXMLList && (p._name = c._targetProperty); + this.append(p); } } - p(c) && 3 !== c._kind && 2 !== c._kind || (c += ""); - r = this._children[b]; - n = r._kind; - g = r._parent; - if (2 === n) { - var m = g._children.indexOf(r); - g.setProperty(r._name, !0, !1); - this._children[b] = g._children[m]; + n(c) && 3 !== c._kind && 2 !== c._kind || (c += ""); + g = this._children[b]; + p = g._kind; + h = g._parent; + if (2 === p) { + var m = h._children.indexOf(g); + h.setProperty(g._name, !0, !1); + this._children[b] = h._children[m]; } else { if (c instanceof a.ASXMLList) { m = c._shallowCopy(); c = m.length(); - if (null !== g) { - for (n = g._children.indexOf(r), g.replace(n, m), r = 0;r < c;r++) { - m.setProperty(r, !1, g._children[n + r]); + if (null !== h) { + for (p = h._children.indexOf(g), h.replace(p, m), g = 0;g < c;g++) { + m.setProperty(g, !1, h._children[p + g]); } } if (0 === c) { - for (r = b + 1;r < f;r++) { - this._children[r - 1] = this._children[r]; + for (g = b + 1;g < f;g++) { + this._children[g - 1] = this._children[g]; } this._children.length--; } else { - for (r = f - 1;r > b;r--) { - this._children[r + c - 1] = this._children[r]; + for (g = f - 1;g > b;g--) { + this._children[g + c - 1] = this._children[g]; } } - for (r = 0;r < c;r++) { - this._children[b + r] = m._children[r]; + for (g = 0;g < c;g++) { + this._children[b + g] = m._children[g]; } } else { - c instanceof a.ASXML || 3 <= n ? (null !== g && (n = g._children.indexOf(r), g.replace(n, m), c = g._children[n]), "string" === typeof c ? (m = new a.ASXML(c), this._children[b] = m) : this._children[b] = c) : r.setProperty("*", !1, c); + c instanceof a.ASXML || 3 <= p ? (null !== h && (p = h._children.indexOf(g), h.replace(p, m), c = h._children[p]), "string" === typeof c ? (m = new a.ASXML(c), this._children[b] = m) : this._children[b] = c) : g.setProperty("*", !1, c); } } } else { if (0 === this._children.length) { - g = this.resolveValue(); - if (null === g || 1 !== g._children.length) { + h = this.resolveValue(); + if (null === h || 1 !== h._children.length) { return; } - this.append(g._children[0]); + this.append(h._children[0]); } 1 === this._children.length ? this._children[0].setProperty(b, f, c) : k.Runtime.throwError("TypeError", k.Errors.XMLAssigmentOneItemLists); } }; c.prototype.asSetProperty = function(b, a, e, f) { if (c.isTraitsOrDynamicPrototype(this)) { - return N.call(this, b, a, e, f); + return P.call(this, b, a, e, f); } e = !!(e & I.ATTRIBUTE); - a = r(b, a, e); + a = t(b, a, e); return this.setProperty(a, e, f); }; c.prototype._asDeleteProperty = function(b, a, e) { if (d.isIndex(a)) { b = a | 0; if (b >= this._children.length) { - return!0; + return !0; } this.removeByIndex(b); - return!0; + return !0; } e = !!(e & I.ATTRIBUTE); - a = r(b, a, e); + a = t(b, a, e); for (b = 0;b < this._children.length;b++) { var f = this._children[b]; 1 === f._kind && f.deleteProperty(a, e); } - return!0; + return !0; }; c.prototype.removeByIndex = function(b) { var a = this._children[b], e = a._parent; e && (a._parent = null, e._children.splice(e._children.indexOf(a), 1)); this._children.splice(b, 1); }; - c.prototype.asCallProperty = function(b, a, e, f, g) { + c.prototype.asCallProperty = function(b, a, e, f, h) { if (c.isTraitsOrDynamicPrototype(this) || f) { - return C.call(this, b, a, e, f, g); + return y.call(this, b, a, e, f, h); } - var n; - n = this.resolveMultinameProperty(b, a, e); - if (n = this.asOpenMethods[n] || this[n]) { - return n.apply(f ? null : this, g); + var p; + p = this.resolveMultinameProperty(b, a, e); + if (p = this.asOpenMethods[p] || this[p]) { + return p.apply(f ? null : this, h); } if (1 === this.length()) { - return this._children[0].asCallProperty(b, a, e, f, g); + return this._children[0].asCallProperty(b, a, e, f, h); } throwError("TypeError", k.Errors.CallOfNonFunctionError, "value"); }; @@ -15518,7 +15522,7 @@ Shumway.AVM2.XRegExp.install(); M(b, "$BgvalueOf", Object.prototype.$BgvalueOf); M(b, "$BghasOwnProperty", b.native_hasOwnProperty); M(b, "$BgpropertyIsEnumerable", b.native_propertyIsEnumerable); - F(b, "toString addNamespace appendChild attribute attributes child childIndex children comments contains copy descendants elements hasComplexContent hasSimpleContent inScopeNamespaces insertChildAfter insertChildBefore length localName name namespace namespaceDeclarations nodeKind normalize parent processingInstructions prependChild removeNamespace replace setChildren setLocalName setName setNamespace text toXMLString toJSON".split(" ")); + E(b, "toString addNamespace appendChild attribute attributes child childIndex children comments contains copy descendants elements hasComplexContent hasSimpleContent inScopeNamespaces insertChildAfter insertChildBefore length localName name namespace namespaceDeclarations nodeKind normalize parent processingInstructions prependChild removeNamespace replace setChildren setLocalName setName setNamespace text toXMLString toJSON".split(" ")); }; c.callableConstructor = function(b) { d.isNullOrUndefined(b) && (b = ""); @@ -15526,19 +15530,19 @@ Shumway.AVM2.XRegExp.install(); return b; } var e = new a.ASXMLList; - g(b, e); + h(b, e); return e; }; return c; }(a.ASNative); - a.ASXMLList = W; + a.ASXMLList = X; })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - function p(b, a) { + function n(b, a) { var e = (b | 0) === b; if (a & 512 && (d.isNullOrUndefined(b) || e)) { return null; @@ -15557,48 +15561,48 @@ Shumway.AVM2.XRegExp.install(); } } b = Object(b); - var g = b.classInfo ? b : Object.getPrototypeOf(b).class, r = g === b && !(a & 512), h = g.classInfo, m = {}; - m[n] = e ? "int" : f ? "builtin.as$0::MethodClosure" : c(h.instanceInfo.name); - m[l("isDynamic")] = r || !(h.instanceInfo.flags & 1) && !f; - m[l("isFinal")] = r || !!(h.instanceInfo.flags & 2) || f; - m[l("isStatic")] = r; + var h = b.classInfo ? b : Object.getPrototypeOf(b).class, g = h === b && !(a & 512), t = h.classInfo, m = {}; + m[p] = e ? "int" : f ? "builtin.as$0::MethodClosure" : c(t.instanceInfo.name); + m[l("isDynamic")] = g || !(t.instanceInfo.flags & 1) && !f; + m[l("isFinal")] = g || !!(t.instanceInfo.flags & 2) || f; + m[l("isStatic")] = g; if (a & 256) { - var q = m[l("traits")] = s(g, h, r, a) + var q = m[l("traits")] = r(h, t, g, a) } f && (q[l("bases")].unshift("Function"), q[l("accessors")][1][l("declaredBy")] = "builtin.as$0::MethodClosure"); return m; } - function v(b, e) { - for (var f = 0, c = e[l("bases")], g = 0;c && g < c.length;g++) { - var n = new a.ASXML(''); - b.appendChild(n); + function w(b, e) { + for (var f = 0, c = e[l("bases")], h = 0;c && h < c.length;h++) { + var p = new a.ASXML(''); + b.appendChild(p); f++; } c = e[l("interfaces")]; - for (g = 0;c && g < c.length;g++) { - n = new a.ASXML(''), b.appendChild(n), f++; + for (h = 0;c && h < c.length;h++) { + p = new a.ASXML(''), b.appendChild(p), f++; } - null !== e[l("constructor")] && (n = new a.ASXML(""), t(n, e[l("constructor")]), b.appendChild(n), f++); + null !== e[l("constructor")] && (p = new a.ASXML(""), v(p, e[l("constructor")]), b.appendChild(p), f++); c = e[l("variables")]; - for (g = 0;c && g < c.length;g++) { - var r = c[g], n = "readonly" === r[l("access")] ? "constant" : "variable", n = new a.ASXML("<" + n + ' name="' + a.escapeAttributeValue(r[l("name")]) + '" type="' + r[l("type")] + '"/>'); - null !== r[l("uri")] && n.setProperty("uri", !0, r[l("uri")]); - null !== r[l("metadata")] && u(n, r[l("metadata")]); - b.appendChild(n); + for (h = 0;c && h < c.length;h++) { + var g = c[h], p = "readonly" === g[l("access")] ? "constant" : "variable", p = new a.ASXML("<" + p + ' name="' + a.escapeAttributeValue(g[l("name")]) + '" type="' + g[l("type")] + '"/>'); + null !== g[l("uri")] && p.setProperty("uri", !0, g[l("uri")]); + null !== g[l("metadata")] && u(p, g[l("metadata")]); + b.appendChild(p); f++; } c = e[l("accessors")]; - for (g = 0;c && g < c.length;g++) { - r = c[g], n = new a.ASXML(''), null !== r[l("uri")] && n.setProperty("uri", !0, r[l("uri")]), null !== r[l("metadata")] && u(n, r[l("metadata")]), b.appendChild(n), f++; + for (h = 0;c && h < c.length;h++) { + g = c[h], p = new a.ASXML(''), null !== g[l("uri")] && p.setProperty("uri", !0, g[l("uri")]), null !== g[l("metadata")] && u(p, g[l("metadata")]), b.appendChild(p), f++; } c = e[l("methods")]; - for (g = 0;c && g < c.length;g++) { - r = c[g], n = new a.ASXML(''), t(n, r[l("parameters")]), null !== r[l("uri")] && n.setProperty("uri", !0, r[l("uri")]), null !== r[l("metadata")] && u(n, r[l("metadata")]), b.appendChild(n), f++; + for (h = 0;c && h < c.length;h++) { + g = c[h], p = new a.ASXML(''), v(p, g[l("parameters")]), null !== g[l("uri")] && p.setProperty("uri", !0, g[l("uri")]), null !== g[l("metadata")] && u(p, g[l("metadata")]), b.appendChild(p), f++; } u(b, e[l("metadata")]); return 0 < f; } - function t(b, e) { + function v(b, e) { if (e) { for (var f = 0;f < e.length;f++) { var c = e[f], c = new a.ASXML(''); @@ -15609,11 +15613,11 @@ Shumway.AVM2.XRegExp.install(); function u(b, e) { if (e) { for (var f = 0;f < e.length;f++) { - for (var c = e[f], g = new a.ASXML(''), c = c[l("value")], n = 0;n < c.length;n++) { - var r = c[n], r = new a.ASXML(''); - g.appendChild(r); + for (var c = e[f], h = new a.ASXML(''), c = c[l("value")], p = 0;p < c.length;p++) { + var g = c[p], g = new a.ASXML(''); + h.appendChild(g); } - b.appendChild(g); + b.appendChild(h); } } } @@ -15622,9 +15626,9 @@ Shumway.AVM2.XRegExp.install(); } function c(b) { var a = b.name; - return(b = b.namespaces[0]) && b.uri ? b.uri + "::" + a : a; + return (b = b.namespaces[0]) && b.uri ? b.uri + "::" + a : a; } - function h(b) { + function g(b) { if (!b) { return null; } @@ -15636,55 +15640,55 @@ Shumway.AVM2.XRegExp.install(); } function q(b) { var a = {}; - a[n] = b.name; - a[z] = b.value.map(function(b) { + a[p] = b.name; + a[B] = b.value.map(function(b) { var a = {}; - a[z] = b.value; + a[B] = b.value; a[D] = b.key; return a; }); return a; } - function s(g, m, d, q) { - function s(a) { - for (var g = a.length;g--;) { - var m = a[g], l = m.name.getNamespace(); + function r(h, m, d, q) { + function r(a) { + for (var h = a.length;h--;) { + var m = a[h], l = m.name.getNamespace(); if (!(!l.isPublic() && !m.name.uri || q & 1 && l.uri)) { - var p = c(m.name); - if (R[p] !== W[p]) { - l = P[p], l[e] = "readwrite", 2 === m.kind && (l[x] = m.methodInfo.returnType ? c(m.methodInfo.returnType) : "*"); + var n = c(m.name); + if (T[n] !== X[n]) { + l = R[n], l[e] = "readwrite", 2 === m.kind && (l[C] = m.methodInfo.returnType ? c(m.methodInfo.returnType) : "*"); } else { - if (!P[p]) { - switch(l = {}, P[p] = l, m.kind) { + if (!R[n]) { + switch(l = {}, R[n] = l, m.kind) { case 6: ; case 0: if (!(q & 8)) { continue; } - l[n] = p; - l[r] = void 0 === m.name.uri ? null : m.name.uri; - l[x] = m.typeName ? c(m.typeName) : "*"; + l[p] = n; + l[t] = void 0 === m.name.uri ? null : m.name.uri; + l[C] = m.typeName ? c(m.typeName) : "*"; l[e] = "readwrite"; - l[b] = q & 64 ? h(m.metadata) : null; - t.push(l); + l[b] = q & 64 ? g(m.metadata) : null; + v.push(l); break; case 1: if (!k) { continue; } l[I] = m.methodInfo.returnType ? c(m.methodInfo.returnType) : "*"; - l[b] = q & 64 ? h(m.metadata) : null; - l[n] = p; - l[r] = void 0 === m.name.uri ? null : m.name.uri; - for (var p = l[M] = [], m = m.methodInfo.parameters, z = 0;z < m.length;z++) { - var v = m[z], D = {}; - D[x] = v.type ? c(v.type) : "*"; - D[F] = "value" in v; - p.push(D); + l[b] = q & 64 ? g(m.metadata) : null; + l[p] = n; + l[t] = void 0 === m.name.uri ? null : m.name.uri; + for (var n = l[M] = [], m = m.methodInfo.parameters, B = 0;B < m.length;B++) { + var w = m[B], D = {}; + D[C] = w.type ? c(w.type) : "*"; + D[E] = "value" in w; + n.push(D); } - l[f] = ba; - K.push(l); + l[f] = da; + N.push(l); break; case 2: ; @@ -15692,12 +15696,12 @@ Shumway.AVM2.XRegExp.install(); if (!(q & 16) || d) { continue; } - l[n] = p; - 2 === m.kind ? (l[x] = m.methodInfo.returnType ? c(m.methodInfo.returnType) : "*", R[p] = l) : (z = m.methodInfo.parameters[0].type, l[x] = z ? c(z) : "*", W[p] = l); + l[p] = n; + 2 === m.kind ? (l[C] = m.methodInfo.returnType ? c(m.methodInfo.returnType) : "*", T[n] = l) : (B = m.methodInfo.parameters[0].type, l[C] = B ? c(B) : "*", X[n] = l); l[e] = 2 === m.kind ? "readonly" : "writeonly"; - l[b] = q & 64 ? h(m.metadata) : null; - l[r] = void 0 === m.name.uri ? null : m.name.uri; - l[f] = ba; + l[b] = q & 64 ? g(m.metadata) : null; + l[t] = void 0 === m.name.uri ? null : m.name.uri; + l[f] = da; u.push(l); } } @@ -15705,35 +15709,35 @@ Shumway.AVM2.XRegExp.install(); } } } - var p = q & 2, k = q & 32 && !d, z = {}, t = z[l("variables")] = q & 8 ? [] : null, u = z[l("accessors")] = q & 16 ? [] : null, v = null; - q & 64 && (v = d ? [] : h(m.metadata) || []); - z[b] = v; - z[l("constructor")] = null; + var n = q & 2, k = q & 32 && !d, B = {}, v = B[l("variables")] = q & 8 ? [] : null, u = B[l("accessors")] = q & 16 ? [] : null, w = null; + q & 64 && (w = d ? [] : g(m.metadata) || []); + B[b] = w; + B[l("constructor")] = null; if (q & 4) { - if (m = z[l("interfaces")] = [], !d) { - for (var D in g.implementedInterfaces) { - v = g.implementedInterfaces[D].getQualifiedClassName(), m.push(v); + if (m = B[l("interfaces")] = [], !d) { + for (var D in h.implementedInterfaces) { + w = h.implementedInterfaces[D].getQualifiedClassName(), m.push(w); } } } else { - z[l("interfaces")] = null; + B[l("interfaces")] = null; } - var K = z[l("methods")] = k ? [] : null; - D = z[l("bases")] = p ? [] : null; - var P = {}, R = {}, W = {}; - for (m = !1;g;) { - var ba = c(g.classInfo.instanceInfo.name); - p && m && !d ? D.push(ba) : m = !0; - if (q & 1024 && g === a.ASObject) { + var N = B[l("methods")] = k ? [] : null; + D = B[l("bases")] = n ? [] : null; + var R = {}, T = {}, X = {}; + for (m = !1;h;) { + var da = c(h.classInfo.instanceInfo.name); + n && m && !d ? D.push(da) : m = !0; + if (q & 1024 && h === a.ASObject) { break; } - d ? s(g.classInfo.traits) : s(g.classInfo.instanceInfo.traits); - g = g.baseClass; + d ? r(h.classInfo.traits) : r(h.classInfo.instanceInfo.traits); + h = h.baseClass; } - d && (q & 16 && (g = {}, g[n] = "prototype", g[x] = "*", g[e] = "readonly", g[b] = null, g[r] = null, g[f] = "Class", u.push(g)), p && (D.pop(), D.push("Class", "Object"), g = a.ASClass)); - return z; + d && (q & 16 && (h = {}, h[p] = "prototype", h[C] = "*", h[e] = "readonly", h[b] = null, h[t] = null, h[f] = "Class", u.push(h)), n && (D.pop(), D.push("Class", "Object"), h = a.ASClass)); + return B; } - var m = d.AVM2.ABC.Multiname, g; + var m = d.AVM2.ABC.Multiname, h; (function(b) { b[b.HIDE_NSURI_METHODS = 1] = "HIDE_NSURI_METHODS"; b[b.INCLUDE_BASES = 2] = "INCLUDE_BASES"; @@ -15746,25 +15750,25 @@ Shumway.AVM2.XRegExp.install(); b[b.INCLUDE_TRAITS = 256] = "INCLUDE_TRAITS"; b[b.USE_ITRAITS = 512] = "USE_ITRAITS"; b[b.HIDE_OBJECT = 1024] = "HIDE_OBJECT"; - })(g || (g = {})); - var f = l("declaredBy"), b = l("metadata"), e = l("access"), r = l("uri"), n = l("name"), x = l("type"), I = l("returnType"), z = l("value"), D = l("key"), M = l("parameters"), F = l("optional"); - a.describeTypeJSON = p; + })(h || (h = {})); + var f = l("declaredBy"), b = l("metadata"), e = l("access"), t = l("uri"), p = l("name"), C = l("type"), I = l("returnType"), B = l("value"), D = l("key"), M = l("parameters"), E = l("optional"); + a.describeTypeJSON = n; a.describeType = function(b, e) { - var f = p(b, e), c = k.Runtime.AVM2.instance.systemDomain; + var f = n(b, e), c = k.Runtime.AVM2.instance.systemDomain; c.getClass("XML"); c.getClass("XMLList"); c.getClass("QName"); c.getClass("Namespace"); c = new a.ASXML(""); c.setProperty("name", !0, f[l("name")]); - var g = f[l("traits")][l("bases")]; - g.length && c.setProperty("base", !0, g[0]); + var h = f[l("traits")][l("bases")]; + h.length && c.setProperty("base", !0, h[0]); c.setProperty("isDynamic", !0, f[l("isDynamic")].toString()); c.setProperty("isFinal", !0, f[l("isFinal")].toString()); c.setProperty("isStatic", !0, f[l("isStatic")].toString()); - v(c, f[l("traits")]); - if (f = p(b, e | 512)) { - g = new a.ASXML(""), g.setProperty("type", !0, f[l("name")]), v(g, f[l("traits")]) && c.appendChild(g); + w(c, f[l("traits")]); + if (f = n(b, e | 512)) { + h = new a.ASXML(""), h.setProperty("type", !0, f[l("name")]), w(h, f[l("traits")]) && c.appendChild(h); } return c; }; @@ -15774,9 +15778,9 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - (function(p) { - (function(p) { - var k = Object.prototype.asGetProperty, u = Object.prototype.asSetProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asDeleteProperty, h = Object.prototype.asGetEnumerableKeys, q = function(a) { + (function(n) { + (function(n) { + var k = Object.prototype.asGetProperty, u = Object.prototype.asSetProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asDeleteProperty, g = Object.prototype.asGetEnumerableKeys, q = function(a) { function m(a) { void 0 === a && (a = !1); this.weakKeys = !!a; @@ -15832,11 +15836,11 @@ Shumway.AVM2.XRegExp.install(); this.map.delete(Object(f)); var e; !this.weakKeys && 0 <= (e = this.keys.indexOf(f)) && this.keys.splice(e, 1); - return!0; + return !0; }; m.prototype.asGetEnumerableKeys = function() { if (m.isTraitsOrDynamicPrototype(this)) { - return h.call(this); + return g.call(this); } var a = [], f; for (f in this.primitiveMap) { @@ -15851,9 +15855,9 @@ Shumway.AVM2.XRegExp.install(); m.protocol = m.prototype; return m; }(a.ASNative); - p.Dictionary = q; - p.OriginalDictionary = q; - })(p.utils || (p.utils = {})); + n.Dictionary = q; + n.OriginalDictionary = q; + })(n.utils || (n.utils = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -15861,43 +15865,43 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.Debug.notImplemented, v = d.AVM2.ABC.Namespace, t = d.AVM2.Runtime.throwError; + var n = d.Debug.notImplemented, w = d.AVM2.ABC.Namespace, v = d.AVM2.Runtime.throwError; (function(d) { (function(d) { - var c = Object.prototype.asGetProperty, h = Object.prototype.asSetProperty, q = Object.prototype.asCallProperty, s = Object.prototype.asHasProperty, m = Object.prototype.asHasOwnProperty, g = Object.prototype.asHasTraitProperty, f = Object.prototype.asDeleteProperty, b = function(b) { + var c = Object.prototype.asGetProperty, g = Object.prototype.asSetProperty, q = Object.prototype.asCallProperty, r = Object.prototype.asHasProperty, m = Object.prototype.asHasOwnProperty, h = Object.prototype.asHasTraitProperty, f = Object.prototype.asDeleteProperty, b = function(b) { function a() { b.apply(this, arguments); } __extends(a, b); a.prototype.native_getProperty = function(b) { - t("IllegalOperationError", k.Errors.ProxyGetPropertyError); + v("IllegalOperationError", k.Errors.ProxyGetPropertyError); }; a.prototype.native_setProperty = function() { - t("IllegalOperationError", k.Errors.ProxySetPropertyError); + v("IllegalOperationError", k.Errors.ProxySetPropertyError); }; a.prototype.native_callProperty = function() { - t("IllegalOperationError", k.Errors.ProxyCallPropertyError); + v("IllegalOperationError", k.Errors.ProxyCallPropertyError); }; a.prototype.native_hasProperty = function() { - t("IllegalOperationError", k.Errors.ProxyHasPropertyError); + v("IllegalOperationError", k.Errors.ProxyHasPropertyError); }; a.prototype.native_deleteProperty = function() { - t("IllegalOperationError", k.Errors.ProxyDeletePropertyError); + v("IllegalOperationError", k.Errors.ProxyDeletePropertyError); }; a.prototype.native_getDescendants = function() { - t("IllegalOperationError", k.Errors.ProxyGetDescendantsError); + v("IllegalOperationError", k.Errors.ProxyGetDescendantsError); }; a.prototype.native_nextNameIndex = function() { - t("IllegalOperationError", k.Errors.ProxyNextNameIndexError); + v("IllegalOperationError", k.Errors.ProxyNextNameIndexError); }; a.prototype.native_nextName = function() { - t("IllegalOperationError", k.Errors.ProxyNextNameError); + v("IllegalOperationError", k.Errors.ProxyNextNameError); }; a.prototype.native_nextValue = function() { - t("IllegalOperationError", k.Errors.ProxyNextValueError); + v("IllegalOperationError", k.Errors.ProxyNextValueError); }; a.prototype.asGetProperty = function(b, a, e) { - return g.call(this, b, a, e) ? c.call(this, b, a, e) : q.call(this, [v.PROXY], "getProperty", 0, !1, [a]); + return h.call(this, b, a, e) ? c.call(this, b, a, e) : q.call(this, [w.PROXY], "getProperty", 0, !1, [a]); }; a.prototype.asGetNumericProperty = function(b) { return this.asGetProperty(null, b, 0); @@ -15906,28 +15910,28 @@ Shumway.AVM2.XRegExp.install(); this.asSetProperty(null, b, 0, a); }; a.prototype.asSetProperty = function(b, a, e, f) { - g.call(this, b, a, e) ? h.call(this, b, a, e, f) : q.call(this, [v.PROXY], "setProperty", 0, !1, [a, f]); + h.call(this, b, a, e) ? g.call(this, b, a, e, f) : q.call(this, [w.PROXY], "setProperty", 0, !1, [a, f]); }; a.prototype.asCallProperty = function(b, a, e, f, c) { - return g.call(this, b, a, e) ? q.call(this, b, a, e, !1, c) : q.call(this, [v.PROXY], "callProperty", 0, !1, [a].concat(c)); + return h.call(this, b, a, e) ? q.call(this, b, a, e, !1, c) : q.call(this, [w.PROXY], "callProperty", 0, !1, [a].concat(c)); }; a.prototype.asHasProperty = function(b, a, e) { - return g.call(this, b, a, e) ? s.call(this, b, a, e) : q.call(this, [v.PROXY], "hasProperty", 0, !1, [a]); + return h.call(this, b, a, e) ? r.call(this, b, a, e) : q.call(this, [w.PROXY], "hasProperty", 0, !1, [a]); }; a.prototype.asHasOwnProperty = function(b, a, e) { - return g.call(this, b, a, e) ? m.call(this, b, a, e) : q.call(this, [v.PROXY], "hasProperty", 0, !1, [a]); + return h.call(this, b, a, e) ? m.call(this, b, a, e) : q.call(this, [w.PROXY], "hasProperty", 0, !1, [a]); }; a.prototype.asDeleteProperty = function(b, a, e) { - return g.call(this, b, a, e) ? f.call(this, b, a, e) : q.call(this, [v.PROXY], "deleteProperty", 0, !1, [a]); + return h.call(this, b, a, e) ? f.call(this, b, a, e) : q.call(this, [w.PROXY], "deleteProperty", 0, !1, [a]); }; a.prototype.asNextName = function(b) { - p("Proxy asNextName"); + n("Proxy asNextName"); }; a.prototype.asNextValue = function(b) { - p("Proxy asNextValue"); + n("Proxy asNextValue"); }; a.prototype.asNextNameIndex = function(b) { - p("Proxy asNextNameIndex"); + n("Proxy asNextNameIndex"); }; a.protocol = a.prototype; return a; @@ -15942,7 +15946,7 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.Debug.notImplemented, v = d.Debug.unexpected, t = d.ArrayUtilities.DataBuffer; + var n = d.Debug.notImplemented, w = d.Debug.unexpected, v = d.ArrayUtilities.DataBuffer; (function(d) { (function(d) { var c = function(a) { @@ -15951,10 +15955,10 @@ Shumway.AVM2.XRegExp.install(); } __extends(c, a); Object.defineProperty(c, "dynamicPropertyWriter", {get:function() { - p("public flash.net.ObjectEncoding::get dynamicPropertyWriter"); + n("public flash.net.ObjectEncoding::get dynamicPropertyWriter"); return null; }, set:function(a) { - p("public flash.net.ObjectEncoding::set dynamicPropertyWriter"); + n("public flash.net.ObjectEncoding::set dynamicPropertyWriter"); }, enumerable:!0, configurable:!0}); c.AMF0 = 0; c.AMF3 = 3; @@ -15964,7 +15968,7 @@ Shumway.AVM2.XRegExp.install(); d.ObjectEncoding = c; })(d.net || (d.net = {})); })(a.flash || (a.flash = {})); - (function(p) { + (function(n) { (function(l) { var c = function(a) { function c() { @@ -15980,37 +15984,37 @@ Shumway.AVM2.XRegExp.install(); }; c.prototype.readObject = function() { switch(this._objectEncoding) { - case p.net.ObjectEncoding.AMF0: + case n.net.ObjectEncoding.AMF0: return k.AMF0.read(this); - case p.net.ObjectEncoding.AMF3: + case n.net.ObjectEncoding.AMF3: return k.AMF3.read(this); default: - v("Object Encoding"); + w("Object Encoding"); } }; c.prototype.writeObject = function(a) { switch(this._objectEncoding) { - case p.net.ObjectEncoding.AMF0: + case n.net.ObjectEncoding.AMF0: return k.AMF0.write(this, a); - case p.net.ObjectEncoding.AMF3: + case n.net.ObjectEncoding.AMF3: return k.AMF3.write(this, a); default: - v("Object Encoding"); + w("Object Encoding"); } }; - c.instanceConstructor = t; - c.staticNatives = [t]; - c.instanceNatives = [t.prototype]; + c.instanceConstructor = v; + c.staticNatives = [v]; + c.instanceNatives = [v.prototype]; c.callableConstructor = null; c.classInitializer = function() { - var a = t.prototype; + var a = v.prototype; d.ObjectUtilities.defineNonEnumerableProperty(a, "$BgtoJSON", a.toJSON); }; c.initializer = function(a) { - var h, g = 0; - a ? (a instanceof ArrayBuffer ? h = a.slice() : Array.isArray(a) ? h = (new Uint8Array(a)).buffer : "buffer" in a ? a.buffer instanceof ArrayBuffer ? h = (new Uint8Array(a.buffer)).buffer : a.buffer instanceof Uint8Array ? (h = a.buffer.byteOffset, h = a.buffer.buffer.slice(h, h + a.buffer.length)) : h = a.buffer.slice() : d.Debug.unexpected("Source type."), g = h.byteLength) : h = new ArrayBuffer(c.INITIAL_SIZE); - this._buffer = h; - this._length = g; + var g, h = 0; + a ? (a instanceof ArrayBuffer ? g = a.slice() : Array.isArray(a) ? g = (new Uint8Array(a)).buffer : "buffer" in a ? a.buffer instanceof ArrayBuffer ? g = (new Uint8Array(a.buffer)).buffer : a.buffer instanceof Uint8Array ? (g = a.buffer.byteOffset, g = a.buffer.buffer.slice(g, g + a.buffer.length)) : g = a.buffer.slice() : d.Debug.unexpected("Source type."), h = g.byteLength) : g = new ArrayBuffer(c.INITIAL_SIZE); + this._buffer = g; + this._length = h; this._position = 0; this._resetViews(); this._objectEncoding = c.defaultObjectEncoding; @@ -16019,12 +16023,12 @@ Shumway.AVM2.XRegExp.install(); }; c.protocol = c.prototype; c.INITIAL_SIZE = 128; - c._defaultObjectEncoding = p.net.ObjectEncoding.DEFAULT; + c._defaultObjectEncoding = n.net.ObjectEncoding.DEFAULT; return c; }(a.ASNative); l.ByteArray = c; - c.prototype.asGetNumericProperty = t.prototype.getValue; - c.prototype.asSetNumericProperty = t.prototype.setValue; + c.prototype.asGetNumericProperty = v.prototype.getValue; + c.prototype.asSetNumericProperty = v.prototype.setValue; l.OriginalByteArray = c; c = function(a) { function c() { @@ -16044,7 +16048,7 @@ Shumway.AVM2.XRegExp.install(); return c; }(a.ASNative); l.CompressionAlgorithm = c; - })(p.utils || (p.utils = {})); + })(n.utils || (n.utils = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -16052,7 +16056,7 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.Debug.notImplemented, k = d.Debug.somewhatImplemented, t = d.AVM2.Runtime.asCoerceString; + var n = d.Debug.notImplemented, k = d.Debug.somewhatImplemented, v = d.AVM2.Runtime.asCoerceString; (function(u) { (function(l) { var c = function(a) { @@ -16060,32 +16064,32 @@ Shumway.AVM2.XRegExp.install(); } __extends(c, a); Object.defineProperty(c, "enabled", {get:function() { - p("public flash.system.IME::static get enabled"); + n("public flash.system.IME::static get enabled"); }, set:function(a) { - p("public flash.system.IME::static set enabled"); + n("public flash.system.IME::static set enabled"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "conversionMode", {get:function() { - p("public flash.system.IME::static get conversionMode"); + n("public flash.system.IME::static get conversionMode"); }, set:function(a) { - t(a); - p("public flash.system.IME::static set conversionMode"); + v(a); + n("public flash.system.IME::static set conversionMode"); }, enumerable:!0, configurable:!0}); c.setCompositionString = function(a) { - t(a); - p("public flash.system.IME::static setCompositionString"); + v(a); + n("public flash.system.IME::static setCompositionString"); }; c.doConversion = function() { - p("public flash.system.IME::static doConversion"); + n("public flash.system.IME::static doConversion"); }; c.compositionSelectionChanged = function(a, c) { - p("public flash.system.IME::static compositionSelectionChanged"); + n("public flash.system.IME::static compositionSelectionChanged"); }; c.compositionAbandoned = function() { - p("public flash.system.IME::static compositionAbandoned"); + n("public flash.system.IME::static compositionAbandoned"); }; Object.defineProperty(c, "isSupported", {get:function() { k("public flash.system.IME::static get isSupported"); - return!1; + return !1; }, enumerable:!0, configurable:!0}); return c; }(a.ASNative); @@ -16096,10 +16100,10 @@ Shumway.AVM2.XRegExp.install(); } __extends(c, a); Object.defineProperty(c, "ime", {get:function() { - p("public flash.system.System::get ime"); + n("public flash.system.System::get ime"); }, enumerable:!0, configurable:!0}); c.setClipboard = function(a) { - a = t(a); + a = v(a); null === d.ClipboardService.instance ? console.warn("setClipboard is only available in the Firefox extension") : d.ClipboardService.instance.setClipboard(a); }; Object.defineProperty(c, "totalMemoryNumber", {get:function() { @@ -16141,7 +16145,7 @@ Shumway.AVM2.XRegExp.install(); return 26; }, enumerable:!0, configurable:!0}); c.getArgv = function() { - return[]; + return []; }; c.getRunmode = function() { return "mixed"; @@ -16159,14 +16163,14 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - var p = d.AVM2.ABC.Multiname, v = d.AVM2.ABC.ClassInfo, t = d.AVM2.ABC.ScriptInfo, u = d.AVM2.ABC.InstanceInfo, l = d.AVM2.ABC.Info, c = d.AVM2.ABC.MethodInfo, h = d.Debug.notImplemented, q = d.ArrayUtilities.popManyIntoVoid, s = function() { + var n = d.AVM2.ABC.Multiname, w = d.AVM2.ABC.ClassInfo, v = d.AVM2.ABC.ScriptInfo, u = d.AVM2.ABC.InstanceInfo, l = d.AVM2.ABC.Info, c = d.AVM2.ABC.MethodInfo, g = d.Debug.notImplemented, q = d.ArrayUtilities.popManyIntoVoid, r = function() { return function(b) { void 0 === b && (b = ""); this.message = b; this.name = "VerifierError"; }; }(); - a.VerifierError = s; + a.VerifierError = r; var m = function() { return function() { this.object = this.baseClass = this.type = null; @@ -16176,7 +16180,7 @@ Shumway.AVM2.XRegExp.install(); }; }(); a.TypeInformation = m; - var g = function() { + var h = function() { function a() { } a.from = function(e, f) { @@ -16185,24 +16189,24 @@ Shumway.AVM2.XRegExp.install(); return c; }; a.fromSimpleName = function(b, e) { - return a.fromName(p.fromSimpleName(b), e); + return a.fromName(n.fromSimpleName(b), e); }; a.fromName = function(b, e) { if (void 0 === b) { return a.Undefined; } - var f = p.isQName(b) ? p.getFullQualifiedName(b) : void 0; + var f = n.isQName(b) ? n.getFullQualifiedName(b) : void 0; if (f) { var c = a._cache.byQN[f]; if (c) { return c; } } - if (f === p.getPublicQualifiedName("void")) { + if (f === n.getPublicQualifiedName("void")) { return a.Void; } c = (c = e.findClassInfo(b)) ? a.from(c, e) : a.Any; - b.hasTypeParameter() && (c = new n(c, a.fromName(b.typeParameter, e))); + b.hasTypeParameter() && (c = new p(c, a.fromName(b.typeParameter, e))); return a._cache.byQN[f] = c; }; a.initializeTypes = function(b) { @@ -16243,31 +16247,31 @@ Shumway.AVM2.XRegExp.install(); return this === a.String; }; a.prototype.isScriptInfo = function() { - return!1; + return !1; }; a.prototype.isClassInfo = function() { - return!1; + return !1; }; a.prototype.isInstanceInfo = function() { - return!1; + return !1; }; a.prototype.isMethodInfo = function() { - return!1; + return !1; }; a.prototype.isTraitsType = function() { return this instanceof b; }; a.prototype.isParameterizedType = function() { - return this instanceof n; + return this instanceof p; }; a.prototype.isMethodType = function() { return this instanceof e; }; a.prototype.isMultinameType = function() { - return this instanceof r; + return this instanceof t; }; a.prototype.isConstantType = function() { - return this instanceof x; + return this instanceof C; }; a.prototype.isSubtypeOf = function(b) { return this === b || this.equals(b) ? !0 : this.merge(b) === this; @@ -16294,7 +16298,7 @@ Shumway.AVM2.XRegExp.install(); a._typesInitialized = !1; return a; }(); - a.Type = g; + a.Type = h; var f = function(b) { function a(e, f) { b.call(this); @@ -16306,10 +16310,10 @@ Shumway.AVM2.XRegExp.install(); return this.symbol; }; a.prototype.instanceType = function() { - return g.Any; + return h.Any; }; return a; - }(g); + }(h); a.AtomType = f; var b = function(b) { function a(e, f) { @@ -16320,39 +16324,39 @@ Shumway.AVM2.XRegExp.install(); __extends(a, b); a.prototype.instanceType = function() { var b = this.info; - return this._cachedType || (this._cachedType = g.from(b.instanceInfo, this.domain)); + return this._cachedType || (this._cachedType = h.from(b.instanceInfo, this.domain)); }; a.prototype.classType = function() { var b = this.info; - return this._cachedType || (this._cachedType = g.from(b.classInfo, this.domain)); + return this._cachedType || (this._cachedType = h.from(b.classInfo, this.domain)); }; a.prototype.super = function() { - if (this.info instanceof v) { - return g.Class; + if (this.info instanceof w) { + return h.Class; } var b = this.info; - return b.superName ? g.fromName(b.superName, this.domain).instanceType() : null; + return b.superName ? h.fromName(b.superName, this.domain).instanceType() : null; }; a.prototype.findTraitByName = function(b, a, e) { var f = !e, c; - if (p.isQName(a)) { - for (a = p.getQualifiedName(a), n = 0;n < b.length;n++) { - if (c = b[n], p.getQualifiedName(c.name) === a && !(e && c.isGetter() || f && c.isSetter())) { + if (n.isQName(a)) { + for (a = n.getQualifiedName(a), p = 0;p < b.length;p++) { + if (c = b[p], n.getQualifiedName(c.name) === a && !(e && c.isGetter() || f && c.isSetter())) { return c; } } } else { - for (var g, n = 0;n < a.namespaces.length;n++) { - if (f = a.getQName(n), a.namespaces[n].isDynamic()) { - g = f; + for (var h, p = 0;p < a.namespaces.length;p++) { + if (f = a.getQName(p), a.namespaces[p].isDynamic()) { + h = f; } else { if (c = this.findTraitByName(b, f, e)) { return c; } } } - if (g) { - return this.findTraitByName(b, g, e); + if (h) { + return this.findTraitByName(b, h, e); } } }; @@ -16390,7 +16394,7 @@ Shumway.AVM2.XRegExp.install(); return this; } if (this.isNumeric() && b.isNumeric()) { - return g.Number; + return h.Number; } if (this.isInstanceInfo() && b.isInstanceInfo()) { for (var a = [], e = this;e;e = e.super()) { @@ -16403,16 +16407,16 @@ Shumway.AVM2.XRegExp.install(); } } } - return g.Object; + return h.Object; } } - return g.Any; + return h.Any; }; a.prototype.isScriptInfo = function() { - return this.info instanceof t; + return this.info instanceof v; }; a.prototype.isClassInfo = function() { - return this.info instanceof v; + return this.info instanceof w; }; a.prototype.isMethodInfo = function() { return this.info instanceof c; @@ -16424,13 +16428,13 @@ Shumway.AVM2.XRegExp.install(); return this.isInstanceInfo() || this.isClassInfo(); }; a.prototype.applyType = function(b) { - return new n(this, b); + return new p(this, b); }; a.prototype._getInfoName = function() { - if (this.info instanceof t) { + if (this.info instanceof v) { return "SI"; } - if (this.info instanceof v) { + if (this.info instanceof w) { return "CI:" + this.info.instanceInfo.name.name; } if (this.info instanceof u) { @@ -16442,31 +16446,31 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.toString = function() { switch(this) { - case g.Int: + case h.Int: return "I"; - case g.Uint: + case h.Uint: return "U"; - case g.Array: + case h.Array: return "A"; - case g.Object: + case h.Object: return "O"; - case g.String: + case h.String: return "S"; - case g.Number: + case h.Number: return "N"; - case g.Boolean: + case h.Boolean: return "B"; - case g.Function: + case h.Function: return "F"; } return this._getInfoName(); }; return a; - }(g); + }(h); a.TraitsType = b; var e = function(b) { function a(e, f) { - b.call(this, g.Function.info, f); + b.call(this, h.Function.info, f); this.methodInfo = e; } __extends(a, b); @@ -16474,12 +16478,12 @@ Shumway.AVM2.XRegExp.install(); return "MT " + this.methodInfo; }; a.prototype.returnType = function() { - return this._cachedType || (this._cachedType = g.fromName(this.methodInfo.returnType, this.domain)); + return this._cachedType || (this._cachedType = h.fromName(this.methodInfo.returnType, this.domain)); }; return a; }(b); a.MethodType = e; - var r = function(b) { + var t = function(b) { function a(e, f, c) { b.call(this); this.namespaces = e; @@ -16491,9 +16495,9 @@ Shumway.AVM2.XRegExp.install(); return "MN"; }; return a; - }(g); - a.MultinameType = r; - var n = function(b) { + }(h); + a.MultinameType = t; + var p = function(b) { function a(e, f) { b.call(this, e.info, e.domain); this.type = e; @@ -16502,8 +16506,8 @@ Shumway.AVM2.XRegExp.install(); __extends(a, b); return a; }(b); - a.ParameterizedType = n; - var x = function(b) { + a.ParameterizedType = p; + var C = function(b) { function a(e) { b.call(this); this.value = e; @@ -16521,8 +16525,8 @@ Shumway.AVM2.XRegExp.install(); }); }; return a; - }(g); - a.ConstantType = x; + }(h); + a.ConstantType = C; var I = function() { function b() { this.originalId = this.id = b.id += 1; @@ -16549,28 +16553,28 @@ Shumway.AVM2.XRegExp.install(); }; b._arrayEquals = function(b, a) { if (b.length != a.length) { - return!1; + return !1; } for (var e = b.length - 1;0 <= e;e--) { if (!b[e].equals(a[e])) { - return!1; + return !1; } } - return!0; + return !0; }; b.prototype.isSubset = function(a) { return b._arraySubset(this.stack, a.stack) && b._arraySubset(this.scope, a.scope) && b._arraySubset(this.local, a.local); }; b._arraySubset = function(b, a) { if (b.length != a.length) { - return!1; + return !1; } for (var e = b.length - 1;0 <= e;e--) { if (b[e] !== a[e] && !b[e].equals(a[e]) && b[e].merge(a[e]) !== b[e]) { - return!1; + return !1; } } - return!0; + return !0; }; b.prototype.merge = function(a) { b._mergeArrays(this.local, a.local); @@ -16586,17 +16590,17 @@ Shumway.AVM2.XRegExp.install(); return b; }(); a.State = I; - var z = function() { + var B = function() { function a(b, e, f) { this.methodInfo = b; this.domain = e; this.savedScope = f; this.thisType = this.writer = null; this.pushAnyCount = this.pushCount = 0; - g.initializeTypes(e); + h.initializeTypes(e); d.AVM2.Verifier.traceLevel.value && (this.writer = new d.IndentingWriter); this.multinames = b.abc.constantPool.multinames; - this.returnType = g.Undefined; + this.returnType = h.Undefined; } a.prototype.verify = function() { this.writer && this.methodInfo.trace(this.writer); @@ -16604,17 +16608,17 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype._prepareEntryState = function() { var b = new I, a = this.methodInfo; - this.thisType = a.holder ? g.from(a.holder, this.domain) : g.Any; + this.thisType = a.holder ? h.from(a.holder, this.domain) : h.Any; b.local.push(this.thisType); for (var e = a.parameters, f = 0;f < e.length;f++) { - b.local.push(g.fromName(e[f].type, this.domain).instanceType()); + b.local.push(h.fromName(e[f].type, this.domain).instanceType()); } e = a.localCount - a.parameters.length - 1; if (a.needsRest() || a.needsArguments()) { - b.local.push(g.Array), e -= 1; + b.local.push(h.Array), --e; } for (f = 0;f < e;f++) { - b.local.push(g.Undefined); + b.local.push(h.Undefined); } return b; }; @@ -16627,11 +16631,11 @@ Shumway.AVM2.XRegExp.install(); }); e[0].verifierEntryState = b; for (c.push(e[0]);!c.isEmpty();) { - var g = c.pop(), n = g.verifierEntryState.clone(); - this._verifyBlock(g, n); - g.succs.forEach(function(b) { - c.contains(b) ? (a && a.writeLn("Forward Merged Block: " + b.bid + " " + n.toString() + " with " + b.verifierEntryState.toString()), b.verifierEntryState.merge(n), a && a.writeLn("Merged State: " + b.verifierEntryState)) : b.verifierEntryState ? b.verifierEntryState.isSubset(n) || (a && a.writeLn("Backward Merged Block: " + g.bid + " with " + b.bid + " " + n.toString() + " with " + b.verifierEntryState.toString()), b.verifierEntryState.merge(n), c.push(b), a && a.writeLn("Merged State: " + - b.verifierEntryState)) : (b.verifierEntryState = n, c.push(b), a && a.writeLn("Added Block: " + b.bid + " to worklist: " + b.verifierEntryState.toString())); + var h = c.pop(), p = h.verifierEntryState.clone(); + this._verifyBlock(h, p); + h.succs.forEach(function(b) { + c.contains(b) ? (a && a.writeLn("Forward Merged Block: " + b.bid + " " + p.toString() + " with " + b.verifierEntryState.toString()), b.verifierEntryState.merge(p), a && a.writeLn("Merged State: " + b.verifierEntryState)) : b.verifierEntryState ? b.verifierEntryState.isSubset(p) || (a && a.writeLn("Backward Merged Block: " + h.bid + " with " + b.bid + " " + p.toString() + " with " + b.verifierEntryState.toString()), b.verifierEntryState.merge(p), c.push(b), a && a.writeLn("Merged State: " + + b.verifierEntryState)) : (b.verifierEntryState = p, c.push(b), a && a.writeLn("Added Block: " + b.bid + " to worklist: " + b.verifierEntryState.toString())); }); } a && (a.writeLn("Inferred return type: " + this.returnType), a.writeLn("Quality pushCount: " + this.pushCount + ", pushAnyCount: " + this.pushAnyCount)); @@ -16639,130 +16643,130 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype._verifyBlock = function(a, f) { function c() { - return U.ti || (U.ti = new m); + return V.ti || (V.ti = new m); } - function n(b) { + function p(b) { c().type = b; - w.push(b); - K.pushCount++; - b === g.Any && K.pushAnyCount++; + x.push(b); + N.pushCount++; + b === h.Any && N.pushAnyCount++; } function l(b) { - return w.pop(); + return x.pop(); } function I() { - h("Bytecode not implemented in verifier: " + U); + g("Bytecode not implemented in verifier: " + V); } - function z() { - var b = K.multinames[U.index]; + function B() { + var b = N.multinames[V.index]; if (b.isRuntime()) { var a; - a = b.isRuntimeName() ? l() : x.from(b.name); + a = b.isRuntimeName() ? l() : C.from(b.name); var e; - e = b.isRuntimeNamespace() ? [l()] : x.fromArray(b.namespaces); - return new r(e, a, b.flags); + e = b.isRuntimeNamespace() ? [l()] : C.fromArray(b.namespaces); + return new t(e, a, b.flags); } - return x.from(b); + return C.from(b); } - function t(b) { - return b.isMultinameType() && b.asMultinameType().name.isNumeric() || b.isConstantType() && p.isNumeric(b.value) ? !0 : !1; + function v(b) { + return b.isMultinameType() && b.asMultinameType().name.isNumeric() || b.isConstantType() && n.isNumeric(b.value) ? !0 : !1; } function u(b, a) { if (b.isTraitsType() || b.isParameterizedType()) { var f = b.getTrait(a, !1, !0); if (f) { - P && P.debugLn("getProperty(" + a + ") -> " + f); + R && R.debugLn("getProperty(" + a + ") -> " + f); c().trait = f; if (f.isSlot() || f.isConst()) { - return g.fromName(f.typeName, K.domain).instanceType(); + return h.fromName(f.typeName, N.domain).instanceType(); } if (f.isGetter()) { - return g.fromName(f.methodInfo.returnType, K.domain).instanceType(); + return h.fromName(f.methodInfo.returnType, N.domain).instanceType(); } if (f.isClass()) { - return g.from(f.classInfo, K.domain); + return h.from(f.classInfo, N.domain); } if (f.isMethod()) { - return new e(f.methodInfo, K.domain); + return new e(f.methodInfo, N.domain); } } else { - if (t(a) && b.isParameterizedType()) { - return f = b.asParameterizedType().parameter, P && P.debugLn("getProperty(" + a + ") -> " + f), f; + if (v(a) && b.isParameterizedType()) { + return f = b.asParameterizedType().parameter, R && R.debugLn("getProperty(" + a + ") -> " + f), f; } - b !== g.Array && P && P.warnLn("getProperty(" + a + ")"); + b !== h.Array && R && R.warnLn("getProperty(" + a + ")"); } } - return g.Any; + return h.Any; } - function v(b, a, e) { + function w(b, a, e) { if (b.isTraitsType() || b.isParameterizedType()) { - (e = b.getTrait(a, !0, !0)) ? (P && P.debugLn("setProperty(" + a + ") -> " + e), c().trait = e) : t(a) && b.isParameterizedType() || b !== g.Array && P && P.warnLn("setProperty(" + a + ")"); + (e = b.getTrait(a, !0, !0)) ? (R && R.debugLn("setProperty(" + a + ") -> " + e), c().trait = e) : v(a) && b.isParameterizedType() || b !== h.Array && R && R.warnLn("setProperty(" + a + ")"); } } function D(b, a) { if (b.isMultinameType()) { - return g.Any; + return h.Any; } - for (var e = K.savedScope, f = X.length - 1;f >= -e.length;f--) { - var n = 0 <= f ? X[f] : e[e.length + f]; - if (n.isTraitsType()) { - if (n.getTrait(b, !1, !0)) { - c().scopeDepth = X.length - f - 1; - if (n.isClassInfo() || n.isScriptInfo()) { - c().object = k.Runtime.LazyInitializer.create(n.info); + for (var e = N.savedScope, f = Y.length - 1;f >= -e.length;f--) { + var p = 0 <= f ? Y[f] : e[e.length + f]; + if (p.isTraitsType()) { + if (p.getTrait(b, !1, !0)) { + c().scopeDepth = Y.length - f - 1; + if (p.isClassInfo() || p.isScriptInfo()) { + c().object = k.Runtime.LazyInitializer.create(p.info); } - P && P.debugLn("findProperty(" + b + ") -> " + n); - return n; + R && R.debugLn("findProperty(" + b + ") -> " + p); + return p; } } else { - return P && P.warnLn("findProperty(" + b + ")"), g.Any; + return R && R.warnLn("findProperty(" + b + ")"), h.Any; } } - if (e = K.domain.findDefiningScript(b.value, !1)) { - return c().object = k.Runtime.LazyInitializer.create(e.script), n = g.from(e.script, K.domain), P && P.debugLn("findProperty(" + b + ") -> " + n), n; + if (e = N.domain.findDefiningScript(b.value, !1)) { + return c().object = k.Runtime.LazyInitializer.create(e.script), p = h.from(e.script, N.domain), R && R.debugLn("findProperty(" + b + ") -> " + p), p; } - P && P.warnLn("findProperty(" + b + ")"); - return g.Any; + R && R.warnLn("findProperty(" + b + ")"); + return h.Any; } function M(a) { - if (a instanceof b && (a = a.getTraitAt(U.index), P && P.debugLn("accessSlot() -> " + a), a)) { + if (a instanceof b && (a = a.getTraitAt(V.index), R && R.debugLn("accessSlot() -> " + a), a)) { c().trait = a; if (a.isSlot()) { - return g.fromName(a.typeName, K.domain).instanceType(); + return h.fromName(a.typeName, N.domain).instanceType(); } if (a.isClass()) { - return g.from(a.classInfo, K.domain); + return h.from(a.classInfo, N.domain); } } - return g.Any; + return h.Any; } - function S(b) { + function U(b) { if (b.isTraitsType() || b.isParameterizedType()) { - return b === g.Function || b === g.Class || b === g.Object ? g.Object : b.instanceType(); + return b === h.Function || b === h.Class || b === h.Object ? h.Object : b.instanceType(); } - P && P.warnLn("construct(" + b + ")"); - return g.Any; + R && R.warnLn("construct(" + b + ")"); + return h.Any; } - for (var K = this, P = this.writer, R = this.methodInfo, W = R.analysis.bytecodes, ba = f.local, w = f.stack, X = f.scope, U, $ = this.savedScope[0], Y, L, Z, ca = a.position, ga = a.end.position;ca <= ga;ca++) { - if (U = W[ca], Y = U.op, 240 !== Y && 241 !== Y) { - switch(P && 1 < d.AVM2.Verifier.traceLevel.value && P.writeLn(("stateBefore: " + f.toString() + " $$[" + this.savedScope.join(", ") + "]").padRight(" ", 100) + " : " + ca + ", " + U.toString(R.abc)), Y) { + for (var N = this, R = this.writer, T = this.methodInfo, X = T.analysis.bytecodes, da = f.local, x = f.stack, Y = f.scope, V, ba = this.savedScope[0], Z, O, aa, ea = a.position, ia = a.end.position;ea <= ia;ea++) { + if (V = X[ea], Z = V.op, 240 !== Z && 241 !== Z) { + switch(R && 1 < d.AVM2.Verifier.traceLevel.value && R.writeLn(("stateBefore: " + f.toString() + " $$[" + this.savedScope.join(", ") + "]").padRight(" ", 100) + " : " + ea + ", " + V.toString(T.abc)), Z) { case 1: break; case 3: l(); break; case 4: - Z = z(); - L = l(); + aa = B(); + O = l(); c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); - n(u(L.super(), Z)); + p(u(O.super(), aa)); break; case 5: - Y = l(); - Z = z(); - L = l(); + Z = l(); + aa = B(); + O = l(); c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); - v(L.super(), Z, Y); + w(O.super(), aa, Z); break; case 6: I(); @@ -16771,7 +16775,7 @@ Shumway.AVM2.XRegExp.install(); I(); break; case 8: - f.local[U.index] = g.Undefined; + f.local[V.index] = h.Undefined; break; case 10: I(); @@ -16813,80 +16817,80 @@ Shumway.AVM2.XRegExp.install(); l(); break; case 27: - l(g.Int); + l(h.Int); break; case 29: - X.pop(); + Y.pop(); break; case 30: ; case 35: - l(g.Int); + l(h.Int); l(); - n(g.Any); + p(h.Any); break; case 31: - n(g.Boolean); + p(h.Boolean); break; case 50: - n(g.Boolean); + p(h.Boolean); break; case 32: - n(g.Null); + p(h.Null); break; case 33: - n(g.Undefined); + p(h.Undefined); break; case 34: I(); break; case 36: - n(g.Int); + p(h.Int); break; case 37: - n(g.Int); + p(h.Int); break; case 44: - n(g.String); + p(h.String); break; case 45: - n(g.Int); + p(h.Int); break; case 46: - n(g.Uint); + p(h.Uint); break; case 47: - n(g.Number); + p(h.Number); break; case 38: - n(g.Boolean); + p(h.Boolean); break; case 39: - n(g.Boolean); + p(h.Boolean); break; case 40: - n(g.Number); + p(h.Number); break; case 41: l(); break; case 42: - Y = l(); - n(Y); - n(Y); + Z = l(); + p(Z); + p(Z); break; case 43: - L = l(); - Z = l(); - n(L); - n(Z); + O = l(); + aa = l(); + p(O); + p(aa); break; case 28: l(); - X.push(g.Any); + Y.push(h.Any); break; case 48: - X.push(l()); + Y.push(l()); break; case 49: I(); @@ -16896,36 +16900,36 @@ Shumway.AVM2.XRegExp.install(); case 54: ; case 55: - n(g.Int); + p(h.Int); break; case 56: ; case 57: - n(g.Number); + p(h.Number); break; case 58: ; case 59: ; case 60: - l(g.Int); + l(h.Int); break; case 61: ; case 62: - l(g.Number); + l(h.Number); break; case 64: - n(g.Function); + p(h.Function); break; case 65: - q(w, U.argCount); - L = l(); + q(x, V.argCount); + O = l(); l(); - n(g.Any); + p(h.Any); break; case 67: - throw new s("callmethod");; + throw new r("callmethod");; case 68: I(); break; @@ -16938,39 +16942,39 @@ Shumway.AVM2.XRegExp.install(); case 70: ; case 76: - q(w, U.argCount); - Z = z(); - L = l(); - if (69 === Y || 78 === Y) { - L = this.thisType.super(), c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); + q(x, V.argCount); + aa = B(); + O = l(); + if (69 === Z || 78 === Z) { + O = this.thisType.super(), c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); } - L = u(L, Z); - if (79 === Y || 78 === Y) { + O = u(O, aa); + if (79 === Z || 78 === Z) { break; } - L = L.isMethodType() ? L.asMethodType().returnType().instanceType() : L.isTraitsType() && L.isClassInfo() ? L.instanceType() : g.Any; - n(L); + O = O.isMethodType() ? O.asMethodType().returnType().instanceType() : O.isTraitsType() && O.isClassInfo() ? O.instanceType() : h.Any; + p(O); break; case 71: - this.returnType.merge(g.Undefined); + this.returnType.merge(h.Undefined); break; case 72: - L = l(); - R.returnType && (Z = g.fromName(R.returnType, this.domain).instanceType(), Z.isSubtypeOf(L) && (c().noCoercionNeeded = !0)); + O = l(); + T.returnType && (aa = h.fromName(T.returnType, this.domain).instanceType(), aa.isSubtypeOf(O) && (c().noCoercionNeeded = !0)); break; case 73: - q(w, U.argCount); - w.pop(); - this.thisType.isInstanceInfo() && this.thisType.super() === g.Object ? c().noCallSuperNeeded = !0 : c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); + q(x, V.argCount); + x.pop(); + this.thisType.isInstanceInfo() && this.thisType.super() === h.Object ? c().noCallSuperNeeded = !0 : c().baseClass = k.Runtime.LazyInitializer.create(this.thisType.asTraitsType().super().classType().info); break; case 66: - q(w, U.argCount); - n(S(l())); + q(x, V.argCount); + p(U(l())); break; case 74: - q(w, U.argCount); - Z = z(); - n(S(u(w.pop(), Z))); + q(x, V.argCount); + aa = B(); + p(U(u(x.pop(), aa))); break; case 75: I(); @@ -16985,73 +16989,73 @@ Shumway.AVM2.XRegExp.install(); case 82: break; case 83: - Y = l(); - L = l(); - L === g.Any ? n(g.Any) : n(L.applyType(Y)); + Z = l(); + O = l(); + O === h.Any ? p(h.Any) : p(O.applyType(Z)); break; case 84: I(); break; case 85: - q(w, 2 * U.argCount); - n(g.Object); + q(x, 2 * V.argCount); + p(h.Object); break; case 86: - q(w, U.argCount); - n(g.Array); + q(x, V.argCount); + p(h.Array); break; case 87: - n(g.from(this.methodInfo, this.domain)); + p(h.from(this.methodInfo, this.domain)); break; case 88: - n(g.Any); + p(h.Any); break; case 89: - z(); + B(); l(); - n(g.XMLList); + p(h.XMLList); break; case 90: - n(g.Any); + p(h.Any); break; case 93: - n(D(z(), !0)); + p(D(B(), !0)); break; case 94: - n(D(z(), !1)); + p(D(B(), !1)); break; case 95: I(); break; case 96: - Z = z(); - n(u(D(Z, !0), Z)); + aa = B(); + p(u(D(aa, !0), aa)); break; case 104: ; case 97: - Y = l(); - Z = z(); - L = l(); - v(L, Z, Y); + Z = l(); + aa = B(); + O = l(); + w(O, aa, Z); break; case 98: - n(ba[U.index]); + p(da[V.index]); break; case 99: - ba[U.index] = l(); + da[V.index] = l(); break; case 100: - n($); - c().object = k.Runtime.LazyInitializer.create($.asTraitsType().info); + p(ba); + c().object = k.Runtime.LazyInitializer.create(ba.asTraitsType().info); break; case 101: - n(X[U.index]); + p(Y[V.index]); break; case 102: - Z = z(); - L = l(); - n(u(L, Z)); + aa = B(); + O = l(); + p(u(O, aa)); break; case 103: I(); @@ -17060,20 +17064,20 @@ Shumway.AVM2.XRegExp.install(); I(); break; case 106: - z(); + B(); l(); - n(g.Boolean); + p(h.Boolean); break; case 107: I(); break; case 108: - n(M(l())); + p(M(l())); break; case 109: - Y = l(); - L = l(); - M(L); + Z = l(); + O = l(); + M(O); break; case 110: I(); @@ -17083,39 +17087,39 @@ Shumway.AVM2.XRegExp.install(); break; case 112: l(); - n(g.String); + p(h.String); break; case 113: l(); - n(g.String); + p(h.String); break; case 114: l(); - n(g.String); + p(h.String); break; case 131: ; case 115: l(); - n(g.Int); + p(h.Int); break; case 136: ; case 116: l(); - n(g.Uint); + p(h.Uint); break; case 132: ; case 117: l(); - n(g.Number); + p(h.Number); break; case 129: ; case 118: l(); - n(g.Boolean); + p(h.Boolean); break; case 119: I(); @@ -17124,7 +17128,7 @@ Shumway.AVM2.XRegExp.install(); break; case 121: l(); - n(g.Number); + p(h.Number); break; case 122: I(); @@ -17133,27 +17137,27 @@ Shumway.AVM2.XRegExp.install(); I(); break; case 128: - L = l(); - Z = g.fromName(this.multinames[U.index], this.domain).instanceType(); - Z.isSubtypeOf(L) && (c().noCoercionNeeded = !0); - n(Z); + O = l(); + aa = h.fromName(this.multinames[V.index], this.domain).instanceType(); + aa.isSubtypeOf(O) && (c().noCoercionNeeded = !0); + p(aa); break; case 130: break; case 133: l(); - n(g.String); + p(h.String); break; case 134: - L = l(); - Z = g.fromName(this.multinames[U.index], this.domain).instanceType(); - Z.isSubtypeOf(L) && (c().noCoercionNeeded = !0); - n(Z); + O = l(); + aa = h.fromName(this.multinames[V.index], this.domain).instanceType(); + aa.isSubtypeOf(O) && (c().noCoercionNeeded = !0); + p(aa); break; case 135: - L = l(); + O = l(); l(); - L === g.Class ? n(L) : L.isTraitsType() ? n(L.instanceType()) : n(g.Any); + O === h.Class ? p(O) : O.isTraitsType() ? p(O.instanceType()) : p(h.Any); break; case 137: I(); @@ -17164,25 +17168,25 @@ Shumway.AVM2.XRegExp.install(); ; case 147: l(); - n(g.Number); + p(h.Number); break; case 146: ; case 148: - ba[U.index] = g.Number; + da[V.index] = h.Number; break; case 149: l(); - n(g.String); + p(h.String); break; case 150: l(); - n(g.Boolean); + p(h.Boolean); break; case 160: - Z = l(); - L = l(); - L.isNumeric() && Z.isNumeric() ? n(g.Number) : L === g.String || Z === g.String ? n(g.String) : n(g.Any); + aa = l(); + O = l(); + O.isNumeric() && aa.isNumeric() ? p(h.Number) : O === h.String || aa === h.String ? p(h.String) : p(h.Any); break; case 161: ; @@ -17193,7 +17197,7 @@ Shumway.AVM2.XRegExp.install(); case 164: l(); l(); - n(g.Number); + p(h.Number); break; case 168: ; @@ -17208,11 +17212,11 @@ Shumway.AVM2.XRegExp.install(); case 167: l(); l(); - n(g.Int); + p(h.Int); break; case 151: l(); - n(g.Int); + p(h.Int); break; case 171: ; @@ -17231,21 +17235,21 @@ Shumway.AVM2.XRegExp.install(); case 180: l(); l(); - n(g.Boolean); + p(h.Boolean); break; case 178: l(); - n(g.Boolean); + p(h.Boolean); break; case 179: l(); l(); - n(g.Boolean); + p(h.Boolean); break; case 194: ; case 195: - ba[U.index] = g.Int; + da[V.index] = h.Int; break; case 193: ; @@ -17253,7 +17257,7 @@ Shumway.AVM2.XRegExp.install(); ; case 196: l(); - n(g.Int); + p(h.Int); break; case 197: ; @@ -17262,7 +17266,7 @@ Shumway.AVM2.XRegExp.install(); case 199: l(); l(); - n(g.Int); + p(h.Int); break; case 208: ; @@ -17271,7 +17275,7 @@ Shumway.AVM2.XRegExp.install(); case 210: ; case 211: - n(ba[Y - 208]); + p(da[Z - 208]); break; case 212: ; @@ -17280,7 +17284,7 @@ Shumway.AVM2.XRegExp.install(); case 214: ; case 215: - ba[Y - 212] = l(); + da[Z - 212] = l(); break; case 239: break; @@ -17289,7 +17293,7 @@ Shumway.AVM2.XRegExp.install(); case 243: break; default: - console.info("Not Implemented: " + U); + console.info("Not Implemented: " + V); } } } @@ -17301,12 +17305,12 @@ Shumway.AVM2.XRegExp.install(); b.prototype._prepareScopeObjects = function(b, a) { var e = b.abc.applicationDomain; return a.getScopeObjects().map(function(b) { - return b instanceof l ? g.from(b, e) : b instanceof d.AVM2.Runtime.Global ? g.from(b.scriptInfo, e) : b instanceof d.AVM2.AS.ASClass ? g.from(b.classInfo, e) : b instanceof d.AVM2.Runtime.ActivationInfo ? g.from(b.methodInfo, e) : b.class ? g.from(b.class.classInfo.instanceInfo, e) : g.Any; + return b instanceof l ? h.from(b, e) : b instanceof d.AVM2.Runtime.Global ? h.from(b.scriptInfo, e) : b instanceof d.AVM2.AS.ASClass ? h.from(b.classInfo, e) : b instanceof d.AVM2.Runtime.ActivationInfo ? h.from(b.methodInfo, e) : b.class ? h.from(b.class.classInfo.instanceInfo, e) : h.Any; }); }; b.prototype.verifyMethod = function(b, a) { var e = this._prepareScopeObjects(b, a); - (new z(b, b.abc.applicationDomain, e)).verify(); + (new B(b, b.abc.applicationDomain, e)).verify(); }; return b; }(); @@ -17323,25 +17327,25 @@ Shumway.AVM2.XRegExp.install(); a(b[e]); } } - function t(a) { - var n, q = d.StringUtilities; + function v(a) { + var p, q = d.StringUtilities; if (a instanceof e) { return a.value instanceof u ? a.value.name : a.value; } if (a instanceof f) { return a.name; } - if (a instanceof g) { - return n = q.concat3("|", a.id, "|"), n; - } if (a instanceof h) { - return n = q.concat3("{", a.id, "}"), n; + return p = q.concat3("|", a.id, "|"), p; + } + if (a instanceof g) { + return p = q.concat3("{", a.id, "}"), p; } if (a instanceof b) { - return 3 === a.type ? (n = q.concat5("[", a.id, "->", a.argument.id, "]"), n) : (n = q.concat3("(", a.id, ")"), n); + return 3 === a.type ? (p = q.concat5("[", a.id, "->", a.argument.id, "]"), p) : (p = q.concat3("(", a.id, ")"), p); } if (a instanceof m) { - return n = q.concat3("(", a.id, ")"), n; + return p = q.concat3("(", a.id, ")"), p; } if (a instanceof c) { return a.id; @@ -17373,13 +17377,13 @@ Shumway.AVM2.XRegExp.install(); }; b.prototype.toString = function(b) { if (b) { - return t(this); + return v(this); } var a = []; this.visitInputs(function(b) { - a.push(t(b)); + a.push(v(b)); }); - b = t(this) + " = " + this.nodeName.toUpperCase(); + b = v(this) + " = " + this.nodeName.toUpperCase(); a.length && (b += " " + a.join(", ")); return b; }; @@ -17391,9 +17395,9 @@ Shumway.AVM2.XRegExp.install(); b.prototype.replaceInput = function(a, e) { var f = 0, c; for (c in this) { - var g = this[c]; - g instanceof b && g === a && (this[c] = e, f++); - g instanceof Array && (f += g.replace(a, e)); + var h = this[c]; + h instanceof b && h === a && (this[c] = e, f++); + h instanceof Array && (f += h.replace(a, e)); } return f; }; @@ -17402,15 +17406,15 @@ Shumway.AVM2.XRegExp.install(); }(); a.Node = c; c.prototype.nodeName = "Node"; - var h = function(b) { + var g = function(b) { function a() { b.call(this); } __extends(a, b); return a; }(c); - a.Control = h; - h.prototype.nodeName = "Control"; + a.Control = g; + g.prototype.nodeName = "Control"; var q = function(b) { function a(e) { b.call(this); @@ -17421,7 +17425,7 @@ Shumway.AVM2.XRegExp.install(); k(this.predecessors, b); }; return a; - }(h); + }(g); a.Region = q; q.prototype.nodeName = "Region"; q = function(b) { @@ -17448,10 +17452,10 @@ Shumway.AVM2.XRegExp.install(); b(this.control); }; return a; - }(h); + }(g); a.End = q; q.prototype.nodeName = "End"; - var s = function(b) { + var r = function(b) { function a(e, f, c) { b.call(this, e); this.store = f; @@ -17465,9 +17469,9 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.Stop = s; - s.prototype.nodeName = "Stop"; - s = function(b) { + a.Stop = r; + r.prototype.nodeName = "Stop"; + r = function(b) { function a(e, f) { b.call(this, e); this.predicate = f; @@ -17479,9 +17483,9 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.If = s; - s.prototype.nodeName = "If"; - s = function(b) { + a.If = r; + r.prototype.nodeName = "If"; + r = function(b) { function a(e, f) { b.call(this, e); this.determinant = f; @@ -17493,8 +17497,8 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.Switch = s; - s.prototype.nodeName = "Switch"; + a.Switch = r; + r.prototype.nodeName = "Switch"; q = function(b) { function a(e) { b.call(this, e); @@ -17541,13 +17545,13 @@ Shumway.AVM2.XRegExp.install(); }(m); a.StoreDependent = q; q.prototype.nodeName = "StoreDependent"; - s = function(b) { - function a(e, f, c, g, n, h) { + r = function(b) { + function a(e, f, c, h, p, g) { b.call(this, e, f); this.callee = c; - this.object = g; - this.args = n; - this.flags = h; + this.object = h; + this.args = p; + this.flags = g; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17560,13 +17564,13 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.Call = s; - s.prototype.nodeName = "Call"; - s = function(b) { - function a(e, f, c, g) { + a.Call = r; + r.prototype.nodeName = "Call"; + r = function(b) { + function a(e, f, c, h) { b.call(this, e, f); this.callee = c; - this.args = g; + this.args = h; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17578,13 +17582,13 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.New = s; - s.prototype.nodeName = "New"; - s = function(b) { - function a(e, f, c, g) { + a.New = r; + r.prototype.nodeName = "New"; + r = function(b) { + function a(e, f, c, h) { b.call(this, e, f); this.object = c; - this.name = g; + this.name = h; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17596,14 +17600,14 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.GetProperty = s; - s.prototype.nodeName = "GetProperty"; - s = function(b) { - function a(e, f, c, g, n) { + a.GetProperty = r; + r.prototype.nodeName = "GetProperty"; + r = function(b) { + function a(e, f, c, h, p) { b.call(this, e, f); this.object = c; - this.name = g; - this.value = n; + this.name = h; + this.value = p; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17616,13 +17620,13 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.SetProperty = s; - s.prototype.nodeName = "SetProperty"; - s = function(b) { - function a(e, f, c, g) { + a.SetProperty = r; + r.prototype.nodeName = "SetProperty"; + r = function(b) { + function a(e, f, c, h) { b.call(this, e, f); this.object = c; - this.name = g; + this.name = h; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17634,15 +17638,15 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(q); - a.DeleteProperty = s; - s.prototype.nodeName = "DeleteProperty"; + a.DeleteProperty = r; + r.prototype.nodeName = "DeleteProperty"; q = function(b) { - function a(e, f, c, g, n, h) { + function a(e, f, c, h, p, g) { b.call(this, e, f); this.object = c; - this.name = g; - this.args = n; - this.flags = h; + this.name = h; + this.args = p; + this.flags = g; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17657,7 +17661,7 @@ Shumway.AVM2.XRegExp.install(); }(q); a.CallProperty = q; q.prototype.nodeName = "CallProperty"; - var g = function(b) { + var h = function(b) { function a(e, f) { b.call(this); this.control = this.control = e; @@ -17676,8 +17680,8 @@ Shumway.AVM2.XRegExp.install(); }; return a; }(m); - a.Phi = g; - g.prototype.nodeName = "Phi"; + a.Phi = h; + h.prototype.nodeName = "Phi"; var f = function(b) { function a(e) { b.call(this); @@ -17742,12 +17746,12 @@ Shumway.AVM2.XRegExp.install(); a.Projection = b; b.prototype.nodeName = "Projection"; q = function(b) { - function a(e, f, c, g) { + function a(e, f, c, h) { b.call(this); this.control = e; this.condition = f; this.left = c; - this.right = g; + this.right = h; } __extends(a, b); a.prototype.visitInputs = function(b) { @@ -17833,22 +17837,22 @@ Shumway.AVM2.XRegExp.install(); return b >= a; }, !0); b.PLUS = new b("+", function(b) { - return+b; + return +b; }, !1); b.NEG = new b("-", function(b) { - return-b; + return -b; }, !1); b.TRUE = new b("!!", function(b) { - return!!b; + return !!b; }, !1); b.FALSE = new b("!", function(b) { - return!b; + return !b; }, !1); b.TYPE_OF = new b("typeof", function(b) { return typeof b; }, !1); b.BITWISE_NOT = new b("~", function(b) { - return~b; + return ~b; }, !1); b.AS_ADD = new b("+", function(b, a) { return "string" === typeof b || "string" === typeof a ? String(b) + String(a) : b + a; @@ -18011,7 +18015,7 @@ Shumway.AVM2.XRegExp.install(); a.KeyValuePair = q; q.prototype.mustFloat = !0; q.prototype.nodeName = "KeyValuePair"; - a.nameOf = t; + a.nameOf = v; })(a.IR || (a.IR = {})); })(k.Compiler || (k.Compiler = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -18020,40 +18024,40 @@ Shumway.AVM2.XRegExp.install(); (function(k) { (function(a) { (function(a) { - function v(b) { + function w(b) { return b.id; } - function t(b) { + function v(b) { return b instanceof a.Phi; } function u(b) { return b instanceof a.Constant && b.value instanceof f; } function l(b) { - return t(b) || b instanceof a.Store || s(b, 3); + return v(b) || b instanceof a.Store || r(b, 3); } function c(b) { return b instanceof a.Constant; } - function h(b) { + function g(b) { return b instanceof a.Control; } function q(b) { return b instanceof a.Value; } - function s(b, e) { + function r(b, e) { return b instanceof a.Projection && (!e || b.type === e); } function m(b) { return b instanceof a.Projection ? b.project() : b; } - var g = d.Debug.unexpected, f = d.AVM2.ABC.Multiname, b = d.ArrayUtilities.top, e = d.ArrayUtilities.pushUnique, r = d.ArrayUtilities.unique; + var h = d.Debug.unexpected, f = d.AVM2.ABC.Multiname, b = d.ArrayUtilities.top, e = d.ArrayUtilities.pushUnique, t = d.ArrayUtilities.unique; a.isNotPhi = function(b) { - return!t(b); + return !v(b); }; - a.isPhi = t; + a.isPhi = v; a.isScope = function(b) { - return t(b) || b instanceof a.ASScope || s(b, 4); + return v(b) || b instanceof a.ASScope || r(b, 4); }; a.isMultinameConstant = u; a.isMultiname = function(b) { @@ -18062,22 +18066,22 @@ Shumway.AVM2.XRegExp.install(); a.isStore = l; a.isConstant = c; a.isControlOrNull = function(b) { - return h(b) || null === b; + return g(b) || null === b; }; a.isStoreOrNull = function(b) { return l(b) || null === b; }; - a.isControl = h; + a.isControl = g; a.isValueOrNull = function(b) { return q(b) || null === b; }; a.isValue = q; - a.isProjection = s; + a.isProjection = r; a.Null = new a.Constant(null); a.Undefined = new a.Constant(void 0); a.True = new a.Constant(!0); a.False = new a.Constant(!1); - var n = function() { + var p = function() { function b(a, e, f) { this.id = a; this.nodes = [e, f]; @@ -18122,35 +18126,35 @@ Shumway.AVM2.XRegExp.install(); }; return b; }(); - a.Block = n; - var x = function() { + a.Block = p; + var C = function() { function e(b) { this.exit = this.exit = b; } e.prototype.buildCFG = function() { - return z.fromDFG(this); + return B.fromDFG(this); }; e.preOrderDepthFirstSearch = function(b, a, e) { var f = []; b = [b]; - for (var c = b.push.bind(b), g;g = b.pop();) { - 1 !== f[g.id] && (f[g.id] = 1, e(g), b.push(g), a(g, c)); + for (var c = b.push.bind(b), h;h = b.pop();) { + 1 !== f[h.id] && (f[h.id] = 1, e(h), b.push(h), a(h, c)); } }; e.postOrderDepthFirstSearch = function(a, e, f) { function c(b) { - g[b.id] || n.push(b); + h[b.id] || p.push(b); } - for (var g = [], n = [a];a = b(n);) { - g[a.id] ? (1 === g[a.id] && (g[a.id] = 2, f(a)), n.pop()) : (g[a.id] = 1, e(a, c)); + for (var h = [], p = [a];a = b(p);) { + h[a.id] ? (1 === h[a.id] && (h[a.id] = 2, f(a)), p.pop()) : (h[a.id] = 1, e(a, c)); } }; e.prototype.forEachInPreOrderDepthFirstSearch = function(b) { function a(b) { c(b) || f.push(b); } - for (var e = Array(1024), f = [this.exit], g;g = f.pop();) { - e[g.id] || (e[g.id] = 1, b && b(g), f.push(g), g.visitInputs(a)); + for (var e = Array(1024), f = [this.exit], h;h = f.pop();) { + e[h.id] || (e[h.id] = 1, b && b(h), f.push(h), h.visitInputs(a)); } }; e.prototype.forEach = function(b, a) { @@ -18176,9 +18180,9 @@ Shumway.AVM2.XRegExp.install(); } function c(b) { b = f(b); - n[b.id] || (n[b.id] = !0, b.block && h.push(b.block), g.push(b), b.visitInputsNoConstants(c)); + p[b.id] || (p[b.id] = !0, b.block && g.push(b.block), h.push(b), b.visitInputsNoConstants(c)); } - var g = [], n = {}, h = []; + var h = [], p = {}, g = []; c(this.exit); b.writeLn(""); b.enter("digraph DFG {"); @@ -18186,7 +18190,7 @@ Shumway.AVM2.XRegExp.install(); b.writeLn("edge [color = white];"); b.writeLn("node [shape = box, fontname = Consolas, fontsize = 11, color = white, fontcolor = white];"); b.writeLn("rankdir = BT;"); - h.forEach(function(a) { + g.forEach(function(a) { b.enter("subgraph cluster" + a.nodes[0].id + " { bgcolor = gray20;"); a.visitNodes(function(a) { a = f(a); @@ -18194,10 +18198,10 @@ Shumway.AVM2.XRegExp.install(); }); b.leave("}"); }); - g.forEach(function(a) { + h.forEach(function(a) { b.writeLn("N" + a.id + ' [label = "' + a.toString() + '", color = "' + e(a) + '"];'); }); - g.forEach(function(a) { + h.forEach(function(a) { a.visitInputsNoConstants(function(c) { c = f(c); b.writeLn("N" + a.id + " -> N" + c.id + " [color=" + e(c) + "];"); @@ -18208,7 +18212,7 @@ Shumway.AVM2.XRegExp.install(); }; return e; }(); - a.DFG = x; + a.DFG = C; var I = function() { function b() { this.entries = []; @@ -18221,38 +18225,38 @@ Shumway.AVM2.XRegExp.install(); b.prototype.trace = function(b) { b.enter("> Uses"); this.entries.forEach(function(a) { - b.writeLn(a.def.id + " -> [" + a.uses.map(v).join(", ") + "] " + a.def); + b.writeLn(a.def.id + " -> [" + a.uses.map(w).join(", ") + "] " + a.def); }); b.leave("<"); }; b.prototype.replace = function(b, a) { var e = this.entries[b.id]; if (0 === e.uses.length) { - return!1; + return !1; } var f = 0; e.uses.forEach(function(e) { f += e.replaceInput(b, a); }); e.uses = []; - return!0; + return !0; }; b.prototype.updateUses = function(b, a, e, f) { e = e[b.id]; if (0 === e.uses.length) { - return!1; + return !1; } var c = 0; e.uses.forEach(function(e) { c += e.replaceInput(b, a); }); e.uses = []; - return!0; + return !0; }; return b; }(); a.Uses = I; - var z = function() { + var B = function() { function b() { this.nextBlockID = 0; this.blocks = []; @@ -18260,25 +18264,25 @@ Shumway.AVM2.XRegExp.install(); b.fromDFG = function(e) { function f(b) { b instanceof a.Projection && (b = b.project()); - if (!g[b.id]) { - g[b.id] = !0; + if (!h[b.id]) { + h[b.id] = !0; var e = b.control; e instanceof a.Region || (e = b.control = new a.Region(e)); b = e.block = c.buildBlock(e, b); e instanceof a.Start && (c.root = b); - for (var n = 0;n < e.predecessors.length;n++) { - var h = e.predecessors[n], r, m = !1; - h instanceof a.Projection ? (r = h.project(), m = 1 === h.type) : r = h; - r instanceof a.Region && (r = new a.Jump(h), r = new a.Projection(r, 1), e.predecessors[n] = r, r = r.project(), m = !0); - f(r); - var d = r.control.block; - r instanceof a.Switch ? d.pushSuccessorAt(b, h.selector.value) : m && 0 < d.successors.length ? (d.pushSuccessor(b, !0), d.hasFlippedSuccessors = !0) : d.pushSuccessor(b, !0); + for (var p = 0;p < e.predecessors.length;p++) { + var g = e.predecessors[p], m, t = !1; + g instanceof a.Projection ? (m = g.project(), t = 1 === g.type) : m = g; + m instanceof a.Region && (m = new a.Jump(g), m = new a.Projection(m, 1), e.predecessors[p] = m, m = m.project(), t = !0); + f(m); + var d = m.control.block; + m instanceof a.Switch ? d.pushSuccessorAt(b, g.selector.value) : t && 0 < d.successors.length ? (d.pushSuccessor(b, !0), d.hasFlippedSuccessors = !0) : d.pushSuccessor(b, !0); } } } var c = new b; c.dfg = e; - var g = []; + var h = []; f(e.exit); c.splitCriticalEdges(); c.exit = e.exit.control.block; @@ -18286,18 +18290,18 @@ Shumway.AVM2.XRegExp.install(); return c; }; b.prototype.buildRootAndExit = function() { - 0 < this.blocks[0].predecessors.length ? (this.root = new n(this.nextBlockID++), this.blocks.push(this.root), this.root.pushSuccessor(this.blocks[0], !0)) : this.root = this.blocks[0]; + 0 < this.blocks[0].predecessors.length ? (this.root = new p(this.nextBlockID++), this.blocks.push(this.root), this.root.pushSuccessor(this.blocks[0], !0)) : this.root = this.blocks[0]; for (var b = [], a = 0;a < this.blocks.length;a++) { var e = this.blocks[a]; 0 === e.successors.length && b.push(e); } if (0 === b.length) { - g("Must have an exit block."); + h("Must have an exit block."); } else { if (1 === b.length && b[0] !== this.root) { this.exit = b[0]; } else { - for (this.exit = new n(this.nextBlockID++), this.blocks.push(this.exit), a = 0;a < b.length;a++) { + for (this.exit = new p(this.nextBlockID++), this.blocks.push(this.exit), a = 0;a < b.length;a++) { b[a].pushSuccessor(this.exit, !0); } } @@ -18309,19 +18313,19 @@ Shumway.AVM2.XRegExp.install(); if (a) { return a; } - c[b] = a = new n(f.nextBlockID++); + c[b] = a = new p(f.nextBlockID++); a.name = b; - g.push(a); + h.push(a); return a; } - var f = this, c = f.blockNames || (f.blockNames = {}), g = f.blocks; + var f = this, c = f.blockNames || (f.blockNames = {}), h = f.blocks; b.replace(/\ /g, "").split(",").forEach(function(b) { b = b.split("->"); for (var a = null, f = 0;f < b.length;f++) { var c = b[f]; if (a) { - var g = c; - e(a).pushSuccessor(e(g), !0); + var h = c; + e(a).pushSuccessor(e(h), !0); } else { e(c); } @@ -18331,7 +18335,7 @@ Shumway.AVM2.XRegExp.install(); this.root = c[a]; }; b.prototype.buildBlock = function(b, a) { - var e = new n(this.nextBlockID++, b, a); + var e = new p(this.nextBlockID++, b, a); this.blocks.push(e); return e; }; @@ -18355,9 +18359,9 @@ Shumway.AVM2.XRegExp.install(); function e(c) { f.set(c.id); b && b(c); - for (var g = c.successors, n = 0, h = g.length;n < h;n++) { - var r = g[n]; - f.get(r.id) || e(r); + for (var h = c.successors, p = 0, g = h.length;p < g;p++) { + var m = h[p]; + f.get(m.id) || e(m); } a && a(c); } @@ -18378,18 +18382,18 @@ Shumway.AVM2.XRegExp.install(); } var f = this.createBlockSet(); this.depthFirstSearch(function(b) { - for (var e = b.successors, c = 0, g = e.length;c < g;c++) { - var n = e[c].id, h = b.id, r = n; - if (!(0 > a[n])) { - n = a[n]; - for (f.clearAll();0 <= n;) { - f.set(n), n = a[n]; + for (var e = b.successors, c = 0, h = e.length;c < h;c++) { + var p = e[c].id, g = b.id, m = p; + if (!(0 > a[p])) { + p = a[p]; + for (f.clearAll();0 <= p;) { + f.set(p), p = a[p]; } - for (;0 <= h && !f.get(h);) { - h = a[h]; + for (;0 <= g && !f.get(g);) { + g = a[g]; } } - a[r] = h; + a[m] = g; } }); for (var e = 0, c = this.blocks.length;e < c;e++) { @@ -18399,7 +18403,6 @@ Shumway.AVM2.XRegExp.install(); for (c = this.blocks.length;e < c;e++) { b(this.blocks[e]); } - return a; }; b.prototype.computeLoops = function() { function b(c) { @@ -18408,13 +18411,13 @@ Shumway.AVM2.XRegExp.install(); } e.set(c.id); a.set(c.id); - for (var g = 0, n = 0, h = c.successors.length;n < h;n++) { - g |= b(c.successors[n]); + for (var h = 0, p = 0, g = c.successors.length;p < g;p++) { + h |= b(c.successors[p]); } - c.isLoopHeader && (g &= ~c.loops); - c.loops = g; + c.isLoopHeader && (h &= ~c.loops); + c.loops = h; a.clear(c.id); - return g; + return h; } var a = this.createBlockSet(), e = this.createBlockSet(), f = 0; b(this.root); @@ -18438,7 +18441,7 @@ Shumway.AVM2.XRegExp.install(); }; b.prototype.optimizePhis = function() { function b(a, e) { - e = r(e); + e = t(e); if (1 === e.length) { return e[0]; } @@ -18454,23 +18457,23 @@ Shumway.AVM2.XRegExp.install(); } var a = [], e = this.computeUses().entries; e.forEach(function(b) { - t(b.def) && a.push(b.def); + v(b.def) && a.push(b.def); }); - for (var f = 0, c = 0, g = !0;g;) { - c++, g = !1, a.forEach(function(a) { + for (var f = 0, c = 0, h = !0;h;) { + c++, h = !1, a.forEach(function(a) { var c = b(a, a.args); if (c !== a) { - var n = e[a.id]; - if (0 === n.uses.length) { + var p = e[a.id]; + if (0 === p.uses.length) { a = !1; } else { - for (var h = 0, r = n.uses, m = 0, d = r.length;m < d;m++) { - h += r[m].replaceInput(a, c); + for (var g = 0, m = p.uses, t = 0, d = m.length;t < d;t++) { + g += m[t].replaceInput(a, c); } - n.uses = []; + p.uses = []; a = !0; } - a && (g = !0, f++); + a && (h = !0, f++); } }); } @@ -18479,25 +18482,24 @@ Shumway.AVM2.XRegExp.install(); for (var b = this.blocks, e = [], f = 0;f < b.length;f++) { var c = b[f].successors; if (1 < c.length) { - for (var g = 0;g < c.length;g++) { - 1 < c[g].predecessors.length && e.push({from:b[f], to:c[g]}); + for (var h = 0;h < c.length;h++) { + 1 < c[h].predecessors.length && e.push({from:b[f], to:c[h]}); } } } - for (var b = e.length, n;n = e.pop();) { - var f = n.from.successors.indexOf(n.to), c = n.to.predecessors.indexOf(n.from), g = n.to, h = g.region, r = new a.Region(h.predecessors[c]), m = new a.Jump(r), r = this.buildBlock(r, m); - h.predecessors[c] = new a.Projection(m, 1); - n = n.from; - n.successors[f] = r; - r.pushPredecessor(n); - r.pushSuccessor(g); - g.predecessors[c] = r; + for (;h = e.pop();) { + var b = h.from.successors.indexOf(h.to), f = h.to.predecessors.indexOf(h.from), c = h.to, p = c.region, g = new a.Region(p.predecessors[f]), m = new a.Jump(g), g = this.buildBlock(g, m); + p.predecessors[f] = new a.Projection(m, 1); + h = h.from; + h.successors[b] = g; + g.pushPredecessor(h); + g.pushSuccessor(c); + c.predecessors[f] = g; } - return b; }; b.prototype.allocateVariables = function() { function b(e) { - !(s(e, 3) || e instanceof a.SetProperty) && e instanceof a.Value && (e.variable = new a.Variable("v" + e.id)); + !(r(e, 3) || e instanceof a.SetProperty) && e instanceof a.Value && (e.variable = new a.Variable("v" + e.id)); } var e = this.computeReversePostOrder(); e.forEach(function(a) { @@ -18505,31 +18507,31 @@ Shumway.AVM2.XRegExp.install(); a.phis && a.phis.forEach(b); }); for (var f = [], c = 0;c < e.length;c++) { - var g = e[c], n = g.phis, g = g.predecessors; - if (n) { - for (var h = 0;h < n.length;h++) { - for (var r = n[h], m = r.args, d = 0;d < g.length;d++) { - var l = g[d], q = m[d]; - q.abstract || s(q, 3) || (l = f[l.id] || (f[l.id] = []), q = q.variable || q, r.variable !== q && l.push(new a.Move(r.variable, q))); + var h = e[c], p = h.phis, h = h.predecessors; + if (p) { + for (var g = 0;g < p.length;g++) { + for (var m = p[g], t = m.args, d = 0;d < h.length;d++) { + var l = h[d], q = t[d]; + q.abstract || r(q, 3) || (l = f[l.id] || (f[l.id] = []), q = q.variable || q, m.variable !== q && l.push(new a.Move(m.variable, q))); } } } } - var x = this.blocks; + var C = this.blocks; f.forEach(function(b, e) { - for (var f = x[e], c = 0;b.length;) { - for (var g = 0;g < b.length;g++) { - for (var n = b[g], h = 0;h < b.length;h++) { - if (g !== h && b[h].from === n.to) { - n = null; + for (var f = C[e], c = 0;b.length;) { + for (var h = 0;h < b.length;h++) { + for (var p = b[h], g = 0;g < b.length;g++) { + if (h !== g && b[g].from === p.to) { + p = null; break; } } - n && (b.splice(g--, 1), f.append(n)); + p && (b.splice(h--, 1), f.append(p)); } if (b.length) { - for (n = b[0], h = new a.Variable("t" + c++), x[e].append(new a.Move(h, n.to)), g = 1;g < b.length;g++) { - b[g].from === n.to && (b[g].from = h); + for (p = b[0], g = new a.Variable("t" + c++), C[e].append(new a.Move(g, p.to)), h = 1;h < b.length;h++) { + b[h].from === p.to && (b[h].from = g); } } } @@ -18540,52 +18542,52 @@ Shumway.AVM2.XRegExp.install(); return e.mustNotFloat || e.shouldNotFloat ? !1 : e.mustFloat || e.shouldFloat || e instanceof a.Parameter || e instanceof a.This || e instanceof a.Arguments ? !0 : e instanceof a.Binary || e instanceof a.Unary || e instanceof a.Parameter; } function e(a) { - h[a.id] = !0; + g[a.id] = !0; b(a) || a.control.block.append(a); } function f(b, a) { b.control = a; e(b); } - function g(b) { - var r = []; + function h(b) { + var t = []; b.visitInputs(function(b) { - c(b) || q(b) && r.push(m(b)); + c(b) || q(b) && t.push(m(b)); }); - for (var d = 0;d < r.length;d++) { - var l = r[d]; - t(l) || h[l.id] || g(l); + for (var d = 0;d < t.length;d++) { + var l = t[d]; + v(l) || g[l.id] || h(l); } if (b.control) { - b instanceof a.End || b instanceof a.Phi || b instanceof a.Start || h[b.id] || e(b); + b instanceof a.End || b instanceof a.Phi || b instanceof a.Start || g[b.id] || e(b); } else { - if (r.length) { - l = r[0].control; - for (d = 1;d < r.length;d++) { - var s = r[d].control; - l.block.dominatorDepth < s.block.dominatorDepth && (l = s); + if (t.length) { + l = t[0].control; + for (d = 1;d < t.length;d++) { + var r = t[d].control; + l.block.dominatorDepth < r.block.dominatorDepth && (l = r); } f(b, l); } else { - f(b, n.root.region); + f(b, p.root.region); } } } - var n = this, h = [], r = []; + var p = this, g = [], t = []; this.dfg.forEachInPreOrderDepthFirstSearch(function(e) { - e instanceof a.Region || e instanceof a.Jump || (e.control && r.push(e), t(e) && e.args.forEach(function(a) { + e instanceof a.Region || e instanceof a.Jump || (e.control && t.push(e), v(e) && e.args.forEach(function(a) { b(a) && (a.mustNotFloat = !0); })); }); - for (var d = 0;d < r.length;d++) { - var l = r[d]; + for (var d = 0;d < t.length;d++) { + var l = t[d]; if (l instanceof a.Phi) { - var s = l.control.block; - (s.phis || (s.phis = [])).push(l); + var r = l.control.block; + (r.phis || (r.phis = [])).push(l); } - l.control && g(l); + l.control && h(l); } - r.forEach(function(b) { + t.forEach(function(b) { m(b); }); }; @@ -18593,7 +18595,7 @@ Shumway.AVM2.XRegExp.install(); function a(b) { e[b.id] || (e[b.id] = !0, f.push(b), b.visitSuccessors(a)); } - var e = [], f = [], c = this.root, g = this.exit; + var e = [], f = [], c = this.root, h = this.exit; a(c); b.writeLn(""); b.enter("digraph CFG {"); @@ -18605,7 +18607,7 @@ Shumway.AVM2.XRegExp.install(); var e = ""; void 0 !== a.name && (e += " " + a.name); void 0 !== a.rpo && (e += " O: " + a.rpo); - b.writeLn("B" + a.id + ' [label = "B' + a.id + e + '", fillcolor = "black", shape=' + (a === c ? "house" : a === g ? "invhouse" : "box") + ", style=filled];"); + b.writeLn("B" + a.id + ' [label = "B' + a.id + e + '", fillcolor = "black", shape=' + (a === c ? "house" : a === h ? "invhouse" : "box") + ", style=filled];"); }); f.forEach(function(a) { a.visitSuccessors(function(e) { @@ -18619,8 +18621,8 @@ Shumway.AVM2.XRegExp.install(); }; return b; }(); - a.CFG = z; - x = function() { + a.CFG = B; + C = function() { function b() { } b.prototype.foldUnary = function(b, e) { @@ -18650,7 +18652,7 @@ Shumway.AVM2.XRegExp.install(); }; return b; }(); - a.PeepholeOptimizer = x; + a.PeepholeOptimizer = C; })(a.IR || (a.IR = {})); })(k.Compiler || (k.Compiler = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -18658,94 +18660,94 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(b) { - return b instanceof X && d.isString(b.value); + function n(b) { + return b instanceof Y && d.isString(b.value); } - function v(b) { - return b instanceof X && d.isNumeric(b.value) ? !0 : b.ty && b.ty.isNumeric(); + function w(b) { + return b instanceof Y && d.isNumeric(b.value) ? !0 : b.ty && b.ty.isNumeric(); } - function t(b, a) { - return v(b) && v(a) || u(b) && u(a) ? !0 : !1; + function v(b, a) { + return w(b) && w(a) || u(b) && u(a) ? !0 : !1; } function u(b) { - return p(b) ? !0 : b.ty && b.ty.isString(); + return n(b) ? !0 : b.ty && b.ty.isString(); } function l(b) { - return new X(b); + return new Y(b); } function c(b) { switch(b) { case 161: - return L.SUB; + return O.SUB; case 162: - return L.MUL; + return O.MUL; case 163: - return L.DIV; + return O.DIV; case 164: - return L.MOD; + return O.MOD; case 165: - return L.LSH; + return O.LSH; case 166: - return L.RSH; + return O.RSH; case 167: - return L.URSH; + return O.URSH; case 168: - return L.AND; + return O.AND; case 169: - return L.OR; + return O.OR; case 170: - return L.XOR; + return O.XOR; case 20: - return L.NE; + return O.NE; case 26: - return L.SNE; + return O.SNE; case 19: ; case 171: - return L.EQ; + return O.EQ; case 25: ; case 172: - return L.SEQ; + return O.SEQ; case 21: ; case 173: - return L.LT; + return O.LT; case 22: ; case 174: - return L.LE; + return O.LE; case 23: ; case 175: - return L.GT; + return O.GT; case 24: ; case 176: - return L.GE; + return O.GE; case 144: - return L.NEG; + return O.NEG; case 196: - return L.NEG; + return O.NEG; case 197: - return L.ADD; + return O.ADD; case 198: - return L.SUB; + return O.SUB; case 199: - return L.MUL; + return O.MUL; case 17: - return L.TRUE; + return O.TRUE; case 18: - return L.FALSE; + return O.FALSE; case 150: - return L.FALSE; + return O.FALSE; case 151: - return L.BITWISE_NOT; + return O.BITWISE_NOT; default: - C("Invalid operator op: " + b); + y("Invalid operator op: " + b); } } - function h(b, e, f) { + function g(b, e, f) { f = f.split("."); for (var c = 0;c < f.length;c++) { e = new a.IR.GetProperty(null, b.store, e, l(f[c])), e.shouldFloat = !0, b.loads.push(e); @@ -18757,61 +18759,61 @@ Shumway.AVM2.XRegExp.install(); b.mustFloat = !0; return b; } - function s(b, a) { - var e = new w(b, a); - da && (e = da.fold(e)); + function r(b, a) { + var e = new x(b, a); + fa && (e = fa.fold(e)); return e; } function m(b, a, e) { - var f = new ba(b, a, e); - if (b === L.EQ || b === L.NE) { + var f = new da(b, a, e); + if (b === O.EQ || b === O.NE) { if (a.ty && a.ty.isStrictComparableWith(e.ty)) { - f.operator = b === L.EQ ? L.SEQ : L.SNE; + f.operator = b === O.EQ ? O.SEQ : O.SNE; } else { if (!a.ty || a.ty.canBeXML() || !e.ty || e.ty.canBeXML()) { - f = new U(null, null, q("asEquals"), null, [a, e], 0), b === L.NE && (f = s(L.FALSE, f)); + f = new V(null, null, q("asEquals"), null, [a, e], 0), b === O.NE && (f = r(O.FALSE, f)); } } } - da && (f = da.fold(f)); + fa && (f = fa.fold(f)); return f; } - function g(b) { - return m(L.OR, b, l(0)); + function h(b) { + return m(O.OR, b, l(0)); } function f(b) { - return m(L.URSH, b, l(0)); + return m(O.URSH, b, l(0)); } function b(b) { - return v(b) ? b : s(L.PLUS, b); + return w(b) ? b : r(O.PLUS, b); } function e(b) { - return s(L.FALSE, s(L.FALSE, b)); + return r(O.FALSE, r(O.FALSE, b)); } - function r(b) { + function t(b) { b.shouldNotFloat = !0; return b; } - function n(b, a) { - return new U(null, null, b, null, a, 4); + function p(b, a) { + return new V(null, null, b, null, a, 4); } - function x(b, a) { - return n(q(b), [a]); + function C(b, a) { + return p(q(b), [a]); } function I(b) { - return p(b) ? b : n(q("String"), [b]); + return n(b) ? b : p(q("String"), [b]); } - function z(b) { - return p(b) ? b : ea(b) ? new X(A.asCoerceString(b.value)) : n(q("asCoerceString"), [b]); + function B(b) { + return n(b) ? b : ga(b) ? new Y(A.asCoerceString(b.value)) : p(q("asCoerceString"), [b]); } function D(b) { - return ea(b) ? new X(A.escapeXMLAttribute(b.value)) : n(q("escapeXMLAttribute"), [b]); + return ga(b) ? new Y(A.escapeXMLAttribute(b.value)) : p(q("escapeXMLAttribute"), [b]); } function M(b) { - return ea(b) ? new X(A.escapeXMLElement(b.value)) : n(q("escapeXMLElement"), [b]); + return ga(b) ? new Y(A.escapeXMLElement(b.value)) : p(q("escapeXMLElement"), [b]); } - var F = d.AVM2.ABC.Multiname, T = d.AVM2.ABC.InstanceInfo, N = d.Debug.notImplemented, C = d.Debug.assertUnreachable, B = d.ArrayUtilities.top, H = d.ArrayUtilities.unique, A = d.AVM2.Runtime, y = d.AVM2.Runtime.GlobalMultinameResolver, G = a.IR.Node, J = a.IR.Start, E = a.IR.Region, Q = a.IR.Null, S = a.IR.Undefined, K = a.IR.True, P = a.IR.False, R = a.IR.This, W = a.IR.Projection, ba = a.IR.Binary, w = a.IR.Unary, X = a.IR.Constant, U = a.IR.Call, $ = a.IR.Phi, Y = a.IR.Stop, L = a.IR.Operator, - Z = a.IR.Parameter, ca = a.IR.NewArray, ga = a.IR.NewObject, ha = a.IR.KeyValuePair, ea = a.IR.isConstant, aa = new d.IndentingWriter, da = new a.IR.PeepholeOptimizer, O = function() { + var E = d.AVM2.ABC.Multiname, J = d.AVM2.ABC.InstanceInfo, P = d.Debug.notImplemented, y = d.Debug.assertUnreachable, K = d.ArrayUtilities.top, H = d.ArrayUtilities.unique, A = d.AVM2.Runtime, z = d.AVM2.Runtime.GlobalMultinameResolver, G = a.IR.Node, L = a.IR.Start, F = a.IR.Region, S = a.IR.Null, U = a.IR.Undefined, N = a.IR.True, R = a.IR.False, T = a.IR.This, X = a.IR.Projection, da = a.IR.Binary, x = a.IR.Unary, Y = a.IR.Constant, V = a.IR.Call, ba = a.IR.Phi, Z = a.IR.Stop, O = a.IR.Operator, + aa = a.IR.Parameter, ea = a.IR.NewArray, ia = a.IR.NewObject, ja = a.IR.KeyValuePair, ga = a.IR.isConstant, ca = new d.IndentingWriter, fa = new a.IR.PeepholeOptimizer, Q = function() { function b(a) { void 0 === a && (a = 0); this.id = b._nextID += 1; @@ -18819,9 +18821,9 @@ Shumway.AVM2.XRegExp.install(); this.local = []; this.stack = []; this.scope = []; - this.store = S; + this.store = U; this.loads = []; - this.saved = S; + this.saved = U; } b.prototype.clone = function(a) { var e = new b; @@ -18839,7 +18841,7 @@ Shumway.AVM2.XRegExp.install(); }; b.prototype.makeLoopPhis = function(a, e) { function f(b) { - b = new $(a, b); + b = new ba(a, b); b.isLoop = !0; return b; } @@ -18856,7 +18858,7 @@ Shumway.AVM2.XRegExp.install(); return c; }; b.tryOptimizePhi = function(b) { - if (b instanceof $) { + if (b instanceof ba) { if (b.isLoop) { return b; } @@ -18875,7 +18877,7 @@ Shumway.AVM2.XRegExp.install(); this.store = b.tryOptimizePhi(this.store); }; b.mergeValue = function(b, a, e) { - b = a instanceof $ && a.control === b ? a : new $(b, a); + b = a instanceof ba && a.control === b ? a : new ba(b, a); b.pushValue(e); return b; }; @@ -18902,22 +18904,22 @@ Shumway.AVM2.XRegExp.install(); }; b._nextID = 0; return b; - }(), ka = x.bind(null, "asCoerceObject"), V = Object.create(null); - V[F.Int] = g; - V[F.Uint] = f; - V[F.Number] = b; - V[F.String] = z; - V[F.Object] = ka; - V[F.Boolean] = e; - var ja = Object.create(null); - ja[F.Int] = g; - ja[F.Uint] = f; - ja[F.Number] = x.bind(null, "Number"); - ja[F.String] = x.bind(null, "String"); - ja[F.Object] = x.bind(null, "Object"); - ja[F.Boolean] = x.bind(null, "Boolean"); - var la = x.bind(null, "Object"), ma = function() { - function x(b, a, e, f) { + }(), ma = C.bind(null, "asCoerceObject"), W = Object.create(null); + W[E.Int] = h; + W[E.Uint] = f; + W[E.Number] = b; + W[E.String] = B; + W[E.Object] = ma; + W[E.Boolean] = e; + var la = Object.create(null); + la[E.Int] = h; + la[E.Uint] = f; + la[E.Number] = C.bind(null, "Number"); + la[E.String] = C.bind(null, "String"); + la[E.Object] = C.bind(null, "Object"); + la[E.Boolean] = C.bind(null, "Boolean"); + var na = C.bind(null, "Object"), oa = function() { + function n(b, a, e, f) { this.builder = b; this.region = a; this.block = e; @@ -18929,40 +18931,40 @@ Shumway.AVM2.XRegExp.install(); this.traceBuilder = b.traceBuilder; this.methodInfo = b.methodInfo; } - x.prototype.popMultiname = function() { + n.prototype.popMultiname = function() { var b = this.constantPool.multinames[this.bc.index], e, f; b.isRuntimeName() ? (e = this.state.stack.pop(), f = l(0)) : (e = l(b.name), f = l(b.flags)); - b.isRuntimeNamespace() ? (b = new ca(this.region, [this.state.stack.pop()]), b.shouldFloat = !0) : b = l(b.namespaces); + b.isRuntimeNamespace() ? (b = new ea(this.region, [this.state.stack.pop()]), b.shouldFloat = !0) : b = l(b.namespaces); return new a.IR.ASMultiname(b, e, f); }; - x.prototype.setIfStops = function(b) { + n.prototype.setIfStops = function(b) { b = new a.IR.If(this.region, b); - this.stops = [{control:new W(b, 2), target:this.bytecodes[this.bc.position + 1], state:this.state}, {control:new W(b, 1), target:this.bc.target, state:this.state}]; + this.stops = [{control:new X(b, 2), target:this.bytecodes[this.bc.position + 1], state:this.state}, {control:new X(b, 1), target:this.bc.target, state:this.state}]; }; - x.prototype.setJumpStop = function() { + n.prototype.setJumpStop = function() { this.stops = [{control:this.region, target:this.bc.target, state:this.state}]; }; - x.prototype.setThrowStop = function() { + n.prototype.setThrowStop = function() { this.stops = []; }; - x.prototype.setReturnStop = function() { + n.prototype.setReturnStop = function() { this.stops = []; }; - x.prototype.setSwitchStops = function(b) { + n.prototype.setSwitchStops = function(b) { if (2 < this.bc.targets.length) { this.stops = []; b = new a.IR.Switch(this.region, b); for (var e = 0;e < this.bc.targets.length;e++) { - this.stops.push({control:new W(b, 0, l(e)), target:this.bc.targets[e], state:this.state}); + this.stops.push({control:new X(b, 0, l(e)), target:this.bc.targets[e], state:this.state}); } } else { - b = m(L.SEQ, b, l(0)), b = new a.IR.If(this.region, b), this.stops = [{control:new W(b, 2), target:this.bc.targets[1], state:this.state}, {control:new W(b, 1), target:this.bc.targets[0], state:this.state}]; + b = m(O.SEQ, b, l(0)), b = new a.IR.If(this.region, b), this.stops = [{control:new X(b, 2), target:this.bc.targets[1], state:this.state}, {control:new X(b, 1), target:this.bc.targets[0], state:this.state}]; } }; - x.prototype.savedScope = function() { + n.prototype.savedScope = function() { return this.state.saved; }; - x.prototype.topScope = function(b) { + n.prototype.topScope = function(b) { var a = this.state.scope; if (void 0 !== b) { if (b < a.length) { @@ -18974,20 +18976,20 @@ Shumway.AVM2.XRegExp.install(); var e = this.savedScope(); b -= a.length; for (a = 0;a < b;a++) { - e = h(this.state, e, "parent"); + e = g(this.state, e, "parent"); } return e; } - return 0 < a.length ? B(a) : this.savedScope(); + return 0 < a.length ? K(a) : this.savedScope(); }; - x.prototype.getGlobalScope = function() { + n.prototype.getGlobalScope = function() { var b = this.bc.ti; return b && b.object ? l(b.object) : new a.IR.ASGlobal(null, this.savedScope()); }; - x.prototype.getScopeObject = function(b) { - return b instanceof a.IR.ASScope ? b.object : h(this.state, b, "object"); + n.prototype.getScopeObject = function(b) { + return b instanceof a.IR.ASScope ? b.object : g(this.state, b, "object"); }; - x.prototype.findProperty = function(b, e) { + n.prototype.findProperty = function(b, e) { var f = this.bc.ti, c = new a.IR.ASFindProperty(this.region, this.state.store, this.topScope(), b, this.methodInfoConstant, e); if (f) { if (f.object) { @@ -18999,95 +19001,95 @@ Shumway.AVM2.XRegExp.install(); } return c; }; - x.prototype.coerce = function(b, a) { - var e = V[F.getQualifiedName(b)]; + n.prototype.coerce = function(b, a) { + var e = W[E.getQualifiedName(b)]; return e ? e(a) : a; }; - x.prototype.store = function(b) { + n.prototype.store = function(b) { var a = this.state; - a.store = new W(b, 3); + a.store = new X(b, 3); b.loads = a.loads.slice(0); a.loads.length = 0; return b; }; - x.prototype.load = function(b) { + n.prototype.load = function(b) { this.state.loads.push(b); return b; }; - x.prototype.call = function(b, a, e) { - return this.store(new U(this.region, this.state.store, b, a, e, 4)); + n.prototype.call = function(b, a, e) { + return this.store(new V(this.region, this.state.store, b, a, e, 4)); }; - x.prototype.callCall = function(b, a, e) { - return this.store(new U(this.region, this.state.store, b, a, e, 16)); + n.prototype.callCall = function(b, a, e) { + return this.store(new V(this.region, this.state.store, b, a, e, 16)); }; - x.prototype.callProperty = function(b, e, f, c) { - var g = this.bc.ti, n = this.region, h = this.state; - if (g && g.trait) { - if (g.trait.isMethod()) { - return e = g.trait.holder instanceof T && g.trait.holder.isInterface() ? F.getPublicQualifiedName(F.getName(g.trait.name)) : F.getQualifiedName(g.trait.name), e = A.VM_OPEN_METHOD_PREFIX + e, this.store(new a.IR.CallProperty(n, h.store, b, l(e), f, 4)); + n.prototype.callProperty = function(b, e, f, c) { + var h = this.bc.ti, p = this.region, g = this.state; + if (h && h.trait) { + if (h.trait.isMethod()) { + return e = h.trait.holder instanceof J && h.trait.holder.isInterface() ? E.getPublicQualifiedName(E.getName(h.trait.name)) : E.getQualifiedName(h.trait.name), e = A.VM_OPEN_METHOD_PREFIX + e, this.store(new a.IR.CallProperty(p, g.store, b, l(e), f, 4)); } - if (g.trait.isClass()) { - if (e = ja[F.getQualifiedName(g.trait.name)]) { + if (h.trait.isClass()) { + if (e = la[E.getQualifiedName(h.trait.name)]) { return e(f[0]); } - e = F.getQualifiedName(g.trait.name); - return this.store(new a.IR.CallProperty(n, h.store, b, l(e), f, 16)); + e = E.getQualifiedName(h.trait.name); + return this.store(new a.IR.CallProperty(p, g.store, b, l(e), f, 16)); } } - return(g = this.resolveMultinameGlobally(e)) ? this.store(new a.IR.ASCallProperty(n, h.store, b, l(F.getQualifiedName(g)), f, 6, c)) : this.store(new a.IR.ASCallProperty(n, h.store, b, e, f, 4, c)); + return (h = this.resolveMultinameGlobally(e)) ? this.store(new a.IR.ASCallProperty(p, g.store, b, l(E.getQualifiedName(h)), f, 6, c)) : this.store(new a.IR.ASCallProperty(p, g.store, b, e, f, 4, c)); }; - x.prototype.getProperty = function(b, e, f) { - var c = this.bc.ti, g = this.region, n = this.state; + n.prototype.getProperty = function(b, e, f) { + var c = this.bc.ti, h = this.region, p = this.state; f = !!f; if (c && c.trait) { if (c.trait.isConst() && c.trait.hasDefaultValue) { return l(c.trait.value); } - b = new a.IR.GetProperty(g, n.store, b, l(F.getQualifiedName(c.trait.name))); + b = new a.IR.GetProperty(h, p.store, b, l(E.getQualifiedName(c.trait.name))); return c.trait.isGetter() ? this.store(b) : this.load(b); } - if (v(e.name)) { - return this.store(new a.IR.ASGetProperty(g, n.store, b, e, 1)); + if (w(e.name)) { + return this.store(new a.IR.ASGetProperty(h, p.store, b, e, 1)); } if (c = this.resolveMultinameGlobally(e)) { - return this.store(new a.IR.ASGetProperty(g, n.store, b, l(F.getQualifiedName(c)), 2 | (f ? 8 : 0))); + return this.store(new a.IR.ASGetProperty(h, p.store, b, l(E.getQualifiedName(c)), 2 | (f ? 8 : 0))); } k.countTimeline("Compiler: Slow ASGetProperty"); - return this.store(new a.IR.ASGetProperty(g, n.store, b, e, f ? 8 : 0)); + return this.store(new a.IR.ASGetProperty(h, p.store, b, e, f ? 8 : 0)); }; - x.prototype.setProperty = function(b, e, f) { - var c = this.bc.ti, g = this.region, n = this.state; + n.prototype.setProperty = function(b, e, f) { + var c = this.bc.ti, h = this.region, p = this.state; if (c && c.trait) { - (e = c.trait.typeName ? V[F.getQualifiedName(c.trait.typeName)] : null) && (f = e(f)), this.store(new a.IR.SetProperty(g, n.store, b, l(F.getQualifiedName(c.trait.name)), f)); + (e = c.trait.typeName ? W[E.getQualifiedName(c.trait.typeName)] : null) && (f = e(f)), this.store(new a.IR.SetProperty(h, p.store, b, l(E.getQualifiedName(c.trait.name)), f)); } else { - if (v(e.name)) { - return this.store(new a.IR.ASSetProperty(g, n.store, b, e, f, 1)); + if (w(e.name)) { + return this.store(new a.IR.ASSetProperty(h, p.store, b, e, f, 1)); } this.resolveMultinameGlobally(e); - return this.store(new a.IR.ASSetProperty(g, n.store, b, e, f, 0)); + return this.store(new a.IR.ASSetProperty(h, p.store, b, e, f, 0)); } }; - x.prototype.callSuper = function(b, e, f, c) { - var g = this.bc.ti, n = this.region, h = this.state; - return g && g.trait && g.trait.isMethod() && g.baseClass ? (b = A.VM_OPEN_METHOD_PREFIX + F.getQualifiedName(g.trait.name), g = this.getJSProperty(l(g.baseClass), "traitsPrototype." + b), this.call(g, e, c)) : this.store(new a.IR.ASCallSuper(n, h.store, e, f, c, 4, b)); + n.prototype.callSuper = function(b, e, f, c) { + var h = this.bc.ti, p = this.region, g = this.state; + return h && h.trait && h.trait.isMethod() && h.baseClass ? (b = A.VM_OPEN_METHOD_PREFIX + E.getQualifiedName(h.trait.name), h = this.getJSProperty(l(h.baseClass), "traitsPrototype." + b), this.call(h, e, c)) : this.store(new a.IR.ASCallSuper(p, g.store, e, f, c, 4, b)); }; - x.prototype.getSuper = function(b, e, f) { - var c = this.bc.ti, g = this.region, n = this.state; + n.prototype.getSuper = function(b, e, f) { + var c = this.bc.ti, h = this.region, p = this.state; if (c && c.trait && c.baseClass) { if (c.trait.isGetter()) { - return b = A.VM_OPEN_GET_METHOD_PREFIX + F.getQualifiedName(c.trait.name), c = this.getJSProperty(l(c.baseClass), "traitsPrototype." + b), this.call(c, e, []); + return b = A.VM_OPEN_GET_METHOD_PREFIX + E.getQualifiedName(c.trait.name), c = this.getJSProperty(l(c.baseClass), "traitsPrototype." + b), this.call(c, e, []); } if (c.trait.isMethod()) { - return b = A.VM_OPEN_METHOD_PREFIX + F.getQualifiedName(c.trait.name), this.getJSProperty(l(c.baseClass), "traitsPrototype." + b); + return b = A.VM_OPEN_METHOD_PREFIX + E.getQualifiedName(c.trait.name), this.getJSProperty(l(c.baseClass), "traitsPrototype." + b); } } - return this.store(new a.IR.ASGetSuper(g, n.store, e, f, b)); + return this.store(new a.IR.ASGetSuper(h, p.store, e, f, b)); }; - x.prototype.setSuper = function(b, e, f, c) { - var g = this.bc.ti, n = this.region, h = this.state; - return g && g.trait && g.trait.isSetter() && g.baseClass ? (b = A.VM_OPEN_SET_METHOD_PREFIX + F.getQualifiedName(g.trait.name), g = this.getJSProperty(l(g.baseClass), "traitsPrototype." + b), this.call(g, e, [c])) : this.store(new a.IR.ASSetSuper(n, h.store, e, f, c, b)); + n.prototype.setSuper = function(b, e, f, c) { + var h = this.bc.ti, p = this.region, g = this.state; + h && h.trait && h.trait.isSetter() && h.baseClass ? (b = A.VM_OPEN_SET_METHOD_PREFIX + E.getQualifiedName(h.trait.name), h = this.getJSProperty(l(h.baseClass), "traitsPrototype." + b), this.call(h, e, [c])) : this.store(new a.IR.ASSetSuper(p, g.store, e, f, c, b)); }; - x.prototype.constructSuper = function(b, a, e) { + n.prototype.constructSuper = function(b, a, e) { var f = this.bc.ti; if (f) { if (f.noCallSuperNeeded) { @@ -19102,35 +19104,35 @@ Shumway.AVM2.XRegExp.install(); b = this.getJSProperty(b, "object.baseClass.instanceConstructorNoInitialize"); this.call(b, a, e); }; - x.prototype.getSlot = function(b, e) { - var f = this.bc.ti, c = this.region, g = this.state; + n.prototype.getSlot = function(b, e) { + var f = this.bc.ti, c = this.region, h = this.state; if (f) { - var n = f.trait; - if (n) { - if (n.isConst() && f.trait.hasDefaultValue) { - return l(n.value); + var p = f.trait; + if (p) { + if (p.isConst() && f.trait.hasDefaultValue) { + return l(p.value); } - f = F.getQualifiedName(n.name); - return this.store(new a.IR.GetProperty(c, g.store, b, l(f))); + f = E.getQualifiedName(p.name); + return this.store(new a.IR.GetProperty(c, h.store, b, l(f))); } } - return this.store(new a.IR.ASGetSlot(null, g.store, b, e)); + return this.store(new a.IR.ASGetSlot(null, h.store, b, e)); }; - x.prototype.setSlot = function(b, e, f) { - var c = this.bc.ti, g = this.region, n = this.state; + n.prototype.setSlot = function(b, e, f) { + var c = this.bc.ti, h = this.region, p = this.state; if (c && (c = c.trait)) { - e = F.getQualifiedName(c.name); - this.store(new a.IR.SetProperty(g, n.store, b, l(e), f)); + e = E.getQualifiedName(c.name); + this.store(new a.IR.SetProperty(h, p.store, b, l(e), f)); return; } - this.store(new a.IR.ASSetSlot(g, n.store, b, e, f)); + this.store(new a.IR.ASSetSlot(h, p.store, b, e, f)); }; - x.prototype.resolveMultinameGlobally = function(b) { + n.prototype.resolveMultinameGlobally = function(b) { var a = b.namespaces, e = b.name; if (d.AVM2.Runtime.globalMultinameAnalysis.value) { - if (ea(a) && ea(e) && !b.isAttribute()) { + if (ga(a) && ga(e) && !b.isAttribute()) { if (!d.isNumeric(e.value) && d.isString(e.value) && e.value) { - return y.resolveMultiname(new F(a.value, e.value, b.flags)); + return z.resolveMultiname(new E(a.value, e.value, b.flags)); } k.countTimeline("GlobalMultinameResolver: Cannot resolve numeric or any names."); } else { @@ -19138,71 +19140,71 @@ Shumway.AVM2.XRegExp.install(); } } }; - x.prototype.getJSProperty = function(b, a) { - return h(this.state, b, a); + n.prototype.getJSProperty = function(b, a) { + return g(this.state, b, a); }; - x.prototype.setJSProperty = function(b, e, f) { + n.prototype.setJSProperty = function(b, e, f) { this.store(new a.IR.SetProperty(null, this.state.store, b, l(e), f)); }; - x.prototype.simplifyName = function(b) { - return b instanceof X && b.value instanceof F && F.isQName(b.value) ? l(F.getQualifiedName(b.value)) : b; + n.prototype.simplifyName = function(b) { + return b instanceof Y && b.value instanceof E && E.isQName(b.value) ? l(E.getQualifiedName(b.value)) : b; }; - x.prototype.getDescendants = function(b, e) { + n.prototype.getDescendants = function(b, e) { var f = this.region, c = this.state; e = this.simplifyName(e); return new a.IR.ASGetDescendants(f, c.store, b, e); }; - x.prototype.truthyCondition = function(b) { + n.prototype.truthyCondition = function(b) { var a = this.state.stack, e; b.isBinary && (e = a.pop()); a = a.pop(); - b = e ? m(b, a, e) : s(b, a); - da && (b = da.fold(b, !0)); + b = e ? m(b, a, e) : r(b, a); + fa && (b = fa.fold(b, !0)); return b; }; - x.prototype.negatedTruthyCondition = function(b) { - b = s(L.FALSE, this.truthyCondition(b)); - da && (b = da.fold(b, !0)); + n.prototype.negatedTruthyCondition = function(b) { + b = r(O.FALSE, this.truthyCondition(b)); + fa && (b = fa.fold(b, !0)); return b; }; - x.prototype.pushExpression = function(b, a) { + n.prototype.pushExpression = function(b, a) { var e = this.state.stack, f; - b.isBinary ? (f = e.pop(), e = e.pop(), a && (f = g(f), e = g(e)), this.push(m(b, e, f))) : (e = e.pop(), a && (e = g(e)), this.push(s(b, e))); + b.isBinary ? (f = e.pop(), e = e.pop(), a && (f = h(f), e = h(e)), this.push(m(b, e, f))) : (e = e.pop(), a && (e = h(e)), this.push(r(b, e))); }; - x.prototype.push = function(b) { + n.prototype.push = function(b) { var a = this.bc; a.ti && !b.ty && (b.ty = a.ti.type); this.state.stack.push(b); }; - x.prototype.pushLocal = function(b) { + n.prototype.pushLocal = function(b) { this.push(this.state.local[b]); }; - x.prototype.popLocal = function(b) { + n.prototype.popLocal = function(b) { var a = this.state; - a.local[b] = r(a.stack.pop()); + a.local[b] = t(a.stack.pop()); }; - x.prototype.build = function() { - function h() { - return v.pop(); + n.prototype.build = function() { + function g() { + return w.pop(); } - function s(b) { - return d.ArrayUtilities.popMany(v, b); + function r(b) { + return d.ArrayUtilities.popMany(w, b); } - var x = this.block, p = this.state, u = this.state.local, v = this.state.stack, H = this.state.scope, C = this.region, T = this.bytecodes, B, A, y, w = this.push.bind(this); + var n = this.block, C = this.state, u = this.state.local, w = this.state.stack, H = this.state.scope, y = this.region, K = this.bytecodes, J, A, z, x = this.push.bind(this); this.stops = null; - this.traceBuilder && (aa.writeLn("Processing Region: " + C + ", Block: " + x.bid), aa.enter(("> state: " + C.entryState.toString()).padRight(" ", 100))); - for (var G = x.position, J = x.end.position;G <= J;G++) { - this.bc = x = T[G]; - var E = x.op; - p.index = G; - switch(E) { + this.traceBuilder && (ca.writeLn("Processing Region: " + y + ", Block: " + n.bid), ca.enter(("> state: " + y.entryState.toString()).padRight(" ", 100))); + for (var G = n.position, L = n.end.position;G <= L;G++) { + this.bc = n = K[G]; + var F = n.op; + C.index = G; + switch(F) { case 3: - this.store(new a.IR.Throw(C, h())); - this.builder.stopPoints.push({region:C, store:p.store, value:S}); + this.store(new a.IR.Throw(y, g())); + this.builder.stopPoints.push({region:y, store:C.store, value:U}); this.setThrowStop(); break; case 98: - this.pushLocal(x.index); + this.pushLocal(n.index); break; case 208: ; @@ -19211,10 +19213,10 @@ Shumway.AVM2.XRegExp.install(); case 210: ; case 211: - this.pushLocal(E - 208); + this.pushLocal(F - 208); break; case 99: - this.popLocal(x.index); + this.popLocal(n.index); break; case 212: ; @@ -19223,257 +19225,257 @@ Shumway.AVM2.XRegExp.install(); case 214: ; case 215: - this.popLocal(E - 212); + this.popLocal(F - 212); break; case 28: ; case 48: - H.push(new a.IR.ASScope(this.topScope(), h(), 28 === E)); + H.push(new a.IR.ASScope(this.topScope(), g(), 28 === F)); break; case 29: H.pop(); break; case 100: - w(this.getGlobalScope()); + x(this.getGlobalScope()); break; case 101: - w(this.getScopeObject(p.scope[x.index])); + x(this.getScopeObject(C.scope[n.index])); break; case 94: ; case 93: - w(this.findProperty(this.popMultiname(), 93 === E)); + x(this.findProperty(this.popMultiname(), 93 === F)); break; case 102: - y = this.popMultiname(); - A = h(); - w(this.getProperty(A, y, !1)); + z = this.popMultiname(); + A = g(); + x(this.getProperty(A, z, !1)); break; case 89: - y = this.popMultiname(); - A = h(); - w(this.getDescendants(A, y)); + z = this.popMultiname(); + A = g(); + x(this.getDescendants(A, z)); break; case 96: - y = this.popMultiname(); - w(this.getProperty(this.findProperty(y, !0), y, !1)); + z = this.popMultiname(); + x(this.getProperty(this.findProperty(z, !0), z, !1)); break; case 104: ; case 97: - B = h(); - y = this.popMultiname(); - A = h(); - this.setProperty(A, y, B); + J = g(); + z = this.popMultiname(); + A = g(); + this.setProperty(A, z, J); break; case 106: - y = this.popMultiname(); - A = h(); - w(this.store(new a.IR.ASDeleteProperty(C, p.store, A, y))); + z = this.popMultiname(); + A = g(); + x(this.store(new a.IR.ASDeleteProperty(y, C.store, A, z))); break; case 108: - A = h(); - w(this.getSlot(A, l(x.index))); + A = g(); + x(this.getSlot(A, l(n.index))); break; case 109: - B = h(); - A = h(); - this.setSlot(A, l(x.index), B); + J = g(); + A = g(); + this.setSlot(A, l(n.index), J); break; case 4: - y = this.popMultiname(); - A = h(); - w(this.getSuper(this.savedScope(), A, y)); + z = this.popMultiname(); + A = g(); + x(this.getSuper(this.savedScope(), A, z)); break; case 5: - B = h(); - y = this.popMultiname(); - A = h(); - this.setSuper(this.savedScope(), A, y, B); + J = g(); + z = this.popMultiname(); + A = g(); + this.setSuper(this.savedScope(), A, z, J); break; case 241: ; case 240: break; case 64: - w(n(this.builder.createFunctionCallee, [l(this.abc.methods[x.index]), this.topScope(), l(!0)])); + x(p(this.builder.createFunctionCallee, [l(this.abc.methods[n.index]), this.topScope(), l(!0)])); break; case 65: - B = s(x.argCount); - A = h(); - y = h(); - w(this.callCall(y, A, B)); + J = r(n.argCount); + A = g(); + z = g(); + x(this.callCall(z, A, J)); break; case 70: ; case 79: ; case 76: - B = s(x.argCount); - y = this.popMultiname(); - A = h(); - B = this.callProperty(A, y, B, 76 === E); - 79 !== E && w(B); + J = r(n.argCount); + z = this.popMultiname(); + A = g(); + J = this.callProperty(A, z, J, 76 === F); + 79 !== F && x(J); break; case 69: ; case 78: - y = this.popMultiname(); - B = s(x.argCount); - A = h(); - B = this.callSuper(this.savedScope(), A, y, B); - 78 !== E && w(B); + z = this.popMultiname(); + J = r(n.argCount); + A = g(); + J = this.callSuper(this.savedScope(), A, z, J); + 78 !== F && x(J); break; case 66: - B = s(x.argCount); - A = h(); - w(this.store(new a.IR.ASNew(C, p.store, A, B))); + J = r(n.argCount); + A = g(); + x(this.store(new a.IR.ASNew(y, C.store, A, J))); break; case 73: - B = s(x.argCount); - A = h(); - this.constructSuper(this.savedScope(), A, B); + J = r(n.argCount); + A = g(); + this.constructSuper(this.savedScope(), A, J); break; case 74: - B = s(x.argCount); - y = this.popMultiname(); - A = h(); - y = this.getProperty(A, y, !1); - w(this.store(new a.IR.ASNew(C, p.store, y, B))); + J = r(n.argCount); + z = this.popMultiname(); + A = g(); + z = this.getProperty(A, z, !1); + x(this.store(new a.IR.ASNew(y, C.store, z, J))); break; case 128: - if (x.ti && x.ti.noCoercionNeeded) { + if (n.ti && n.ti.noCoercionNeeded) { k.countTimeline("Compiler: NoCoercionNeeded"); break; } else { k.countTimeline("Compiler: CoercionNeeded"); } - B = h(); - w(this.coerce(this.constantPool.multinames[x.index], B)); + J = g(); + x(this.coerce(this.constantPool.multinames[n.index], J)); break; case 131: ; case 115: - w(g(h())); + x(h(g())); break; case 136: ; case 116: - w(f(h())); + x(f(g())); break; case 132: ; case 117: - w(b(h())); + x(b(g())); break; case 129: ; case 118: - w(e(h())); + x(e(g())); break; case 120: - w(this.call(q("checkFilter"), null, [h()])); + x(this.call(q("checkFilter"), null, [g()])); break; case 130: break; case 133: - w(z(h())); + x(B(g())); break; case 112: - w(I(h())); + x(I(g())); break; case 114: - w(D(h())); + x(D(g())); break; case 113: - w(M(h())); + x(M(g())); break; case 134: - if (x.ti && x.ti.noCoercionNeeded) { + if (n.ti && n.ti.noCoercionNeeded) { k.countTimeline("Compiler: NoCoercionNeeded"); break; } else { k.countTimeline("Compiler: CoercionNeeded"); } - B = h(); - A = this.constantPool.multinames[x.index]; - y = new a.IR.ASMultiname(l(A.namespaces), l(A.name), l(A.flags)); - A = this.getProperty(this.findProperty(y, !1), y); - w(this.call(q("asAsType"), null, [A, B])); + J = g(); + A = this.constantPool.multinames[n.index]; + z = new a.IR.ASMultiname(l(A.namespaces), l(A.name), l(A.flags)); + A = this.getProperty(this.findProperty(z, !1), z); + x(this.call(q("asAsType"), null, [A, J])); break; case 135: - A = h(); - B = h(); - w(this.call(q("asAsType"), null, [A, B])); + A = g(); + J = g(); + x(this.call(q("asAsType"), null, [A, J])); break; case 72: ; case 71: - B = S; - 72 === E && (B = h(), this.methodInfo.returnType && (x.ti && x.ti.noCoercionNeeded || (B = this.coerce(this.methodInfo.returnType, B)))); - this.builder.stopPoints.push({region:C, store:p.store, value:B}); + J = U; + 72 === F && (J = g(), this.methodInfo.returnType && (n.ti && n.ti.noCoercionNeeded || (J = this.coerce(this.methodInfo.returnType, J)))); + this.builder.stopPoints.push({region:y, store:C.store, value:J}); this.setReturnStop(); break; case 30: ; case 35: - B = h(); - A = h(); - w(new a.IR.CallProperty(C, p.store, A, l(30 === E ? "asNextName" : "asNextValue"), [B], 4)); + J = g(); + A = g(); + x(new a.IR.CallProperty(y, C.store, A, l(30 === F ? "asNextName" : "asNextValue"), [J], 4)); break; case 50: - B = new a.IR.ASNewHasNext2; - this.setJSProperty(B, "object", u[x.object]); - this.setJSProperty(B, "index", u[x.index]); - this.store(new a.IR.CallProperty(C, p.store, la(u[x.object]), l("asHasNext2"), [B], 4)); - u[x.object] = this.getJSProperty(B, "object"); - w(u[x.index] = this.getJSProperty(B, "index")); + J = new a.IR.ASNewHasNext2; + this.setJSProperty(J, "object", u[n.object]); + this.setJSProperty(J, "index", u[n.index]); + this.store(new a.IR.CallProperty(y, C.store, na(u[n.object]), l("asHasNext2"), [J], 4)); + u[n.object] = this.getJSProperty(J, "object"); + x(u[n.index] = this.getJSProperty(J, "index")); break; case 32: - w(Q); + x(S); break; case 33: - w(S); + x(U); break; case 38: - w(K); + x(N); break; case 39: - w(P); + x(R); break; case 40: - w(l(NaN)); + x(l(NaN)); break; case 34: - N(String(x)); + P(String(n)); break; case 36: ; case 37: - w(l(x.value)); + x(l(n.value)); break; case 44: - w(l(this.constantPool.strings[x.index])); + x(l(this.constantPool.strings[n.index])); break; case 45: - w(l(this.constantPool.ints[x.index])); + x(l(this.constantPool.ints[n.index])); break; case 46: - w(l(this.constantPool.uints[x.index])); + x(l(this.constantPool.uints[n.index])); break; case 47: - w(l(this.constantPool.doubles[x.index])); + x(l(this.constantPool.doubles[n.index])); break; case 41: - h(); + g(); break; case 42: - B = r(h()); - w(B); - w(B); + J = t(g()); + x(J); + x(J); break; case 43: - p.stack.push(h(), h()); + C.stack.push(g(), g()); break; case 239: ; @@ -19485,16 +19487,16 @@ Shumway.AVM2.XRegExp.install(); this.setJumpStop(); break; case 12: - this.setIfStops(this.negatedTruthyCondition(L.LT)); + this.setIfStops(this.negatedTruthyCondition(O.LT)); break; case 15: - this.setIfStops(this.negatedTruthyCondition(L.GE)); + this.setIfStops(this.negatedTruthyCondition(O.GE)); break; case 14: - this.setIfStops(this.negatedTruthyCondition(L.GT)); + this.setIfStops(this.negatedTruthyCondition(O.GT)); break; case 13: - this.setIfStops(this.negatedTruthyCondition(L.LE)); + this.setIfStops(this.negatedTruthyCondition(O.LE)); break; case 24: ; @@ -19515,16 +19517,16 @@ Shumway.AVM2.XRegExp.install(); case 25: ; case 26: - this.setIfStops(this.truthyCondition(c(E))); + this.setIfStops(this.truthyCondition(c(F))); break; case 27: - this.setSwitchStops(h()); + this.setSwitchStops(g()); break; case 160: - A = h(); - B = h(); - y = t(B, A) ? L.ADD : d.AVM2.Runtime.useAsAdd ? L.AS_ADD : L.ADD; - w(m(y, B, A)); + A = g(); + J = g(); + z = v(J, A) ? O.ADD : d.AVM2.Runtime.useAsAdd ? O.AS_ADD : O.ADD; + x(m(z, J, A)); break; case 161: ; @@ -19563,7 +19565,7 @@ Shumway.AVM2.XRegExp.install(); case 150: ; case 151: - this.pushExpression(c(E)); + this.pushExpression(c(F)); break; case 196: ; @@ -19572,7 +19574,7 @@ Shumway.AVM2.XRegExp.install(); case 198: ; case 199: - this.pushExpression(c(E), !0); + this.pushExpression(c(F), !0); break; case 145: ; @@ -19581,9 +19583,9 @@ Shumway.AVM2.XRegExp.install(); case 147: ; case 193: - w(l(1)); - 145 === E || 147 === E ? w(b(h())) : w(g(h())); - 145 === E || 192 === E ? this.pushExpression(L.ADD) : this.pushExpression(L.SUB); + x(l(1)); + 145 === F || 147 === F ? x(b(g())) : x(h(g())); + 145 === F || 192 === F ? this.pushExpression(O.ADD) : this.pushExpression(O.SUB); break; case 146: ; @@ -19592,78 +19594,78 @@ Shumway.AVM2.XRegExp.install(); case 148: ; case 195: - w(l(1)); - 146 === E || 148 === E ? w(b(u[x.index])) : w(g(u[x.index])); - 146 === E || 194 === E ? this.pushExpression(L.ADD) : this.pushExpression(L.SUB); - this.popLocal(x.index); + x(l(1)); + 146 === F || 148 === F ? x(b(u[n.index])) : x(h(u[n.index])); + 146 === F || 194 === F ? this.pushExpression(O.ADD) : this.pushExpression(O.SUB); + this.popLocal(n.index); break; case 177: - A = h(); - B = h(); - w(this.call(this.getJSProperty(A, "isInstanceOf"), null, [B])); + A = g(); + J = g(); + x(this.call(this.getJSProperty(A, "isInstanceOf"), null, [J])); break; case 178: - B = h(); - y = this.popMultiname(); - A = this.getProperty(this.findProperty(y, !1), y); - w(this.call(q("asIsType"), null, [A, B])); + J = g(); + z = this.popMultiname(); + A = this.getProperty(this.findProperty(z, !1), z); + x(this.call(q("asIsType"), null, [A, J])); break; case 179: - A = h(); - B = h(); - w(this.call(q("asIsType"), null, [A, B])); + A = g(); + J = g(); + x(this.call(q("asIsType"), null, [A, J])); break; case 180: - A = h(); - B = h(); - y = new a.IR.ASMultiname(S, B, l(0)); - w(this.store(new a.IR.ASHasProperty(C, p.store, A, y))); + A = g(); + J = g(); + z = new a.IR.ASMultiname(U, J, l(0)); + x(this.store(new a.IR.ASHasProperty(y, C.store, A, z))); break; case 149: - w(this.call(q("asTypeOf"), null, [h()])); + x(this.call(q("asTypeOf"), null, [g()])); break; case 8: - w(S); - this.popLocal(x.index); + x(U); + this.popLocal(n.index); break; case 83: - B = s(x.argCount); - A = h(); - y = q("applyType"); - w(this.call(y, null, [this.methodInfoConstant, A, new ca(C, B)])); + J = r(n.argCount); + A = g(); + z = q("applyType"); + x(this.call(z, null, [this.methodInfoConstant, A, new ea(y, J)])); break; case 86: - B = s(x.argCount); - w(new ca(C, B)); + J = r(n.argCount); + x(new ea(y, J)); break; case 85: A = []; - for (y = 0;y < x.argCount;y++) { - B = h(); - var O = h(), O = l(F.getPublicQualifiedName(O.value)); - A.push(new ha(O, B)); + for (z = 0;z < n.argCount;z++) { + J = g(); + var Q = g(), Q = l(E.getPublicQualifiedName(Q.value)); + A.push(new ja(Q, J)); } - w(new ga(C, A)); + x(new ia(y, A)); break; case 87: - w(new a.IR.ASNewActivation(l(this.methodInfo))); + x(new a.IR.ASNewActivation(l(this.methodInfo))); break; case 88: - y = q("createClass"); - w(this.call(y, null, [l(this.abc.classes[x.index]), h(), this.topScope()])); + z = q("createClass"); + x(this.call(z, null, [l(this.abc.classes[n.index]), g(), this.topScope()])); break; default: - N(String(x)); + P(String(n)); } - 239 !== E && 241 !== E && 240 !== E && this.traceBuilder && aa.writeLn(("state: " + p.toString()).padRight(" ", 100) + " : " + G + ", " + x.toString(this.abc)); + 239 !== F && 241 !== F && 240 !== F && this.traceBuilder && ca.writeLn(("state: " + C.toString()).padRight(" ", 100) + " : " + G + ", " + n.toString(this.abc)); } - this.traceBuilder && aa.leave(("< state: " + p.toString()).padRight(" ", 100)); + this.traceBuilder && ca.leave(("< state: " + C.toString()).padRight(" ", 100)); }; - return x; - }(), ra = function() { + return n; + }(), ta = function() { function b(a, e, f) { this.abc = a.abc; - this.methodInfoConstant = new X(a); + this.methodInfoConstant = new Y(a); this.scope = e; this.methodInfo = a; this.hasDynamicScope = f; @@ -19673,37 +19675,35 @@ Shumway.AVM2.XRegExp.install(); this.bytecodes = this.methodInfo.analysis.bytecodes; } b.prototype.buildStart = function(b) { - var e = this.methodInfo, f = b.entryState = new O(0); - f.local.push(new R(b)); - for (var c = this.hasDynamicScope ? 1 : 0, g = e.parameters.length, n = 0;n < g;n++) { - f.local.push(new Z(b, c + n, e.parameters[n].name)); + var e = this.methodInfo, f = b.entryState = new Q(0); + f.local.push(new T(b)); + for (var c = this.hasDynamicScope ? 1 : 0, h = e.parameters.length, p = 0;p < h;p++) { + f.local.push(new aa(b, c + p, e.parameters[p].name)); } - for (n = g;n < e.localCount;n++) { - f.local.push(S); + for (p = h;p < e.localCount;p++) { + f.local.push(U); } - f.store = new W(b, 3); - b.scope = this.hasDynamicScope ? new Z(b, 0, A.SAVED_SCOPE_NAME) : new X(this.scope); - f.saved = new W(b, 4); - n = new a.IR.Arguments(b); + f.store = new X(b, 3); + b.scope = this.hasDynamicScope ? new aa(b, 0, A.SAVED_SCOPE_NAME) : new Y(this.scope); + f.saved = new X(b, 4); + p = new a.IR.Arguments(b); if (e.needsRest() || e.needsArguments()) { - var r = l(c + (e.needsRest() ? g : 0)), m; - m = e.needsArguments() ? h(f, n, "callee") : l(void 0); - f.local[g + 1] = new U(b, f.store, q("sliceArguments"), null, [n, r, m], 4); + var m = l(c + (e.needsRest() ? h : 0)), t; + t = e.needsArguments() ? g(f, p, "callee") : l(void 0); + f.local[h + 1] = new V(b, f.store, q("sliceArguments"), null, [p, m, t], 4); } - r = h(f, n, "length"); - for (n = 0;n < g;n++) { - var d = e.parameters[n]; - m = n + 1; - var s = f.local[m]; + b = g(f, p, "length"); + for (p = 0;p < h;p++) { + var d = e.parameters[p], m = p + 1; + t = f.local[m]; if (void 0 !== d.value) { - var x; - x = new a.IR.Binary(L.LT, r, l(c + n + 1)); - s = new a.IR.Latch(null, x, l(d.value), s); + var r; + r = new a.IR.Binary(O.LT, b, l(c + p + 1)); + t = new a.IR.Latch(null, r, l(d.value), t); } - d.type && !d.type.isAnyName() && (d = V[F.getQualifiedName(d.type)]) && (s = d(s)); - f.local[m] = s; + d.type && !d.type.isAnyName() && (d = W[E.getQualifiedName(d.type)]) && (t = d(t)); + f.local[m] = t; } - return b; }; b.prototype.buildGraph = function() { for (var b = this.methodInfo.analysis.blocks, e = this.traceBuilder, f = 0;f < b.length;f++) { @@ -19711,35 +19711,35 @@ Shumway.AVM2.XRegExp.install(); } var c = new d.SortedList(function(b, a) { return b.block.bdo - a.block.bdo; - }), f = new J; + }), f = new L; this.buildStart(f); for (c.push({region:f, block:b[0]});b = c.pop();) { this.buildBlock(b.region, b.block, b.region.entryState.clone()).forEach(function(b) { - var f = b.target, g = f.region; - if (g) { - e && aa.enter("Merging into region: " + g + " @ " + f.position + ", block " + f.bid + " {"), e && aa.writeLn(" R " + g.entryState), e && aa.writeLn("+ I " + b.state), g.entryState.merge(g, b.state), g.predecessors.push(b.control), e && aa.writeLn(" = " + g.entryState), e && aa.leave("}"); + var f = b.target, h = f.region; + if (h) { + e && ca.enter("Merging into region: " + h + " @ " + f.position + ", block " + f.bid + " {"), e && ca.writeLn(" R " + h.entryState), e && ca.writeLn("+ I " + b.state), h.entryState.merge(h, b.state), h.predecessors.push(b.control), e && ca.writeLn(" = " + h.entryState), e && ca.leave("}"); } else { - var g = f.region = new E(b.control), n = null; - f.loop && (n = a.enableDirtyLocals.value && f.loop.getDirtyLocals(), e && aa.writeLn("Adding PHIs to loop region. " + n)); - g.entryState = f.loop ? b.state.makeLoopPhis(g, n) : b.state.clone(f.position); - e && aa.writeLn("Adding new region: " + g + " @ " + f.position + " to worklist."); - c.push({region:g, block:f}); + var h = f.region = new F(b.control), p = null; + f.loop && (p = a.enableDirtyLocals.value && f.loop.getDirtyLocals(), e && ca.writeLn("Adding PHIs to loop region. " + p)); + h.entryState = f.loop ? b.state.makeLoopPhis(h, p) : b.state.clone(f.position); + e && ca.writeLn("Adding new region: " + h + " @ " + f.position + " to worklist."); + c.push({region:h, block:f}); } - }), e && aa.enter("Worklist: {"), c.forEach(function(b) { - e && aa.writeLn(b.region + " " + b.block.bdo + " " + b.region.entryState); - }), e && aa.leave("}"); + }), e && ca.enter("Worklist: {"), c.forEach(function(b) { + e && ca.writeLn(b.region + " " + b.block.bdo + " " + b.region.entryState); + }), e && ca.leave("}"); } - e && aa.writeLn("Done"); + e && ca.writeLn("Done"); if (1 < this.stopPoints.length) { - var g = new E(null), n = new $(g, null), h = new $(g, null); + var h = new F(null), p = new ba(h, null), g = new ba(h, null); this.stopPoints.forEach(function(b) { - g.predecessors.push(b.region); - n.pushValue(b.value); - h.pushValue(b.store); + h.predecessors.push(b.region); + p.pushValue(b.value); + g.pushValue(b.store); }); - b = new Y(g, h, n); + b = new Z(h, g, p); } else { - b = new Y(this.stopPoints[0].region, this.stopPoints[0].store, this.stopPoints[0].value); + b = new Z(this.stopPoints[0].region, this.stopPoints[0].store, this.stopPoints[0].value); } return new a.IR.DFG(b); }; @@ -19747,13 +19747,13 @@ Shumway.AVM2.XRegExp.install(); e.optimize(); var f = a.verifierEntryState; if (f) { - this.traceBuilder && aa.writeLn("Type State: " + f); + this.traceBuilder && ca.writeLn("Type State: " + f); for (var c = 0;c < f.local.length;c++) { - var g = f.local[c], n = e.local[c]; - n.ty || (n.ty = g); + var h = f.local[c], p = e.local[c]; + p.ty || (p.ty = h); } } - a = new ma(this, b, a, e); + a = new oa(this, b, a, e); a.build(); f = a.stops; f || (f = [], a.bc.position + 1 <= this.bytecodes.length && f.push({control:b, target:this.bytecodes[a.bc.position + 1], state:e})); @@ -19767,15 +19767,15 @@ Shumway.AVM2.XRegExp.install(); k.leaveTimeline(); d.AVM2.Verifier.enabled.value && (k.enterTimeline("Verify"), a.verifyMethod(e, f), k.leaveTimeline()); a = 0 < d.AVM2.Compiler.traceLevel.value; - var g = 1 < d.AVM2.Compiler.traceLevel.value, n = 2 < d.AVM2.Compiler.traceLevel.value; + var h = 1 < d.AVM2.Compiler.traceLevel.value, p = 2 < d.AVM2.Compiler.traceLevel.value; if (a) { - var h = window.performance.now() + var g = window.performance.now() } k.enterTimeline("Build IR"); G.startNumbering(); f = (new b(e, f, c)).buildGraph(); k.leaveTimeline(); - n && f.trace(aa); + p && f.trace(ca); k.enterTimeline("Build CFG"); f = f.buildCFG(); k.leaveTimeline(); @@ -19785,7 +19785,7 @@ Shumway.AVM2.XRegExp.install(); k.enterTimeline("Schedule Nodes"); f.scheduleEarly(); k.leaveTimeline(); - n && f.trace(aa); + p && f.trace(ca); k.enterTimeline("Verify IR"); f.verify(); k.leaveTimeline(); @@ -19793,18 +19793,18 @@ Shumway.AVM2.XRegExp.install(); f.allocateVariables(); k.leaveTimeline(); k.enterTimeline("Generate Source"); - n = d.AVM2.Compiler.Backend.generate(f); + p = d.AVM2.Compiler.Backend.generate(f); k.leaveTimeline(); - g && aa.writeLn(n.body); + h && ca.writeLn(p.body); G.stopNumbering(); k.leaveTimeline(); - a && aa.writeLn("Compiled " + (e.name ? "function " + e.name : "anonymous function") + " in " + (window.performance.now() - h).toPrecision(2) + "ms"); - return n; + a && ca.writeLn("Compiled " + (e.name ? "function " + e.name : "anonymous function") + " in " + (window.performance.now() - g).toPrecision(2) + "ms"); + return p; }; return b; - }(), na = new d.AVM2.Verifier.Verifier; + }(), pa = new d.AVM2.Verifier.Verifier; a.compileMethod = function(b, a, e) { - return ra.buildMethod(na, b, a, e); + return ta.buildMethod(pa, b, a, e); }; })(k.Compiler || (k.Compiler = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -19812,21 +19812,21 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(b, a) { - var f = new h(null, b), g = b.abc.applicationDomain, m = []; + function n(b, a) { + var f = new g(null, b), h = b.abc.applicationDomain, m = []; k(b.init, a, f, m, !1); b.traits.forEach(function(b) { if (b.isClass()) { for (var d = [], l = b.classInfo;l;) { if (d.unshift(l), l.instanceInfo.superName) { - l = g.findClassInfo(l.instanceInfo.superName); + l = h.findClassInfo(l.instanceInfo.superName); } else { break; } } var q = f; d.forEach(function(b) { - q = new h(q, b); + q = new g(q, b); }); c(b.classInfo, a, q, m); } else { @@ -19837,16 +19837,16 @@ Shumway.AVM2.XRegExp.install(); k(b.methodInfo, a, b.scope, null, !0); }); } - function k(b, a, c, g, h) { + function k(b, a, c, h, g) { if (q(b)) { - s(b); + r(b); try { f = !1; - var d = m(b, c, h, !1, !1); + var d = m(b, c, g, !1, !1); a.enter(b.index + ": "); f ? a.writeLn("undefined") : a.writeLns(d.toSource()); a.leave(","); - g && t(b, a, c, g); + h && v(b, a, c, h); } catch (l) { a.writeLn("// " + l); } @@ -19854,15 +19854,15 @@ Shumway.AVM2.XRegExp.install(); a.writeLn("// Can't compile method: " + b.index); } } - function t(b, a, f, c) { - for (var g = b.analysis.bytecodes, m = b.abc.methods, d = 0;d < g.length;d++) { - var l = g[d]; + function v(b, a, f, c) { + for (var h = b.analysis.bytecodes, m = b.abc.methods, d = 0;d < h.length;d++) { + var l = h[d]; if (64 === l.op) { l = m[l.index]; - s(l); - var q = new h(f, b); + r(l); + var q = new g(f, b); c.push({scope:q, methodInfo:l}); - t(l, a, q, c); + v(l, a, q, c); } } } @@ -19880,12 +19880,12 @@ Shumway.AVM2.XRegExp.install(); k(b.instanceInfo.init, a, f, c, !1); l(b.instanceInfo.traits, a, f, c); } - var h = d.AVM2.Runtime.Scope, q = d.AVM2.Runtime.canCompile, s = d.AVM2.Runtime.ensureFunctionIsInitialized, m = d.AVM2.Runtime.createCompiledFunction, g = d.AVM2.Runtime.LazyInitializer, f = !1; + var g = d.AVM2.Runtime.Scope, q = d.AVM2.Runtime.canCompile, r = d.AVM2.Runtime.ensureFunctionIsInitialized, m = d.AVM2.Runtime.createCompiledFunction, h = d.AVM2.Runtime.LazyInitializer, f = !1; jsGlobal.objectConstantName = function(b) { if (b.hash) { return "$(" + b.hash + ")"; } - if (b instanceof g) { + if (b instanceof h) { return b.getName(); } f = !0; @@ -19894,7 +19894,7 @@ Shumway.AVM2.XRegExp.install(); a.enter("{"); a.enter("methods: {"); for (var f = 0;f < b.scripts.length;f++) { - p(b.scripts[f], a); + n(b.scripts[f], a); } a.leave("}"); a.leave("}"); @@ -19906,95 +19906,69 @@ Shumway.AVM2.XRegExp.install(); (function(k) { (function(a) { (function(a) { - function k(b) { - var a = b.length, e = [], f; - for (f = 0;f < a;++f) { - e[f] = b.charAt(f); + function k(b, a) { + switch(b) { + case "\b": + return "\\b"; + case "\f": + return "\\f"; + case "\t": + return "\\t"; + default: + var e = b.charCodeAt(0), f = e.toString(16); + return 255 < e ? "\\u" + "0000".slice(f.length) + f : "\x00" === b && 0 > "0123456789".indexOf(a) ? "\\0" : "\x0B" === b ? "\\x0B" : "\\x" + "00".slice(f.length) + f; } - return e; } - function t(b) { - var a, e, f, c, g = 0, n = 0, r = b; - if (a = q[r]) { + function v(b) { + switch(b) { + case "\\": + return "\\\\"; + case "\n": + return "\\n"; + case "\r": + return "\\r"; + case "\u2028": + return "\\u2028"; + case "\u2029": + return "\\u2029"; + default: + throw Error("Incorrectly classified character");; + } + } + function u(b) { + var a = r[b]; + if (a) { return a; } - 1024 === h && (q = Object.create(null), h = 0); - a = ""; - "undefined" === typeof b[0] && (b = k(b)); - e = 0; - for (f = b.length;e < f;++e) { - c = b[e]; - if ("'" === c) { - ++g; + 1024 === q && (r = Object.create(null), q = 0); + for (var a = '"', e = 0, f = b.length;e < f;++e) { + var c = b[e]; + if ('"' === c) { + a += "\\"; } else { - if ('"' === c) { - ++n; + if (0 <= "\\\n\r\u2028\u2029".indexOf(c)) { + a += v(c); + continue; } else { - if (0 <= "\\\n\r\u2028\u2029".indexOf(c)) { - var m = "\\"; - switch(c) { - case "\\": - m += "\\"; - break; - case "\n": - m += "n"; - break; - case "\r": - m += "r"; - break; - case "\u2028": - m += "u2028"; - break; - case "\u2029": - m += "u2029"; - break; - default: - throw Error("Incorrectly classified character");; - } - a += m; + if (!(" " <= c && "~" >= c)) { + a += k(c, b[e + 1]); continue; - } else { - if (!(" " <= c && "~" >= c)) { - var m = b[e + 1], d = c.charCodeAt(0), l = d.toString(16), s = "\\"; - switch(c) { - case "\b": - s += "b"; - break; - case "\f": - s += "f"; - break; - case "\t": - s += "t"; - break; - default: - s = 255 < d ? s + ("u" + "0000".slice(l.length) + l) : "\x00" === c && 0 > "0123456789".indexOf(m) ? s + "0" : "\x0B" === c ? s + "x0B" : s + ("x" + "00".slice(l.length) + l); - } - a += s; - continue; - } } } } a += c; } - b = a; - a = '"'; - "undefined" === typeof b[0] && (b = k(b)); - e = 0; - for (f = b.length;e < f;++e) { - c = b[e], '"' === c && (a += "\\"), a += c; - } a += '"'; - q[r] = a; - h++; + r[b] = a; + q++; return a; } - function u(b) { + function l(b) { if (null === b) { return "null"; } if ("string" === typeof b) { - return t(b); + return u(b); } if ("number" === typeof b) { var a; @@ -20004,52 +19978,52 @@ Shumway.AVM2.XRegExp.install(); if (0 > b || 0 === b && 0 > 1 / b) { throw Error("Numeric literal whose value is negative"); } - b === 1 / 0 ? b = "1e+400" : (a = m[b], a || (1024 === s && (m = Object.create(null), s = 0), a = "" + b, m[b] = a, s++), b = a); + b === 1 / 0 ? b = "1e+400" : (a = h[b], a || (1024 === m && (h = Object.create(null), m = 0), a = "" + b, h[b] = a, m++), b = a); return b; } if ("boolean" === typeof b) { return b ? "true" : "false"; } - c(b); + g(b); } - function l(b, a, e) { + function c(b, a, e) { for (var f = "", c = 0;c < b.length;c++) { f += b[c].toSource(a), e && c < b.length - 1 && (f += e); } return f; } - var c = d.Debug.assertUnreachable, h = 0, q = Object.create(null); - a.escapeString = t; - var s = 0, m = Object.create(null), g = {"||":3, "&&":4, "|":5, "^":6, "&":7, "==":8, "!=":8, "===":8, "!==":8, is:8, isnt:8, "<":9, ">":9, "<=":9, ">=":9, "in":9, "instanceof":9, "<<":10, ">>":10, ">>>":10, "+":11, "-":11, "*":12, "%":12, "/":12}, f = function() { + var g = d.Debug.assertUnreachable, q = 0, r = Object.create(null); + a.escapeString = u; + var m = 0, h = Object.create(null), f = {"||":3, "&&":4, "|":5, "^":6, "&":7, "==":8, "!=":8, "===":8, "!==":8, is:8, isnt:8, "<":9, ">":9, "<=":9, ">=":9, "in":9, "instanceof":9, "<<":10, ">>":10, ">>>":10, "+":11, "-":11, "*":12, "%":12, "/":12}, b = function() { function b() { this.type = "Node"; } b.prototype.toSource = function(b) { - c("toSource called on abstract base class Node with type " + this.type); + g("toSource called on abstract base class Node with type " + this.type); return ""; }; return b; }(); - a.Node = f; - var b = function(b) { + a.Node = b; + var e = function(b) { function a() { b.apply(this, arguments); this.type = "Statement"; } __extends(a, b); return a; - }(f); - a.Statement = b; - var e = function(b) { + }(b); + a.Statement = e; + var t = function(b) { function a() { b.apply(this, arguments); this.type = "Expression"; } __extends(a, b); return a; - }(f); - a.Expression = e; - var r = function(b) { + }(b); + a.Expression = t; + var p = function(b) { function a(e) { b.call(this); this.body = e; @@ -20057,18 +20031,18 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(f); - a.Program = r; - r = function(b) { + }(b); + a.Program = p; + p = function(b) { function a() { b.apply(this, arguments); this.type = "EmptyStatement"; } __extends(a, b); return a; - }(b); - a.EmptyStatement = r; - r = function(b) { + }(e); + a.EmptyStatement = p; + p = function(b) { function a(e) { b.call(this); this.body = e; @@ -20076,12 +20050,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return "{\n" + l(this.body, b) + "}"; + return "{\n" + c(this.body, b) + "}"; }; return a; - }(b); - a.BlockStatement = r; - r = function(b) { + }(e); + a.BlockStatement = p; + p = function(b) { function a(e) { b.call(this); this.expression = e; @@ -20092,9 +20066,9 @@ Shumway.AVM2.XRegExp.install(); return this.expression.toSource(0) + ";\n"; }; return a; - }(b); - a.ExpressionStatement = r; - r = function(b) { + }(e); + a.ExpressionStatement = p; + p = function(b) { function a(e, f, c) { b.call(this); this.test = e; @@ -20109,9 +20083,9 @@ Shumway.AVM2.XRegExp.install(); return b; }; return a; - }(b); - a.IfStatement = r; - r = function(b) { + }(e); + a.IfStatement = p; + p = function(b) { function a(e, f) { b.call(this); this.label = e; @@ -20120,9 +20094,9 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(b); - a.LabeledStatement = r; - r = function(b) { + }(e); + a.LabeledStatement = p; + p = function(b) { function a(e) { b.call(this); this.label = e; @@ -20135,9 +20109,9 @@ Shumway.AVM2.XRegExp.install(); return b + ";"; }; return a; - }(b); - a.BreakStatement = r; - r = function(b) { + }(e); + a.BreakStatement = p; + p = function(b) { function a(e) { b.call(this); this.label = e; @@ -20150,9 +20124,9 @@ Shumway.AVM2.XRegExp.install(); return b + ";"; }; return a; - }(b); - a.ContinueStatement = r; - r = function(b) { + }(e); + a.ContinueStatement = p; + p = function(b) { function a(e, f) { b.call(this); this.object = e; @@ -20161,9 +20135,9 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(b); - a.WithStatement = r; - r = function(b) { + }(e); + a.WithStatement = p; + p = function(b) { function a(e, f, c) { b.call(this); this.discriminant = e; @@ -20173,12 +20147,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return "switch(" + this.discriminant.toSource(0) + "){" + l(this.cases, 0, ";") + "};"; + return "switch(" + this.discriminant.toSource(0) + "){" + c(this.cases, 0, ";") + "};"; }; return a; - }(b); - a.SwitchStatement = r; - r = function(b) { + }(e); + a.SwitchStatement = p; + p = function(b) { function a(e) { b.call(this); this.argument = e; @@ -20191,9 +20165,9 @@ Shumway.AVM2.XRegExp.install(); return b + ";\n"; }; return a; - }(b); - a.ReturnStatement = r; - r = function(b) { + }(e); + a.ReturnStatement = p; + p = function(b) { function a(e) { b.call(this); this.argument = e; @@ -20204,22 +20178,22 @@ Shumway.AVM2.XRegExp.install(); return "throw " + this.argument.toSource(0) + ";\n"; }; return a; - }(b); - a.ThrowStatement = r; - r = function(b) { - function a(e, f, c, g) { + }(e); + a.ThrowStatement = p; + p = function(b) { + function a(e, f, c, h) { b.call(this); this.block = e; this.handlers = f; this.guardedHandlers = c; - this.finalizer = g; + this.finalizer = h; this.type = "TryStatement"; } __extends(a, b); return a; - }(b); - a.TryStatement = r; - r = function(b) { + }(e); + a.TryStatement = p; + p = function(b) { function a(e, f) { b.call(this); this.test = e; @@ -20231,9 +20205,9 @@ Shumway.AVM2.XRegExp.install(); return "while(" + this.test.toSource(0) + "){" + this.body.toSource(0) + "}"; }; return a; - }(b); - a.WhileStatement = r; - r = function(b) { + }(e); + a.WhileStatement = p; + p = function(b) { function a(e, f) { b.call(this); this.body = e; @@ -20242,69 +20216,69 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(b); - a.DoWhileStatement = r; - r = function(b) { - function a(e, f, c, g) { + }(e); + a.DoWhileStatement = p; + p = function(b) { + function a(e, f, c, h) { b.call(this); this.init = e; this.test = f; this.update = c; - this.body = g; + this.body = h; this.type = "ForStatement"; } __extends(a, b); return a; - }(b); - a.ForStatement = r; - r = function(b) { - function a(e, f, c, g) { + }(e); + a.ForStatement = p; + p = function(b) { + function a(e, f, c, h) { b.call(this); this.left = e; this.right = f; this.body = c; - this.each = g; + this.each = h; this.type = "ForInStatement"; } __extends(a, b); return a; - }(b); - a.ForInStatement = r; - r = function(b) { + }(e); + a.ForInStatement = p; + p = function(b) { function a() { b.apply(this, arguments); this.type = "DebuggerStatement"; } __extends(a, b); return a; - }(b); - a.DebuggerStatement = r; - b = function(b) { + }(e); + a.DebuggerStatement = p; + e = function(b) { function a() { b.apply(this, arguments); this.type = "Declaration"; } __extends(a, b); return a; - }(b); - a.Declaration = b; - r = function(b) { - function a(e, f, c, g, h, n, r) { + }(e); + a.Declaration = e; + p = function(b) { + function a(e, f, c, h, p, g, m) { b.call(this); this.id = e; this.params = f; this.defaults = c; - this.rest = g; - this.body = h; - this.generator = n; - this.expression = r; + this.rest = h; + this.body = p; + this.generator = g; + this.expression = m; this.type = "FunctionDeclaration"; } __extends(a, b); return a; - }(b); - a.FunctionDeclaration = r; - b = function(b) { + }(e); + a.FunctionDeclaration = p; + e = function(b) { function a(e, f) { b.call(this); this.declarations = e; @@ -20313,12 +20287,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return this.kind + " " + l(this.declarations, b, ",") + ";\n"; + return this.kind + " " + c(this.declarations, b, ",") + ";\n"; }; return a; - }(b); - a.VariableDeclaration = b; - b = function(b) { + }(e); + a.VariableDeclaration = e; + e = function(b) { function a(e, f) { b.call(this); this.id = e; @@ -20332,9 +20306,9 @@ Shumway.AVM2.XRegExp.install(); return b; }; return a; - }(f); - a.VariableDeclarator = b; - b = function(b) { + }(b); + a.VariableDeclarator = e; + e = function(b) { function a(e) { b.call(this); this.name = e; @@ -20345,9 +20319,9 @@ Shumway.AVM2.XRegExp.install(); return this.name; }; return a; - }(e); - a.Identifier = b; - var n = function(b) { + }(t); + a.Identifier = e; + var C = function(b) { function a(e) { b.call(this); this.value = e; @@ -20355,12 +20329,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return u(this.value); + return l(this.value); }; return a; - }(e); - a.Literal = n; - b = function(b) { + }(t); + a.Literal = C; + e = function(b) { function a() { b.apply(this, arguments); this.type = "ThisExpression"; @@ -20370,9 +20344,9 @@ Shumway.AVM2.XRegExp.install(); return "this"; }; return a; - }(e); - a.ThisExpression = b; - b = function(b) { + }(t); + a.ThisExpression = e; + e = function(b) { function a(e) { b.call(this); this.elements = e; @@ -20380,12 +20354,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return "[" + l(this.elements, 1, ",") + "]"; + return "[" + c(this.elements, 1, ",") + "]"; }; return a; - }(e); - a.ArrayExpression = b; - b = function(b) { + }(t); + a.ArrayExpression = e; + e = function(b) { function a(e) { b.call(this); this.properties = e; @@ -20393,28 +20367,28 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return "{" + l(this.properties, 0, ",") + "}"; + return "{" + c(this.properties, 0, ",") + "}"; }; return a; - }(e); - a.ObjectExpression = b; - b = function(b) { - function a(e, f, c, g, h, n, r) { + }(t); + a.ObjectExpression = e; + e = function(b) { + function a(e, f, c, h, p, g, m) { b.call(this); this.id = e; this.params = f; this.defaults = c; - this.rest = g; - this.body = h; - this.generator = n; - this.expression = r; + this.rest = h; + this.body = p; + this.generator = g; + this.expression = m; this.type = "FunctionExpression"; } __extends(a, b); return a; - }(e); - a.FunctionExpression = b; - b = function(b) { + }(t); + a.FunctionExpression = e; + e = function(b) { function a(e) { b.call(this); this.expressions = e; @@ -20422,9 +20396,9 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(e); - a.SequenceExpression = b; - b = function(b) { + }(t); + a.SequenceExpression = e; + e = function(b) { function a(e, f, c) { b.call(this); this.operator = e; @@ -20438,9 +20412,9 @@ Shumway.AVM2.XRegExp.install(); return 13 < b ? "(" + a + ")" : a; }; return a; - }(e); - a.UnaryExpression = b; - b = function(b) { + }(t); + a.UnaryExpression = e; + e = function(b) { function a(e, f, c) { b.call(this); this.operator = e; @@ -20450,13 +20424,13 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - var a = g[this.operator], e = this.left.toSource(a) + this.operator + this.right.toSource(a + 1); + var a = f[this.operator], e = this.left.toSource(a) + this.operator + this.right.toSource(a + 1); return a < b ? "(" + e + ")" : e; }; return a; - }(e); - a.BinaryExpression = b; - r = function(b) { + }(t); + a.BinaryExpression = e; + p = function(b) { function a(e, f, c) { b.call(this); this.operator = e; @@ -20470,9 +20444,9 @@ Shumway.AVM2.XRegExp.install(); return 1 < b ? "(" + a + ")" : a; }; return a; - }(e); - a.AssignmentExpression = r; - r = function(b) { + }(t); + a.AssignmentExpression = p; + p = function(b) { function a(e, f, c) { b.call(this); this.operator = e; @@ -20482,18 +20456,18 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(e); - a.UpdateExpression = r; - b = function(b) { + }(t); + a.UpdateExpression = p; + e = function(b) { function a(e, f, c) { b.call(this, e, f, c); this.type = "LogicalExpression"; } __extends(a, b); return a; - }(b); - a.LogicalExpression = b; - b = function(b) { + }(e); + a.LogicalExpression = e; + e = function(b) { function a(e, f, c) { b.call(this); this.test = e; @@ -20506,9 +20480,9 @@ Shumway.AVM2.XRegExp.install(); return this.test.toSource(3) + "?" + this.consequent.toSource(1) + ":" + this.alternate.toSource(1); }; return a; - }(e); - a.ConditionalExpression = b; - b = function(b) { + }(t); + a.ConditionalExpression = e; + e = function(b) { function a(e, f) { b.call(this); this.callee = e; @@ -20517,12 +20491,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return "new " + this.callee.toSource(b) + "(" + l(this.arguments, b, ",") + ")"; + return "new " + this.callee.toSource(b) + "(" + c(this.arguments, b, ",") + ")"; }; return a; - }(e); - a.NewExpression = b; - b = function(b) { + }(t); + a.NewExpression = e; + e = function(b) { function a(e, f) { b.call(this); this.callee = e; @@ -20531,12 +20505,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return this.callee.toSource(b) + "(" + l(this.arguments, b, ",") + ")"; + return this.callee.toSource(b) + "(" + c(this.arguments, b, ",") + ")"; }; return a; - }(e); - a.CallExpression = b; - e = function(b) { + }(t); + a.CallExpression = e; + t = function(b) { function a(e, f, c) { b.call(this); this.object = e; @@ -20547,14 +20521,14 @@ Shumway.AVM2.XRegExp.install(); __extends(a, b); a.prototype.toSource = function(b) { var a = this.object.toSource(15); - this.object instanceof n && (a = "(" + a + ")"); + this.object instanceof C && (a = "(" + a + ")"); var e = this.property.toSource(0), a = this.computed ? a + ("[" + e + "]") : a + ("." + e); return 17 < b ? "(" + a + ")" : a; }; return a; - }(e); - a.MemberExpression = e; - e = function(b) { + }(t); + a.MemberExpression = t; + t = function(b) { function a(e, f, c) { b.call(this); this.key = e; @@ -20567,9 +20541,9 @@ Shumway.AVM2.XRegExp.install(); return this.key.toSource(b) + ":" + this.value.toSource(b); }; return a; - }(f); - a.Property = e; - e = function(b) { + }(b); + a.Property = t; + t = function(b) { function a(e, f) { b.call(this); this.test = e; @@ -20578,12 +20552,12 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); a.prototype.toSource = function(b) { - return(this.test ? "case " + this.test.toSource(b) : "default") + ": " + l(this.consequent, b, ";"); + return (this.test ? "case " + this.test.toSource(b) : "default") + ": " + c(this.consequent, b, ";"); }; return a; - }(f); - a.SwitchCase = e; - f = function(b) { + }(b); + a.SwitchCase = t; + b = function(b) { function a(e, f, c) { b.call(this); this.param = e; @@ -20593,8 +20567,8 @@ Shumway.AVM2.XRegExp.install(); } __extends(a, b); return a; - }(f); - a.CatchClause = f; + }(b); + a.CatchClause = b; })(a.AST || (a.AST = {})); })(k.Compiler || (k.Compiler = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -20604,10 +20578,10 @@ Shumway.AVM2.XRegExp.install(); (function(a) { (function(a) { var d = function(a) { - function d(c, h, l) { + function d(c, g, l) { a.call(this); this.parent = c; - this.object = h; + this.object = g; this.isWith = l; } __extends(d, a); @@ -20620,10 +20594,10 @@ Shumway.AVM2.XRegExp.install(); a.ASScope = d; d.prototype.nodeName = "ASScope"; d = function(a) { - function d(c, h, l) { + function d(c, g, l) { a.call(this); this.namespaces = c; - this.name = h; + this.name = g; this.flags = l; } __extends(d, a); @@ -20638,8 +20612,8 @@ Shumway.AVM2.XRegExp.install(); d.prototype.mustFloat = !0; d.prototype.nodeName = "ASMultiname"; d = function(a) { - function d(c, h, l, s, m, g, f) { - a.call(this, c, h, l, s, m, g); + function d(c, g, l, r, m, h, f) { + a.call(this, c, g, l, r, m, h); this.isLex = f; } __extends(d, a); @@ -20648,8 +20622,8 @@ Shumway.AVM2.XRegExp.install(); a.ASCallProperty = d; d.prototype.nodeName = "ASCallProperty"; d = function(a) { - function d(c, h, l, s, m, g, f) { - a.call(this, c, h, l, s, m, g); + function d(c, g, l, r, m, h, f) { + a.call(this, c, g, l, r, m, h); this.scope = f; } __extends(d, a); @@ -20662,8 +20636,8 @@ Shumway.AVM2.XRegExp.install(); a.ASCallSuper = d; d.prototype.nodeName = "ASCallSuper"; d = function(a) { - function d(c, h, l, s) { - a.call(this, c, h, l, s); + function d(c, g, l, r) { + a.call(this, c, g, l, r); } __extends(d, a); return d; @@ -20671,8 +20645,8 @@ Shumway.AVM2.XRegExp.install(); a.ASNew = d; d.prototype.nodeName = "ASNew"; d = function(a) { - function d(c, h, l, s, m) { - a.call(this, c, h, l, s); + function d(c, g, l, r, m) { + a.call(this, c, g, l, r); this.flags = m; } __extends(d, a); @@ -20681,8 +20655,8 @@ Shumway.AVM2.XRegExp.install(); a.ASGetProperty = d; d.prototype.nodeName = "ASGetProperty"; d = function(a) { - function d(c, h, l, s) { - a.call(this, c, h, l, s); + function d(c, g, l, r) { + a.call(this, c, g, l, r); } __extends(d, a); return d; @@ -20690,8 +20664,8 @@ Shumway.AVM2.XRegExp.install(); a.ASGetDescendants = d; d.prototype.nodeName = "ASGetDescendants"; d = function(a) { - function d(c, h, l, s) { - a.call(this, c, h, l, s); + function d(c, g, l, r) { + a.call(this, c, g, l, r); } __extends(d, a); return d; @@ -20699,8 +20673,8 @@ Shumway.AVM2.XRegExp.install(); a.ASHasProperty = d; d.prototype.nodeName = "ASHasProperty"; d = function(a) { - function d(c, h, l, s) { - a.call(this, c, h, l, s); + function d(c, g, l, r) { + a.call(this, c, g, l, r); } __extends(d, a); return d; @@ -20708,8 +20682,8 @@ Shumway.AVM2.XRegExp.install(); a.ASGetSlot = d; d.prototype.nodeName = "ASGetSlot"; d = function(a) { - function d(c, h, l, s, m) { - a.call(this, c, h, l, s); + function d(c, g, l, r, m) { + a.call(this, c, g, l, r); this.scope = m; } __extends(d, a); @@ -20722,9 +20696,9 @@ Shumway.AVM2.XRegExp.install(); a.ASGetSuper = d; d.prototype.nodeName = "ASGetSuper"; d = function(a) { - function d(c, h, l, s, m, g) { - a.call(this, c, h, l, s, m); - this.flags = g; + function d(c, g, l, r, m, h) { + a.call(this, c, g, l, r, m); + this.flags = h; } __extends(d, a); return d; @@ -20732,8 +20706,8 @@ Shumway.AVM2.XRegExp.install(); a.ASSetProperty = d; d.prototype.nodeName = "ASSetProperty"; d = function(a) { - function d(c, h, l, s, m) { - a.call(this, c, h, l, s, m); + function d(c, g, l, r, m) { + a.call(this, c, g, l, r, m); } __extends(d, a); return d; @@ -20741,9 +20715,9 @@ Shumway.AVM2.XRegExp.install(); a.ASSetSlot = d; d.prototype.nodeName = "ASSetSlot"; d = function(a) { - function d(c, h, l, s, m, g) { - a.call(this, c, h, l, s, m); - this.scope = g; + function d(c, g, l, r, m, h) { + a.call(this, c, g, l, r, m); + this.scope = h; } __extends(d, a); d.prototype.visitInputs = function(c) { @@ -20755,8 +20729,8 @@ Shumway.AVM2.XRegExp.install(); a.ASSetSuper = d; d.prototype.nodeName = "ASSetSuper"; d = function(a) { - function d(c, h, l, s) { - a.call(this, c, h, l, s); + function d(c, g, l, r) { + a.call(this, c, g, l, r); } __extends(d, a); return d; @@ -20764,12 +20738,12 @@ Shumway.AVM2.XRegExp.install(); a.ASDeleteProperty = d; d.prototype.nodeName = "ASDeleteProperty"; d = function(a) { - function d(c, h, l, s, m, g) { - a.call(this, c, h); + function d(c, g, l, r, m, h) { + a.call(this, c, g); this.scope = l; - this.name = s; + this.name = r; this.methodInfo = m; - this.strict = g; + this.strict = h; } __extends(d, a); d.prototype.visitInputs = function(c) { @@ -20782,10 +20756,10 @@ Shumway.AVM2.XRegExp.install(); a.ASFindProperty = d; d.prototype.nodeName = "ASFindProperty"; d = function(a) { - function d(c, h) { + function d(c, g) { a.call(this); this.control = c; - this.scope = h; + this.scope = g; } __extends(d, a); d.prototype.visitInputs = function(a) { @@ -20823,7 +20797,7 @@ Shumway.AVM2.XRegExp.install(); (function(k) { (function(a) { (function(a) { - var v = d.ArrayUtilities.top, t = d.ArrayUtilities.peek, u; + var w = d.ArrayUtilities.top, v = d.ArrayUtilities.peek, u; (function(a) { (function(b) { b[b.SEQ = 1] = "SEQ"; @@ -20880,11 +20854,11 @@ Shumway.AVM2.XRegExp.install(); }(c); a.Loop = f; f = function(b) { - function a(e, f, c, g) { + function a(e, f, c, h) { b.call(this, 3); this.cond = e; this.then = f; - this.nothingThrownLabel = g; + this.nothingThrownLabel = h; this.negated = !1; this.else = c; } @@ -20957,9 +20931,9 @@ Shumway.AVM2.XRegExp.install(); function a(e) { b.call(this, 7); this.cases = e; - for (var f = {}, c = 0, g = e.length;c < g;c++) { - for (var h = e[c], m = 0, d = h.labels.length;m < d;m++) { - f[h.labels[m]] = h; + for (var f = {}, c = 0, h = e.length;c < h;c++) { + for (var g = e[c], m = 0, d = g.labels.length;m < d;m++) { + f[g.labels[m]] = g; } } this.labelMap = f; @@ -21050,55 +21024,55 @@ Shumway.AVM2.XRegExp.install(); }(c); a.Catch = c; })(u = a.Control || (a.Control = {})); - var l = d.BitSets.BITS_PER_WORD, c = d.BitSets.ADDRESS_BITS_PER_WORD, h = d.BitSets.BIT_INDEX_MASK, q = function(a) { - function g(f, b) { + var l = d.BitSets.BITS_PER_WORD, c = d.BitSets.ADDRESS_BITS_PER_WORD, g = d.BitSets.BIT_INDEX_MASK, q = function(a) { + function h(f, b) { a.call(this, f); this.blockById = b; } - __extends(g, a); - g.prototype.forEachBlock = function(a) { - for (var b = this.blockById, e = this.bits, c = 0, g = e.length;c < g;c++) { - var h = e[c]; - if (h) { + __extends(h, a); + h.prototype.forEachBlock = function(a) { + for (var b = this.blockById, e = this.bits, c = 0, h = e.length;c < h;c++) { + var g = e[c]; + if (g) { for (var m = 0;m < l;m++) { - h & 1 << m && a(b[c * l + m]); + g & 1 << m && a(b[c * l + m]); } } } }; - g.prototype.choose = function() { + h.prototype.choose = function() { for (var a = this.blockById, b = this.bits, e = 0, c = b.length;e < c;e++) { - var g = b[e]; - if (g) { - for (var h = 0;h < l;h++) { - if (g & 1 << h) { - return a[e * l + h]; + var h = b[e]; + if (h) { + for (var g = 0;g < l;g++) { + if (h & 1 << g) { + return a[e * l + g]; } } } } }; - g.prototype.members = function() { - for (var a = this.blockById, b = [], e = this.bits, c = 0, g = e.length;c < g;c++) { - var h = e[c]; - if (h) { + h.prototype.members = function() { + for (var a = this.blockById, b = [], e = this.bits, c = 0, h = e.length;c < h;c++) { + var g = e[c]; + if (g) { for (var m = 0;m < l;m++) { - h & 1 << m && b.push(a[c * l + m]); + g & 1 << m && b.push(a[c * l + m]); } } } return b; }; - g.prototype.setBlocks = function(a) { - for (var b = this.bits, e = 0, g = a.length;e < g;e++) { - var n = a[e].id; - b[n >> c] |= 1 << (n & h); + h.prototype.setBlocks = function(a) { + for (var b = this.bits, e = 0, h = a.length;e < h;e++) { + var p = a[e].id; + b[p >> c] |= 1 << (p & g); } }; - return g; + return h; }(d.BitSets.Uint32ArrayBitSet); a.BlockSet = q; - var s = function() { + var r = function() { function a(c) { this.makeBlockSetFactory(c.blocks.length, c.blocks); this.hasExceptions = !1; @@ -21110,17 +21084,17 @@ Shumway.AVM2.XRegExp.install(); }; }; a.prototype.normalizeReachableBlocks = function(a) { - var f = this.boundBlockSet, b = [], e = {}, c = {}, h = [a]; - for (c[a.id] = !0;a = v(h);) { + var f = this.boundBlockSet, b = [], e = {}, c = {}, g = [a]; + for (c[a.id] = !0;a = w(g);) { if (e[a.id]) { - 1 === e[a.id] && (e[a.id] = 2, b.push(a)), c[a.id] = !1, h.pop(); + 1 === e[a.id] && (e[a.id] = 2, b.push(a)), c[a.id] = !1, g.pop(); } else { e[a.id] = 1; c[a.id] = !0; for (var m = a.successors, d = 0, l = m.length;d < l;d++) { var q = m[d]; c[q.id] && (a.spbacks || (a.spbacks = new f), a.spbacks.set(q.id)); - !e[q.id] && h.push(q); + !e[q.id] && g.push(q); } } } @@ -21132,28 +21106,28 @@ Shumway.AVM2.XRegExp.install(); for (var e = [], c = 0;c < f;c++) { e[a[c].id] = c, a[c].dominatees = []; } - for (var h = !0;h;) { - for (h = !1, c = 1;c < f;c++) { + for (var g = !0;g;) { + for (g = !1, c = 1;c < f;c++) { var m = a[c].predecessors, d = m.length, l = e[m[0].id]; if (!(l in b)) { for (var q = 1;q < d && !(l = e[m[q].id], l in b);q++) { } } for (q = 0;q < d;q++) { - var s = e[m[q].id]; - if (s !== l && s in b) { - for (;s !== l;) { - for (;s > l;) { - s = b[s]; + var r = e[m[q].id]; + if (r !== l && r in b) { + for (;r !== l;) { + for (;r > l;) { + r = b[r]; } - for (;l > s;) { + for (;l > r;) { l = b[l]; } } - l = s; + l = r; } } - b[c] !== l && (b[c] = l, h = !0); + b[c] !== l && (b[c] = l, g = !0); } } a[0].dominator = a[0]; @@ -21177,8 +21151,8 @@ Shumway.AVM2.XRegExp.install(); for (e = f.length;b < e;b++) { var a = f[b], c = a.predecessors; if (2 <= c.length) { - for (var h = a.dominator, m = 0, d = c.length;m < d;m++) { - for (var l = c[m];l !== h;) { + for (var g = a.dominator, m = 0, d = c.length;m < d;m++) { + for (var l = c[m];l !== g;) { l.frontier.set(a.id), l = l.dominator; } } @@ -21191,33 +21165,33 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.markLoops = function() { function a(b) { - var e = 1, f = {}, c = {}, g = [], h = [], n = [], m = b.level + 1; + var e = 1, f = {}, c = {}, h = [], g = [], p = [], m = b.level + 1; b = [b]; - for (var r, d;r = v(b);) { - if (f[r.id]) { - if (t(h) === r) { - h.pop(); + for (var t, d;t = w(b);) { + if (f[t.id]) { + if (v(g) === t) { + g.pop(); var l = []; do { - d = g.pop(), c[d.id] = !0, l.push(d); - } while (d !== r); - (1 < l.length || d.spbacks && d.spbacks.get(d.id)) && n.push(l); + d = h.pop(), c[d.id] = !0, l.push(d); + } while (d !== t); + (1 < l.length || d.spbacks && d.spbacks.get(d.id)) && p.push(l); } b.pop(); } else { - f[r.id] = e++; - g.push(r); - h.push(r); - d = r.successors; + f[t.id] = e++; + h.push(t); + g.push(t); + d = t.successors; for (var l = 0, q = d.length;l < q;l++) { - if (r = d[l], !(r.level < m)) { - var s = r.id; - if (!f[s]) { - b.push(r); + if (t = d[l], !(t.level < m)) { + var r = t.id; + if (!f[r]) { + b.push(t); } else { - if (!c[s]) { - for (;f[t(h).id] > f[s];) { - h.pop(); + if (!c[r]) { + for (;f[v(g).id] > f[r];) { + g.pop(); } } } @@ -21225,7 +21199,7 @@ Shumway.AVM2.XRegExp.install(); } } } - return n; + return p; } function f(a, e) { var f = new b; @@ -21239,15 +21213,15 @@ Shumway.AVM2.XRegExp.install(); this.npredecessors = 0; } if (!this.analyzedControlFlow && !this.analyzeControlFlow()) { - return!1; + return !1; } var b = this.boundBlockSet, e = function(a) { for (var e = new b, f = 0, c = a.length;f < c;f++) { - var g = a[f], h = g.spbacks; - if (h) { - for (var g = g.successors, n = 0, m = g.length;n < m;n++) { - var r = g[n]; - h.get(r.id) && e.set(r.dominator.id); + var h = a[f], g = h.spbacks; + if (g) { + for (var h = h.successors, p = 0, m = h.length;p < m;p++) { + var t = h[p]; + g.get(t.id) && e.set(t.dominator.id); } } } @@ -21258,26 +21232,26 @@ Shumway.AVM2.XRegExp.install(); } for (var e = e.sort(function(b, a) { return b.level - a.level; - }), c = 0, h = e.length - 1;0 <= h;h--) { - var m = e[h], d = a(m); + }), c = 0, g = e.length - 1;0 <= g;g--) { + var m = e[g], d = a(m); if (0 !== d.length) { for (var l = 0, q = d.length;l < q;l++) { - for (var s = d[l], k = new f(s, c++), p = 0, u = s.length;p < u;p++) { - var C = s[p]; - if (C.level === m.level + 1 && !C.loop) { - C.loop = k; - k.head.set(C.id); - for (var B = C.predecessors, H = 0, A = B.length;H < A;H++) { - k.body.get(B[H].id) && C.npredecessors--; + for (var r = d[l], n = new f(r, c++), k = 0, u = r.length;k < u;k++) { + var y = r[k]; + if (y.level === m.level + 1 && !y.loop) { + y.loop = n; + n.head.set(y.id); + for (var K = y.predecessors, H = 0, A = K.length;H < A;H++) { + n.body.get(K[H].id) && y.npredecessors--; } - k.npredecessors += C.npredecessors; + n.npredecessors += y.npredecessors; } } - p = 0; - for (u = s.length;p < u;p++) { - C = s[p], C.level === m.level + 1 && (C.npredecessors = k.npredecessors); + k = 0; + for (u = r.length;k < u;k++) { + y = r[k], y.level === m.level + 1 && (y.npredecessors = n.npredecessors); } - k.head.recount(); + n.head.recount(); } } } @@ -21292,151 +21266,148 @@ Shumway.AVM2.XRegExp.install(); b.save = e; return b; } - function f(h, m, d, l, q, s, k) { - for (var p = [];h;) { - if (1 < h.count) { - for (var t = new e, C = {}, B = [], H = h.members(), A = 0, y = H.length;A < y;A++) { - var G = H[A], J = G.id, E; - if (G.loop && h.contains(G.loop.head)) { - var Q = G.loop; - if (!Q.induced) { - for (var S = Q.head.members(), K = 0, P = 0, R = S.length;P < R;P++) { - K += h.save[S[P].id]; + function f(g, m, d, l, q, r, n) { + for (var k = [];g;) { + if (1 < g.count) { + for (var v = new e, y = {}, K = [], H = g.members(), A = 0, z = H.length;A < z;A++) { + var G = H[A], L = G.id, F; + if (G.loop && g.contains(G.loop.head)) { + var S = G.loop; + if (!S.induced) { + for (var U = S.head.members(), N = 0, R = 0, T = U.length;R < T;R++) { + N += g.save[U[R].id]; } - if (0 < G.npredecessors - K) { - G.npredecessors -= h.save[J], G.save = h.save[J], E = f(G, t, C, l), B.push(new u.LabelCase([J], E)); + if (0 < G.npredecessors - N) { + G.npredecessors -= g.save[L], G.save = g.save[L], F = f(G, v, y, l), K.push(new u.LabelCase([L], F)); } else { - P = 0; - for (R = S.length;P < R;P++) { - E = S[P], E.npredecessors -= K, E.save = K; + R = 0; + for (T = U.length;R < T;R++) { + F = U[R], F.npredecessors -= N, F.save = N; } - E = f(G, t, C, l); - B.push(new u.LabelCase(Q.head.toArray(), E)); - Q.induced = !0; + F = f(G, v, y, l); + K.push(new u.LabelCase(S.head.toArray(), F)); + S.induced = !0; } } } else { - G.npredecessors -= h.save[J], G.save = h.save[J], E = f(G, t, C, l), B.push(new u.LabelCase([J], E)); + G.npredecessors -= g.save[L], G.save = g.save[L], F = f(G, v, y, l), K.push(new u.LabelCase([L], F)); } } - for (var G = [], P = 0, A = 0;A < B.length;A++) { - E = B[A]; - y = E.labels; - S = R = 0; - for (Q = y.length;S < Q;S++) { - J = y[S], t.get(J) && 0 < H[A].npredecessors - h.save[J] ? G.push(J) : y[R++] = J; + for (var G = [], R = 0, A = 0;A < K.length;A++) { + F = K[A]; + z = F.labels; + U = T = 0; + for (S = z.length;U < S;U++) { + L = z[U], v.get(L) && 0 < H[A].npredecessors - g.save[L] ? G.push(L) : z[T++] = L; } - y.length = R; - 0 < y.length && (B[P++] = E); + z.length = T; + 0 < z.length && (K[R++] = F); } - B.length = P; - if (0 === B.length) { + K.length = R; + if (0 === K.length) { for (A = 0;A < G.length;A++) { - J = G[A], d[J] = (d[J] || 0) + h.save[J], m.set(J); + L = G[A], d[L] = (d[L] || 0) + g.save[L], m.set(L); } - s && p.push(new u.Break(void 0, s)); + r && k.push(new u.Break(void 0, r)); break; } - p.push(new u.LabelSwitch(B)); - h = a(t, C); + k.push(new u.LabelSwitch(K)); + g = a(v, y); } else { - 1 === h.count ? (G = h.choose(), J = G.id, G.npredecessors -= h.save[J], G.save = h.save[J]) : (G = h, J = G.id); + 1 === g.count ? (G = g.choose(), L = G.id, G.npredecessors -= g.save[L], G.save = g.save[L]) : (G = g, L = G.id); if (q) { q = !1; } else { - if (l && !l.body.get(J)) { + if (l && !l.body.get(L)) { G.npredecessors += G.save; - l.exit.set(J); - l.save[J] = (l.save[J] || 0) + G.save; - p.push(new u.Break(J, l)); + l.exit.set(L); + l.save[L] = (l.save[L] || 0) + G.save; + k.push(new u.Break(L, l)); break; } if (l && G.loop === l) { G.npredecessors += G.save; - p.push(new u.Continue(J, l)); + k.push(new u.Continue(L, l)); break; } - if (G === k) { + if (G === n) { break; } if (0 < G.npredecessors) { G.npredecessors += G.save; - d[J] = (d[J] || 0) + G.save; - m.set(J); - p.push(s ? new u.Break(J, s) : new u.Exit(J)); + d[L] = (d[L] || 0) + G.save; + m.set(L); + k.push(r ? new u.Break(L, r) : new u.Exit(L)); break; } if (G.loop) { - var R = G.loop; - if (1 === R.head.count) { - t = f(R.head.choose(), null, null, R, !0); + var T = G.loop; + if (1 === T.head.count) { + v = f(T.head.choose(), null, null, T, !0); } else { - t = []; - S = R.head.members(); + v = []; + U = T.head.members(); A = 0; - for (y = S.length;A < y;A++) { - E = S[A], C = E.id, E = f(E, null, null, R, !0), t.push(new u.LabelCase([C], E)); + for (z = U.length;A < z;A++) { + F = U[A], y = F.id, F = f(F, null, null, T, !0), v.push(new u.LabelCase([y], F)); } - t = new u.LabelSwitch(t); + v = new u.LabelSwitch(v); } - p.push(new u.Loop(t)); - h = a(R.exit, R.save); + k.push(new u.Loop(v)); + g = a(T.exit, T.save); continue; } } - t = new e; - C = {}; + v = new e; + y = {}; if (b && G.hasCatches) { - E = G.successors; - B = []; - h = []; + F = G.successors; + K = []; + g = []; A = 0; - for (y = E.length;A < y;A++) { - H = E[A], (H.exception ? B : h).push(H); + for (z = F.length;A < z;A++) { + H = F[A], (H.exception ? K : g).push(H); } - y = []; - for (A = 0;A < B.length;A++) { - H = B[A], H.npredecessors -= 1, H.save = 1, E = f(H, t, C, l), H = H.exception, y.push(new u.Catch(H.varName, H.typeName, E)); + z = []; + for (A = 0;A < K.length;A++) { + H = K[A], --H.npredecessors, H.save = 1, F = f(H, v, y, l), H = H.exception, z.push(new u.Catch(H.varName, H.typeName, F)); } - y = new u.Try(G, y); + z = new u.Try(G, z); } else { - h = G.successors, y = G; + g = G.successors, z = G; } - if (2 < h.length) { - B = []; - for (A = h.length - 1;0 <= A;A--) { - H = h[A], H.npredecessors -= 1, H.save = 1, E = f(H, t, C, l, null, G, h[A + 1]), B.unshift(new u.Case(A, E)); + if (2 < g.length) { + K = []; + for (A = g.length - 1;0 <= A;A--) { + H = g[A], --H.npredecessors, H.save = 1, F = f(H, v, y, l, null, G, g[A + 1]), K.unshift(new u.Case(A, F)); } - v(B).index = void 0; - b && G.hasCatches ? (y.nothingThrownLabel = c, y = new u.Switch(y, B, c++)) : y = new u.Switch(y, B); - h = a(t, C); + w(K).index = void 0; + b && G.hasCatches ? (z.nothingThrownLabel = c, z = new u.Switch(z, K, c++)) : z = new u.Switch(z, K); + g = a(v, y); } else { - 2 === h.length ? (A = G.hasFlippedSuccessors ? h[1] : h[0], E = G.hasFlippedSuccessors ? h[0] : h[1], A.npredecessors -= 1, A.save = 1, A = f(A, t, C, l), E.npredecessors -= 1, E.save = 1, E = f(E, t, C, l), b && G.hasCatches ? (y.nothingThrownLabel = c, y = new u.If(y, A, E, c++)) : y = new u.If(y, A, E), h = a(t, C)) : (E = h[0]) ? b && G.hasCatches ? (y.nothingThrownLabel = E.id, C[E.id] = (C[E.id] || 0) + 1, t.set(E.id), h = a(t, C)) : (E.npredecessors -= 1, E.save = 1, h = - E) : b && G.hasCatches ? (y.nothingThrownLabel = -1, h = a(t, C)) : h = E; + 2 === g.length ? (A = G.hasFlippedSuccessors ? g[1] : g[0], F = G.hasFlippedSuccessors ? g[0] : g[1], --A.npredecessors, A.save = 1, A = f(A, v, y, l), --F.npredecessors, F.save = 1, F = f(F, v, y, l), b && G.hasCatches ? (z.nothingThrownLabel = c, z = new u.If(z, A, F, c++)) : z = new u.If(z, A, F), g = a(v, y)) : (F = g[0]) ? b && G.hasCatches ? (z.nothingThrownLabel = F.id, y[F.id] = (y[F.id] || 0) + 1, v.set(F.id), g = a(v, y)) : (--F.npredecessors, F.save = 1, g = F) : b && + G.hasCatches ? (z.nothingThrownLabel = -1, g = a(v, y)) : g = F; } - p.push(y); + k.push(z); } } - return 1 < p.length ? new u.Seq(p) : p[0]; + return 1 < k.length ? new u.Seq(k) : k[0]; } var b = this.hasExceptions, e = this.boundBlockSet, c = this.blocks.length; this.controlTree = f(this.blocks[0], new e, {}); }; a.prototype.restructureControlFlow = function() { k.enterTimeline("Restructure Control Flow"); - if (!this.markedLoops && !this.markLoops()) { - return k.leaveTimeline(), !1; + if (this.markedLoops || this.markLoops()) { + this.induceControlTree(), this.restructuredControlFlow = !0; } - this.induceControlTree(); - this.restructuredControlFlow = !0; k.leaveTimeline(); - return!0; }; return a; }(); - a.Analysis = s; + a.Analysis = r; a.analyze = function(a) { - a = new s(a); + a = new r(a); a.restructureControlFlow(); return a.controlTree; }; @@ -21447,16 +21418,16 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - (function(p) { - function v(b, a) { + (function(n) { + function w(b, a) { if ("string" === typeof b || null === b || !0 === b || !1 === b) { - return new z(b); + return new B(b); } if (void 0 === b) { return new D("undefined"); } if ("object" === typeof b || "function" === typeof b) { - return b instanceof d.AVM2.Runtime.LazyInitializer ? h(l(ga, "C"), [new z(a.useConstant(b))]) : new T(ha, new z(a.useConstant(b)), !0); + return b instanceof d.AVM2.Runtime.LazyInitializer ? g(l(ia, "C"), [new B(a.useConstant(b))]) : new J(ja, new B(a.useConstant(b)), !0); } if ("number" === typeof b && isNaN(b)) { return new D("NaN"); @@ -21465,66 +21436,66 @@ Shumway.AVM2.XRegExp.install(); return new D("Infinity"); } if (-Infinity === b) { - return new E("-", !0, new D("Infinity")); + return new F("-", !0, new D("Infinity")); } if ("number" === typeof b && 0 > 1 / b) { - return new E("-", !0, new z(Math.abs(b))); + return new F("-", !0, new B(Math.abs(b))); } if ("number" === typeof b) { - return new z(b); + return new B(b); } - r("Cannot emit constant for value: " + b); + t("Cannot emit constant for value: " + b); } - function t(b) { + function v(b) { return new D(b); } function u(b) { var a = b[0]; if (!("$" === a || "_" === a || "\\" === a || "a" <= a && "z" >= a || "A" <= a && "Z" >= a)) { - return!1; + return !1; } for (a = 1;a < b.length;a++) { var e = b[a]; if (!("$" === e || "_" === e || "\\" === e || "a" <= e && "z" >= e || "A" <= e && "Z" >= e || "0" <= e && "9" >= e)) { - return!1; + return !1; } } - return!0; + return !0; } function l(b, a) { - return u(a) ? new T(b, new D(a), !1) : new T(b, new z(a), !0); + return u(a) ? new J(b, new D(a), !1) : new J(b, new B(a), !0); } function c(b, a) { - return u(a.value) ? new T(b, new D(a.value), !1) : new T(b, a, !0); + return u(a.value) ? new J(b, new D(a.value), !1) : new J(b, a, !0); } - function h(b, a) { - return new C(b, a); + function g(b, a) { + return new y(b, a); } function q(b, a, e) { - return h(l(b, "asCall"), [a].concat(e)); + return g(l(b, "asCall"), [a].concat(e)); } - function s(b, a, e) { - return h(l(b, "call"), [a].concat(e)); + function r(b, a, e) { + return g(l(b, "call"), [a].concat(e)); } function m(b, a) { - return new B("=", b, a); + return new K("=", b, a); } - function g(b) { + function h(b) { return new M(b, "var"); } function f(b, a, e) { - return e || !b.variable ? b.compile(a) : t(b.variable.name); + return e || !b.variable ? b.compile(a) : v(b.variable.name); } function b(b, a) { - return[f(b.namespaces, a), f(b.name, a), f(b.flags, a)]; + return [f(b.namespaces, a), f(b.name, a), f(b.flags, a)]; } function e(b, a) { return b.map(function(b) { return f(b, a); }); } - var r = d.Debug.unexpected, n = d.Debug.notImplemented, x = d.ArrayUtilities.pushUnique, I = d.AVM2.Compiler.AST, z = I.Literal, D = I.Identifier, M = I.VariableDeclaration, F = I.VariableDeclarator, T = I.MemberExpression, N = I.BinaryExpression, C = I.CallExpression, B = I.AssignmentExpression, H = I.ExpressionStatement, A = I.ReturnStatement, y = I.ConditionalExpression, G = I.ObjectExpression, J = I.ArrayExpression, E = I.UnaryExpression, Q = I.NewExpression, S = I.Property, K = I.BlockStatement, - P = I.ThisExpression, R = I.ThrowStatement, W = I.IfStatement, ba = I.WhileStatement, w = I.BreakStatement, X = I.ContinueStatement, U = I.SwitchStatement, $ = I.SwitchCase, Y = a.IR.Variable, L = a.IR.Constant, Z = a.IR.Operator, I = d.AVM2.Compiler.Looper.Control, ca = d.ArrayUtilities.last; + var t = d.Debug.unexpected, p = d.Debug.notImplemented, C = d.ArrayUtilities.pushUnique, I = d.AVM2.Compiler.AST, B = I.Literal, D = I.Identifier, M = I.VariableDeclaration, E = I.VariableDeclarator, J = I.MemberExpression, P = I.BinaryExpression, y = I.CallExpression, K = I.AssignmentExpression, H = I.ExpressionStatement, A = I.ReturnStatement, z = I.ConditionalExpression, G = I.ObjectExpression, L = I.ArrayExpression, F = I.UnaryExpression, S = I.NewExpression, U = I.Property, N = I.BlockStatement, + R = I.ThisExpression, T = I.ThrowStatement, X = I.IfStatement, da = I.WhileStatement, x = I.BreakStatement, Y = I.ContinueStatement, V = I.SwitchStatement, ba = I.SwitchCase, Z = a.IR.Variable, O = a.IR.Constant, aa = a.IR.Operator, I = d.AVM2.Compiler.Looper.Control, ea = d.ArrayUtilities.last; I.Break.prototype.compile = function(b) { return b.compileBreak(this); }; @@ -21550,71 +21521,71 @@ Shumway.AVM2.XRegExp.install(); return b.compileIf(this); }; I.Try.prototype.compile = function(b) { - n("try"); + p("try"); return null; }; - var ga = new D("$F"), ha = new D("$C"), ea = function() { + var ia = new D("$F"), ja = new D("$C"), ga = function() { function b() { - this.label = new Y("$L"); + this.label = new Z("$L"); this.variables = []; this.constants = []; this.lazyConstants = []; this.parameters = []; } b.prototype.useConstant = function(b) { - b instanceof d.AVM2.Runtime.LazyInitializer ? (b = x(this.lazyConstants, b), this.constants[b] = null) : (b = x(this.constants, b), this.lazyConstants[b] = null); + b instanceof d.AVM2.Runtime.LazyInitializer ? (b = C(this.lazyConstants, b), this.constants[b] = null) : (b = C(this.constants, b), this.lazyConstants[b] = null); return b; }; b.prototype.useVariable = function(b) { - return x(this.variables, b); + C(this.variables, b); }; b.prototype.useParameter = function(b) { - return this.parameters[b.index] = b; + this.parameters[b.index] = b; }; b.prototype.compileLabelBody = function(b) { var a = []; - void 0 !== b.label && (this.useVariable(this.label), a.push(new H(m(t(this.label.name), new z(b.label))))); + void 0 !== b.label && (this.useVariable(this.label), a.push(new H(m(v(this.label.name), new B(b.label))))); return a; }; b.prototype.compileBreak = function(b) { b = this.compileLabelBody(b); - b.push(new w(null)); - return new K(b); + b.push(new x(null)); + return new N(b); }; b.prototype.compileContinue = function(b) { b = this.compileLabelBody(b); - b.push(new X(null)); - return new K(b); + b.push(new Y(null)); + return new N(b); }; b.prototype.compileExit = function(b) { - return new K(this.compileLabelBody(b)); + return new N(this.compileLabelBody(b)); }; b.prototype.compileIf = function(b) { var a = b.cond.compile(this), e = null, c = null; b.then && (e = b.then.compile(this)); b.else && (c = b.else.compile(this)); - var g = f(a.end.predicate, this); + var h = f(a.end.predicate, this); if (b.negated) { a: { - b = g; - if (b instanceof L) { + b = h; + if (b instanceof O) { if (!0 === b.value || !1 === b.value) { - b = v(!b.value); + b = w(!b.value); break a; } } else { if (b instanceof D) { - b = new E(Z.FALSE.name, !0, b); + b = new F(aa.FALSE.name, !0, b); break a; } } - var g = b instanceof N ? b.left : b.argument, h = b.right, n = Z.fromName(b.operator); - b = n === Z.EQ && h instanceof z && !1 === h.value || n === Z.FALSE ? g : n.not ? b instanceof N ? new N(n.not.name, g, h) : new E(n.not.name, !0, g) : new E(Z.FALSE.name, !0, b); + var h = b instanceof P ? b.left : b.argument, g = b.right, p = aa.fromName(b.operator); + b = p === aa.EQ && g instanceof B && !1 === g.value || p === aa.FALSE ? h : p.not ? b instanceof P ? new P(p.not.name, h, g) : new F(p.not.name, !0, h) : new F(aa.FALSE.name, !0, b); } } else { - b = g; + b = h; } - a.body.push(new W(b, e || new K([]), c || null)); + a.body.push(new X(b, e || new N([]), c || null)); return a; }; b.prototype.compileSwitch = function(b) { @@ -21622,58 +21593,58 @@ Shumway.AVM2.XRegExp.install(); b.cases.forEach(function(b) { var a; b.body && (a = b.body.compile(this)); - b = "number" === typeof b.index ? new z(b.index) : void 0; - e.push(new $(b, a ? [a] : [])); + b = "number" === typeof b.index ? new B(b.index) : void 0; + e.push(new ba(b, a ? [a] : [])); }, this); b = f(a.end.determinant, this); - a.body.push(new U(b, e, !1)); + a.body.push(new V(b, e, !1)); return a; }; b.prototype.compileLabelSwitch = function(b) { - for (var a = null, e = t(this.label.name), f = b.cases.length - 1;0 <= f;f--) { - for (var c = b.cases[f], g = c.labels, h = new N("===", e, new z(g[0])), n = 1;n < g.length;n++) { - h = new N("||", h, new N("===", e, new z(g[n]))); + for (var a = null, e = v(this.label.name), f = b.cases.length - 1;0 <= f;f--) { + for (var c = b.cases[f], h = c.labels, g = new P("===", e, new B(h[0])), p = 1;p < h.length;p++) { + g = new P("||", g, new P("===", e, new B(h[p]))); } - a = new W(h, c.body ? c.body.compile(this) : new K([]), a); + a = new X(g, c.body ? c.body.compile(this) : new N([]), a); } return a; }; b.prototype.compileLoop = function(b) { b = b.body.compile(this); - return new ba(v(!0), b); + return new da(w(!0), b); }; b.prototype.compileSequence = function(b) { var a = this, e = []; b.body.forEach(function(b) { b = b.compile(a); - b instanceof K ? e = e.concat(b.body) : e.push(b); + b instanceof N ? e = e.concat(b.body) : e.push(b); }); - return new K(e); + return new N(e); }; b.prototype.compileBlock = function(b) { for (var e = [], c = 1;c < b.nodes.length - 1;c++) { - var g = b.nodes[c], h; - g instanceof a.IR.Throw ? h = f(g, this, !0) : (g instanceof a.IR.Move ? (h = t(g.to.name), this.useVariable(g.to), g = f(g.from, this)) : (g.variable ? (h = t(g.variable.name), this.useVariable(g.variable)) : h = null, g = f(g, this, !0)), h = h ? new H(m(h, g)) : new H(g)); - e.push(h); + var h = b.nodes[c], g; + h instanceof a.IR.Throw ? g = f(h, this, !0) : (h instanceof a.IR.Move ? (g = v(h.to.name), this.useVariable(h.to), h = f(h.from, this)) : (h.variable ? (g = v(h.variable.name), this.useVariable(h.variable)) : g = null, h = f(h, this, !0)), g = g ? new H(m(g, h)) : new H(h)); + e.push(g); } - c = ca(b.nodes); + c = ea(b.nodes); c instanceof a.IR.Stop && e.push(new A(f(c.argument, this))); - e = new K(e); - e.end = ca(b.nodes); + e = new N(e); + e.end = ea(b.nodes); return e; }; return b; }(); - p.Context = ea; + n.Context = ga; a.IR.Parameter.prototype.compile = function(b) { b.useParameter(this); - return t(this.name); + return v(this.name); }; a.IR.Constant.prototype.compile = function(b) { - return v(this.value, b); + return w(this.value, b); }; a.IR.Variable.prototype.compile = function(b) { - return t(this.name); + return v(this.name); }; a.IR.Phi.prototype.compile = function(b) { return f(this.variable, b); @@ -21681,37 +21652,37 @@ Shumway.AVM2.XRegExp.install(); a.IR.ASScope.prototype.compile = function(b) { var a = f(this.parent, b); b = f(this.object, b); - var e = new z(this.isWith); - return new Q(t("Scope"), [a, b, e]); + var e = new B(this.isWith); + return new S(v("Scope"), [a, b, e]); }; a.IR.ASFindProperty.prototype.compile = function(a) { var e = f(this.scope, a), c = b(this.name, a); a = f(this.methodInfo, a); - var g = new z(this.strict); - return h(l(e, "findScopeProperty"), c.concat([a, g])); + var h = new B(this.strict); + return g(l(e, "findScopeProperty"), c.concat([a, h])); }; a.IR.ASGetProperty.prototype.compile = function(a) { var e = f(this.object, a); if (this.flags & 1) { - return h(l(e, "asGetNumericProperty"), [f(this.name.name, a)]); + return g(l(e, "asGetNumericProperty"), [f(this.name.name, a)]); } if (this.flags & 2) { - return h(l(e, "asGetResolvedStringProperty"), [f(this.name, a)]); + return g(l(e, "asGetResolvedStringProperty"), [f(this.name, a)]); } a = b(this.name, a); - var c = new z(this.flags & 8); - return h(l(e, "asGetProperty"), a.concat(c)); + var c = new B(this.flags & 8); + return g(l(e, "asGetProperty"), a.concat(c)); }; a.IR.ASGetSuper.prototype.compile = function(a) { var e = f(this.scope, a), c = f(this.object, a); a = b(this.name, a); - return h(l(c, "asGetSuper"), [e].concat(a)); + return g(l(c, "asGetSuper"), [e].concat(a)); }; a.IR.Latch.prototype.compile = function(b) { - return new y(f(this.condition, b), f(this.left, b), f(this.right, b)); + return new z(f(this.condition, b), f(this.left, b), f(this.right, b)); }; a.IR.Unary.prototype.compile = function(b) { - return new E(this.operator.name, !0, f(this.argument, b)); + return new F(this.operator.name, !0, f(this.argument, b)); }; a.IR.Copy.prototype.compile = function(b) { return f(this.argument, b); @@ -21719,52 +21690,52 @@ Shumway.AVM2.XRegExp.install(); a.IR.Binary.prototype.compile = function(b) { var e = f(this.left, b); b = f(this.right, b); - return this.operator === a.IR.Operator.AS_ADD ? h(t("asAdd"), [e, b]) : new N(this.operator.name, e, b); + return this.operator === a.IR.Operator.AS_ADD ? g(v("asAdd"), [e, b]) : new P(this.operator.name, e, b); }; a.IR.CallProperty.prototype.compile = function(b) { - var a = f(this.object, b), e = f(this.name, b), e = c(a, e), g = this.args.map(function(a) { + var a = f(this.object, b), e = f(this.name, b), e = c(a, e), h = this.args.map(function(a) { return f(a, b); }); - return this.flags & 16 ? q(e, a, g) : this.flags & 4 ? h(e, g) : s(e, a, g); + return this.flags & 16 ? q(e, a, h) : this.flags & 4 ? g(e, h) : r(e, a, h); }; a.IR.ASCallProperty.prototype.compile = function(a) { var e = f(this.object, a), c = this.args.map(function(b) { return f(b, a); }); if (this.flags & 2) { - return h(l(e, "asCallResolvedStringProperty"), [f(this.name, a), new z(this.isLex), new J(c)]); + return g(l(e, "asCallResolvedStringProperty"), [f(this.name, a), new B(this.isLex), new L(c)]); } - var g = b(this.name, a); - return h(l(e, "asCallProperty"), g.concat([new z(this.isLex), new J(c)])); + var h = b(this.name, a); + return g(l(e, "asCallProperty"), h.concat([new B(this.isLex), new L(c)])); }; a.IR.ASCallSuper.prototype.compile = function(a) { - var e = f(this.scope, a), c = f(this.object, a), g = this.args.map(function(b) { + var e = f(this.scope, a), c = f(this.object, a), h = this.args.map(function(b) { return f(b, a); - }), n = b(this.name, a); - return h(l(c, "asCallSuper"), [e].concat(n).concat(new J(g))); + }), p = b(this.name, a); + return g(l(c, "asCallSuper"), [e].concat(p).concat(new L(h))); }; a.IR.Call.prototype.compile = function(b) { var a = this.args.map(function(a) { return f(a, b); }), e = f(this.callee, b), c; - c = this.object ? f(this.object, b) : new z(null); - return this.flags & 16 ? q(e, c, a) : null === this.object ? h(e, a) : s(e, c, a); + c = this.object ? f(this.object, b) : new B(null); + return this.flags & 16 ? q(e, c, a) : null === this.object ? g(e, a) : r(e, c, a); }; a.IR.ASNew.prototype.compile = function(b) { var a = this.args.map(function(a) { return f(a, b); }), e = f(this.callee, b), e = l(e, "instanceConstructor"); - return new Q(e, a); + return new S(e, a); }; a.IR.This.prototype.compile = function(b) { - return new P; + return new R; }; a.IR.Throw.prototype.compile = function(b) { b = f(this.argument, b); - return new R(b); + return new T(b); }; a.IR.Arguments.prototype.compile = function(b) { - return t("arguments"); + return v("arguments"); }; a.IR.ASGlobal.prototype.compile = function(b) { b = f(this.scope, b); @@ -21773,28 +21744,28 @@ Shumway.AVM2.XRegExp.install(); a.IR.ASSetProperty.prototype.compile = function(a) { var e = f(this.object, a), c = f(this.value, a); if (this.flags & 1) { - return h(l(e, "asSetNumericProperty"), [f(this.name.name, a), c]); + return g(l(e, "asSetNumericProperty"), [f(this.name.name, a), c]); } a = b(this.name, a); - return h(l(e, "asSetProperty"), a.concat(c)); + return g(l(e, "asSetProperty"), a.concat(c)); }; a.IR.ASSetSuper.prototype.compile = function(a) { - var e = f(this.scope, a), c = f(this.object, a), g = b(this.name, a); + var e = f(this.scope, a), c = f(this.object, a), h = b(this.name, a); a = f(this.value, a); - return h(l(c, "asSetSuper"), [e].concat(g).concat([a])); + return g(l(c, "asSetSuper"), [e].concat(h).concat([a])); }; a.IR.ASDeleteProperty.prototype.compile = function(a) { var e = f(this.object, a); a = b(this.name, a); - return h(l(e, "asDeleteProperty"), a); + return g(l(e, "asDeleteProperty"), a); }; a.IR.ASHasProperty.prototype.compile = function(a) { var e = f(this.object, a); a = b(this.name, a); - return h(l(e, "asHasProperty"), a); + return g(l(e, "asHasProperty"), a); }; a.IR.GlobalProperty.prototype.compile = function(b) { - return t(this.name); + return v(this.name); }; a.IR.GetProperty.prototype.compile = function(b) { var a = f(this.object, b); @@ -21809,48 +21780,48 @@ Shumway.AVM2.XRegExp.install(); a.IR.ASGetDescendants.prototype.compile = function(b) { var a = f(this.object, b); b = f(this.name, b); - return h(t("getDescendants"), [a, b]); + return g(v("getDescendants"), [a, b]); }; a.IR.ASSetSlot.prototype.compile = function(b) { var a = f(this.object, b), e = f(this.name, b); b = f(this.value, b); - return h(t("asSetSlot"), [a, e, b]); + return g(v("asSetSlot"), [a, e, b]); }; a.IR.ASGetSlot.prototype.compile = function(b) { var a = f(this.object, b); b = f(this.name, b); - return h(t("asGetSlot"), [a, b]); + return g(v("asGetSlot"), [a, b]); }; a.IR.Projection.prototype.compile = function(b) { return f(this.argument.scope, b); }; a.IR.NewArray.prototype.compile = function(b) { - return new J(e(this.elements, b)); + return new L(e(this.elements, b)); }; a.IR.NewObject.prototype.compile = function(b) { var a = this.properties.map(function(a) { var e = f(a.key, b); a = f(a.value, b); - return new S(e, a, "init"); + return new U(e, a, "init"); }); return new G(a); }; a.IR.ASNewActivation.prototype.compile = function(b) { b = f(this.methodInfo, b); - return h(t("asCreateActivation"), [b]); + return g(v("asCreateActivation"), [b]); }; a.IR.ASNewHasNext2.prototype.compile = function(b) { - return new Q(t("HasNext2Info"), []); + return new S(v("HasNext2Info"), []); }; a.IR.ASMultiname.prototype.compile = function(b) { var a = f(this.namespaces, b), e = f(this.name, b); b = f(this.flags, b); - return h(t("createName"), [a, e, b]); + return g(v("createName"), [a, e, b]); }; a.IR.Block.prototype.compile = function(b) { return b.compileBlock(this); }; - var aa = function() { + var ca = function() { function b(a, e, f, c) { this.parameters = a; this.body = e; @@ -21865,31 +21836,31 @@ Shumway.AVM2.XRegExp.install(); b.id = 0; return b; }(); - p.Compilation = aa; - p.generate = function(b) { + n.Compilation = ca; + n.generate = function(b) { k.enterTimeline("Looper"); var e = a.Looper.analyze(b); k.leaveTimeline(); new d.IndentingWriter; - b = new ea; + b = new ga; k.enterTimeline("Construct AST"); var f = e.compile(b); k.leaveTimeline(); for (var e = [], c = 0;c < b.parameters.length;c++) { - e.push(t(b.parameters[c] ? b.parameters[c].name : "_" + c)); + e.push(v(b.parameters[c] ? b.parameters[c].name : "_" + c)); } - c = "$$F" + aa.id++; + c = "$$F" + ca.id++; if (b.constants.length) { - var h = new D(c), n = new T(h, new D("constants"), !1); - f.body.unshift(g([new F(t("$F"), h), new F(t("$C"), n)])); + var g = new D(c), p = new J(g, new D("constants"), !1); + f.body.unshift(h([new E(v("$F"), g), new E(v("$C"), p)])); } - b.variables.length && (k.countTimeline("Backend: Locals", b.variables.length), h = g(b.variables.map(function(b) { - return new F(t(b.name)); - })), f.body.unshift(h)); + b.variables.length && (k.countTimeline("Backend: Locals", b.variables.length), g = h(b.variables.map(function(b) { + return new E(v(b.name)); + })), f.body.unshift(g)); k.enterTimeline("Serialize AST"); f = f.toSource(); k.leaveTimeline(); - return jsGlobal[c] = new aa(e.map(function(b) { + return jsGlobal[c] = new ca(e.map(function(b) { return b.name; }), f, b.constants, b.lazyConstants); }; @@ -21900,67 +21871,67 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(a) { + function n(a) { return "string" === typeof a ? b(a) : String(a); } - function v(b, a) { + function w(b, a) { if (!a) { return b; } - switch(g.getQualifiedName(a)) { - case g.Int: + switch(h.getQualifiedName(a)) { + case h.Int: return b + "|0"; - case g.Uint: + case h.Uint: return b + " >>> 0"; - case g.String: + case h.String: return "asCoerceString(" + b + ")"; - case g.Number: + case h.Number: return "+" + b; - case g.Boolean: + case h.Boolean: return "!!" + b; - case g.Object: + case h.Object: return "asCoerceObject(" + b + ")"; default: return b; } } - function t(b, a, f, c) { - var g = Relooper.r; + function v(b, a, f, c) { + var h = Relooper.r; Relooper.r = 0; b = new D(b, a, f, c); try { - var h = b.compile(); - } catch (n) { - Relooper.cleanup(), x++, e && e.errorLn("Error: " + n); + var g = b.compile(); + } catch (p) { + Relooper.cleanup(), C++, e && e.errorLn("Error: " + p); } - Relooper.r = g; - return h; + Relooper.r = h; + return g; } function u(b) { return d.StringUtilities.variableLengthEncodeInt32(b.abc.hash) + "_" + b.index; } function l(b) { - return d.StringUtilities.variableLengthEncodeInt32(b.abc.hash) + "_" + g.getQualifiedName(b.instanceInfo.name); + return d.StringUtilities.variableLengthEncodeInt32(b.abc.hash) + "_" + h.getQualifiedName(b.instanceInfo.name); } function c(b, a) { for (var e = 0;e < a.length;e++) { var f = a[e]; if (f.isConst() || f.isSlot()) { - var c = f.hasDefaultValue ? p(f.value) : s.getDefaultValue(f.typeName); - b.writeLn("this." + g.getQualifiedName(f.name) + " = " + c + ";"); + var c = f.hasDefaultValue ? n(f.value) : r.getDefaultValue(f.typeName); + b.writeLn("this." + h.getQualifiedName(f.name) + " = " + c + ";"); } } } - function h(b, a, e) { + function g(b, a, e) { for (var f = 0;f < e.length;f++) { var c = e[f]; if (c.isMethodOrAccessor()) { - var h = c.methodInfo; - if (!h.code) { + var g = c.methodInfo; + if (!g.code) { break; } - if (h = t(h, new m(null, {baseClass:{traitsPrototype:{}}}), !1, "")) { - b.enter("function " + a + g.getQualifiedName(c.name) + "(" + h.parameters.join(", ") + ") {"), b.writeLns(h.body), b.leave("}"); + if (g = v(g, new m(null, {baseClass:{traitsPrototype:{}}}), !1, "")) { + b.enter("function " + a + h.getQualifiedName(c.name) + "(" + g.parameters.join(", ") + ") {"), b.writeLns(g.body), b.leave("}"); } } } @@ -21971,14 +21942,14 @@ Shumway.AVM2.XRegExp.install(); var f; a: { f = a.instanceInfo.superName; - for (var h = 0;h < M.length;h++) { - for (var n = M[h].scripts, m = 0;m < n.length;m++) { - for (var r = n[m].traits, d = 0;d < r.length;d++) { - var l = r[d]; + for (var g = 0;g < M.length;g++) { + for (var p = M[g].scripts, m = 0;m < p.length;m++) { + for (var t = p[m].traits, d = 0;d < t.length;d++) { + var l = t[d]; if (l.isClass()) { - for (var q = g.getQualifiedName(l.name), s = 0, x = f.namespaces.length;s < x;s++) { - var p = f.getQName(s); - if (q === g.getQualifiedName(p)) { + for (var q = h.getQualifiedName(l.name), r = 0, n = f.namespaces.length;r < n;r++) { + var k = f.getQName(r); + if (q === h.getQualifiedName(k)) { f = l.classInfo; break a; } @@ -21995,17 +21966,17 @@ Shumway.AVM2.XRegExp.install(); c(b, a.instanceInfo.traits); } b.writeLn("// Class: " + a.instanceInfo.name + " extends " + a.instanceInfo.superName); - var f = l(a), n = f + "_Static"; - h(b, n + "_", a.traits); - b.enter("function " + n + " () {"); + var f = l(a), p = f + "_Static"; + g(b, p + "_", a.traits); + b.enter("function " + p + " () {"); c(b, a.traits); b.leave("}"); - h(b, f + "_", a.instanceInfo.traits); + g(b, f + "_", a.instanceInfo.traits); b.enter("function " + f + "() {"); e(a); b.leave("}"); } - var s = k.ABC.ClassInfo, m = k.Runtime.Scope, g = k.ABC.Multiname, f = d.Debug.assert, b = d.AVM2.Compiler.AST.escapeString, e = 0 < a.baselineDebugLevel.value ? new d.IndentingWriter : null, r = 0, n = 0, x = 0, I = 0, z = function() { + var r = k.ABC.ClassInfo, m = k.Runtime.Scope, h = k.ABC.Multiname, f = d.Debug.assert, b = d.AVM2.Compiler.AST.escapeString, e = 0 < a.baselineDebugLevel.value ? new d.IndentingWriter : null, t = 0, p = 0, C = 0, I = 0, B = function() { function b(a) { this._indent = 0; this._buffer = []; @@ -22055,10 +22026,10 @@ Shumway.AVM2.XRegExp.install(); this.constantPool = this.methodInfo.abc.constantPool; } a.prototype.compile = function() { - r++; + t++; Relooper.init(); - this.bodyEmitter = new z(!1); - this.blockEmitter = new z(!1); + this.bodyEmitter = new B(!1); + this.blockEmitter = new B(!1); var b = this.methodInfo.hasExceptions(); b && this.bodyEmitter.writeLn("var pc = 0;"); var a = performance.now(), f = this.methodInfo.analysis || new k.Analysis(this.methodInfo); @@ -22070,21 +22041,21 @@ Shumway.AVM2.XRegExp.install(); this.local = ["this"]; this.parameters = []; this.hasDynamicScope && this.parameters.push("$0"); - for (var g = this.hasDynamicScope ? 1 : 0, h = this.methodInfo.parameters.length, m = 0;m < h;m++) { + for (var h = this.hasDynamicScope ? 1 : 0, g = this.methodInfo.parameters.length, m = 0;m < g;m++) { var d = this.methodInfo.parameters[m], l = this.getLocalName(m + 1); this.local.push(l); this.parameters.push(l); if (d.optional && d.isUsed) { - var q = p(d.value); - this.bodyEmitter.writeLn("arguments.length < " + (g + m + 1) + " && (" + l + " = " + q + ");"); + var q = n(d.value); + this.bodyEmitter.writeLn("arguments.length < " + (h + m + 1) + " && (" + l + " = " + q + ");"); } - d = v(l, d.type); + d = w(l, d.type); d !== l && this.bodyEmitter.writeLn(l + " = " + d + ";"); } l = this.methodInfo.localCount; - if (l > h + 1) { + if (l > g + 1) { d = "var "; - for (m = h + 1;m < l;m++) { + for (m = g + 1;m < l;m++) { this.local.push(this.getLocalName(m)), d += this.local[m] + (m < l - 1 ? ", " : ";"); } this.bodyEmitter.writeLn(d); @@ -22107,37 +22078,37 @@ Shumway.AVM2.XRegExp.install(); this.bodyEmitter.writeLn("var mi = " + this.globalMiName + ";"); this.hasDynamicScope || this.bodyEmitter.writeLn("$0 = mi.classScope;"); this.bodyEmitter.writeLn("var label;"); - (this.methodInfo.needsRest() || this.methodInfo.needsArguments()) && this.bodyEmitter.writeLn(this.local[h + 1] + " = sliceArguments(arguments, " + (g + (this.methodInfo.needsRest() ? h : 0)) + ");"); - h = this.relooperEntryBlock = Relooper.addBlock("// Entry Block"); + (this.methodInfo.needsRest() || this.methodInfo.needsArguments()) && this.bodyEmitter.writeLn(this.local[g + 1] + " = sliceArguments(arguments, " + (h + (this.methodInfo.needsRest() ? g : 0)) + ");"); + g = this.relooperEntryBlock = Relooper.addBlock("// Entry Block"); for (m = 0;m < c.length;m++) { - g = c[m], g.relooperBlock = Relooper.addBlock("// Block: " + g.bid); + h = c[m], h.relooperBlock = Relooper.addBlock("// Block: " + h.bid); } if (b) { - for (g = this.methodInfo.exceptions, m = 0;m < g.length;m++) { - l = g[m].target, this.propagateBlockState(null, l, 1, 0), Relooper.addBranch(h, l.relooperBlock, "pc === " + l.pc); + for (h = this.methodInfo.exceptions, m = 0;m < h.length;m++) { + l = h[m].target, this.propagateBlockState(null, l, 1, 0), Relooper.addBranch(g, l.relooperBlock, "pc === " + l.pc); } } - Relooper.addBranch(h, c[0].relooperBlock); + Relooper.addBranch(g, c[0].relooperBlock); this.propagateBlockState(null, c[0], 0, 0); this.emitBlocks(); if (0 < this.hasNext2Infos) { - g = "var "; + h = "var "; for (m = 0;m < this.hasNext2Infos;m++) { - g += "hasNext" + m + " = new HasNext2Info()", g += m < this.hasNext2Infos - 1 ? ", " : ";"; + h += "hasNext" + m + " = new HasNext2Info()", h += m < this.hasNext2Infos - 1 ? ", " : ";"; } - this.bodyEmitter.writeLn(g); + this.bodyEmitter.writeLn(h); } b && (this.bodyEmitter.enter("while(1) {"), this.bodyEmitter.enter("try {")); - g = Relooper.render(this.relooperEntryBlock); + h = Relooper.render(this.relooperEntryBlock); for (m = 0;m < c.length;m++) { - h = c[m].bid, l = this.blockBodies[h], g = g.split("\"'\"'" + h + "\"'\"'").join(l); + g = c[m].bid, l = this.blockBodies[g], h = h.split("\"'\"'" + g + "\"'\"'").join(l); } - this.bodyEmitter.writeLns(g); + this.bodyEmitter.writeLns(h); if (b) { this.bodyEmitter.leaveAndEnter("} catch (ex) {"); - g = this.methodInfo.exceptions; - for (m = 0;m < g.length;m++) { - b = g[m], c = "", b.typeName && (this.bodyEmitter.writeLn("var mn = mi.abc.constantPool.multinames[" + b.typeNameIndex + "];"), this.bodyEmitter.writeLn("var type = mi.abc.applicationDomain.getType(mn);"), c = " && type.isType(ex)"), this.bodyEmitter.writeLn("if (pc >= " + b.start_pc + " && pc <= " + b.end_pc + c + ") { pc = " + b.target_pc + "; continue; }"); + h = this.methodInfo.exceptions; + for (m = 0;m < h.length;m++) { + b = h[m], c = "", b.typeName && (this.bodyEmitter.writeLn("var mn = mi.abc.constantPool.multinames[" + b.typeNameIndex + "];"), this.bodyEmitter.writeLn("var type = mi.abc.applicationDomain.getType(mn);"), c = " && type.isType(ex)"), this.bodyEmitter.writeLn("if (pc >= " + b.start_pc + " && pc <= " + b.end_pc + c + ") { pc = " + b.target_pc + "; continue; }"); } this.bodyEmitter.leave("}"); this.bodyEmitter.leave("}"); @@ -22145,11 +22116,11 @@ Shumway.AVM2.XRegExp.install(); m = this.bodyEmitter.toString(); a = performance.now() - a; I += a; - n++; - e && e.writeLn("Compiled: PASS: " + n + ", FAIL: " + x + ", TIME: " + a.toFixed(2) + ", RATIO: " + (n / r).toFixed(4) + " (" + I.toFixed(2) + " total)"); + p++; + e && e.writeLn("Compiled: PASS: " + p + ", FAIL: " + C + ", TIME: " + a.toFixed(2) + ", RATIO: " + (p / t).toFixed(4) + " (" + I.toFixed(2) + " total)"); k.BytecodePool.releaseList(f.bytecodes); Relooper.cleanup(); - return{body:m, parameters:this.parameters}; + return {body:m, parameters:this.parameters}; }; a.prototype.emitBlocks = function() { for (var b = this.blocks, a = 0;a < b.length;a++) { @@ -22640,7 +22611,7 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.emitSetSuper = function(b) { var a = this.pop(), e = this.constantPool.multinames[b]; - e.isSimpleStatic() ? (b = g.qualifyName(e.namespaces[0], e.name), "s" + b in this.methodInfo.classScope.object.baseClass.traitsPrototype ? this.emitLine("mi.classScope.object.baseClass.traitsPrototype.s" + b + ".call(" + this.pop() + ", " + a + ");") : this.emitLine(this.pop() + "." + b + " = " + a + ";")) : (b = this.emitMultiname(b), this.emitLine(this.pop() + ".asSetSuper(mi.classScope, " + b + ", " + a + ");")); + e.isSimpleStatic() ? (b = h.qualifyName(e.namespaces[0], e.name), "s" + b in this.methodInfo.classScope.object.baseClass.traitsPrototype ? this.emitLine("mi.classScope.object.baseClass.traitsPrototype.s" + b + ".call(" + this.pop() + ", " + a + ");") : this.emitLine(this.pop() + "." + b + " = " + a + ";")) : (b = this.emitMultiname(b), this.emitLine(this.pop() + ".asSetSuper(mi.classScope, " + b + ", " + a + ");")); }; a.prototype.emitGetProperty = function(b) { b = this.emitMultiname(b); @@ -22648,7 +22619,7 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.emitGetSuper = function(b) { var a = this.constantPool.multinames[b]; - a.isSimpleStatic() ? (b = g.qualifyName(a.namespaces[0], a.name), "g" + b in this.methodInfo.classScope.object.baseClass.traitsPrototype ? this.emitReplace("mi.classScope.object.baseClass.traitsPrototype.g" + b + ".call(this)") : this.emitReplace(this.peek() + "." + b)) : (b = this.emitMultiname(b), a = this.peek(), this.emitReplace(a + ".asGetSuper(mi.classScope, " + b + ")")); + a.isSimpleStatic() ? (b = h.qualifyName(a.namespaces[0], a.name), "g" + b in this.methodInfo.classScope.object.baseClass.traitsPrototype ? this.emitReplace("mi.classScope.object.baseClass.traitsPrototype.g" + b + ".call(this)") : this.emitReplace(this.peek() + "." + b)) : (b = this.emitMultiname(b), a = this.peek(), this.emitReplace(a + ".asGetSuper(mi.classScope, " + b + ")")); }; a.prototype.emitDeleteProperty = function(b) { b = this.emitMultiname(b); @@ -22665,7 +22636,7 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.emitCallSuper = function(b) { var a = this.popArgs(b.argCount), e = this.constantPool.multinames[b.index]; - e.isSimpleStatic() && (f = "mi.classScope.object.baseClass.traitsPrototype.m" + g.qualifyName(e.namespaces[0], e.name) + ".call(" + this.peek() + (a.length ? ", " + a : "") + ")"); + e.isSimpleStatic() && (f = "mi.classScope.object.baseClass.traitsPrototype.m" + h.qualifyName(e.namespaces[0], e.name) + ".call(" + this.peek() + (a.length ? ", " + a : "") + ")"); if (!f) { var e = this.emitMultiname(b.index), f = this.peek() + ".asCallSuper(mi.classScope, " + e + ", [" + a + "])" } @@ -22691,7 +22662,7 @@ Shumway.AVM2.XRegExp.install(); a.prototype.emitGetLex = function(b) { var a = this.emitFindProperty(b, !0); b = this.constantPool.multinames[b]; - b.isSimpleStatic() ? (a = g.qualifyName(b.namespaces[0], b.name), this.emitReplace(this.peek() + "." + a)) : this.emitReplace(this.peek() + ".asGetProperty(" + a + ", false)"); + b.isSimpleStatic() ? (a = h.qualifyName(b.namespaces[0], b.name), this.emitReplace(this.peek() + "." + a)) : this.emitReplace(this.peek() + ".asGetProperty(" + a + ", false)"); }; a.prototype.emitGetDescendants = function(b) { b = this.constantPool.multinames[b]; @@ -22705,7 +22676,7 @@ Shumway.AVM2.XRegExp.install(); var a = this.constantPool.multinames[b]; this.blockEmitter.writeLn("var mn = mi.abc.constantPool.multinames[" + b + "]; // "); b = a.isRuntimeName() ? this.pop() : '"' + (a.name || "*") + '"'; - return(a.isRuntimeNamespace() ? "[" + this.pop() + "]" : "mn.namespaces") + ", " + b + ", " + a.flags; + return (a.isRuntimeNamespace() ? "[" + this.pop() + "]" : "mn.namespaces") + ", " + b + ", " + a.flags; }; a.prototype.emitBinaryIf = function(b, a, e, f) { var c = this.pop(); @@ -22759,10 +22730,10 @@ Shumway.AVM2.XRegExp.install(); var f = a.targets[a.targets.length - 1], c = f.relooperBlock; this.propagateBlockState(b, f, this.stack, this.scopeIndex); for (f = 0;f < a.targets.length - 1;f++) { - var g = a.targets[f], h = g.relooperBlock, n = Relooper.addBlock(); - Relooper.addBranch(e, n, "case " + f + ":"); - Relooper.addBranch(n, h); - this.propagateBlockState(b, g, this.stack, this.scopeIndex); + var h = a.targets[f], g = h.relooperBlock, p = Relooper.addBlock(); + Relooper.addBranch(e, p, "case " + f + ":"); + Relooper.addBranch(p, g); + this.propagateBlockState(b, h, this.stack, this.scopeIndex); } Relooper.addBranch(e, c); }; @@ -22813,8 +22784,8 @@ Shumway.AVM2.XRegExp.install(); for (var e = [], f = 0;f < a.argCount;f++) { var c = this.pop(); this.pop(); - var g = this.constantPool.strings[this.pushedStrings[this.stack]]; - e.push((d.isNumeric(g) ? g : b("$Bg" + g)) + ": " + c); + var h = this.constantPool.strings[this.pushedStrings[this.stack]]; + e.push((d.isNumeric(h) ? h : b("$Bg" + h)) + ": " + c); } this.emitPush("{ " + e.join(", ") + " }"); }; @@ -22839,18 +22810,24 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.emitCoerce = function(b) { switch(this.constantPool.multinames[b.index]) { - case g.Int: - return this.emitCoerceInt(); - case g.Uint: - return this.emitCoerceUint(); - case g.Number: - return this.emitCoerceNumber(); - case g.Boolean: - return this.emitCoerceBoolean(); - case g.Object: - return this.emitCoerceObject(b); - case g.String: - return this.emitCoerceString(b); + case h.Int: + this.emitCoerceInt(); + return; + case h.Uint: + this.emitCoerceUint(); + return; + case h.Number: + this.emitCoerceNumber(); + return; + case h.Boolean: + this.emitCoerceBoolean(); + return; + case h.Object: + this.emitCoerceObject(b); + return; + case h.String: + this.emitCoerceString(b); + return; } b.ti && b.ti.noCoercionNeeded || (b = "asCoerce(mi.abc.applicationDomain.getType(mi.abc.constantPool.multinames[" + b.index + "]), " + this.pop() + ")", this.emitPush(b)); }; @@ -22937,7 +22914,7 @@ Shumway.AVM2.XRegExp.install(); }; a.prototype.emitReturnValue = function() { var b = this.pop(); - this.blockEmitter.writeLn("return " + v(b, this.methodInfo.returnType) + ";"); + this.blockEmitter.writeLn("return " + w(b, this.methodInfo.returnType) + ";"); }; a.prototype.popArgs = function(b) { for (var a = [], e = this.stack, f = b = e - b;f < e;f++) { @@ -22950,7 +22927,7 @@ Shumway.AVM2.XRegExp.install(); a.stackNames = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""); return a; }(); - a.baselineCompileMethod = t; + a.baselineCompileMethod = v; var M = []; a.baselineCompileABCs = function(b, a) { e && e.writeLn("Compiling LIBs: " + b); @@ -22958,19 +22935,19 @@ Shumway.AVM2.XRegExp.install(); M.push.apply(M, b); M.push.apply(M, a); for (var f = 0;f < a.length;f++) { - var g = a[f]; - e && e.writeLn("Compiling ABC: " + g); - for (var n = new z(!0), m = 0;m < g.scripts.length;m++) { - var r = n, d = g.scripts[m]; + var h = a[f]; + e && e.writeLn("Compiling ABC: " + h); + for (var p = new B(!0), m = 0;m < h.scripts.length;m++) { + var t = p, d = h.scripts[m]; d.abc.hash; - r.writeLn("// Script: " + d.name); - h(r, u(d), d.traits); - r.enter("function " + u(d) + "() {"); - c(r, d.traits); - r.leave("}"); + t.writeLn("// Script: " + d.name); + g(t, u(d), d.traits); + t.enter("function " + u(d) + "() {"); + c(t, d.traits); + t.leave("}"); } - for (m = 0;m < g.classes.length;m++) { - q(n, g.classes[m]); + for (m = 0;m < h.classes.length;m++) { + q(p, h.classes[m]); } } }; @@ -22980,7 +22957,7 @@ Shumway.AVM2.XRegExp.install(); (function(d) { (function(k) { (function(a) { - function p(c) { + function n(c) { k.enterTimeline("executeScript", {name:c.name}); new a.Global(c); c.executing = !0; @@ -22989,10 +22966,10 @@ Shumway.AVM2.XRegExp.install(); c.executed = !0; k.leaveTimeline(); } - function v(a, f) { - a.executed || a.executing || p(a); + function w(a, f) { + a.executed || a.executing || n(a); } - function t(c) { + function v(c) { if (!a.playerglobal) { return null; } @@ -23004,9 +22981,9 @@ Shumway.AVM2.XRegExp.install(); } return b ? (c = b, c = (f = a.playerglobal.scripts[c]) ? new u(new Uint8Array(a.playerglobal.abcs, f.offset, f.length), c) : null, c) : null; } - var u = d.AVM2.ABC.AbcFile, l = d.AVM2.ABC.Multiname, c = d.Callback, h = d.IndentingWriter; - a.executeScript = p; - a.ensureScriptIsExecuted = v; + var u = d.AVM2.ABC.AbcFile, l = d.AVM2.ABC.Multiname, c = d.Callback, g = d.IndentingWriter; + a.executeScript = n; + a.ensureScriptIsExecuted = w; (function(a) { a[a.PUBLIC_PROPERTIES = 1] = "PUBLIC_PROPERTIES"; a[a.PUBLIC_METHODS = 2] = "PUBLIC_METHODS"; @@ -23019,11 +22996,11 @@ Shumway.AVM2.XRegExp.install(); a[a.SpiderMonkey = 0] = "SpiderMonkey"; a[a.V8 = 1] = "V8"; })(q || (q = {})); - var s = function() { + var r = function() { function c(a, b) { this.systemDomain = new m(this, null, a, !0); this.applicationDomain = new m(this, this.systemDomain, b, !1); - this.findDefiningAbc = t; + this.findDefiningAbc = v; this.exception = {value:void 0}; this.exceptions = []; this.globals = Object.create(null); @@ -23045,7 +23022,7 @@ Shumway.AVM2.XRegExp.install(); return null === a ? c.instance.systemDomain : a.applicationDomain; }; c.isPlayerglobalLoaded = function() { - return!!a.playerglobal; + return !!a.playerglobal; }; c.loadPlayerglobal = function() { return a.playerglobalLoadedPromise ? Promise.reject("Playerglobal is already loaded") : Promise.all([d.SystemResourcesLoadingService.instance.load(1), d.SystemResourcesLoadingService.instance.load(2)]).then(function(f) { @@ -23066,9 +23043,9 @@ Shumway.AVM2.XRegExp.install(); }; return c; }(); - a.AVM2 = s; + a.AVM2 = r; var m = function() { - function g(a, b, e, g) { + function h(a, b, e, h) { this.vm = a; this.abcs = []; this.loadedAbcs = {}; @@ -23077,30 +23054,30 @@ Shumway.AVM2.XRegExp.install(); this.scriptCache = Object.create(null); this.classInfoCache = Object.create(null); this.base = b; - this.allowNatives = g; + this.allowNatives = h; this.mode = e; this.onMessage = new c; this.system = b ? b.system : this; } - g.passthroughCallable = function(a) { - return{call:function(b) { + h.passthroughCallable = function(a) { + return {call:function(b) { Array.prototype.shift.call(arguments); return a.asApply(b, arguments); }, apply:function(b, e) { return a.asApply(b, e); }}; }; - g.coerceCallable = function(f) { - return{call:function(b, e) { + h.coerceCallable = function(f) { + return {call:function(b, e) { return a.asCoerce(f, e); }, apply:function(b, e) { return a.asCoerce(f, e[0]); }}; }; - g.prototype.getType = function(a) { + h.prototype.getType = function(a) { return this.getProperty(a, !0, !0); }; - g.prototype.getProperty = function(a, b, e) { + h.prototype.getProperty = function(a, b, e) { if (e = this.findDefiningScript(a, e)) { return e.script.executing ? e.script.global[l.getQualifiedName(e.trait.name)] : void 0; } @@ -23108,13 +23085,13 @@ Shumway.AVM2.XRegExp.install(); return d.Debug.unexpected("Cannot find property " + a); } }; - g.prototype.getClass = function(a, b) { + h.prototype.getClass = function(a, b) { void 0 === b && (b = !0); var e = this.classCache, c = e[a]; c || (c = e[a] = this.getProperty(l.fromSimpleName(a), b, !0)); return c; }; - g.prototype.findDomainProperty = function(a, b, e) { + h.prototype.findDomainProperty = function(a, b, e) { if (e = this.findDefiningScript(a, e)) { return e.script.global; } @@ -23122,7 +23099,7 @@ Shumway.AVM2.XRegExp.install(); return d.Debug.unexpected("Cannot find property " + a); } }; - g.prototype.findClassInfo = function(a) { + h.prototype.findClassInfo = function(a) { var b; if (l.isQName(a)) { b = l.getQualifiedName(a); @@ -23132,22 +23109,22 @@ Shumway.AVM2.XRegExp.install(); } return e || this.base && (e = this.base.findClassInfo(a)) ? e : this.findClassInfoSlow(a, b); }; - g.prototype.findClassInfoSlow = function(a, b) { + h.prototype.findClassInfoSlow = function(a, b) { for (var e = this.abcs, c = 0;c < e.length;c++) { - for (var g = e[c], g = g.scripts, h = 0;h < g.length;h++) { - for (var m = g[h].traits, d = 0;d < m.length;d++) { + for (var h = e[c], h = h.scripts, g = 0;g < h.length;g++) { + for (var m = h[g].traits, d = 0;d < m.length;d++) { var q = m[d]; if (q.isClass()) { - var s = l.getQualifiedName(q.name); + var r = l.getQualifiedName(q.name); if (b) { - if (s === b) { + if (r === b) { return this.classInfoCache[b] = q.classInfo; } } else { - for (var p = 0, k = a.namespaces.length;p < k;p++) { - var t = a.getQName(p); - if (s === l.getQualifiedName(t)) { - return this.classInfoCache[t] = q.classInfo; + for (var n = 0, k = a.namespaces.length;n < k;n++) { + var v = a.getQName(n); + if (r === l.getQualifiedName(v)) { + return this.classInfoCache[v] = q.classInfo; } } } @@ -23155,61 +23132,61 @@ Shumway.AVM2.XRegExp.install(); } } } - if (!this.base && this.vm.findDefiningAbc && (g = this.vm.findDefiningAbc(a), null !== g && !this.loadedAbcs[g.name])) { - return this.loadedAbcs[g.name] = !0, this.loadAbc(g), this.findClassInfo(a); + if (!this.base && this.vm.findDefiningAbc && (h = this.vm.findDefiningAbc(a), null !== h && !this.loadedAbcs[h.name])) { + return this.loadedAbcs[h.name] = !0, this.loadAbc(h), this.findClassInfo(a); } }; - g.prototype.findDefiningScript = function(a, b) { + h.prototype.findDefiningScript = function(a, b) { var e = this.scriptCache[a.runtimeId]; return e && (e.script.executed || !b) || this.base && (e = this.base.findDefiningScript(a, b)) ? e : this.findDefiningScriptSlow(a, b); }; - g.prototype.findDefiningScriptSlow = function(a, b) { + h.prototype.findDefiningScriptSlow = function(a, b) { k.countTimeline("ApplicationDomain: findDefiningScriptSlow"); for (var e = this.abcs, c = 0;c < e.length;c++) { - for (var g = e[c], g = g.scripts, h = 0;h < g.length;h++) { - var m = g[h], d = m.traits; + for (var h = e[c], h = h.scripts, g = 0;g < h.length;g++) { + var m = h[g], d = m.traits; if (a instanceof l) { for (var q = 0;q < d.length;q++) { - var s = d[q]; - if (a.hasQName(s.name)) { - return b && v(m, ""), this.scriptCache[a.runtimeId] = {script:m, trait:s}; + var r = d[q]; + if (a.hasQName(r.name)) { + return b && w(m, ""), this.scriptCache[a.runtimeId] = {script:m, trait:r}; } } } } } - if (!this.base && this.vm.findDefiningAbc && (g = this.vm.findDefiningAbc(a), null !== g && !this.loadedAbcs[g.name])) { - return this.loadedAbcs[g.name] = !0, this.loadAbc(g), this.findDefiningScript(a, b); + if (!this.base && this.vm.findDefiningAbc && (h = this.vm.findDefiningAbc(a), null !== h && !this.loadedAbcs[h.name])) { + return this.loadedAbcs[h.name] = !0, this.loadAbc(h), this.findDefiningScript(a, b); } }; - g.prototype.compileAbc = function(a, b) { + h.prototype.compileAbc = function(a, b) { d.AVM2.Compiler.compileAbc(a, b); }; - g.prototype.executeAbc = function(a) { + h.prototype.executeAbc = function(a) { this.loadAbc(a); - p(a.lastScript); + n(a.lastScript); }; - g.prototype.loadAbc = function(f) { + h.prototype.loadAbc = function(f) { d.AVM2.Runtime.traceExecution.value && console.log("Loading: " + f.name); f.applicationDomain = this; a.GlobalMultinameResolver.loadAbc(f); this.abcs.push(f); this.base || (k.AS.initialize(this), d.AVM2.Verifier.Type.initializeTypes(this)); }; - g.prototype.broadcastMessage = function(a, b, e) { + h.prototype.broadcastMessage = function(a, b, e) { try { this.onMessage.notify1(a, {data:b, origin:e, source:this}); } catch (c) { - throw s.instance.exceptions.push({source:a, message:c.message, stack:c.stack}), c; + throw r.instance.exceptions.push({source:a, message:c.message, stack:c.stack}), c; } }; - g.prototype.traceLoadedClasses = function() { - var a = new h; + h.prototype.traceLoadedClasses = function() { + var a = new g; [d.ArrayUtilities.last(this.loadedClasses)].forEach(function(b) { b !== d.AVM2.AS.ASClass && b.trace(a); }); }; - return g; + return h; }(); a.ApplicationDomain = m; q = function() { @@ -23237,22 +23214,22 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A (function(d) { (function(k) { (function(a) { - function p(a) { - return a.holder instanceof t ? "static " + a.holder.instanceInfo.name.getOriginalName() + "::" + a.name.getOriginalName() : a.holder instanceof u ? a.holder.name.getOriginalName() + "::" + a.name.getOriginalName() : a.name.getOriginalName(); + function n(a) { + return a.holder instanceof v ? "static " + a.holder.instanceInfo.name.getOriginalName() + "::" + a.name.getOriginalName() : a.holder instanceof u ? a.holder.name.getOriginalName() + "::" + a.name.getOriginalName() : a.name.getOriginalName(); } - var v = d.AVM2.ABC.Multiname, t = d.AVM2.ABC.ClassInfo, u = d.AVM2.ABC.InstanceInfo, l = d.ObjectUtilities.defineReadOnlyProperty, c = d.FunctionUtilities.bindSafely; - a.getMethodOverrideKey = p; + var w = d.AVM2.ABC.Multiname, v = d.AVM2.ABC.ClassInfo, u = d.AVM2.ABC.InstanceInfo, l = d.ObjectUtilities.defineReadOnlyProperty, c = d.FunctionUtilities.bindSafely; + a.getMethodOverrideKey = n; a.checkMethodOverrides = function(c) { - if (c.name && (c = p(c), c in a.VM_METHOD_OVERRIDES)) { + if (c.name && (c = n(c), c in a.VM_METHOD_OVERRIDES)) { return a.VM_METHOD_OVERRIDES[c]; } }; a.checkCommonMethodPatterns = function(a) { var c = a.code; - return c && 208 === c[0] && 48 === c[1] ? 71 === c[2] || a.holder instanceof u && 208 === c[2] && 73 === c[3] && 0 === c[4] && 71 === c[5] && v.getQualifiedName(a.holder.superName) === v.Object ? function() { + return c && 208 === c[0] && 48 === c[1] ? 71 === c[2] || a.holder instanceof u && 208 === c[2] && 73 === c[3] && 0 === c[4] && 71 === c[5] && w.getQualifiedName(a.holder.superName) === w.Object ? function() { } : null : null; }; - a.makeTrampoline = function(c, d, s, m, g, f) { + a.makeTrampoline = function(c, d, r, m, h, f) { function b() { e || b.trigger(); return e.apply(this, arguments); @@ -23265,11 +23242,11 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A }; b.isTrampoline = !0; b.patchTargets = m; - l(b, a.VM_LENGTH, g); + l(b, a.VM_LENGTH, h); return b; }; - a.makeMemoizer = function(h, q) { - function s() { + a.makeMemoizer = function(g, q) { + function r() { q.value.isTrampoline && q.value.trigger(); var m = c(q.value, this); d.ObjectUtilities.defineReadOnlyProperty(m, "asLength", q.value.length); @@ -23277,13 +23254,13 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A return k.countTimeline("Runtime: Method Closures"), m; } m.methodInfo = q.value.methodInfo; - l(m, v.getPublicQualifiedName("prototype"), null); - l(this, h, m); + l(m, w.getPublicQualifiedName("prototype"), null); + l(this, g, m); return m; } k.countTimeline("Runtime: Memoizers"); - s.isMemoizer = !0; - return s; + r.isMemoizer = !0; + return r; }; })(k.Runtime || (k.Runtime = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -23295,8 +23272,8 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A e.name = a.isRuntimeName() ? b.pop() : a.name; e.namespaces = a.isRuntimeNamespace() ? [b.pop()] : a.namespaces; } - var p = d.AVM2.Runtime.Scope, v = d.AVM2.Runtime.asCoerceByMultiname, t = d.AVM2.Runtime.asGetSlot, u = d.AVM2.Runtime.asSetSlot, l = d.AVM2.Runtime.asCoerce, c = d.AVM2.Runtime.asCoerceString, h = d.AVM2.Runtime.asAsType, q = d.AVM2.Runtime.asTypeOf, s = d.AVM2.Runtime.asIsInstanceOf, m = d.AVM2.Runtime.asIsType, g = d.AVM2.Runtime.applyType, f = d.AVM2.Runtime.createFunction, b = d.AVM2.Runtime.createClass, e = d.AVM2.Runtime.checkFilter, r = d.AVM2.Runtime.asAdd, n = d.AVM2.Runtime.translateError, - x = d.AVM2.Runtime.asCreateActivation, I = d.AVM2.Runtime.sliceArguments, z = d.ObjectUtilities.boxValue, D = d.ArrayUtilities.popManyInto, M = d.AVM2.Runtime.construct, F = d.AVM2.ABC.Multiname, T = d.AVM2.Runtime.HasNext2Info, N = function() { + var n = d.AVM2.Runtime.Scope, w = d.AVM2.Runtime.asCoerceByMultiname, v = d.AVM2.Runtime.asGetSlot, u = d.AVM2.Runtime.asSetSlot, l = d.AVM2.Runtime.asCoerce, c = d.AVM2.Runtime.asCoerceString, g = d.AVM2.Runtime.asAsType, q = d.AVM2.Runtime.asTypeOf, r = d.AVM2.Runtime.asIsInstanceOf, m = d.AVM2.Runtime.asIsType, h = d.AVM2.Runtime.applyType, f = d.AVM2.Runtime.createFunction, b = d.AVM2.Runtime.createClass, e = d.AVM2.Runtime.checkFilter, t = d.AVM2.Runtime.asAdd, p = d.AVM2.Runtime.translateError, + C = d.AVM2.Runtime.asCreateActivation, I = d.AVM2.Runtime.sliceArguments, B = d.ObjectUtilities.boxValue, D = d.ArrayUtilities.popManyInto, M = d.AVM2.Runtime.construct, E = d.AVM2.ABC.Multiname, J = d.AVM2.Runtime.HasNext2Info, P = function() { function b(a) { this.parent = a; this.stack = []; @@ -23320,221 +23297,221 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A b.prototype.topScope = function() { this.scopes || (this.scopes = []); for (var b = this.parent, a = 0;a < this.stack.length;a++) { - var e = this.stack[a], f = this.isWith[a], c = this.scopes[a]; - c && c.parent === b && c.object === e && c.isWith === f || (c = this.scopes[a] = new p(b, e, f)); - b = c; + var e = this.stack[a], c = this.isWith[a], f = this.scopes[a]; + f && f.parent === b && f.object === e && f.isWith === c || (f = this.scopes[a] = new n(b, e, c)); + b = f; } return b; }; return b; - }(), C = function() { - function p() { + }(), y = function() { + function n() { } - p.interpretMethod = function(p, B, C, G) { + n.interpretMethod = function(n, y, K, G) { k.countTimeline("Interpret Method"); - var J = B.abc, E = J.constantPool.ints, Q = J.constantPool.uints, S = J.constantPool.doubles, K = J.constantPool.strings, P = J.methods, R = J.constantPool.multinames, W = J.applicationDomain, ba = B.exceptions; - p = [p]; - for (var w = [], X = new N(C), U = B.parameters.length, $ = G.length, Y, L = 0;L < U;L++) { - var Z = B.parameters[L]; - Y = L < $ ? G[L] : Z.value; - Z.type && !Z.type.isAnyName() && (Y = v(B, Z.type, Y)); - p.push(Y); + var L = y.abc, F = L.constantPool.ints, S = L.constantPool.uints, U = L.constantPool.doubles, N = L.constantPool.strings, R = L.methods, T = L.constantPool.multinames, X = L.applicationDomain, da = y.exceptions; + n = [n]; + for (var x = [], Y = new P(K), V = y.parameters.length, ba = G.length, Z, O = 0;O < V;O++) { + var aa = y.parameters[O]; + Z = O < ba ? G[O] : aa.value; + aa.type && !aa.type.isAnyName() && (Z = w(y, aa.type, Z)); + n.push(Z); } - B.needsRest() ? p.push(I(G, U)) : B.needsArguments() && p.push(I(G, 0, G.asGetPublicProperty("callee"))); - G = B.analysis.bytecodes; - var ca, ga, ha, ea, aa, da, U = [], $ = F.TEMPORARY, Z = [], O = 0, ka = G.length; - a: for (;O < ka;) { + y.needsRest() ? n.push(I(G, V)) : y.needsArguments() && n.push(I(G, 0, G.asGetPublicProperty("callee"))); + G = y.analysis.bytecodes; + var ea, ia, ja, ga, ca, fa, V = [], ba = E.TEMPORARY, aa = [], Q = 0, ma = G.length; + a: for (;Q < ma;) { try { - var V = G[O], ja = V.op; - switch(ja | 0) { + var W = G[Q], la = W.op; + switch(la | 0) { case 3: - throw w.pop();; + throw x.pop();; case 4: - a(w, R[V.index], $); - w.push(w.pop().asGetSuper(C, $.namespaces, $.name, $.flags)); + a(x, T[W.index], ba); + x.push(x.pop().asGetSuper(K, ba.namespaces, ba.name, ba.flags)); break; case 5: - Y = w.pop(); - a(w, R[V.index], $); - w.pop().asSetSuper(C, $.namespaces, $.name, $.flags, Y); + Z = x.pop(); + a(x, T[W.index], ba); + x.pop().asSetSuper(K, ba.namespaces, ba.name, ba.flags, Z); break; case 8: - p[V.index] = void 0; + n[W.index] = void 0; break; case 12: - da = w.pop(); - aa = w.pop(); - O = aa < da ? O + 1 : V.offset; + fa = x.pop(); + ca = x.pop(); + Q = ca < fa ? Q + 1 : W.offset; continue; case 24: - da = w.pop(); - aa = w.pop(); - O = aa >= da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca >= fa ? W.offset : Q + 1; continue; case 13: - da = w.pop(); - aa = w.pop(); - O = aa <= da ? O + 1 : V.offset; + fa = x.pop(); + ca = x.pop(); + Q = ca <= fa ? Q + 1 : W.offset; continue; case 23: - da = w.pop(); - aa = w.pop(); - O = aa > da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca > fa ? W.offset : Q + 1; continue; case 14: - da = w.pop(); - aa = w.pop(); - O = aa > da ? O + 1 : V.offset; + fa = x.pop(); + ca = x.pop(); + Q = ca > fa ? Q + 1 : W.offset; continue; case 22: - da = w.pop(); - aa = w.pop(); - O = aa <= da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca <= fa ? W.offset : Q + 1; continue; case 15: - da = w.pop(); - aa = w.pop(); - O = aa >= da ? O + 1 : V.offset; + fa = x.pop(); + ca = x.pop(); + Q = ca >= fa ? Q + 1 : W.offset; continue; case 21: - da = w.pop(); - aa = w.pop(); - O = aa < da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca < fa ? W.offset : Q + 1; continue; case 16: - O = V.offset; + Q = W.offset; continue; case 17: - O = w.pop() ? V.offset : O + 1; + Q = x.pop() ? W.offset : Q + 1; continue; case 18: - O = w.pop() ? O + 1 : V.offset; + Q = x.pop() ? Q + 1 : W.offset; continue; case 19: - da = w.pop(); - aa = w.pop(); - O = asEquals(aa, da) ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = asEquals(ca, fa) ? W.offset : Q + 1; continue; case 20: - da = w.pop(); - aa = w.pop(); - O = asEquals(aa, da) ? O + 1 : V.offset; + fa = x.pop(); + ca = x.pop(); + Q = asEquals(ca, fa) ? Q + 1 : W.offset; continue; case 25: - da = w.pop(); - aa = w.pop(); - O = aa === da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca === fa ? W.offset : Q + 1; continue; case 26: - da = w.pop(); - aa = w.pop(); - O = aa !== da ? V.offset : O + 1; + fa = x.pop(); + ca = x.pop(); + Q = ca !== fa ? W.offset : Q + 1; continue; case 27: - ga = w.pop(); - if (0 > ga || ga >= V.offsets.length) { - ga = V.offsets.length - 1; + ia = x.pop(); + if (0 > ia || ia >= W.offsets.length) { + ia = W.offsets.length - 1; } - O = V.offsets[ga]; + Q = W.offsets[ia]; continue; case 28: - X.push(z(w.pop()), !0); + Y.push(B(x.pop()), !0); break; case 29: - X.pop(); + Y.pop(); break; case 30: - ga = w.pop(); - w[w.length - 1] = z(w[w.length - 1]).asNextName(ga); + ia = x.pop(); + x[x.length - 1] = B(x[x.length - 1]).asNextName(ia); break; case 35: - ga = w.pop(); - w[w.length - 1] = z(w[w.length - 1]).asNextValue(ga); + ia = x.pop(); + x[x.length - 1] = B(x[x.length - 1]).asNextValue(ia); break; case 50: - var la = Z[O] || (Z[O] = new T(null, 0)); - ca = p[V.object]; - ga = p[V.index]; - la.object = ca; - la.index = ga; - Object(ca).asHasNext2(la); - p[V.object] = la.object; - p[V.index] = la.index; - w.push(!!la.index); + var na = aa[Q] || (aa[Q] = new J(null, 0)); + ea = n[W.object]; + ia = n[W.index]; + na.object = ea; + na.index = ia; + Object(ea).asHasNext2(na); + n[W.object] = na.object; + n[W.index] = na.index; + x.push(!!na.index); break; case 32: - w.push(null); + x.push(null); break; case 33: - w.push(void 0); + x.push(void 0); break; case 36: ; case 37: - w.push(V.value); + x.push(W.value); break; case 44: - w.push(K[V.index]); + x.push(N[W.index]); break; case 45: - w.push(E[V.index]); + x.push(F[W.index]); break; case 46: - w.push(Q[V.index]); + x.push(S[W.index]); break; case 47: - w.push(S[V.index]); + x.push(U[W.index]); break; case 38: - w.push(!0); + x.push(!0); break; case 39: - w.push(!1); + x.push(!1); break; case 40: - w.push(NaN); + x.push(NaN); break; case 41: - w.pop(); + x.pop(); break; case 42: - w.push(w[w.length - 1]); + x.push(x[x.length - 1]); break; case 43: - ca = w[w.length - 1]; - w[w.length - 1] = w[w.length - 2]; - w[w.length - 2] = ca; + ea = x[x.length - 1]; + x[x.length - 1] = x[x.length - 2]; + x[x.length - 2] = ea; break; case 48: - X.push(z(w.pop()), !1); + Y.push(B(x.pop()), !1); break; case 64: - w.push(f(P[V.index], X.topScope(), !0, !1)); + x.push(f(R[W.index], Y.topScope(), !0, !1)); break; case 65: - D(w, V.argCount, U); - ca = w.pop(); - w[w.length - 1] = w[w.length - 1].asApply(ca, U); + D(x, W.argCount, V); + ea = x.pop(); + x[x.length - 1] = x[x.length - 1].asApply(ea, V); break; case 66: - D(w, V.argCount, U); - w[w.length - 1] = M(w[w.length - 1], U); + D(x, W.argCount, V); + x[x.length - 1] = M(x[x.length - 1], V); break; case 71: return; case 72: - return B.returnType ? v(B, B.returnType, w.pop()) : w.pop(); + return y.returnType ? w(y, y.returnType, x.pop()) : x.pop(); case 73: - D(w, V.argCount, U); - ca = w.pop(); - C.object.baseClass.instanceConstructorNoInitialize.apply(ca, U); + D(x, W.argCount, V); + ea = x.pop(); + K.object.baseClass.instanceConstructorNoInitialize.apply(ea, V); break; case 74: - D(w, V.argCount, U); - a(w, R[V.index], $); - ca = z(w[w.length - 1]); - ca = ca.asConstructProperty($.namespaces, $.name, $.flags, U); - w[w.length - 1] = ca; + D(x, W.argCount, V); + a(x, T[W.index], ba); + ea = B(x[x.length - 1]); + ea = ea.asConstructProperty(ba.namespaces, ba.name, ba.flags, V); + x[x.length - 1] = ea; break; case 75: d.Debug.notImplemented("OP.callsuperid"); @@ -23544,255 +23521,255 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 70: ; case 79: - D(w, V.argCount, U); - a(w, R[V.index], $); - ea = z(w.pop()).asCallProperty($.namespaces, $.name, $.flags, 76 === ja, U); - 79 !== ja && w.push(ea); + D(x, W.argCount, V); + a(x, T[W.index], ba); + ga = B(x.pop()).asCallProperty(ba.namespaces, ba.name, ba.flags, 76 === la, V); + 79 !== la && x.push(ga); break; case 69: ; case 78: - D(w, V.argCount, U); - a(w, R[V.index], $); - ea = w.pop().asCallSuper(C, $.namespaces, $.name, $.flags, U); - 78 !== ja && w.push(ea); + D(x, W.argCount, V); + a(x, T[W.index], ba); + ga = x.pop().asCallSuper(K, ba.namespaces, ba.name, ba.flags, V); + 78 !== la && x.push(ga); break; case 83: - D(w, V.argCount, U); - w[w.length - 1] = g(B, w[w.length - 1], U); + D(x, W.argCount, V); + x[x.length - 1] = h(y, x[x.length - 1], V); break; case 85: - ca = {}; - for (L = 0;L < V.argCount;L++) { - Y = w.pop(), ca[F.getPublicQualifiedName(w.pop())] = Y; + ea = {}; + for (O = 0;O < W.argCount;O++) { + Z = x.pop(), ea[E.getPublicQualifiedName(x.pop())] = Z; } - w.push(ca); + x.push(ea); break; case 86: - ca = []; - D(w, V.argCount, U); - ca.push.apply(ca, U); - w.push(ca); + ea = []; + D(x, W.argCount, V); + ea.push.apply(ea, V); + x.push(ea); break; case 87: - w.push(x(B)); + x.push(C(y)); break; case 88: - w[w.length - 1] = b(J.classes[V.index], w[w.length - 1], X.topScope()); + x[x.length - 1] = b(L.classes[W.index], x[x.length - 1], Y.topScope()); break; case 89: - a(w, R[V.index], $); - w[w.length - 1] = w[w.length - 1].descendants($.name); + a(x, T[W.index], ba); + x[x.length - 1] = x[x.length - 1].descendants(ba.name); break; case 90: - w.push(ba[V.index].scopeObject); + x.push(da[W.index].scopeObject); break; case 94: ; case 93: - a(w, R[V.index], $); - w.push(X.topScope().findScopeProperty($.namespaces, $.name, $.flags, B, 93 === ja, !1)); + a(x, T[W.index], ba); + x.push(Y.topScope().findScopeProperty(ba.namespaces, ba.name, ba.flags, y, 93 === la, !1)); break; case 96: - ha = R[V.index]; - ca = X.topScope().findScopeProperty(ha.namespaces, ha.name, ha.flags, B, !0, !1); - w.push(ca.asGetProperty(ha.namespaces, ha.name, ha.flags)); + ja = T[W.index]; + ea = Y.topScope().findScopeProperty(ja.namespaces, ja.name, ja.flags, y, !0, !1); + x.push(ea.asGetProperty(ja.namespaces, ja.name, ja.flags)); break; case 104: ; case 97: - Y = w.pop(); - a(w, R[V.index], $); - z(w.pop()).asSetProperty($.namespaces, $.name, $.flags, Y); + Z = x.pop(); + a(x, T[W.index], ba); + B(x.pop()).asSetProperty(ba.namespaces, ba.name, ba.flags, Z); break; case 98: - w.push(p[V.index]); + x.push(n[W.index]); break; case 99: - p[V.index] = w.pop(); + n[W.index] = x.pop(); break; case 100: - w.push(C.global.object); + x.push(K.global.object); break; case 101: - w.push(X.get(V.index)); + x.push(Y.get(W.index)); break; case 102: - a(w, R[V.index], $); - w[w.length - 1] = z(w[w.length - 1]).asGetProperty($.namespaces, $.name, $.flags); + a(x, T[W.index], ba); + x[x.length - 1] = B(x[x.length - 1]).asGetProperty(ba.namespaces, ba.name, ba.flags); break; case 106: - a(w, R[V.index], $); - w[w.length - 1] = z(w[w.length - 1]).asDeleteProperty($.namespaces, $.name, $.flags); + a(x, T[W.index], ba); + x[x.length - 1] = B(x[x.length - 1]).asDeleteProperty(ba.namespaces, ba.name, ba.flags); break; case 108: - w[w.length - 1] = t(w[w.length - 1], V.index); + x[x.length - 1] = v(x[x.length - 1], W.index); break; case 109: - Y = w.pop(); - ca = w.pop(); - u(ca, V.index, Y); + Z = x.pop(); + ea = x.pop(); + u(ea, W.index, Z); break; case 112: - w[w.length - 1] = c(w[w.length - 1]); + x[x.length - 1] = c(x[x.length - 1]); break; case 114: - w[w.length - 1] = k.Runtime.escapeXMLAttribute(w[w.length - 1]); + x[x.length - 1] = k.Runtime.escapeXMLAttribute(x[x.length - 1]); break; case 113: - w[w.length - 1] = k.Runtime.escapeXMLElement(w[w.length - 1]); + x[x.length - 1] = k.Runtime.escapeXMLElement(x[x.length - 1]); break; case 131: ; case 115: - w[w.length - 1] |= 0; + x[x.length - 1] |= 0; break; case 136: ; case 116: - w[w.length - 1] >>>= 0; + x[x.length - 1] >>>= 0; break; case 132: ; case 117: - w[w.length - 1] = +w[w.length - 1]; + x[x.length - 1] = +x[x.length - 1]; break; case 129: ; case 118: - w[w.length - 1] = !!w[w.length - 1]; + x[x.length - 1] = !!x[x.length - 1]; break; case 120: - w[w.length - 1] = e(w[w.length - 1]); + x[x.length - 1] = e(x[x.length - 1]); break; case 128: - w[w.length - 1] = l(W.getType(R[V.index]), w[w.length - 1]); + x[x.length - 1] = l(X.getType(T[W.index]), x[x.length - 1]); break; case 130: break; case 133: - w[w.length - 1] = c(w[w.length - 1]); + x[x.length - 1] = c(x[x.length - 1]); break; case 134: - w[w.length - 2] = h(W.getType(R[V.index]), w[w.length - 1]); + x[x.length - 2] = g(X.getType(T[W.index]), x[x.length - 1]); break; case 135: - w[w.length - 2] = h(w.pop(), w[w.length - 1]); + x[x.length - 2] = g(x.pop(), x[x.length - 1]); break; case 137: - ca = w[w.length - 1]; - w[w.length - 1] = void 0 == ca ? null : ca; + ea = x[x.length - 1]; + x[x.length - 1] = void 0 == ea ? null : ea; break; case 144: - w[w.length - 1] = -w[w.length - 1]; + x[x.length - 1] = -x[x.length - 1]; break; case 145: - ++w[w.length - 1]; + ++x[x.length - 1]; break; case 146: - ++p[V.index]; + ++n[W.index]; break; case 147: - --w[w.length - 1]; + --x[x.length - 1]; break; case 148: - --p[V.index]; + --n[W.index]; break; case 149: - w[w.length - 1] = q(w[w.length - 1]); + x[x.length - 1] = q(x[x.length - 1]); break; case 150: - w[w.length - 1] = !w[w.length - 1]; + x[x.length - 1] = !x[x.length - 1]; break; case 151: - w[w.length - 1] = ~w[w.length - 1]; + x[x.length - 1] = ~x[x.length - 1]; break; case 160: - w[w.length - 2] = r(w[w.length - 2], w.pop()); + x[x.length - 2] = t(x[x.length - 2], x.pop()); break; case 161: - w[w.length - 2] -= w.pop(); + x[x.length - 2] -= x.pop(); break; case 162: - w[w.length - 2] *= w.pop(); + x[x.length - 2] *= x.pop(); break; case 163: - w[w.length - 2] /= w.pop(); + x[x.length - 2] /= x.pop(); break; case 164: - w[w.length - 2] %= w.pop(); + x[x.length - 2] %= x.pop(); break; case 165: - w[w.length - 2] <<= w.pop(); + x[x.length - 2] <<= x.pop(); break; case 166: - w[w.length - 2] >>= w.pop(); + x[x.length - 2] >>= x.pop(); break; case 167: - w[w.length - 2] >>>= w.pop(); + x[x.length - 2] >>>= x.pop(); break; case 168: - w[w.length - 2] &= w.pop(); + x[x.length - 2] &= x.pop(); break; case 169: - w[w.length - 2] |= w.pop(); + x[x.length - 2] |= x.pop(); break; case 170: - w[w.length - 2] ^= w.pop(); + x[x.length - 2] ^= x.pop(); break; case 171: - w[w.length - 2] = asEquals(w[w.length - 2], w.pop()); + x[x.length - 2] = asEquals(x[x.length - 2], x.pop()); break; case 172: - w[w.length - 2] = w[w.length - 2] === w.pop(); + x[x.length - 2] = x[x.length - 2] === x.pop(); break; case 173: - w[w.length - 2] = w[w.length - 2] < w.pop(); + x[x.length - 2] = x[x.length - 2] < x.pop(); break; case 174: - w[w.length - 2] = w[w.length - 2] <= w.pop(); + x[x.length - 2] = x[x.length - 2] <= x.pop(); break; case 175: - w[w.length - 2] = w[w.length - 2] > w.pop(); + x[x.length - 2] = x[x.length - 2] > x.pop(); break; case 176: - w[w.length - 2] = w[w.length - 2] >= w.pop(); + x[x.length - 2] = x[x.length - 2] >= x.pop(); break; case 177: - w[w.length - 2] = s(w.pop(), w[w.length - 1]); + x[x.length - 2] = r(x.pop(), x[x.length - 1]); break; case 178: - w[w.length - 1] = m(W.getType(R[V.index]), w[w.length - 1]); + x[x.length - 1] = m(X.getType(T[W.index]), x[x.length - 1]); break; case 179: - w[w.length - 2] = m(w.pop(), w[w.length - 1]); + x[x.length - 2] = m(x.pop(), x[x.length - 1]); break; case 180: - w[w.length - 2] = z(w.pop()).asHasProperty(null, w[w.length - 1]); + x[x.length - 2] = B(x.pop()).asHasProperty(null, x[x.length - 1]); break; case 192: - w[w.length - 1] = (w[w.length - 1] | 0) + 1; + x[x.length - 1] = (x[x.length - 1] | 0) + 1; break; case 193: - w[w.length - 1] = (w[w.length - 1] | 0) - 1; + x[x.length - 1] = (x[x.length - 1] | 0) - 1; break; case 194: - p[V.index] = (p[V.index] | 0) + 1; + n[W.index] = (n[W.index] | 0) + 1; break; case 195: - p[V.index] = (p[V.index] | 0) - 1; + n[W.index] = (n[W.index] | 0) - 1; break; case 196: - w[w.length - 1] = ~w[w.length - 1]; + x[x.length - 1] = ~x[x.length - 1]; break; case 197: - w[w.length - 2] = w[w.length - 2] + w.pop() | 0; + x[x.length - 2] = x[x.length - 2] + x.pop() | 0; break; case 198: - w[w.length - 2] = w[w.length - 2] - w.pop() | 0; + x[x.length - 2] = x[x.length - 2] - x.pop() | 0; break; case 199: - w[w.length - 2] = w[w.length - 2] * w.pop() | 0; + x[x.length - 2] = x[x.length - 2] * x.pop() | 0; break; case 208: ; @@ -23801,7 +23778,7 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 210: ; case 211: - w.push(p[ja - 208]); + x.push(n[la - 208]); break; case 212: ; @@ -23810,13 +23787,13 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 214: ; case 215: - p[ja - 212] = w.pop(); + n[la - 212] = x.pop(); break; case 6: - d.AVM2.AS.ASXML.defaultNamespace = K[V.index]; + d.AVM2.AS.ASXML.defaultNamespace = N[W.index]; break; case 7: - d.AVM2.AS.ASXML.defaultNamespace = w.pop(); + d.AVM2.AS.ASXML.defaultNamespace = x.pop(); break; case 239: ; @@ -23825,30 +23802,30 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 241: break; default: - d.Debug.notImplemented(d.AVM2.opcodeName(ja)); + d.Debug.notImplemented(d.AVM2.opcodeName(la)); } - O++; - } catch (ma) { - if (1 > ba.length) { - throw ma; + Q++; + } catch (oa) { + if (1 > da.length) { + throw oa; } - for (var ma = n(W, ma), L = 0, ra = ba.length;L < ra;L++) { - var na = ba[L]; - if (O >= na.start && O <= na.end && (!na.typeName || W.getType(na.typeName).isType(ma))) { - w.length = 0; - w.push(ma); - X.clear(); - O = na.offset; + for (var oa = p(X, oa), O = 0, ta = da.length;O < ta;O++) { + var pa = da[O]; + if (Q >= pa.start && Q <= pa.end && (!pa.typeName || X.getType(pa.typeName).isType(oa))) { + x.length = 0; + x.push(oa); + Y.clear(); + Q = pa.offset; continue a; } } - throw ma; + throw oa; } } }; - return p; + return n; }(); - k.Interpreter = C; + k.Interpreter = y; })(d.AVM2 || (d.AVM2 = {})); })(Shumway || (Shumway = {})); (function(d) { @@ -23862,15 +23839,15 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A console.log(a); }; a.VM_METHOD_OVERRIDES["com.midasplayer.engine.comm.DebugGameComm::getGameData"] = function() { - return'\ntrue\ntrue\nfalse\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\nCandy crushed\nbest ever\nscored {0} in one game\nAll Clear Created\ncrushed {0} candy in one game\nScore\nPlease register to play the full game\nLongest chain\nGame ends in {0} seconds\nSuper Stripes Created\nNo more moves!\nMega-Candy Created\nGame starts in {0} seconds\nnow\nLevel reached\nGame Over\nMatch 3 Candy of the same colour to crush them. Matching 4 or 5 in different formations generates special sweets that are extra tasty.\nYou can also combine the special sweets for additional effects by switching them with each other. Try these combinations for a taste you will not forget: \nDouble Colour Bombs Created\nmade {0} combined candy in one game\nPlay like this:\n'; + return '\ntrue\ntrue\nfalse\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\nCandy crushed\nbest ever\nscored {0} in one game\nAll Clear Created\ncrushed {0} candy in one game\nScore\nPlease register to play the full game\nLongest chain\nGame ends in {0} seconds\nSuper Stripes Created\nNo more moves!\nMega-Candy Created\nGame starts in {0} seconds\nnow\nLevel reached\nGame Over\nMatch 3 Candy of the same colour to crush them. Matching 4 or 5 in different formations generates special sweets that are extra tasty.\nYou can also combine the special sweets for additional effects by switching them with each other. Try these combinations for a taste you will not forget: \nDouble Colour Bombs Created\nmade {0} combined candy in one game\nPlay like this:\n'; }; a.VM_METHOD_OVERRIDES["com.antkarlov.Preloader::com.antkarlov:Preloader.isUrl"] = function() { - return!0; + return !0; }; a.VM_METHOD_OVERRIDES["static com.demonsters.debugger.MonsterDebugger::initialize"] = function() { }; a.VM_METHOD_OVERRIDES["com.spilgames.api.core.tracking.TrackConfig::getTrackers"] = function() { - return[]; + return []; }; a.VM_METHOD_OVERRIDES["org.robotlegs.base.CommandMap::org.robotlegs.base:CommandMap.verifyCommandClass"] = function() { }; @@ -23880,13 +23857,13 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A a.VM_METHOD_OVERRIDES["com.spilgames.api.components.TextFields.AutoFitTextFieldEx::com.spilgames.api.components.TextFields:AutoFitTextFieldEx.updateProperties"] = a.VM_METHOD_OVERRIDES["com.spilgames.api.components.TextFields.AutoFitTextFieldEx::com.spilgames.api.components.TextFields:AutoFitTextFieldEx.updateTextSize"] = function() { }; a.VM_METHOD_OVERRIDES["Preloader::isNeedSite"] = function() { - return!0; + return !0; }; a.VM_METHOD_OVERRIDES["facebook.utils.FBURI::isFacebookURI"] = function() { - return!0; + return !0; }; a.VM_METHOD_OVERRIDES["facebook.utils.FBURI::is_facebook_cdn_url"] = function() { - return!!this.asGetPublicProperty("authority"); + return !!this.asGetPublicProperty("authority"); }; })(d.Runtime || (d.Runtime = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -23901,33 +23878,33 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A var e = d.StringUtilities.utf8decode(a); b.writeByte(e.length >> 8 & 255); b.writeByte(e.length & 255); - for (var f = 0;f < e.length;f++) { - b.writeByte(e[f]); + for (var c = 0;c < e.length;c++) { + b.writeByte(e[c]); } } else { b.writeByte(0), b.writeByte(0); } } - function p(b) { + function n(b) { var a = b.readByte() << 8 | b.readByte(); if (!a) { return ""; } - for (var e = new Uint8Array(a), f = 0;f < a;f++) { - e[f] = b.readByte(); + for (var e = new Uint8Array(a), c = 0;c < a;c++) { + e[c] = b.readByte(); } return d.StringUtilities.utf8encode(e); } - function v(b, a) { - var e = new ArrayBuffer(8), f = new DataView(e); - f.setFloat64(0, a, !1); - for (var c = 0;c < e.byteLength;c++) { - b.writeByte(f.getUint8(c)); + function w(b, a) { + var e = new ArrayBuffer(8), c = new DataView(e); + c.setFloat64(0, a, !1); + for (var f = 0;f < e.byteLength;f++) { + b.writeByte(c.getUint8(f)); } } - function t(b) { - for (var a = new ArrayBuffer(8), e = new DataView(a), f = 0;f < a.byteLength;f++) { - e.setUint8(f, b.readByte()); + function v(b) { + for (var a = new ArrayBuffer(8), e = new DataView(a), c = 0;c < a.byteLength;c++) { + e.setUint8(c, b.readByte()); } return e.getFloat64(0, !1); } @@ -23938,14 +23915,14 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A } var e = b.readByte(); if (0 === (e & 128)) { - return(a & 127) << 7 | e; + return (a & 127) << 7 | e; } - var f = b.readByte(); - if (0 === (f & 128)) { - return(a & 127) << 14 | (e & 127) << 7 | f; + var c = b.readByte(); + if (0 === (c & 128)) { + return (a & 127) << 14 | (e & 127) << 7 | c; } b = b.readByte(); - return(a & 127) << 22 | (e & 127) << 15 | (f & 127) << 8 | b; + return (a & 127) << 22 | (e & 127) << 15 | (c & 127) << 8 | b; } function l(b, a) { if (0 === (a & 4294967168)) { @@ -23971,25 +23948,25 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A if (1 === e) { return ""; } - var f = a.stringsCache || (a.stringsCache = []); + var c = a.stringsCache || (a.stringsCache = []); if (0 === (e & 1)) { - return f[e >> 1]; + return c[e >> 1]; } - for (var e = e >> 1, c = new Uint8Array(e), g = 0;g < e;g++) { - c[g] = b.readByte(); + for (var e = e >> 1, f = new Uint8Array(e), h = 0;h < e;h++) { + f[h] = b.readByte(); } - e = d.StringUtilities.utf8encode(c); - f.push(e); + e = d.StringUtilities.utf8encode(f); + c.push(e); return e; } - function h(b, a, e) { + function g(b, a, e) { if ("" === a) { b.writeByte(1); } else { e = e.stringsCache || (e.stringsCache = []); - var f = e.indexOf(a); - if (0 <= f) { - l(b, f << 1); + var c = e.indexOf(a); + if (0 <= c) { + l(b, c << 1); } else { for (e.push(a), a = d.StringUtilities.utf8decode(a), l(b, 1 | a.length << 1), e = 0;e < a.length;e++) { b.writeByte(a[e]); @@ -24005,43 +23982,43 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 0: break; case 2: - return!1; + return !1; case 3: - return!0; + return !0; case 4: return u(a); case 5: - return t(a); + return v(a); case 6: return c(a, e); case 8: - return new Date(t(a)); + return new Date(v(a)); case 10: - var h = u(a); - if (0 === (h & 1)) { - return e.objectsCache[h >> 1]; + var g = u(a); + if (0 === (g & 1)) { + return e.objectsCache[g >> 1]; } - if (0 !== (h & 4)) { + if (0 !== (g & 4)) { throw "AMF3 Traits-Ext is not supported"; } var m, d; - if (0 === (h & 2)) { - m = e.traitsCache[h >> 2], d = m.class; + if (0 === (g & 2)) { + m = e.traitsCache[g >> 2], d = m.class; } else { m = {}; f = c(a, e); d = (m.className = f) && k.aliasesCache.names[f]; m.class = d; - m.isDynamic = 0 !== (h & 8); + m.isDynamic = 0 !== (g & 8); m.members = []; - for (var l = d && d.instanceBindings.slots, f = 0, h = h >> 4;f < h;f++) { - for (var s = c(a, e), p = null, h = 1;l && h < l.length;h++) { - if (l[h].name.name === s) { - p = l[h]; + for (var l = d && d.instanceBindings.slots, f = 0, g = g >> 4;f < g;f++) { + for (var r = c(a, e), n = null, g = 1;l && g < l.length;g++) { + if (l[g].name.name === r) { + n = l[g]; break; } } - m.members.push(p ? g.getQualifiedName(p.name) : g.getPublicQualifiedName(s)); + m.members.push(n ? h.getQualifiedName(n.name) : h.getPublicQualifiedName(r)); } (e.traitsCache || (e.traitsCache = [])).push(m); } @@ -24062,13 +24039,13 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A } return l; case 9: - h = u(a); - if (0 === (h & 1)) { - return e.objectsCache[h >> 1]; + g = u(a); + if (0 === (g & 1)) { + return e.objectsCache[g >> 1]; } m = []; (e.objectsCache || (e.objectsCache = [])).push(m); - for (l = h >> 1;;) { + for (l = g >> 1;;) { f = c(a, e); if (!f.length) { break; @@ -24084,14 +24061,14 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A throw "AMF3 Unknown marker " + f;; } } - function s(b, a, e) { + function r(b, a, e) { e = e.objectsCache || (e.objectsCache = []); var f = e.indexOf(a); if (0 > f) { return e.push(a), !1; } l(b, f << 1); - return!0; + return !0; } function m(b, a, e) { switch(typeof a) { @@ -24099,14 +24076,14 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A b.writeByte(a ? 3 : 2); break; case "number": - a === (a | 0) ? (b.writeByte(4), l(b, a)) : (b.writeByte(5), v(b, a)); + a === (a | 0) ? (b.writeByte(4), l(b, a)) : (b.writeByte(5), w(b, a)); break; case "undefined": b.writeByte(0); break; case "string": b.writeByte(6); - h(b, a, e); + g(b, a, e); break; case "object": if (null === a) { @@ -24114,7 +24091,7 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A } else { if (Array.isArray(a)) { b.writeByte(9); - if (s(b, a, e)) { + if (r(b, a, e)) { break; } for (var c = 0;c in a;) { @@ -24122,63 +24099,63 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A } l(b, c << 1 | 1); f(a, function(a, f) { - d.isNumeric(a) && 0 <= a && a < c || (h(b, a, e), m(b, f, e)); + d.isNumeric(a) && 0 <= a && a < c || (g(b, a, e), m(b, f, e)); }); - h(b, "", e); + g(b, "", e); for (var q = 0;q < c;q++) { m(b, a[q], e); } } else { if (a instanceof Date) { b.writeByte(8); - if (s(b, a, e)) { + if (r(b, a, e)) { break; } l(b, 1); - v(b, a.valueOf()); + w(b, a.valueOf()); } else { b.writeByte(10); - if (s(b, a, e)) { + if (r(b, a, e)) { break; } - var q = !0, p = a.class; - if (p) { - var q = !p.classInfo.instanceInfo.isSealed(), t = k.aliasesCache.classes.get(p) || "", u, T = e.traitsCache || (e.traitsCache = []), N = e.traitsInfos || (e.traitsInfos = []), C = T.indexOf(p); - if (0 > C) { - var B = p.instanceBindings.slots; + var q = !0, n = a.class; + if (n) { + var q = !n.classInfo.instanceInfo.isSealed(), v = k.aliasesCache.classes.get(n) || "", u, J = e.traitsCache || (e.traitsCache = []), P = e.traitsInfos || (e.traitsInfos = []), y = J.indexOf(n); + if (0 > y) { + var K = n.instanceBindings.slots; u = []; - for (var C = [], H = 1;H < B.length;H++) { - var A = B[H]; - A.name.getNamespace().isPublic() && (u.push(g.getQualifiedName(A.name)), C.push(A.name.name)); + for (var y = [], H = 1;H < K.length;H++) { + var A = K[H]; + A.name.getNamespace().isPublic() && (u.push(h.getQualifiedName(A.name)), y.push(A.name.name)); } - T.push(p); - N.push(u); - p = C.length; - l(b, (q ? 11 : 3) + (p << 4)); - h(b, t, e); - for (H = 0;H < p;H++) { - h(b, C[H], e); + J.push(n); + P.push(u); + n = y.length; + l(b, (q ? 11 : 3) + (n << 4)); + g(b, v, e); + for (H = 0;H < n;H++) { + g(b, y[H], e); } } else { - u = N[C], p = u.length, l(b, 1 + (C << 2)); + u = P[y], n = u.length, l(b, 1 + (y << 2)); } - for (H = 0;H < p;H++) { + for (H = 0;H < n;H++) { m(b, a[u[H]], e); } } else { - l(b, 11), h(b, "", e); + l(b, 11), g(b, "", e); } q && (f(a, function(a, f) { - h(b, a, e); + g(b, a, e); m(b, f, e); - }), h(b, "", e)); + }), g(b, "", e)); } } } ; } } - var g = d.AVM2.ABC.Multiname, f = d.AVM2.Runtime.forEachPublicProperty, b = d.AVM2.Runtime.construct; + var h = d.AVM2.ABC.Multiname, f = d.AVM2.Runtime.forEachPublicProperty, b = d.AVM2.Runtime.construct; (function(b) { b[b.NUMBER = 0] = "NUMBER"; b[b.BOOLEAN = 1] = "BOOLEAN"; @@ -24207,7 +24184,7 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A break; case "number": b.writeByte(0); - v(b, e); + w(b, e); break; case "undefined": b.writeByte(6); @@ -24230,14 +24207,14 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A var a = b.readByte(); switch(a) { case 0: - return t(b); + return v(b); case 1: - return!!b.readByte(); + return !!b.readByte(); case 2: - return p(b); + return n(b); case 3: for (var e = {};;) { - a = p(b); + a = n(b); if (!a.length) { break; } @@ -24255,7 +24232,7 @@ var Glue = Shumway.AVM2.Runtime.Glue, ApplicationDomain = Shumway.AVM2.Runtime.A case 8: e = []; for (e.length = b.readByte() << 24 | b.readByte() << 16 | b.readByte() << 8 | b.readByte();;) { - a = p(b); + a = n(b); if (!a.length) { break; } @@ -24322,20 +24299,20 @@ console.time("Load SWF Parser"); (function(d) { (function(k) { (function(a) { - function p(a, c, d) { + function n(a, c, d) { return k(a, c, d) << 32 - d >> 32 - d; } function k(a, c, d) { - for (var m = c.bitBuffer, g = c.bitLength;d > g;) { - m = m << 8 | a[c.pos++], g += 8; + for (var m = c.bitBuffer, h = c.bitLength;d > h;) { + m = m << 8 | a[c.pos++], h += 8; } - g -= d; - a = m >>> g & u[d]; + h -= d; + a = m >>> h & u[d]; c.bitBuffer = m; - c.bitLength = g; + c.bitLength = h; return a; } - var t = Math.pow; + var v = Math.pow; a.readSi8 = function(a, c) { return c.getInt8(c.pos++); }; @@ -24363,8 +24340,8 @@ console.time("Load SWF Parser"); a.readFloat16 = function(a, c) { var d = c.getUint16(c.pos); c.pos += 2; - var m = d >> 15 ? -1 : 1, g = (d & 31744) >> 10, d = d & 1023; - return g ? 31 === g ? d ? NaN : Infinity * m : m * t(2, g - 15) * (1 + d / 1024) : m * t(2, -14) * (d / 1024); + var m = d >> 15 ? -1 : 1, h = (d & 31744) >> 10, d = d & 1023; + return h ? 31 === h ? d ? NaN : Infinity * m : m * v(2, h - 15) * (1 + d / 1024) : m * v(2, -14) * (d / 1024); }; a.readFloat = function(a, c) { return c.getFloat32(c.pos, c.pos += 4); @@ -24389,18 +24366,18 @@ console.time("Load SWF Parser"); return d & 268435456 ? d & 268435455 | a[c.pos++] << 28 : d; }; a.readBool = function(a, c) { - return!!a[c.pos++]; + return !!a[c.pos++]; }; a.align = function(a, c) { c.align(); }; - a.readSb = p; + a.readSb = n; for (var u = new Uint32Array(33), l = 1, c = 0;32 >= l;++l) { u[l] = c = c << 1 | 1; } a.readUb = k; a.readFb = function(a, c, d) { - return p(a, c, d) / 65536; + return n(a, c, d) / 65536; }; a.readString = function(a, c, l) { var m = c.pos; @@ -24408,7 +24385,7 @@ console.time("Load SWF Parser"); a = a.subarray(m, m += l); } else { l = 0; - for (var g = m;a[g];g++) { + for (var h = m;a[h];h++) { l++; } a = a.subarray(m, m += l); @@ -24425,120 +24402,120 @@ console.time("Load SWF Parser"); (function(d) { (function(k) { (function(a) { - (function(p) { - function k(b, c, f, g, h) { + (function(n) { + function k(b, c, f, h, g) { f || (f = {}); f.id = a.readUi16(b, c); - var n = f.lineBounds = {}; - e(b, c, n, g, h); - if (n = f.isMorph = 46 === h || 84 === h) { + var p = f.lineBounds = {}; + e(b, c, p, h, g); + if (p = f.isMorph = 46 === g || 84 === g) { var m = f.lineBoundsMorph = {}; - e(b, c, m, g, h); + e(b, c, m, h, g); } - if (m = f.canHaveStrokes = 83 === h || 84 === h) { + if (m = f.canHaveStrokes = 83 === g || 84 === g) { var d = f.fillBounds = {}; - e(b, c, d, g, h); - n && (d = f.fillBoundsMorph = {}, e(b, c, d, g, h)); + e(b, c, d, h, g); + p && (d = f.fillBoundsMorph = {}, e(b, c, d, h, g)); f.flags = a.readUi8(b, c); } - if (n) { + if (p) { f.offsetMorph = a.readUi32(b, c); - var r = f, l, q, d = D(b, c, r, g, h, n, m), s = d.lineBits, p = d.fillBits, x = r.records = []; + var t = f, l, q, d = D(b, c, t, h, g, p, m), r = d.lineBits, n = d.fillBits, C = t.records = []; do { - var t = {}, d = z(b, c, t, g, h, n, p, s, m, q); + var v = {}, d = B(b, c, v, h, g, p, n, r, m, q); l = d.eos; - p = d.fillBits; - s = d.lineBits; + n = d.fillBits; + r = d.lineBits; q = d.bits; - x.push(t); + C.push(v); } while (!l); d = M(b, c); - p = d.fillBits; - s = d.lineBits; - r = r.recordsMorph = []; + n = d.fillBits; + r = d.lineBits; + t = t.recordsMorph = []; do { - x = {}, d = z(b, c, x, g, h, n, p, s, m, q), l = d.eos, p = d.fillBits, s = d.lineBits, q = d.bits, r.push(x); + C = {}, d = B(b, c, C, h, g, p, n, r, m, q), l = d.eos, n = d.fillBits, r = d.lineBits, q = d.bits, t.push(C); } while (!l); } else { - p = f; - q = D(b, c, p, g, h, n, m); + n = f; + q = D(b, c, n, h, g, p, m); d = q.fillBits; - s = q.lineBits; - r = p.records = []; + r = q.lineBits; + t = n.records = []; do { - x = {}, q = z(b, c, x, g, h, n, d, s, m, l), p = q.eos, d = q.fillBits, s = q.lineBits, l = q.bits, r.push(x); - } while (!p); + C = {}, q = B(b, c, C, h, g, p, d, r, m, l), n = q.eos, d = q.fillBits, r = q.lineBits, l = q.bits, t.push(C); + } while (!n); } return f; } - function t(b, e, c, f, g, h) { - var n; + function v(b, e, c, f, h, g) { + var p; c || (c = {}); - if (4 === g) { - return c.symbolId = a.readUi16(b, e), c.depth = a.readUi16(b, e), c.flags |= 4, c.matrix = x(b, e), e.pos < h && (c.flags |= 8, f = c.cxform = {}, I(b, e, f, g)), c; + if (4 === h) { + return c.symbolId = a.readUi16(b, e), c.depth = a.readUi16(b, e), c.flags |= 4, c.matrix = C(b, e), e.pos < g && (c.flags |= 8, f = c.cxform = {}, I(b, e, f, h)), c; } - n = c.flags = 26 < g ? a.readUi16(b, e) : a.readUi8(b, e); + p = c.flags = 26 < h ? a.readUi16(b, e) : a.readUi8(b, e); c.depth = a.readUi16(b, e); - n & 2048 && (c.className = a.readString(b, e, -1)); - n & 2 && (c.symbolId = a.readUi16(b, e)); - n & 4 && (c.matrix = x(b, e)); - if (n & 8) { + p & 2048 && (c.className = a.readString(b, e, -1)); + p & 2 && (c.symbolId = a.readUi16(b, e)); + p & 4 && (c.matrix = C(b, e)); + if (p & 8) { var m = c.cxform = {}; - I(b, e, m, g); + I(b, e, m, h); } - n & 16 && (c.ratio = a.readUi16(b, e)); - n & 32 && (c.name = a.readString(b, e, -1)); - n & 64 && (c.clipDepth = a.readUi16(b, e)); - if (n & 256) { - for (m = a.readUi8(b, e), g = c.filters = [];m--;) { + p & 16 && (c.ratio = a.readUi16(b, e)); + p & 32 && (c.name = a.readString(b, e, -1)); + p & 64 && (c.clipDepth = a.readUi16(b, e)); + if (p & 256) { + for (m = a.readUi8(b, e), h = c.filters = [];m--;) { var d = {}; - T(b, e, d); - g.push(d); + J(b, e, d); + h.push(d); } } - n & 512 && (c.blendMode = a.readUi8(b, e)); - n & 1024 && (c.bmpCache = a.readUi8(b, e)); - n & 8192 && (c.visibility = a.readUi8(b, e)); - n & 16384 && (g = c, m = a.readUi8(b, e) | a.readUi8(b, e) << 24 | a.readUi8(b, e) << 16 | a.readUi8(b, e) << 8, g.backgroundColor = m); - if (n & 128) { + p & 512 && (c.blendMode = a.readUi8(b, e)); + p & 1024 && (c.bmpCache = a.readUi8(b, e)); + p & 8192 && (c.visibility = a.readUi8(b, e)); + p & 16384 && (h = c, m = a.readUi8(b, e) | a.readUi8(b, e) << 24 | a.readUi8(b, e) << 16 | a.readUi8(b, e) << 8, h.backgroundColor = m); + if (p & 128) { a.readUi16(b, e); 6 <= f ? a.readUi32(b, e) : a.readUi16(b, e); - n = c.events = []; + p = c.events = []; do { - g = {}; - var m = b, d = e, r = g, l = f, q = r.flags = 6 <= l ? a.readUi32(m, d) : a.readUi16(m, d); - q ? (6 === l && (q &= -262145), l = r.length = a.readUi32(m, d), q & 131072 && (r.keyCode = a.readUi8(m, d), l--), q = d.pos + l, r.actionsData = m.subarray(d.pos, q), d.pos = q, m = !1) : m = !0; + h = {}; + var m = b, d = e, t = h, l = f, q = t.flags = 6 <= l ? a.readUi32(m, d) : a.readUi16(m, d); + q ? (6 === l && (q &= -262145), l = t.length = a.readUi32(m, d), q & 131072 && (t.keyCode = a.readUi8(m, d), l--), q = d.pos + l, t.actionsData = m.subarray(d.pos, q), d.pos = q, m = !1) : m = !0; if (m) { break; } - if (e.pos > h) { - e.pos = h; + if (e.pos > g) { + e.pos = g; break; } - n.push(g); + p.push(h); } while (1); } return c; } - function u(b, e, c, f, g) { + function u(b, e, c, f, h) { c || (c = {}); - 5 === g && (c.symbolId = a.readUi16(b, e)); + 5 === h && (c.symbolId = a.readUi16(b, e)); c.depth = a.readUi16(b, e); return c; } - function l(b, e, c, f, g, h, n) { + function l(b, e, c, f, h, g, p) { f = c || {}; f.id = a.readUi16(b, e); - if (21 < g) { + if (21 < h) { var m = a.readUi32(b, e); - 90 === g && (f.deblock = a.readFixed8(b, e)); + 90 === h && (f.deblock = a.readFixed8(b, e)); m += e.pos; c = f.imgData = b.subarray(e.pos, m); - f.alphaData = b.subarray(m, h); + f.alphaData = b.subarray(m, g); } else { - c = f.imgData = b.subarray(e.pos, h); + c = f.imgData = b.subarray(e.pos, g); } - e.pos = h; + e.pos = g; switch(c[0] << 8 | c[1]) { case 65496: ; @@ -24554,200 +24531,200 @@ console.time("Load SWF Parser"); default: f.mimeType = "application/octet-stream"; } - f.jpegTables = 6 === g ? n : null; + f.jpegTables = 6 === h ? p : null; return f; } - function c(b, e, c, f, g, h) { - var n; + function c(b, e, c, f, h, g) { + var p; c || (c = {}); c.id = a.readUi16(b, e); - if (7 == g) { + if (7 == h) { var m = c.characters = []; do { var d = {}; - n = b; - var r = e, l = d, q = f, s = g, p = a.readUi8(n, r), k = l.eob = !p; - l.flags = 8 <= q ? (p >> 5 & 1 ? 512 : 0) | (p >> 4 & 1 ? 256 : 0) : 0; - l.stateHitTest = p >> 3 & 1; - l.stateDown = p >> 2 & 1; - l.stateOver = p >> 1 & 1; - l.stateUp = p & 1; - k || (l.symbolId = a.readUi16(n, r), l.depth = a.readUi16(n, r), l.matrix = x(n, r), 34 === s && (q = l.cxform = {}, I(n, r, q, s)), l.flags & 256 && (l.filterCount = a.readUi8(n, r), s = l.filters = {}, T(n, r, s)), l.flags & 512 && (l.blendMode = a.readUi8(n, r))); - n = k; + p = b; + var t = e, l = d, q = f, r = h, n = a.readUi8(p, t), k = l.eob = !n; + l.flags = 8 <= q ? (n >> 5 & 1 ? 512 : 0) | (n >> 4 & 1 ? 256 : 0) : 0; + l.stateHitTest = n >> 3 & 1; + l.stateDown = n >> 2 & 1; + l.stateOver = n >> 1 & 1; + l.stateUp = n & 1; + k || (l.symbolId = a.readUi16(p, t), l.depth = a.readUi16(p, t), l.matrix = C(p, t), 34 === r && (q = l.cxform = {}, I(p, t, q, r)), l.flags & 256 && (l.filterCount = a.readUi8(p, t), r = l.filters = {}, J(p, t, r)), l.flags & 512 && (l.blendMode = a.readUi8(p, t))); + p = k; m.push(d); - } while (!n); - c.actionsData = b.subarray(e.pos, h); - e.pos = h; + } while (!p); + c.actionsData = b.subarray(e.pos, g); + e.pos = g; } else { m = a.readUi8(b, e); c.trackAsMenu = m >> 7 & 1; d = a.readUi16(b, e); m = c.characters = []; do { - r = {}; + t = {}; l = a.readUi8(b, e); - n = r.eob = !l; - r.flags = 8 <= f ? (l >> 5 & 1 ? 512 : 0) | (l >> 4 & 1 ? 256 : 0) : 0; - r.stateHitTest = l >> 3 & 1; - r.stateDown = l >> 2 & 1; - r.stateOver = l >> 1 & 1; - r.stateUp = l & 1; - if (!n) { - r.symbolId = a.readUi16(b, e); - r.depth = a.readUi16(b, e); - r.matrix = x(b, e); - 34 === g && (l = r.cxform = {}, I(b, e, l, g)); - if (r.flags & 256) { + p = t.eob = !l; + t.flags = 8 <= f ? (l >> 5 & 1 ? 512 : 0) | (l >> 4 & 1 ? 256 : 0) : 0; + t.stateHitTest = l >> 3 & 1; + t.stateDown = l >> 2 & 1; + t.stateOver = l >> 1 & 1; + t.stateUp = l & 1; + if (!p) { + t.symbolId = a.readUi16(b, e); + t.depth = a.readUi16(b, e); + t.matrix = C(b, e); + 34 === h && (l = t.cxform = {}, I(b, e, l, h)); + if (t.flags & 256) { for (k = a.readUi8(b, e), l = c.filters = [];k--;) { - s = {}, T(b, e, s), l.push(s); + r = {}, J(b, e, r), l.push(r); } } - r.flags & 512 && (r.blendMode = a.readUi8(b, e)); + t.flags & 512 && (t.blendMode = a.readUi8(b, e)); } - m.push(r); - } while (!n); + m.push(t); + } while (!p); if (d) { - for (f = c.buttonActions = [];e.pos < h;) { - g = b; + for (f = c.buttonActions = [];e.pos < g;) { + h = b; m = e; - n = h; + p = g; d = m.pos; - n = (r = a.readUi16(g, m)) ? d + r : n; - r = a.readUi16(g, m); - m.pos = n; - if (e.pos > h) { + p = (t = a.readUi16(h, m)) ? d + t : p; + t = a.readUi16(h, m); + m.pos = p; + if (e.pos > g) { break; } - f.push({keyCode:(r & 65024) >> 9, stateTransitionFlags:r & 511, actionsData:g.subarray(d + 4, n)}); + f.push({keyCode:(t & 65024) >> 9, stateTransitionFlags:t & 511, actionsData:h.subarray(d + 4, p)}); } - e.pos = h; + e.pos = g; } } return c; } - function h(b, e, c, f, g) { + function g(b, e, c, f, h) { c || (c = {}); c.id = a.readUi16(b, e); - for (var h = a.readUi16(b, e), n = c.glyphCount = h / 2, m = [], d = n - 1;d--;) { + for (var g = a.readUi16(b, e), p = c.glyphCount = g / 2, m = [], d = p - 1;d--;) { m.push(a.readUi16(b, e)); } - c.offsets = [h].concat(m); - for (h = c.glyphs = [];n--;) { - m = {}, N(b, e, m, f, g), h.push(m); + c.offsets = [g].concat(m); + for (g = c.glyphs = [];p--;) { + m = {}, P(b, e, m, f, h), g.push(m); } return c; } - function q(b, c, f, g, h) { + function q(b, c, f, h, g) { var m; f || (f = {}); f.id = a.readUi16(b, c); var d = f.bbox = {}; - e(b, c, d, g, h); - f.matrix = x(b, c); - g = f.glyphBits = a.readUi8(b, c); + e(b, c, d, h, g); + f.matrix = C(b, c); + h = f.glyphBits = a.readUi8(b, c); var d = f.advanceBits = a.readUi8(b, c), l = f.records = []; do { var q = {}; m = b; - var s = c, p = q, k = h, t = g, u = d, I = void 0; - a.align(m, s); - var v = a.readUb(m, s, 8), z = p.eot = !v, I = m, D = s, M = p, F = v, v = M.hasFont = F >> 3 & 1, T = M.hasColor = F >> 2 & 1, N = M.hasMoveY = F >> 1 & 1, F = M.hasMoveX = F & 1; - v && (M.fontId = a.readUi16(I, D)); - T && (M.color = 33 === k ? n(I, D) : r(I, D)); - F && (M.moveX = a.readSi16(I, D)); - N && (M.moveY = a.readSi16(I, D)); - v && (M.fontHeight = a.readUi16(I, D)); - if (!z) { - for (I = a.readUi8(m, s), I = p.glyphCount = I, p = p.entries = [];I--;) { - D = {}, M = m, k = s, v = D, T = u, v.glyphIndex = a.readUb(M, k, t), v.advance = a.readSb(M, k, T), p.push(D); + var r = c, n = q, k = g, v = h, u = d, I = void 0; + a.align(m, r); + var w = a.readUb(m, r, 8), B = n.eot = !w, I = m, D = r, M = n, E = w, w = M.hasFont = E >> 3 & 1, J = M.hasColor = E >> 2 & 1, P = M.hasMoveY = E >> 1 & 1, E = M.hasMoveX = E & 1; + w && (M.fontId = a.readUi16(I, D)); + J && (M.color = 33 === k ? p(I, D) : t(I, D)); + E && (M.moveX = a.readSi16(I, D)); + P && (M.moveY = a.readSi16(I, D)); + w && (M.fontHeight = a.readUi16(I, D)); + if (!B) { + for (I = a.readUi8(m, r), I = n.glyphCount = I, n = n.entries = [];I--;) { + D = {}, M = m, k = r, w = D, J = u, w.glyphIndex = a.readUb(M, k, v), w.advance = a.readSb(M, k, J), n.push(D); } } - m = z; + m = B; l.push(q); } while (!m); return f; } - function s(b, e, c, f, g) { + function r(b, e, c, f, h) { c || (c = {}); - 15 == g && (c.soundId = a.readUi16(b, e)); - 89 == g && (c.soundClassName = a.readString(b, e, -1)); + 15 == h && (c.soundId = a.readUi16(b, e)); + 89 == h && (c.soundClassName = a.readString(b, e, -1)); f = c; - g = {}; + h = {}; a.readUb(b, e, 2); - g.stop = a.readUb(b, e, 1); - g.noMultiple = a.readUb(b, e, 1); - var h = g.hasEnvelope = a.readUb(b, e, 1), m = g.hasLoops = a.readUb(b, e, 1), n = g.hasOutPoint = a.readUb(b, e, 1); - if (g.hasInPoint = a.readUb(b, e, 1)) { - g.inPoint = a.readUi32(b, e); + h.stop = a.readUb(b, e, 1); + h.noMultiple = a.readUb(b, e, 1); + var g = h.hasEnvelope = a.readUb(b, e, 1), p = h.hasLoops = a.readUb(b, e, 1), m = h.hasOutPoint = a.readUb(b, e, 1); + if (h.hasInPoint = a.readUb(b, e, 1)) { + h.inPoint = a.readUi32(b, e); } - n && (g.outPoint = a.readUi32(b, e)); - m && (g.loopCount = a.readUi16(b, e)); - if (h) { - for (m = g.envelopeCount = a.readUi8(b, e), h = g.envelopes = [];m--;) { - var n = {}, d = b, r = e, l = n; - l.pos44 = a.readUi32(d, r); - l.volumeLeft = a.readUi16(d, r); - l.volumeRight = a.readUi16(d, r); - h.push(n); + m && (h.outPoint = a.readUi32(b, e)); + p && (h.loopCount = a.readUi16(b, e)); + if (g) { + for (p = h.envelopeCount = a.readUi8(b, e), g = h.envelopes = [];p--;) { + var m = {}, d = b, t = e, l = m; + l.pos44 = a.readUi32(d, t); + l.volumeLeft = a.readUi16(d, t); + l.volumeRight = a.readUi16(d, t); + g.push(m); } } - f.soundInfo = g; + f.soundInfo = h; return c; } - function m(b, e, c, f, g, h) { + function m(b, e, c, f, h, g) { c = c || {}; c.id = a.readUi16(b, e); f = c.format = a.readUi8(b, e); c.width = a.readUi16(b, e); c.height = a.readUi16(b, e); - c.hasAlpha = 36 === g; + c.hasAlpha = 36 === h; 3 === f && (c.colorTableSize = a.readUi8(b, e)); - c.bmpData = b.subarray(e.pos, h); - e.pos = h; + c.bmpData = b.subarray(e.pos, g); + e.pos = g; return c; } - function g(b, c, f, g, h, n) { + function h(b, c, f, h, g, p) { f || (f = {}); f.id = a.readUi16(b, c); var m = a.readUi8(b, c), d = f.hasLayout = m & 128 ? 1 : 0; - f.shiftJis = 5 < g && m & 64 ? 1 : 0; + f.shiftJis = 5 < h && m & 64 ? 1 : 0; f.smallText = m & 32 ? 1 : 0; f.ansi = m & 16 ? 1 : 0; - var r = f.wideOffset = m & 8 ? 1 : 0, l = f.wide = m & 4 ? 1 : 0; + var t = f.wideOffset = m & 8 ? 1 : 0, l = f.wide = m & 4 ? 1 : 0; f.italic = m & 2 ? 1 : 0; f.bold = m & 1 ? 1 : 0; - 5 < g ? f.language = a.readUi8(b, c) : (a.readUi8(b, c), f.language = 0); + 5 < h ? f.language = a.readUi8(b, c) : (a.readUi8(b, c), f.language = 0); m = a.readUi8(b, c); f.name = a.readString(b, c, m); - 75 === h && (f.resolution = 20); + 75 === g && (f.resolution = 20); m = f.glyphCount = a.readUi16(b, c); if (0 === m) { return f; } var q = c.pos; - if (r) { - for (var r = f.offsets = [], s = m;s--;) { - r.push(a.readUi32(b, c)); + if (t) { + for (var t = f.offsets = [], r = m;r--;) { + t.push(a.readUi32(b, c)); } f.mapOffset = a.readUi32(b, c); } else { - r = f.offsets = []; - for (s = m;s--;) { - r.push(a.readUi16(b, c)); + t = f.offsets = []; + for (r = m;r--;) { + t.push(a.readUi16(b, c)); } f.mapOffset = a.readUi16(b, c); } - r = f.glyphs = []; - for (s = m;s--;) { - var p = {}; - 1 === f.offsets[m - s] + q - c.pos ? (a.readUi8(b, c), r.push({records:[{type:0, eos:!0, hasNewStyles:0, hasLineStyle:0, hasFillStyle1:0, hasFillStyle0:0, move:0}]})) : (N(b, c, p, g, h), r.push(p)); + t = f.glyphs = []; + for (r = m;r--;) { + var n = {}; + 1 === f.offsets[m - r] + q - c.pos ? (a.readUi8(b, c), t.push({records:[{type:0, eos:!0, hasNewStyles:0, hasLineStyle:0, hasFillStyle1:0, hasFillStyle0:0, move:0}]})) : (P(b, c, n, h, g), t.push(n)); } if (l) { - for (q = f.codes = [], r = m;r--;) { + for (q = f.codes = [], t = m;t--;) { q.push(a.readUi16(b, c)); } } else { - for (q = f.codes = [], r = m;r--;) { + for (q = f.codes = [], t = m;t--;) { q.push(a.readUi8(b, c)); } } @@ -24760,59 +24737,59 @@ console.time("Load SWF Parser"); d.push(a.readSi16(b, c)); } for (d = f.bbox = [];m--;) { - q = {}, e(b, c, q, g, h), d.push(q); + q = {}, e(b, c, q, h, g), d.push(q); } - h = a.readUi16(b, c); - for (g = f.kerning = [];h-- && n - c.pos >= (l ? 4 : 2) + 2;) { - m = {}, d = b, q = c, r = m, l ? (r.code1 = a.readUi16(d, q), r.code2 = a.readUi16(d, q)) : (r.code1 = a.readUi8(d, q), r.code2 = a.readUi8(d, q)), r.adjustment = a.readUi16(d, q), g.push(m); + g = a.readUi16(b, c); + for (h = f.kerning = [];g-- && p - c.pos >= (l ? 4 : 2) + 2;) { + m = {}, d = b, q = c, t = m, l ? (t.code1 = a.readUi16(d, q), t.code2 = a.readUi16(d, q)) : (t.code1 = a.readUi8(d, q), t.code2 = a.readUi8(d, q)), t.adjustment = a.readUi16(d, q), h.push(m); } } return f; } - function f(b, e, c, f, g, h) { + function f(b, e, c, f, h, g) { c || (c = {}); c.id = a.readUi16(b, e); f = a.readUi8(b, e); - g = c.hasFontData = f & 4 ? 1 : 0; + h = c.hasFontData = f & 4 ? 1 : 0; c.italic = f & 2 ? 1 : 0; c.bold = f & 1 ? 1 : 0; c.name = a.readString(b, e, -1); - g && (c.data = b.subarray(e.pos, h), e.pos = h); + h && (c.data = b.subarray(e.pos, g), e.pos = g); return c; } function b(b, e, c) { c || (c = {}); - for (var f = a.readEncodedU32(b, e), g = c.scenes = [];f--;) { - var h = {}; - h.offset = a.readEncodedU32(b, e); - h.name = a.readString(b, e, -1); - g.push(h); + for (var f = a.readEncodedU32(b, e), h = c.scenes = [];f--;) { + var g = {}; + g.offset = a.readEncodedU32(b, e); + g.name = a.readString(b, e, -1); + h.push(g); } f = a.readEncodedU32(b, e); - for (g = c.labels = [];f--;) { - h = {}, h.frame = a.readEncodedU32(b, e), h.name = a.readString(b, e, -1), g.push(h); + for (h = c.labels = [];f--;) { + g = {}, g.frame = a.readEncodedU32(b, e), g.name = a.readString(b, e, -1), h.push(g); } return c; } - function e(b, e, c, f, g) { + function e(b, e, c, f, h) { a.align(b, e); - var h = a.readUb(b, e, 5); - f = a.readSb(b, e, h); - g = a.readSb(b, e, h); - var m = a.readSb(b, e, h), h = a.readSb(b, e, h); + var g = a.readUb(b, e, 5); + f = a.readSb(b, e, g); + h = a.readSb(b, e, g); + var p = a.readSb(b, e, g), g = a.readSb(b, e, g); c.xMin = f; - c.xMax = g; - c.yMin = m; - c.yMax = h; + c.xMax = h; + c.yMin = p; + c.yMax = g; a.align(b, e); } - function r(b, e) { - return(a.readUi8(b, e) << 24 | a.readUi8(b, e) << 16 | a.readUi8(b, e) << 8 | 255) >>> 0; + function t(b, e) { + return (a.readUi8(b, e) << 24 | a.readUi8(b, e) << 16 | a.readUi8(b, e) << 8 | 255) >>> 0; } - function n(b, e) { + function p(b, e) { return a.readUi8(b, e) << 24 | a.readUi8(b, e) << 16 | a.readUi8(b, e) << 8 | a.readUi8(b, e); } - function x(b, e) { + function C(b, e) { var c = {}; a.align(b, e); if (a.readUb(b, e, 1)) { @@ -24823,100 +24800,100 @@ console.time("Load SWF Parser"); c.a = 1, c.d = 1; } a.readUb(b, e, 1) ? (f = a.readUb(b, e, 5), c.b = a.readFb(b, e, f), c.c = a.readFb(b, e, f)) : (c.b = 0, c.c = 0); - var f = a.readUb(b, e, 5), g = a.readSb(b, e, f), f = a.readSb(b, e, f); - c.tx = g; + var f = a.readUb(b, e, 5), h = a.readSb(b, e, f), f = a.readSb(b, e, f); + c.tx = h; c.ty = f; a.align(b, e); return c; } function I(b, e, c, f) { a.align(b, e); - var g = a.readUb(b, e, 1), h = a.readUb(b, e, 1), m = a.readUb(b, e, 4); - h ? (c.redMultiplier = a.readSb(b, e, m), c.greenMultiplier = a.readSb(b, e, m), c.blueMultiplier = a.readSb(b, e, m), c.alphaMultiplier = 4 < f ? a.readSb(b, e, m) : 256) : (c.redMultiplier = 256, c.greenMultiplier = 256, c.blueMultiplier = 256, c.alphaMultiplier = 256); - g ? (c.redOffset = a.readSb(b, e, m), c.greenOffset = a.readSb(b, e, m), c.blueOffset = a.readSb(b, e, m), c.alphaOffset = 4 < f ? a.readSb(b, e, m) : 0) : (c.redOffset = 0, c.greenOffset = 0, c.blueOffset = 0, c.alphaOffset = 0); + var h = a.readUb(b, e, 1), g = a.readUb(b, e, 1), p = a.readUb(b, e, 4); + g ? (c.redMultiplier = a.readSb(b, e, p), c.greenMultiplier = a.readSb(b, e, p), c.blueMultiplier = a.readSb(b, e, p), c.alphaMultiplier = 4 < f ? a.readSb(b, e, p) : 256) : (c.redMultiplier = 256, c.greenMultiplier = 256, c.blueMultiplier = 256, c.alphaMultiplier = 256); + h ? (c.redOffset = a.readSb(b, e, p), c.greenOffset = a.readSb(b, e, p), c.blueOffset = a.readSb(b, e, p), c.alphaOffset = 4 < f ? a.readSb(b, e, p) : 0) : (c.redOffset = 0, c.greenOffset = 0, c.blueOffset = 0, c.alphaOffset = 0); a.align(b, e); } - function z(b, e, c, f, g, h, m, n, d, r) { - var l, q = c.type = a.readUb(b, e, 1), s = a.readUb(b, e, 5); - l = c.eos = !(q || s); + function B(b, e, c, f, h, g, p, m, d, t) { + var l, q = c.type = a.readUb(b, e, 1), r = a.readUb(b, e, 5); + l = c.eos = !(q || r); if (q) { - f = (s & 15) + 2, (c.isStraight = s >> 4) ? (c.isGeneral = a.readUb(b, e, 1)) ? (c.deltaX = a.readSb(b, e, f), c.deltaY = a.readSb(b, e, f)) : (c.isVertical = a.readUb(b, e, 1)) ? c.deltaY = a.readSb(b, e, f) : c.deltaX = a.readSb(b, e, f) : (c.controlDeltaX = a.readSb(b, e, f), c.controlDeltaY = a.readSb(b, e, f), c.anchorDeltaX = a.readSb(b, e, f), c.anchorDeltaY = a.readSb(b, e, f)), b = f; + f = (r & 15) + 2, (c.isStraight = r >> 4) ? (c.isGeneral = a.readUb(b, e, 1)) ? (c.deltaX = a.readSb(b, e, f), c.deltaY = a.readSb(b, e, f)) : (c.isVertical = a.readUb(b, e, 1)) ? c.deltaY = a.readSb(b, e, f) : c.deltaX = a.readSb(b, e, f) : (c.controlDeltaX = a.readSb(b, e, f), c.controlDeltaY = a.readSb(b, e, f), c.anchorDeltaX = a.readSb(b, e, f), c.anchorDeltaY = a.readSb(b, e, f)), b = f; } else { - var p = c.hasNewStyles = 2 < g ? s >> 4 : 0, k = c.hasLineStyle = s >> 3 & 1, x = c.hasFillStyle1 = s >> 2 & 1, t = c.hasFillStyle0 = s >> 1 & 1; - if (c.move = s & 1) { - r = a.readUb(b, e, 5), c.moveX = a.readSb(b, e, r), c.moveY = a.readSb(b, e, r); + var n = c.hasNewStyles = 2 < h ? r >> 4 : 0, k = c.hasLineStyle = r >> 3 & 1, C = c.hasFillStyle1 = r >> 2 & 1, v = c.hasFillStyle0 = r >> 1 & 1; + if (c.move = r & 1) { + t = a.readUb(b, e, 5), c.moveX = a.readSb(b, e, t), c.moveY = a.readSb(b, e, t); } - t && (c.fillStyle0 = a.readUb(b, e, m)); - x && (c.fillStyle1 = a.readUb(b, e, m)); - k && (c.lineStyle = a.readUb(b, e, n)); - p && (b = D(b, e, c, f, g, h, d), n = b.lineBits, m = b.fillBits); - b = r; + v && (c.fillStyle0 = a.readUb(b, e, p)); + C && (c.fillStyle1 = a.readUb(b, e, p)); + k && (c.lineStyle = a.readUb(b, e, m)); + n && (b = D(b, e, c, f, h, g, d), m = b.lineBits, p = b.fillBits); + b = t; } - return{type:q, flags:s, eos:l, fillBits:m, lineBits:n, bits:b}; + return {type:q, flags:r, eos:l, fillBits:p, lineBits:m, bits:b}; } - function D(b, e, c, f, g, h, m) { + function D(b, e, c, f, h, g, m) { var d, l = a.readUi8(b, e); - d = 2 < g && 255 === l ? a.readUi16(b, e) : l; + d = 2 < h && 255 === l ? a.readUi16(b, e) : l; for (l = c.fillStyles = [];d--;) { var q = {}; - F(b, e, q, f, g, h); + E(b, e, q, f, h, g); l.push(q); } l = a.readUi8(b, e); - l = 2 < g && 255 === l ? a.readUi16(b, e) : l; + l = 2 < h && 255 === l ? a.readUi16(b, e) : l; for (c = c.lineStyles = [];l--;) { d = {}; - var q = b, s = e, p = d, k = f, x = g, t = h, u = m; - p.width = a.readUi16(q, s); - t && (p.widthMorph = a.readUi16(q, s)); + var q = b, r = e, n = d, k = f, C = h, v = g, u = m; + n.width = a.readUi16(q, r); + v && (n.widthMorph = a.readUi16(q, r)); if (u) { - a.align(q, s); - p.startCapsStyle = a.readUb(q, s, 2); - var u = p.jointStyle = a.readUb(q, s, 2), I = p.hasFill = a.readUb(q, s, 1); - p.noHscale = a.readUb(q, s, 1); - p.noVscale = a.readUb(q, s, 1); - p.pixelHinting = a.readUb(q, s, 1); - a.readUb(q, s, 5); - p.noClose = a.readUb(q, s, 1); - p.endCapsStyle = a.readUb(q, s, 2); - 2 === u && (p.miterLimitFactor = a.readFixed8(q, s)); - I ? (p = p.fillStyle = {}, F(q, s, p, k, x, t)) : (p.color = n(q, s), t && (p.colorMorph = n(q, s))); + a.align(q, r); + n.startCapsStyle = a.readUb(q, r, 2); + var u = n.jointStyle = a.readUb(q, r, 2), I = n.hasFill = a.readUb(q, r, 1); + n.noHscale = a.readUb(q, r, 1); + n.noVscale = a.readUb(q, r, 1); + n.pixelHinting = a.readUb(q, r, 1); + a.readUb(q, r, 5); + n.noClose = a.readUb(q, r, 1); + n.endCapsStyle = a.readUb(q, r, 2); + 2 === u && (n.miterLimitFactor = a.readFixed8(q, r)); + I ? (n = n.fillStyle = {}, E(q, r, n, k, C, v)) : (n.color = p(q, r), v && (n.colorMorph = p(q, r))); } else { - p.color = 22 < x ? n(q, s) : r(q, s), t && (p.colorMorph = n(q, s)); + n.color = 22 < C ? p(q, r) : t(q, r), v && (n.colorMorph = p(q, r)); } c.push(d); } b = M(b, e); - return{fillBits:b.fillBits, lineBits:b.lineBits}; + return {fillBits:b.fillBits, lineBits:b.lineBits}; } function M(b, e) { a.align(b, e); var c = a.readUb(b, e, 4), f = a.readUb(b, e, 4); - return{fillBits:c, lineBits:f}; + return {fillBits:c, lineBits:f}; } - function F(b, e, c, f, g, h) { + function E(b, e, c, f, h, g) { f = c.type = a.readUi8(b, e); switch(f) { case 0: - c.color = 22 < g || h ? n(b, e) : r(b, e); - h && (c.colorMorph = n(b, e)); + c.color = 22 < h || g ? p(b, e) : t(b, e); + g && (c.colorMorph = p(b, e)); break; case 16: ; case 18: ; case 19: - c.matrix = x(b, e); - h && (c.matrixMorph = x(b, e)); - 83 === g ? (c.spreadMode = a.readUb(b, e, 2), c.interpolationMode = a.readUb(b, e, 2)) : a.readUb(b, e, 4); + c.matrix = C(b, e); + g && (c.matrixMorph = C(b, e)); + 83 === h ? (c.spreadMode = a.readUb(b, e, 2), c.interpolationMode = a.readUb(b, e, 2)) : a.readUb(b, e, 4); for (var m = c.count = a.readUb(b, e, 4), d = c.records = [];m--;) { - var l = {}, q = b, s = e, p = l, k = g, t = h; - p.ratio = a.readUi8(q, s); - p.color = 22 < k ? n(q, s) : r(q, s); - t && (p.ratioMorph = a.readUi8(q, s), p.colorMorph = n(q, s)); + var l = {}, q = b, r = e, n = l, k = h, v = g; + n.ratio = a.readUi8(q, r); + n.color = 22 < k ? p(q, r) : t(q, r); + v && (n.ratioMorph = a.readUi8(q, r), n.colorMorph = p(q, r)); d.push(l); } - 19 === f && (c.focalPoint = a.readSi16(b, e), h && (c.focalPointMorph = a.readSi16(b, e))); + 19 === f && (c.focalPoint = a.readSi16(b, e), g && (c.focalPointMorph = a.readSi16(b, e))); break; case 64: ; @@ -24925,10 +24902,10 @@ console.time("Load SWF Parser"); case 66: ; case 67: - c.bitmapId = a.readUi16(b, e), c.condition = 64 === f || 67 === f, c.matrix = x(b, e), h && (c.matrixMorph = x(b, e)); + c.bitmapId = a.readUi16(b, e), c.condition = 64 === f || 67 === f, c.matrix = C(b, e), g && (c.matrixMorph = C(b, e)); } } - function T(b, e, c) { + function J(b, e, c) { var f = c.type = a.readUi8(b, e); switch(f) { case 0: @@ -24940,15 +24917,15 @@ console.time("Load SWF Parser"); case 4: ; case 7: - var g; - g = 4 === f || 7 === f ? a.readUi8(b, e) : 1; - for (var h = c.colors = [], m = g;m--;) { - h.push(n(b, e)); + var h; + h = 4 === f || 7 === f ? a.readUi8(b, e) : 1; + for (var g = c.colors = [], m = h;m--;) { + g.push(p(b, e)); } - 3 === f && (c.hightlightColor = n(b, e)); + 3 === f && (c.hightlightColor = p(b, e)); if (4 === f || 7 === f) { - for (h = c.ratios = [];g--;) { - h.push(a.readUi8(b, e)); + for (g = c.ratios = [];h--;) { + g.push(a.readUi8(b, e)); } } c.blurX = a.readFixed(b, e); @@ -24967,15 +24944,15 @@ console.time("Load SWF Parser"); a.readUb(b, e, 3); break; case 5: - g = c.matrixX = a.readUi8(b, e); - h = c.matrixY = a.readUi8(b, e); + h = c.matrixX = a.readUi8(b, e); + g = c.matrixY = a.readUi8(b, e); c.divisor = a.readFloat(b, e); c.bias = a.readFloat(b, e); f = c.matrix = []; - for (g *= h;g--;) { + for (h *= g;h--;) { f.push(a.readFloat(b, e)); } - c.color = n(b, e); + c.color = p(b, e); a.readUb(b, e, 6); c.clamp = a.readUb(b, e, 1); c.preserveAlpha = a.readUb(b, e, 1); @@ -24987,41 +24964,41 @@ console.time("Load SWF Parser"); ; } } - function N(b, a, e, c, f) { - var g, h; - h = M(b, a); - var m = h.fillBits, n = h.lineBits, d = e.records = []; + function P(b, a, e, c, f) { + var h, g; + g = M(b, a); + var p = g.fillBits, m = g.lineBits, d = e.records = []; do { - var r = {}; - h = z(b, a, r, c, f, !1, m, n, !1, g); - e = h.eos; - m = h.fillBits; - n = h.lineBits; - g = h.bits; - d.push(r); + var t = {}; + g = B(b, a, t, c, f, !1, p, m, !1, h); + e = g.eos; + p = g.fillBits; + m = g.lineBits; + h = g.bits; + d.push(t); } while (!e); } - p.defineImage = l; - p.defineFont = h; - p.soundStreamHead = function(b, e, c) { - var f = {}, g = a.readUi8(b, e); - f.playbackRate = g >> 2 & 3; - f.playbackSize = g >> 1 & 1; - f.playbackType = g & 1; - var g = a.readUi8(b, e), h = f.streamCompression = g >> 4 & 15; - f.streamRate = g >> 2 & 3; - f.streamSize = g >> 1 & 1; - f.streamType = g & 1; + n.defineImage = l; + n.defineFont = g; + n.soundStreamHead = function(b, e, c) { + var f = {}, h = a.readUi8(b, e); + f.playbackRate = h >> 2 & 3; + f.playbackSize = h >> 1 & 1; + f.playbackType = h & 1; + var h = a.readUi8(b, e), g = f.streamCompression = h >> 4 & 15; + f.streamRate = h >> 2 & 3; + f.streamSize = h >> 1 & 1; + f.streamType = h & 1; f.samplesCount = a.readUi16(b, e); - 2 == h && 2 <= c - e.pos && (f.latencySeek = a.readSi16(b, e)); + 2 == g && 2 <= c - e.pos && (f.latencySeek = a.readSi16(b, e)); return f; }; - p.defineBitmap = m; - p.defineFont2 = g; - p.defineFont4 = f; - p.defineScene = b; - p.rgb = r; - p.tagHandlers = {0:void 0, 1:void 0, 2:k, 4:t, 5:u, 6:l, 7:c, 8:void 0, 9:void 0, 10:h, 11:q, 12:void 0, 13:void 0, 14:function(b, e, c, f, g, h) { + n.defineBitmap = m; + n.defineFont2 = h; + n.defineFont4 = f; + n.defineScene = b; + n.rgb = t; + n.tagHandlers = {0:void 0, 1:void 0, 2:k, 4:v, 5:u, 6:l, 7:c, 8:void 0, 9:void 0, 10:g, 11:q, 12:void 0, 13:void 0, 14:function(b, e, c, f, h, g) { c || (c = {}); c.id = a.readUi16(b, e); f = a.readUi8(b, e); @@ -25030,56 +25007,56 @@ console.time("Load SWF Parser"); c.soundSize = f >> 1 & 1; c.soundType = f & 1; c.samplesCount = a.readUi32(b, e); - c.soundData = b.subarray(e.pos, h); - e.pos = h; + c.soundData = b.subarray(e.pos, g); + e.pos = g; return c; - }, 15:s, 17:void 0, 18:void 0, 19:void 0, 20:m, 21:l, 22:k, 23:void 0, 24:void 0, 26:t, 28:u, 32:k, 33:q, 34:c, 35:l, 36:m, 37:function(b, c, f, g, h) { + }, 15:r, 17:void 0, 18:void 0, 19:void 0, 20:m, 21:l, 22:k, 23:void 0, 24:void 0, 26:v, 28:u, 32:k, 33:q, 34:c, 35:l, 36:m, 37:function(b, c, f, h, g) { f || (f = {}); f.id = a.readUi16(b, c); var m = f.bbox = {}; - e(b, c, m, g, h); - g = a.readUi16(b, c); - h = f.hasText = g >> 7 & 1; - f.wordWrap = g >> 6 & 1; - f.multiline = g >> 5 & 1; - f.password = g >> 4 & 1; - f.readonly = g >> 3 & 1; - var m = f.hasColor = g >> 2 & 1, d = f.hasMaxLength = g >> 1 & 1, r = f.hasFont = g & 1, l = f.hasFontClass = g >> 15 & 1; - f.autoSize = g >> 14 & 1; - var q = f.hasLayout = g >> 13 & 1; - f.noSelect = g >> 12 & 1; - f.border = g >> 11 & 1; - f.wasStatic = g >> 10 & 1; - f.html = g >> 9 & 1; - f.useOutlines = g >> 8 & 1; - r && (f.fontId = a.readUi16(b, c)); + e(b, c, m, h, g); + h = a.readUi16(b, c); + g = f.hasText = h >> 7 & 1; + f.wordWrap = h >> 6 & 1; + f.multiline = h >> 5 & 1; + f.password = h >> 4 & 1; + f.readonly = h >> 3 & 1; + var m = f.hasColor = h >> 2 & 1, d = f.hasMaxLength = h >> 1 & 1, t = f.hasFont = h & 1, l = f.hasFontClass = h >> 15 & 1; + f.autoSize = h >> 14 & 1; + var q = f.hasLayout = h >> 13 & 1; + f.noSelect = h >> 12 & 1; + f.border = h >> 11 & 1; + f.wasStatic = h >> 10 & 1; + f.html = h >> 9 & 1; + f.useOutlines = h >> 8 & 1; + t && (f.fontId = a.readUi16(b, c)); l && (f.fontClass = a.readString(b, c, -1)); - r && (f.fontHeight = a.readUi16(b, c)); - m && (f.color = n(b, c)); + t && (f.fontHeight = a.readUi16(b, c)); + m && (f.color = p(b, c)); d && (f.maxLength = a.readUi16(b, c)); q && (f.align = a.readUi8(b, c), f.leftMargin = a.readUi16(b, c), f.rightMargin = a.readUi16(b, c), f.indent = a.readSi16(b, c), f.leading = a.readSi16(b, c)); f.variableName = a.readString(b, c, -1); - h && (f.initialText = a.readString(b, c, -1)); + g && (f.initialText = a.readString(b, c, -1)); return f; - }, 39:void 0, 43:void 0, 45:void 0, 46:k, 48:g, 56:void 0, 57:void 0, 58:void 0, 59:void 0, 60:void 0, 61:void 0, 62:void 0, 64:void 0, 65:void 0, 66:void 0, 69:void 0, 70:t, 71:void 0, 72:void 0, 73:void 0, 74:void 0, 75:g, 76:void 0, 77:void 0, 78:function(b, c, f, g, h) { + }, 39:void 0, 43:void 0, 45:void 0, 46:k, 48:h, 56:void 0, 57:void 0, 58:void 0, 59:void 0, 60:void 0, 61:void 0, 62:void 0, 64:void 0, 65:void 0, 66:void 0, 69:void 0, 70:v, 71:void 0, 72:void 0, 73:void 0, 74:void 0, 75:h, 76:void 0, 77:void 0, 78:function(b, c, f, h, g) { f || (f = {}); f.symbolId = a.readUi16(b, c); - var m = f.splitter = {}; - e(b, c, m, g, h); + var p = f.splitter = {}; + e(b, c, p, h, g); return f; - }, 82:void 0, 83:k, 84:k, 86:b, 87:function(b, e, c, f, g, h) { + }, 82:void 0, 83:k, 84:k, 86:b, 87:function(b, e, c, f, h, g) { c || (c = {}); c.id = a.readUi16(b, e); a.readUi32(b, e); - c.data = b.subarray(e.pos, h); - e.pos = h; + c.data = b.subarray(e.pos, g); + e.pos = g; return c; - }, 88:void 0, 89:s, 90:l, 91:f}; - p.readHeader = function(b, e) { - var c = a.readUb(b, e, 5), f = a.readSb(b, e, c), g = a.readSb(b, e, c), h = a.readSb(b, e, c), c = a.readSb(b, e, c); + }, 88:void 0, 89:r, 90:l, 91:f}; + n.readHeader = function(b, e) { + var c = a.readUb(b, e, 5), f = a.readSb(b, e, c), h = a.readSb(b, e, c), g = a.readSb(b, e, c), c = a.readSb(b, e, c); a.align(b, e); - var m = a.readUi8(b, e), m = a.readUi8(b, e) + m / 256, n = a.readUi16(b, e); - return{frameRate:m, frameCount:n, bounds:new d.Bounds(f, h, g, c)}; + var p = a.readUi8(b, e), p = a.readUi8(b, e) + p / 256, m = a.readUi16(b, e); + return {frameRate:p, frameCount:m, bounds:new d.Bounds(f, g, h, c)}; }; })(a.LowLevel || (a.LowLevel = {})); })(k.Parser || (k.Parser = {})); @@ -25088,7 +25065,7 @@ console.time("Load SWF Parser"); (function(d) { (function(k) { (function(a) { - var p = d.IntegerUtilities.roundToMultipleOfFour, v = d.ArrayUtilities.Inflate; + var n = d.IntegerUtilities.roundToMultipleOfFour, w = d.ArrayUtilities.Inflate; (function(a) { a[a.FORMAT_COLORMAPPED = 3] = "FORMAT_COLORMAPPED"; a[a.FORMAT_15BPP = 4] = "FORMAT_15BPP"; @@ -25100,36 +25077,36 @@ console.time("Load SWF Parser"); switch(a.format) { case 3: u = a.width; - var l = a.height, c = a.hasAlpha, h = p(u) - u, q = c ? 4 : 3, s = p((a.colorTableSize + 1) * q), m = v.inflate(a.bmpData, s + (u + h) * l, !0), g = new Uint32Array(u * l), f = 0, b = 0; + var l = a.height, c = a.hasAlpha, g = n(u) - u, q = c ? 4 : 3, r = n((a.colorTableSize + 1) * q), m = w.inflate(a.bmpData, r + (u + g) * l, !0), h = new Uint32Array(u * l), f = 0, b = 0; if (c) { for (c = 0;c < l;c++) { for (var e = 0;e < u;e++) { - var b = m[s++] << 2, r = m[b + 3], n = m[b + 0], x = m[b + 1], b = m[b + 2]; - g[f++] = b << 24 | x << 16 | n << 8 | r; + var b = m[r++] << 2, t = m[b + 3], p = m[b + 0], C = m[b + 1], b = m[b + 2]; + h[f++] = b << 24 | C << 16 | p << 8 | t; } - s += h; + r += g; } } else { for (c = 0;c < l;c++) { for (e = 0;e < u;e++) { - b = m[s++] * q, r = 255, n = m[b + 0], x = m[b + 1], b = m[b + 2], g[f++] = b << 24 | x << 16 | n << 8 | r; + b = m[r++] * q, t = 255, p = m[b + 0], C = m[b + 1], b = m[b + 2], h[f++] = b << 24 | C << 16 | p << 8 | t; } - s += h; + r += g; } } - u = new Uint8Array(g.buffer); + u = new Uint8Array(h.buffer); l = 1; break; case 5: - h = a.width; + g = a.width; q = a.height; l = a.hasAlpha; - u = v.inflate(a.bmpData, q * h * 4, !0); + u = w.inflate(a.bmpData, q * g * 4, !0); if (!l) { - l = new Uint32Array(h * q); - h *= q; - for (m = q = 0;m < h;m++) { - q++, g = u[q++], s = u[q++], f = u[q++], l[m] = f << 24 | s << 16 | g << 8 | 255; + l = new Uint32Array(g * q); + g *= q; + for (m = q = 0;m < g;m++) { + q++, h = u[q++], r = u[q++], f = u[q++], l[m] = f << 24 | r << 16 | h << 8 | 255; } u = new Uint8Array(l.buffer); } @@ -25139,7 +25116,7 @@ console.time("Load SWF Parser"); d.Debug.notImplemented("parse15BPP"), u = null, l = 1; } k.leaveTimeline(); - return{definition:{type:"image", id:a.id, width:a.width, height:a.height, mimeType:"application/octet-stream", data:u, dataType:l, image:null}, type:"image"}; + return {definition:{type:"image", id:a.id, width:a.width, height:a.height, mimeType:"application/octet-stream", data:u, dataType:l, image:null}, type:"image"}; }; })(k.Parser || (k.Parser = {})); })(d.SWF || (d.SWF = {})); @@ -25149,10 +25126,10 @@ console.time("Load SWF Parser"); (function(a) { a.defineButton = function(a, d) { for (var k = a.characters, u = {up:[], over:[], down:[], hitTest:[]}, l = 0, c;(c = k[l++]) && !c.eob;) { - var h = d[c.symbolId]; - h && (h = {symbolId:h.id, code:4, depth:c.depth, flags:c.matrix ? 4 : 0, matrix:c.matrix}, c.stateUp && u.up.push(h), c.stateOver && u.over.push(h), c.stateDown && u.down.push(h), c.stateHitTest && u.hitTest.push(h)); + var g = d[c.symbolId]; + g && (g = {symbolId:g.id, code:4, depth:c.depth, flags:c.matrix ? 4 : 0, matrix:c.matrix}, c.stateUp && u.up.push(g), c.stateOver && u.over.push(g), c.stateDown && u.down.push(g), c.stateHitTest && u.hitTest.push(g)); } - return{type:"button", id:a.id, buttonActions:a.buttonActions, states:u}; + return {type:"button", id:a.id, buttonActions:a.buttonActions, states:u}; }; })(d.Parser || (d.Parser = {})); })(d.SWF || (d.SWF = {})); @@ -25167,17 +25144,17 @@ console.time("Load SWF Parser"); return l(2, c); } function k(a) { - return s(a >> 8 & 255, a & 255); + return r(a >> 8 & 255, a & 255); } - function t(a) { + function v(a) { return k(a >> 16) + k(a); } function u(a) { - for (var c = 0, f = 0, b = 0, e = 0, h = 0;h < a.length;h++) { - var n = a[h]; - if (n) { - for (var n = n.records, d, l = 0, q = 0, s = 0;s < n.length;s++) { - d = n[s]; + for (var c = 0, f = 0, b = 0, e = 0, g = 0;g < a.length;g++) { + var p = a[g]; + if (p) { + for (var p = p.records, d, l = 0, q = 0, r = 0;r < p.length;r++) { + d = p[r]; if (d.type) { d.isStraight ? (l += d.deltaX || 0, q += -(d.deltaY || 0)) : (l += d.controlDeltaX, q += -d.controlDeltaY, l += d.anchorDeltaX, q += -d.anchorDeltaY); } else { @@ -25195,177 +25172,177 @@ console.time("Load SWF Parser"); } return 5E3 < Math.max(b - c, e - f); } - var l = Math.pow, c = Math.min, h = Math.max, q = Math.log, s = String.fromCharCode; + var l = Math.pow, c = Math.min, g = Math.max, q = Math.log, r = String.fromCharCode; a.defineFont = function(a) { - var g = "swf-font-" + a.id, f = a.name || g, b = {type:"font", id:a.id, name:f, bold:1 === a.bold, italic:1 === a.italic, codes:null, metrics:null, data:a.data, originalSize:!1}, e = a.glyphs, r = e ? a.glyphCount = e.length : 0; - if (!r) { + var h = "swf-font-" + a.id, f = a.name || h, b = {type:"font", id:a.id, name:f, bold:1 === a.bold, italic:1 === a.italic, codes:null, metrics:null, data:a.data, originalSize:!1}, e = a.glyphs, t = e ? a.glyphCount = e.length : 0; + if (!t) { return b; } - var n = {}, l = [], s = {}, z = [], D, M = !("advance" in a), F = 48 === a.code, T = 75 === a.code; + var p = {}, l = [], r = {}, B = [], D, M = !("advance" in a), E = 48 === a.code, J = 75 === a.code; M && (a.advance = []); D = Math.max.apply(null, a.codes) || 35; if (a.codes) { - for (var N = 0;N < a.codes.length;N++) { - var C = a.codes[N]; - if (32 > C || C in s) { - D++, 8232 == D && (D = 8240), C = D; + for (var P = 0;P < a.codes.length;P++) { + var y = a.codes[P]; + if (32 > y || y in r) { + D++, 8232 == D && (D = 8240), y = D; } - l.push(C); - s[C] = N; + l.push(y); + r[y] = P; } D = l.concat(); l.sort(function(b, a) { return b - a; }); - for (var N = 0, B;void 0 !== (C = l[N++]);) { - var H = C, A = H; - for (B = [N - 1];void 0 !== (C = l[N]) && A + 1 === C;) { - ++A, B.push(N), ++N; + for (var P = 0, K;void 0 !== (y = l[P++]);) { + var H = y, A = H; + for (K = [P - 1];void 0 !== (y = l[P]) && A + 1 === y;) { + ++A, K.push(P), ++P; } - z.push([H, A, B]); + B.push([H, A, K]); } } else { - B = []; - for (N = 0;N < r;N++) { - C = 57344 + N, l.push(C), s[C] = N, B.push(N); + K = []; + for (P = 0;P < t;P++) { + y = 57344 + P, l.push(y), r[y] = P, K.push(P); } - z.push([57344, 57344 + r - 1, B]); + B.push([57344, 57344 + t - 1, K]); D = l.concat(); } - var y = a.resolution || 1; - F && u(e) && (y = 20, b.originalSize = !0); - F = Math.ceil(a.ascent / y) || 1024; - B = -Math.ceil(a.descent / y) || 0; - for (var G = a.leading / y || 0, J = n["OS/2"] = "", E = "", Q = "", S = "", N = 0, K;K = z[N++];) { - H = K[0], A = K[1], C = K[2][0], J += k(H), E += k(A), Q += k(C - H + 1 & 65535), S += k(0); + var z = a.resolution || 1; + E && u(e) && (z = 20, b.originalSize = !0); + E = Math.ceil(a.ascent / z) || 1024; + K = -Math.ceil(a.descent / z) || 0; + for (var G = a.leading / z || 0, L = p["OS/2"] = "", F = "", S = "", U = "", P = 0, N;N = B[P++];) { + H = N[0], A = N[1], y = N[2][0], L += k(H), F += k(A), S += k(y - H + 1 & 65535), U += k(0); } - E += "\u00ff\u00ff"; - J += "\u00ff\u00ff"; - Q += "\x00\u0001"; - S += "\x00\x00"; - z = z.length + 1; - N = 2 * d(z); - H = 2 * z - N; - N = "\x00\x00" + k(2 * z) + k(N) + k(q(z) / q(2)) + k(H) + E + "\x00\x00" + J + Q + S; - n.cmap = "\x00\x00\x00\u0001\x00\u0003\x00\u0001\x00\x00\x00\f\x00\u0004" + k(N.length + 4) + N; - var P = "\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001\x00", J = "\x00\x00", z = 16, E = 0, S = [], H = [], A = []; - K = []; - for (var N = Q = 0, R = {};void 0 !== (C = l[N++]);) { - for (var W = e[s[C]], ba = W.records, w = 0, X = 0, U = "", $ = "", Y = 0, L = [], Y = -1, W = 0;W < ba.length;W++) { - U = ba[W]; - if (U.type) { - 0 > Y && (Y = 0, L[Y] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}); - if (U.isStraight) { - L[Y].commands.push(2); - var Z = (U.deltaX || 0) / y, ca = -(U.deltaY || 0) / y; + F += "\u00ff\u00ff"; + L += "\u00ff\u00ff"; + S += "\x00\u0001"; + U += "\x00\x00"; + B = B.length + 1; + P = 2 * d(B); + H = 2 * B - P; + P = "\x00\x00" + k(2 * B) + k(P) + k(q(B) / q(2)) + k(H) + F + "\x00\x00" + L + S + U; + p.cmap = "\x00\x00\x00\u0001\x00\u0003\x00\u0001\x00\x00\x00\f\x00\u0004" + k(P.length + 4) + P; + var R = "\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001\x00", L = "\x00\x00", B = 16, F = 0, U = [], H = [], A = []; + N = []; + for (var P = S = 0, T = {};void 0 !== (y = l[P++]);) { + for (var X = e[r[y]], da = X.records, x = 0, Y = 0, V = "", ba = "", Z = 0, O = [], Z = -1, X = 0;X < da.length;X++) { + V = da[X]; + if (V.type) { + 0 > Z && (Z = 0, O[Z] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}); + if (V.isStraight) { + O[Z].commands.push(2); + var aa = (V.deltaX || 0) / z, ea = -(V.deltaY || 0) / z; } else { - L[Y].commands.push(3), Z = U.controlDeltaX / y, ca = -U.controlDeltaY / y, w += Z, X += ca, L[Y].data.push(w, X), Z = U.anchorDeltaX / y, ca = -U.anchorDeltaY / y; + O[Z].commands.push(3), aa = V.controlDeltaX / z, ea = -V.controlDeltaY / z, x += aa, Y += ea, O[Z].data.push(x, Y), aa = V.anchorDeltaX / z, ea = -V.anchorDeltaY / z; } - w += Z; - X += ca; - L[Y].data.push(w, X); + x += aa; + Y += ea; + O[Z].data.push(x, Y); } else { - if (U.eos) { + if (V.eos) { break; } - if (U.move) { - Y++; - L[Y] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}; - L[Y].commands.push(1); - var ga = U.moveX / y, U = -U.moveY / y, Z = ga - w, ca = U - X, w = ga, X = U; - L[Y].data.push(w, X); + if (V.move) { + Z++; + O[Z] = {data:[], commands:[], xMin:0, xMax:0, yMin:0, yMax:0}; + O[Z].commands.push(1); + var ia = V.moveX / z, V = -V.moveY / z, aa = ia - x, ea = V - Y, x = ia, Y = V; + O[Z].data.push(x, Y); } } - -1 < Y && (L[Y].xMin > w && (L[Y].xMin = w), L[Y].yMin > X && (L[Y].yMin = X), L[Y].xMax < w && (L[Y].xMax = w), L[Y].yMax < X && (L[Y].yMax = X)); + -1 < Z && (O[Z].xMin > x && (O[Z].xMin = x), O[Z].yMin > Y && (O[Z].yMin = Y), O[Z].xMax < x && (O[Z].xMax = x), O[Z].yMax < Y && (O[Z].yMax = Y)); } - T || L.sort(function(b, a) { - return(a.xMax - a.xMin) * (a.yMax - a.yMin) - (b.xMax - b.xMin) * (b.yMax - b.yMin); + J || O.sort(function(b, a) { + return (a.xMax - a.xMin) * (a.yMax - a.yMin) - (b.xMax - b.xMin) * (b.yMax - b.yMin); }); - R[C] = L; + T[y] = O; } - for (N = 0;void 0 !== (C = l[N++]);) { - for (var W = e[s[C]], ba = W.records, L = R[C], ha = 1, Y = 0, Z = X = U = w = "", C = X = w = 0, ba = -1024, ga = 0, ea = -1024, $ = U = "", Y = 0, Y = -1, aa = [], da = [], W = 0;W < L.length;W++) { - aa = aa.concat(L[W].data), da = da.concat(L[W].commands); + for (P = 0;void 0 !== (y = l[P++]);) { + for (var X = e[r[y]], da = X.records, O = T[y], ja = 1, Z = 0, aa = Y = V = x = "", y = Y = x = 0, da = -1024, ia = 0, ga = -1024, ba = V = "", Z = 0, Z = -1, ca = [], fa = [], X = 0;X < O.length;X++) { + ca = ca.concat(O[X].data), fa = fa.concat(O[X].commands); } - for (var O = X = w = 0, ka = 0, V = "", L = "", ja = 0, Y = 0, ha = 1, $ = "", W = 0;W < da.length;W++) { - Z = da[W], 1 === Z ? (Y && (++ha, $ += k(Y - 1)), O = aa[ja++], ka = aa[ja++], Z = O - w, ca = ka - X, U += "\u0001", V += k(Z), L += k(ca), w = O, X = ka) : 2 === Z ? (O = aa[ja++], ka = aa[ja++], Z = O - w, ca = ka - X, U += "\u0001", V += k(Z), L += k(ca), w = O, X = ka) : 3 === Z && (O = aa[ja++], ka = aa[ja++], Z = O - w, ca = ka - X, U += "\x00", V += k(Z), L += k(ca), w = O, X = ka, Y++, O = aa[ja++], ka = aa[ja++], Z = O - w, ca = ka - X, U += "\u0001", V += k(Z), L += k(ca), - w = O, X = ka), Y++, Y > E && (E = Y), C > w && (C = w), ga > X && (ga = X), ba < w && (ba = w), ea < X && (ea = X); + for (var Q = Y = x = 0, ma = 0, W = "", O = "", la = 0, Z = 0, ja = 1, ba = "", X = 0;X < fa.length;X++) { + aa = fa[X], 1 === aa ? (Z && (++ja, ba += k(Z - 1)), Q = ca[la++], ma = ca[la++], aa = Q - x, ea = ma - Y, V += "\u0001", W += k(aa), O += k(ea), x = Q, Y = ma) : 2 === aa ? (Q = ca[la++], ma = ca[la++], aa = Q - x, ea = ma - Y, V += "\u0001", W += k(aa), O += k(ea), x = Q, Y = ma) : 3 === aa && (Q = ca[la++], ma = ca[la++], aa = Q - x, ea = ma - Y, V += "\x00", W += k(aa), O += k(ea), x = Q, Y = ma, Z++, Q = ca[la++], ma = ca[la++], aa = Q - x, ea = ma - Y, V += "\u0001", W += k(aa), + O += k(ea), x = Q, Y = ma), Z++, Z > F && (F = Z), y > x && (y = x), ia > Y && (ia = Y), da < x && (da = x), ga < Y && (ga = Y); } - w = $ += k((Y || 1) - 1); - X = V; - Z = L; - W || (C = ba = ga = ea = 0, U += "1"); - W = k(ha) + k(C) + k(ga) + k(ba) + k(ea) + w + "\x00\x00" + U + X + Z; - W.length & 1 && (W += "\x00"); - P += W; - J += k(z / 2); - z += W.length; - S.push(C); - H.push(ba); - A.push(ga); - K.push(ea); - ha > Q && (Q = ha); - Y > E && (E = Y); - M && a.advance.push((ba - C) * y * 1.3); + x = ba += k((Z || 1) - 1); + Y = W; + aa = O; + X || (y = da = ia = ga = 0, V += "1"); + X = k(ja) + k(y) + k(ia) + k(da) + k(ga) + x + "\x00\x00" + V + Y + aa; + X.length & 1 && (X += "\x00"); + R += X; + L += k(B / 2); + B += X.length; + U.push(y); + H.push(da); + A.push(ia); + N.push(ga); + ja > S && (S = ja); + Z > F && (F = Z); + M && a.advance.push((da - y) * z * 1.3); } - J += k(z / 2); - n.glyf = P; - T || (N = Math.min.apply(null, A), 0 > N && (B = B || N)); - n["OS/2"] = "\x00\u0001\x00\x00" + k(a.bold ? 700 : 400) + "\x00\u0005\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ALF " + k((a.italic ? 1 : 0) | (a.bold ? 32 : 0)) + k(l[0]) + k(l[l.length - 1]) + k(F) + k(B) + k(G) + k(F) + k(-B) + "\x00\x00\x00\x00\x00\x00\x00\x00"; - n.head = "\x00\u0001\x00\x00\x00\u0001\x00\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x0B\u0004\x00\x00\x00\x00\x00" + t(Date.now()) + "\x00\x00\x00\x00" + t(Date.now()) + k(c.apply(null, S)) + k(c.apply(null, A)) + k(h.apply(null, H)) + k(h.apply(null, K)) + k((a.italic ? 2 : 0) | (a.bold ? 1 : 0)) + "\x00\b\x00\u0002\x00\x00\x00\x00"; + L += k(B / 2); + p.glyf = R; + J || (P = Math.min.apply(null, A), 0 > P && (K = K || P)); + p["OS/2"] = "\x00\u0001\x00\x00" + k(a.bold ? 700 : 400) + "\x00\u0005\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00ALF " + k((a.italic ? 1 : 0) | (a.bold ? 32 : 0)) + k(l[0]) + k(l[l.length - 1]) + k(E) + k(K) + k(G) + k(E) + k(-K) + "\x00\x00\x00\x00\x00\x00\x00\x00"; + p.head = "\x00\u0001\x00\x00\x00\u0001\x00\x00\x00\x00\x00\x00_\u000f<\u00f5\x00\x0B\u0004\x00\x00\x00\x00\x00" + v(Date.now()) + "\x00\x00\x00\x00" + v(Date.now()) + k(c.apply(null, U)) + k(c.apply(null, A)) + k(g.apply(null, H)) + k(g.apply(null, N)) + k((a.italic ? 2 : 0) | (a.bold ? 1 : 0)) + "\x00\b\x00\u0002\x00\x00\x00\x00"; l = a.advance; - n.hhea = "\x00\u0001\x00\x00" + k(F) + k(B) + k(G) + k(l ? h.apply(null, l) : 1024) + "\x00\x00\x00\x00\u0003\u00b8\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + k(r + 1); + p.hhea = "\x00\u0001\x00\x00" + k(E) + k(K) + k(G) + k(l ? g.apply(null, l) : 1024) + "\x00\x00\x00\x00\u0003\u00b8\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + k(t + 1); e = "\x00\x00\x00\x00"; - for (N = 0;N < r;++N) { - e += k(l ? l[N] / y : 1024) + "\x00\x00"; + for (P = 0;P < t;++P) { + e += k(l ? l[P] / z : 1024) + "\x00\x00"; } - n.hmtx = e; - if (a.kerning) { + p.hmtx = e; + if (a.kerning && a.kerning.length) { l = a.kerning; - y = l.length; - N = 2 * d(y); - y = "\x00\x00\x00\u0001\x00\x00" + k(14 + 6 * y) + "\x00\u0001" + k(y) + k(N) + k(q(y) / q(2)) + k(2 * y - N); - for (N = 0;U = l[N++];) { - y += k(s[U.code1]) + k(s[U.code2]) + k(U.adjustment); + z = l.length; + P = 2 * d(z); + z = "\x00\x00\x00\u0001\x00\x00" + k(14 + 6 * z) + "\x00\u0001" + k(z) + k(P) + k(q(z) / q(2)) + k(2 * z - P); + for (P = 0;V = l[P++];) { + z += k(r[V.code1]) + k(r[V.code2]) + k(V.adjustment); } - n.kern = y; + p.kern = z; } - n.loca = J; - n.maxp = "\x00\u0001\x00\x00" + k(r + 1) + k(E) + k(Q) + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; - N = f.replace(/ /g, ""); - g = [a.copyright || "Original licence", f, "Unknown", g, f, "1.0", N, "Unknown", "Unknown", "Unknown"]; - N = g.length; - a = "\x00\x00" + k(N) + k(12 * N + 6); - for (N = z = 0;f = g[N++];) { - a += "\x00\u0001\x00\x00\x00\x00" + k(N - 1) + k(f.length) + k(z), z += f.length; + p.loca = L; + p.maxp = "\x00\u0001\x00\x00" + k(t + 1) + k(F) + k(S) + "\x00\x00\x00\x00\x00\u0001\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; + P = f.replace(/ /g, ""); + h = [a.copyright || "Original licence", f, "Unknown", h, f, "1.0", P, "Unknown", "Unknown", "Unknown"]; + P = h.length; + a = "\x00\x00" + k(P) + k(12 * P + 6); + for (P = B = 0;f = h[P++];) { + a += "\x00\u0001\x00\x00\x00\x00" + k(P - 1) + k(f.length) + k(B), B += f.length; } - n.name = a + g.join(""); - n.post = "\x00\u0003\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; - g = Object.keys(n); - N = g.length; - f = "\x00\u0001\x00\x00" + k(N) + "\x00\u0080\x00\u0003\x00 "; - r = ""; - z = 16 * N + f.length; - for (N = 0;a = g[N++];) { - s = n[a]; - l = s.length; - for (f += a + "\x00\x00\x00\x00" + t(z) + t(l);l & 3;) { - s += "\x00", ++l; + p.name = a + h.join(""); + p.post = "\x00\u0003\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; + h = Object.keys(p); + P = h.length; + f = "\x00\u0001\x00\x00" + k(P) + "\x00\u0080\x00\u0003\x00 "; + t = ""; + B = 16 * P + f.length; + for (P = 0;a = h[P++];) { + r = p[a]; + l = r.length; + for (f += a + "\x00\x00\x00\x00" + v(B) + v(l);l & 3;) { + r += "\x00", ++l; } - for (r += s;z & 3;) { - ++z; + for (t += r;B & 3;) { + ++B; } - z += l; + B += l; } - n = f + r; - F = {ascent:F / 1024, descent:-B / 1024, leading:G / 1024}; - B = new Uint8Array(n.length); - for (N = 0;N < n.length;N++) { - B[N] = n.charCodeAt(N) & 255; + p = f + t; + E = {ascent:E / 1024, descent:-K / 1024, leading:G / 1024}; + K = new Uint8Array(p.length); + for (P = 0;P < p.length;P++) { + K[P] = p.charCodeAt(P) & 255; } b.codes = D; - b.metrics = F; - b.data = B; + b.metrics = E; + b.data = K; return b; }; })(d.Parser || (d.Parser = {})); @@ -25374,89 +25351,89 @@ console.time("Load SWF Parser"); (function(d) { (function(k) { (function(a) { - function p(a, h) { - return a[h] << 8 | a[h + 1]; + function n(a, g) { + return a[g] << 8 | a[g + 1]; } - function v(a, h, d) { - var l = 0, m = h.length, g; + function w(a, g, d) { + var l = 0, m = g.length, h; do { - for (var f = l;l < m && 255 !== h[l];) { + for (var f = l;l < m && 255 !== g[l];) { ++l; } - for (;l < m && 255 === h[l];) { + for (;l < m && 255 === g[l];) { ++l; } - g = h[l++]; - if (218 === g) { + h = g[l++]; + if (218 === h) { l = m; } else { - if (217 === g) { + if (217 === h) { l += 2; continue; } else { - if (208 > g || 216 < g) { - var b = p(h, l); - 192 <= g && 195 >= g && (a.height = p(h, l + 3), a.width = p(h, l + 5)); + if (208 > h || 216 < h) { + var b = n(g, l); + 192 <= h && 195 >= h && (a.height = n(g, l + 3), a.width = n(g, l + 5)); l += b; } } } - d.push(h.subarray(f, l)); + d.push(g.subarray(f, l)); } while (l < m); return d; } - function t(a, h) { - if (73 === h[12] && 72 === h[13] && 68 === h[14] && 82 === h[15]) { - a.width = h[16] << 24 | h[17] << 16 | h[18] << 8 | h[19]; - a.height = h[20] << 24 | h[21] << 16 | h[22] << 8 | h[23]; - var d = h[26]; + function v(a, g) { + if (73 === g[12] && 72 === g[13] && 68 === g[14] && 82 === g[15]) { + a.width = g[16] << 24 | g[17] << 16 | g[18] << 8 | g[19]; + a.height = g[20] << 24 | g[21] << 16 | g[22] << 8 | g[23]; + var d = g[26]; a.hasAlpha = 4 === d || 6 === d; } } function u(a) { - for (var h = 0, d = 0;d < a.length;d++) { - h += a[d].length; + for (var g = 0, d = 0;d < a.length;d++) { + g += a[d].length; } - for (var h = new Uint8Array(h), l = 0, d = 0;d < a.length;d++) { + for (var g = new Uint8Array(g), l = 0, d = 0;d < a.length;d++) { var m = a[d]; - h.set(m, l); + g.set(m, l); l += m.length; } - return h; + return g; } var l = d.ArrayUtilities.Inflate; - a.parseJpegChunks = v; - a.parsePngHeaders = t; + a.parseJpegChunks = w; + a.parsePngHeaders = v; a.defineImage = function(a) { k.enterTimeline("defineImage"); - var h = {type:"image", id:a.id, mimeType:a.mimeType}, q = a.imgData; + var g = {type:"image", id:a.id, mimeType:a.mimeType}, q = a.imgData; if ("image/jpeg" === a.mimeType) { - var s = a.alphaData; - if (s) { + var r = a.alphaData; + if (r) { a = new d.JPEG.JpegImage; - a.parse(u(v(h, q, []))); - var m = h.width, q = m * h.height, g; + a.parse(u(w(g, q, []))); + var m = g.width, q = m * g.height, h; try { - g = l.inflate(s, q, !0); + h = l.inflate(r, q, !0); } catch (f) { - g = new Uint8Array(m); + h = new Uint8Array(m); } - s = h.data = new Uint8ClampedArray(4 * q); - a.copyToImageData(h); + r = g.data = new Uint8ClampedArray(4 * q); + a.copyToImageData(g); a = 0; for (m = 3;a < q;a++, m += 4) { - s[m] = g[a]; + r[m] = h[a]; } - h.mimeType = "application/octet-stream"; - h.dataType = 3; + g.mimeType = "application/octet-stream"; + g.dataType = 3; } else { - g = [], a.jpegTables && g.push(a.jpegTables), v(h, q, g), a.jpegTables && 0 < a.jpegTables.byteLength && (g[1] = g[1].subarray(2)), h.data = u(g), h.dataType = 4; + h = [], a.jpegTables && h.push(a.jpegTables), w(g, q, h), a.jpegTables && 0 < a.jpegTables.byteLength && (h[1] = h[1].subarray(2)), g.data = u(h), g.dataType = 4; } } else { - t(h, q), h.data = q, h.dataType = 5; + v(g, q), g.data = q, g.dataType = 5; } k.leaveTimeline(); - return h; + return g; }; })(k.Parser || (k.Parser = {})); })(d.SWF || (d.SWF = {})); @@ -25465,7 +25442,7 @@ console.time("Load SWF Parser"); (function(d) { (function(a) { a.defineLabel = function(a) { - return{type:"label", id:a.id, fillBounds:a.bbox, matrix:a.matrix, tag:{hasText:!0, initialText:"", html:!0, readonly:!0}, records:a.records, coords:null, static:!0, require:null}; + return {type:"label", id:a.id, fillBounds:a.bbox, matrix:a.matrix, tag:{hasText:!0, initialText:"", html:!0, readonly:!0}, records:a.records, coords:null, static:!0, require:null}; }; })(d.Parser || (d.Parser = {})); })(d.SWF || (d.SWF = {})); @@ -25473,7 +25450,7 @@ console.time("Load SWF Parser"); (function(d) { (function(k) { (function(a) { - function p(b, a, e, c) { + function n(b, a, e, c) { if (b) { if (a.fill0) { if (c = c[a.fill0 - 1], a.fill1 || a.line) { @@ -25487,19 +25464,19 @@ console.time("Load SWF Parser"); } } function k(a, e, c, f) { - c && (a.morph = t(a, e, f)); + c && (a.morph = v(a, e, f)); if (e) { a.miterLimit = 2 * (a.miterLimitFactor || 1.5); if (!a.color && a.hasFill) { - var g = k(a.fillStyle, !1, !1, f); - a.type = g.type; - a.transform = g.transform; - a.colors = g.colors; - a.ratios = g.ratios; - a.focalPoint = g.focalPoint; - a.bitmapId = g.bitmapId; - a.bitmapIndex = g.bitmapIndex; - a.repeat = g.repeat; + var h = k(a.fillStyle, !1, !1, f); + a.type = h.type; + a.transform = h.transform; + a.colors = h.colors; + a.ratios = h.ratios; + a.focalPoint = h.focalPoint; + a.bitmapId = h.bitmapId; + a.bitmapIndex = h.bitmapIndex; + a.repeat = h.repeat; a.fillStyle = null; } else { a.type = 0; @@ -25515,15 +25492,15 @@ console.time("Load SWF Parser"); case 18: ; case 19: - g = a.records; + h = a.records; e = a.colors = []; c = a.ratios = []; - for (f = 0;f < g.length;f++) { - var h = g[f]; - e.push(h.color); - c.push(h.ratio); + for (f = 0;f < h.length;f++) { + var g = h[f]; + e.push(g.color); + c.push(g.ratio); } - g = 819.2; + h = 819.2; break; case 64: ; @@ -25532,20 +25509,20 @@ console.time("Load SWF Parser"); case 66: ; case 67: - a.smooth = 66 !== a.type && 67 !== a.type, a.repeat = 65 !== a.type && 67 !== a.type, a.bitmapIndex = f.length, f.push(a.bitmapId), g = .05; + a.smooth = 66 !== a.type && 67 !== a.type, a.repeat = 65 !== a.type && 67 !== a.type, a.bitmapIndex = f.length, f.push(a.bitmapId), h = .05; } if (!a.matrix) { return a.transform = b, a; } e = a.matrix; - a.transform = {a:e.a * g, b:e.b * g, c:e.c * g, d:e.d * g, tx:e.tx / 20, ty:e.ty / 20}; + a.transform = {a:e.a * h, b:e.b * h, c:e.c * h, d:e.d * h, tx:e.tx / 20, ty:e.ty / 20}; a.matrix = null; return a; } - function t(a, e, c) { + function v(a, e, c) { var f = Object.create(a); if (e) { - return f.width = a.widthMorph, !a.color && a.hasFill ? (a = t(a.fillStyle, !1, c), f.transform = a.transform, f.colors = a.colors, f.ratios = a.ratios) : f.color = a.colorMorph, f; + return f.width = a.widthMorph, !a.color && a.hasFill ? (a = v(a.fillStyle, !1, c), f.transform = a.transform, f.colors = a.colors, f.ratios = a.ratios) : f.color = a.colorMorph, f; } if (void 0 === a.type) { return f; @@ -25553,22 +25530,22 @@ console.time("Load SWF Parser"); if (0 === a.type) { return f.color = a.colorMorph, f; } - var g; + var h; switch(a.type) { case 16: ; case 18: ; case 19: - g = a.records; + h = a.records; e = f.colors = []; c = f.ratios = []; - for (var h = 0;h < g.length;h++) { - var m = g[h]; + for (var g = 0;g < h.length;g++) { + var m = h[g]; e.push(m.colorMorph); c.push(m.ratioMorph); } - g = 819.2; + h = 819.2; break; case 64: ; @@ -25577,19 +25554,19 @@ console.time("Load SWF Parser"); case 66: ; case 67: - g = .05; + h = .05; } if (!a.matrix) { return f.transform = b, f; } a = a.matrixMorph; - f.transform = {a:a.a * g, b:a.b * g, c:a.c * g, d:a.d * g, tx:a.tx / 20, ty:a.ty / 20}; + f.transform = {a:a.a * h, b:a.b * h, c:a.c * h, d:a.d * h, tx:a.tx / 20, ty:a.ty / 20}; return f; } function u(b, a, e, c) { - for (var f = [], g = 0;g < b.length;g++) { - var h = k(b[g], a, e, c); - f[g] = a ? new r(null, h) : new r(h, null); + for (var f = [], h = 0;h < b.length;h++) { + var g = k(b[h], a, e, c); + f[h] = a ? new t(null, g) : new t(g, null); } return f; } @@ -25601,10 +25578,10 @@ console.time("Load SWF Parser"); var e = m(b.width, 0, 5100) | 0; a.writeMorphLineStyle(e, b.color); } - function h(b, a, e) { + function g(b, a, e) { e.beginGradient(b, a.colors, a.ratios, 16 === a.type ? 16 : 18, a.transform, a.spreadMethod, a.interpolationMode, a.focalPoint / 2 | 0); } - var q = d.ArrayUtilities.DataBuffer, s = d.ShapeData, m = d.NumberUtilities.clamp, g = Array.prototype.push, f; + var q = d.ArrayUtilities.DataBuffer, r = d.ShapeData, m = d.NumberUtilities.clamp, h = Array.prototype.push, f; (function(b) { b[b.Solid = 0] = "Solid"; b[b.LinearGradient = 16] = "LinearGradient"; @@ -25617,57 +25594,57 @@ console.time("Load SWF Parser"); })(f || (f = {})); var b = {a:1, b:0, c:0, d:1, tx:0, ty:0}; a.defineShape = function(b) { - for (var a = [], c = u(b.fillStyles, !1, !!b.recordsMorph, a), f = u(b.lineStyles, !0, !!b.recordsMorph, a), h = b.records, m = f, d = b.recordsMorph || null, f = null !== d, l = {fill0:0, fill1:0, line:0}, t = null, C, B, H = h.length - 1, A = 0, y = 0, G = 0, J = 0, E, Q = 0, S = 0;Q < H;Q++) { - var K = h[Q], P; - f && (P = d[S++]); - if (0 === K.type) { - t && p(t, l, m, c), K.hasNewStyles && (C || (C = []), g.apply(C, c), c = u(K.fillStyles, !1, f, a), g.apply(C, m), m = u(K.lineStyles, !0, f, a), B && (C.push(B), B = null), l = {fill0:0, fill1:0, line:0}), K.hasFillStyle0 && (l.fill0 = K.fillStyle0), K.hasFillStyle1 && (l.fill1 = K.fillStyle1), K.hasLineStyle && (l.line = K.lineStyle), l.fill1 ? E = c[l.fill1 - 1] : l.line ? E = m[l.line - 1] : l.fill0 && (E = c[l.fill0 - 1]), K.move && (A = K.moveX | 0, y = K.moveY | 0), E && (t = e.FromDefaults(f), - E.addSegment(t), f ? (0 === P.type ? (G = P.moveX | 0, J = P.moveY | 0) : (G = A, J = y, S--), t.morphMoveTo(A, y, G, J)) : t.moveTo(A, y)); + for (var a = [], c = u(b.fillStyles, !1, !!b.recordsMorph, a), f = u(b.lineStyles, !0, !!b.recordsMorph, a), g = b.records, m = f, d = b.recordsMorph || null, f = null !== d, l = {fill0:0, fill1:0, line:0}, v = null, y, K, H = g.length - 1, A = 0, z = 0, G = 0, L = 0, F, S = 0, U = 0;S < H;S++) { + var N = g[S], R; + f && (R = d[U++]); + if (0 === N.type) { + v && n(v, l, m, c), N.hasNewStyles && (y || (y = []), h.apply(y, c), c = u(N.fillStyles, !1, f, a), h.apply(y, m), m = u(N.lineStyles, !0, f, a), K && (y.push(K), K = null), l = {fill0:0, fill1:0, line:0}), N.hasFillStyle0 && (l.fill0 = N.fillStyle0), N.hasFillStyle1 && (l.fill1 = N.fillStyle1), N.hasLineStyle && (l.line = N.lineStyle), l.fill1 ? F = c[l.fill1 - 1] : l.line ? F = m[l.line - 1] : l.fill0 && (F = c[l.fill0 - 1]), N.move && (A = N.moveX | 0, z = N.moveY | 0), F && (v = e.FromDefaults(f), + F.addSegment(v), f ? (0 === R.type ? (G = R.moveX | 0, L = R.moveY | 0) : (G = A, L = z, U--), v.morphMoveTo(A, z, G, L)) : v.moveTo(A, z)); } else { - t || (B || (B = new r(null, k({color:{red:0, green:0, blue:0, alpha:0}, width:20}, !0, f, a))), t = e.FromDefaults(f), B.addSegment(t), f ? t.morphMoveTo(A, y, G, J) : t.moveTo(A, y)); + v || (K || (K = new t(null, k({color:{red:0, green:0, blue:0, alpha:0}, width:20}, !0, f, a))), v = e.FromDefaults(f), K.addSegment(v), f ? v.morphMoveTo(A, z, G, L) : v.moveTo(A, z)); if (f) { - for (;P && 0 === P.type;) { - P = d[S++]; + for (;R && 0 === R.type;) { + R = d[U++]; } - P || (P = K); + R || (R = N); } - if (!K.isStraight || f && !P.isStraight) { - var R, W, ba; - K.isStraight ? (ba = K.deltaX | 0, K = K.deltaY | 0, R = A + (ba >> 1), W = y + (K >> 1), A += ba, y += K) : (R = A + K.controlDeltaX | 0, W = y + K.controlDeltaY | 0, A = R + K.anchorDeltaX | 0, y = W + K.anchorDeltaY | 0); + if (!N.isStraight || f && !R.isStraight) { + var T, X, da; + N.isStraight ? (da = N.deltaX | 0, N = N.deltaY | 0, T = A + (da >> 1), X = z + (N >> 1), A += da, z += N) : (T = A + N.controlDeltaX | 0, X = z + N.controlDeltaY | 0, A = T + N.anchorDeltaX | 0, z = X + N.anchorDeltaY | 0); if (f) { - if (P.isStraight) { - ba = P.deltaX | 0, K = P.deltaY | 0, w = G + (ba >> 1), X = J + (K >> 1), G += ba, J += K; + if (R.isStraight) { + da = R.deltaX | 0, N = R.deltaY | 0, x = G + (da >> 1), Y = L + (N >> 1), G += da, L += N; } else { - var w = G + P.controlDeltaX | 0, X = J + P.controlDeltaY | 0, G = w + P.anchorDeltaX | 0, J = X + P.anchorDeltaY | 0 + var x = G + R.controlDeltaX | 0, Y = L + R.controlDeltaY | 0, G = x + R.anchorDeltaX | 0, L = Y + R.anchorDeltaY | 0 } - t.morphCurveTo(R, W, A, y, w, X, G, J); + v.morphCurveTo(T, X, A, z, x, Y, G, L); } else { - t.curveTo(R, W, A, y); + v.curveTo(T, X, A, z); } } else { - A += K.deltaX | 0, y += K.deltaY | 0, f ? (G += P.deltaX | 0, J += P.deltaY | 0, t.morphLineTo(A, y, G, J)) : t.lineTo(A, y); + A += N.deltaX | 0, z += N.deltaY | 0, f ? (G += R.deltaX | 0, L += R.deltaY | 0, v.morphLineTo(A, z, G, L)) : v.lineTo(A, z); } } } - p(t, l, m, c); - C ? g.apply(C, c) : C = c; - g.apply(C, m); - B && C.push(B); - h = new s; - f && (h.morphCoordinates = new Int32Array(h.coordinates.length), h.morphStyles = new q(16)); - for (Q = 0;Q < C.length;Q++) { - C[Q].serialize(h); + n(v, l, m, c); + y ? h.apply(y, c) : y = c; + h.apply(y, m); + K && y.push(K); + g = new r; + f && (g.morphCoordinates = new Int32Array(g.coordinates.length), g.morphStyles = new q(16)); + for (S = 0;S < y.length;S++) { + y[S].serialize(g); } - return{type:b.isMorph ? "morphshape" : "shape", id:b.id, fillBounds:b.fillBounds, lineBounds:b.lineBounds, morphFillBounds:b.fillBoundsMorph || null, morphLineBounds:b.lineBoundsMorph || null, shape:h.toPlainObject(), transferables:h.buffers, require:a.length ? a : null}; + return {type:b.isMorph ? "morphshape" : "shape", id:b.id, fillBounds:b.fillBounds, lineBounds:b.lineBounds, morphFillBounds:b.fillBoundsMorph || null, morphLineBounds:b.lineBoundsMorph || null, shape:g.toPlainObject(), transferables:g.buffers, require:a.length ? a : null}; }; var e = function() { - function b(a, e, c, f, g, h) { + function b(a, e, c, f, h, g) { this.commands = a; this.data = e; this.morphData = c; this.prev = f; - this.next = g; - this.isReversed = h; + this.next = h; + this.isReversed = g; this.id = b._counter++; } b.FromDefaults = function(a) { @@ -25697,9 +25674,9 @@ console.time("Load SWF Parser"); this.commands.writeUnsignedByte(11); this.data.write4Ints(b, a, e, c); }; - b.prototype.morphCurveTo = function(b, a, e, c, f, g, h, m) { + b.prototype.morphCurveTo = function(b, a, e, c, f, h, g, m) { this.curveTo(b, a, e, c); - this.morphData.write4Ints(f, g, h, m); + this.morphData.write4Ints(f, h, g, m); }; b.prototype.toReversed = function() { return new b(this.commands, this.data, this.morphData, null, null, !0); @@ -25727,28 +25704,28 @@ console.time("Load SWF Parser"); if (this.isReversed) { this._serializeReversed(b, a); } else { - var e = this.commands.bytes, c = this.data.length >> 2, f = this.morphData ? this.morphData.ints : null, g = this.data.ints, h = 0; - g[0] === a.x && g[1] === a.y && h++; - for (var m = this.commands.length, n = 2 * h;h < m;h++) { - n = this._writeCommand(e[h], n, g, f, b); + var e = this.commands.bytes, c = this.data.length >> 2, f = this.morphData ? this.morphData.ints : null, h = this.data.ints, g = 0; + h[0] === a.x && h[1] === a.y && g++; + for (var m = this.commands.length, p = 2 * g;g < m;g++) { + p = this._writeCommand(e[g], p, h, f, b); } - a.x = g[c - 2]; - a.y = g[c - 1]; + a.x = h[c - 2]; + a.y = h[c - 1]; } }; b.prototype._serializeReversed = function(b, a) { - var e = this.commands.length, c = (this.data.length >> 2) - 2, f = this.commands.bytes, g = this.data.ints, h = this.morphData ? this.morphData.ints : null; - g[c] === a.x && g[c + 1] === a.y || this._writeCommand(9, c, g, h, b); + var e = this.commands.length, c = (this.data.length >> 2) - 2, f = this.commands.bytes, h = this.data.ints, g = this.morphData ? this.morphData.ints : null; + h[c] === a.x && h[c + 1] === a.y || this._writeCommand(9, c, h, g, b); if (1 !== e) { for (;1 < e--;) { var c = c - 2, m = f[e]; - b.writeCommandAndCoordinates(m, g[c], g[c + 1]); - h && b.writeMorphCoordinates(h[c], h[c + 1]); - 11 === m && (c -= 2, b.writeCoordinates(g[c], g[c + 1]), h && b.writeMorphCoordinates(h[c], h[c + 1])); + b.writeCommandAndCoordinates(m, h[c], h[c + 1]); + g && b.writeMorphCoordinates(g[c], g[c + 1]); + 11 === m && (c -= 2, b.writeCoordinates(h[c], h[c + 1]), g && b.writeMorphCoordinates(g[c], g[c + 1])); } } - a.x = g[0]; - a.y = g[1]; + a.x = h[0]; + a.y = h[1]; }; b.prototype._writeCommand = function(b, a, e, c, f) { f.writeCommandAndCoordinates(b, e[a++], e[a++]); @@ -25758,7 +25735,7 @@ console.time("Load SWF Parser"); }; b._counter = 0; return b; - }(), r = function() { + }(), t = function() { function b(a, e) { this.fillStyle = a; this.lineStyle = e; @@ -25789,12 +25766,12 @@ console.time("Load SWF Parser"); for (;a;) { a.storeStartAndEnd(), a = a.prev; } - for (var e = this.head(), f = e, g = a = null, m = e.prev;e;) { + for (var e = this.head(), f = e, h = a = null, m = e.prev;e;) { for (;m;) { m.startConnectsTo(e) && m.flipDirection(), m.connectsTo(e) ? (m.next !== e && (this.removeSegment(m), this.insertSegment(m, e)), e = m, m = e.prev) : (m.startConnectsTo(f) && m.flipDirection(), f.connectsTo(m) ? (this.removeSegment(m), f.next = m, m = m.prev, f.next.prev = f, f.next.next = null, f = f.next) : m = m.prev); } m = e.prev; - a ? (g.next = e, e.prev = g, g = f, g.next = null) : (a = e, g = f); + a ? (h.next = e, e.prev = h, h = f, h.next = null) : (a = e, h = f); if (!m) { break; } @@ -25812,7 +25789,7 @@ console.time("Load SWF Parser"); case 18: ; case 19: - h(2, m, b); + g(2, m, b); e && b.writeMorphGradient(e.colors, e.ratios, e.transform); break; case 65: @@ -25836,7 +25813,7 @@ console.time("Load SWF Parser"); ; case 19: l(m, b); - h(6, m, b); + g(6, m, b); e && (c(e, b), b.writeMorphGradient(e.colors, e.ratios, e.transform)); break; case 65: @@ -25865,125 +25842,125 @@ console.time("Load SWF Parser"); (function(d) { (function(d) { (function(a) { - function d(b, a, c, f, g) { - var h = f >> 3, m = c * a * h, h = c * h, l = b.length + (b.length & 1), s = new ArrayBuffer(q.length + l), k = new Uint8Array(s); - k.set(q); - if (g) { - g = 0; - for (var p = q.length;g < b.length;g += 2, p += 2) { - k[p] = b[g + 1], k[p + 1] = b[g]; + function d(b, a, c, f, h) { + var g = f >> 3, m = c * a * g, g = c * g, l = b.length + (b.length & 1), r = new ArrayBuffer(q.length + l), n = new Uint8Array(r); + n.set(q); + if (h) { + h = 0; + for (var k = q.length;h < b.length;h += 2, k += 2) { + n[k] = b[h + 1], n[k + 1] = b[h]; } } else { - k.set(b, q.length); + n.set(b, q.length); } - b = new DataView(s); + b = new DataView(r); b.setUint32(4, l + 36, !0); b.setUint16(22, c, !0); b.setUint32(24, a, !0); b.setUint32(28, m, !0); - b.setUint16(32, h, !0); + b.setUint16(32, g, !0); b.setUint16(34, f, !0); b.setUint32(40, l, !0); - return{data:k, mimeType:"audio/wav"}; + return {data:n, mimeType:"audio/wav"}; } function k(b, a, c) { function f(a) { for (;d < a;) { - h = h << 8 | b[g++], d += 8; + g = g << 8 | b[h++], d += 8; } d -= a; - return h >>> d & (1 << a) - 1; + return g >>> d & (1 << a) - 1; } - for (var g = 0, h = 0, d = 0, l = 0, q = f(2), p = s[q];l < a.length;) { - var t = a[l++] = f(16) << 16 >> 16, u, v = f(6), B; - 1 < c && (u = a[l++] = f(16) << 16 >> 16, B = f(6)); + for (var h = 0, g = 0, d = 0, l = 0, q = f(2), n = r[q];l < a.length;) { + var v = a[l++] = f(16) << 16 >> 16, u, w = f(6), K; + 1 < c && (u = a[l++] = f(16) << 16 >> 16, K = f(6)); for (var H = 1 << q + 1, A = 0;4095 > A;A++) { - for (var y = f(q + 2), G = m[v], J = 0, E = H >> 1;E;E >>= 1, G >>= 1) { - y & E && (J += G); + for (var z = f(q + 2), G = m[w], L = 0, F = H >> 1;F;F >>= 1, G >>= 1) { + z & F && (L += G); } - t += (y & H ? -1 : 1) * (J + G); - a[l++] = t = -32768 > t ? -32768 : 32767 < t ? 32767 : t; - v += p[y & ~H]; - v = 0 > v ? 0 : 88 < v ? 88 : v; + v += (z & H ? -1 : 1) * (L + G); + a[l++] = v = -32768 > v ? -32768 : 32767 < v ? 32767 : v; + w += n[z & ~H]; + w = 0 > w ? 0 : 88 < w ? 88 : w; if (1 < c) { - y = f(q + 2); - G = m[B]; - J = 0; - for (E = H >> 1;E;E >>= 1, G >>= 1) { - y & E && (J += G); + z = f(q + 2); + G = m[K]; + L = 0; + for (F = H >> 1;F;F >>= 1, G >>= 1) { + z & F && (L += G); } - u += (y & H ? -1 : 1) * (J + G); + u += (z & H ? -1 : 1) * (L + G); a[l++] = u = -32768 > u ? -32768 : 32767 < u ? 32767 : u; - B += p[y & ~H]; - B = 0 > B ? 0 : 88 < B ? 88 : B; + K += n[z & ~H]; + K = 0 > K ? 0 : 88 < K ? 88 : K; } } } } - function t(b) { + function v(b) { for (var a = new Float32Array(b.length), c = 0;c < a.length;c++) { a[c] = (b[c] - 128) / 128; } this.currentSample += a.length / this.channels; - return{streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; + return {streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; } function u(b) { for (var a = new Float32Array(b.length / 2), c = 0, f = 0;c < a.length;c++, f += 2) { a[c] = (b[f] << 24 | b[f + 1] << 16) / 2147483648; } this.currentSample += a.length / this.channels; - return{streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; + return {streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; } function l(b) { for (var a = new Float32Array(b.length / 2), c = 0, f = 0;c < a.length;c++, f += 2) { a[c] = (b[f + 1] << 24 | b[f] << 16) / 2147483648; } this.currentSample += a.length / this.channels; - return{streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; + return {streamId:this.streamId, samplesCount:a.length / this.channels, pcm:a}; } function c(b) { var a = b[1] << 8 | b[0], c = b[3] << 8 | b[2]; this.currentSample += a; - return{streamId:this.streamId, samplesCount:a, data:new Uint8Array(b.subarray(4)), seek:c}; + return {streamId:this.streamId, samplesCount:a, data:new Uint8Array(b.subarray(4)), seek:c}; } - var h = [5512, 11250, 22500, 44100], q = new Uint8Array([82, 73, 70, 70, 0, 0, 0, 0, 87, 65, 86, 69, 102, 109, 116, 32, 16, 0, 0, 0, 1, 0, 2, 0, 68, 172, 0, 0, 16, 177, 2, 0, 4, 0, 16, 0, 100, 97, 116, 97, 0, 0, 0, 0]); + var g = [5512, 11250, 22500, 44100], q = new Uint8Array([82, 73, 70, 70, 0, 0, 0, 0, 87, 65, 86, 69, 102, 109, 116, 32, 16, 0, 0, 0, 1, 0, 2, 0, 68, 172, 0, 0, 16, 177, 2, 0, 4, 0, 16, 0, 100, 97, 116, 97, 0, 0, 0, 0]); a.defineSound = function(b) { - var a = 1 == b.soundType ? 2 : 1, c = b.samplesCount, f = h[b.soundRate], g = b.soundData, m, l; + var a = 1 == b.soundType ? 2 : 1, c = b.samplesCount, f = g[b.soundRate], h = b.soundData, m, l; switch(b.soundFormat) { case 0: m = new Float32Array(c * a); if (1 == b.soundSize) { for (l = c = 0;c < m.length;c++, l += 2) { - m[c] = (g[l] << 24 | g[l + 1] << 16) / 2147483648; + m[c] = (h[l] << 24 | h[l + 1] << 16) / 2147483648; } - l = d(g, f, a, 16, !0); + l = d(h, f, a, 16, !0); } else { for (c = 0;c < m.length;c++) { - m[c] = (g[c] - 128) / 128; + m[c] = (h[c] - 128) / 128; } - l = d(g, f, a, 8, !1); + l = d(h, f, a, 8, !1); } break; case 3: m = new Float32Array(c * a); if (1 == b.soundSize) { for (l = c = 0;c < m.length;c++, l += 2) { - m[c] = (g[l + 1] << 24 | g[l] << 16) / 2147483648; + m[c] = (h[l + 1] << 24 | h[l] << 16) / 2147483648; } - l = d(g, f, a, 16, !1); + l = d(h, f, a, 16, !1); } else { for (c = 0;c < m.length;c++) { - m[c] = (g[c] - 128) / 128; + m[c] = (h[c] - 128) / 128; } - l = d(g, f, a, 8, !1); + l = d(h, f, a, 8, !1); } break; case 2: - l = {data:new Uint8Array(g.subarray(2)), mimeType:"audio/mpeg"}; + l = {data:new Uint8Array(h.subarray(2)), mimeType:"audio/mpeg"}; break; case 1: l = new Int16Array(c * a); - k(g, l, a); + k(h, l, a); m = new Float32Array(c * a); for (c = 0;c < m.length;c++) { m[c] = l[c] / 32768; @@ -25994,10 +25971,10 @@ console.time("Load SWF Parser"); l && (b.packaged = l); return b; }; - var s = [[-1, 2], [-1, -1, 2, 4], [-1, -1, -1, -1, 2, 4, 6, 8], [-1, -1, -1, -1, -1, -1, -1, -1, 1, 2, 4, 6, 8, 10, 13, 16]], m = [7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, - 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767], g = 0, f = function() { + var r = [[-1, 2], [-1, -1, 2, 4], [-1, -1, -1, -1, 2, 4, 6, 8], [-1, -1, -1, -1, -1, -1, -1, -1, 1, 2, 4, 6, 8, 10, 13, 16]], m = [7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2272, 2499, 2749, 3024, 3327, 3660, 4026, 4428, 4871, 5358, 5894, 6484, 7132, 7845, 8630, + 9493, 10442, 11487, 12635, 13899, 15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767], h = 0, f = function() { function b(b, a, c) { - this.streamId = g++; + this.streamId = h++; this.samplesCount = b; this.sampleRate = a; this.channels = c; @@ -26005,13 +25982,13 @@ console.time("Load SWF Parser"); this.currentSample = 0; } b.FromTag = function(a) { - var f = new b(a.samplesCount, h[a.streamRate], 1 == a.streamType ? 2 : 1); + var f = new b(a.samplesCount, g[a.streamRate], 1 == a.streamType ? 2 : 1); switch(a.streamCompression) { case 0: ; case 3: f.format = "wave"; - f.decode = 1 == a.soundSize ? 0 === a.streamCompression ? u : l : t; + f.decode = 1 == a.soundSize ? 0 === a.streamCompression ? u : l : v; break; case 2: f.format = "mp3"; @@ -26032,7 +26009,7 @@ console.time("Load SWF Parser"); (function(d) { (function(a) { a.defineText = function(a) { - return{type:"text", id:a.id, fillBounds:a.bbox, variableName:a.variableName, tag:a, bold:!1, italic:!1}; + return {type:"text", id:a.id, fillBounds:a.bbox, variableName:a.variableName, tag:a, bold:!1, italic:!1}; }; })(d.Parser || (d.Parser = {})); })(d.SWF || (d.SWF = {})); @@ -26046,21 +26023,21 @@ console.time("Load SWF Parser"); }; })(d.SWF || (d.SWF = {})); })(Shumway || (Shumway = {})); -var Shumway$$inline_722 = Shumway || (Shumway = {}), SWF$$inline_723 = Shumway$$inline_722.SWF || (Shumway$$inline_722.SWF = {}), Option$$inline_724 = Shumway$$inline_722.Options.Option; -SWF$$inline_723.parserOptions = Shumway$$inline_722.Settings.shumwayOptions.register(new Shumway$$inline_722.Options.OptionSet("Parser Options")); -SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$inline_724("parsertracelevel", "Parser Trace Level", "number", 0, "Parser Trace Level")); +var Shumway$$inline_720 = Shumway || (Shumway = {}), SWF$$inline_721 = Shumway$$inline_720.SWF || (Shumway$$inline_720.SWF = {}), Option$$inline_722 = Shumway$$inline_720.Options.Option; +SWF$$inline_721.parserOptions = Shumway$$inline_720.Settings.shumwayOptions.register(new Shumway$$inline_720.Options.OptionSet("Parser Options")); +SWF$$inline_721.traceLevel = SWF$$inline_721.parserOptions.register(new Option$$inline_722("parsertracelevel", "Parser Trace Level", "number", 0, "Parser Trace Level")); (function(d) { (function(d) { - function a(a, h) { - for (var d = 0, l = [], m, g, f = 16;0 < f && !a[f - 1];) { + function a(a, g) { + for (var d = 0, l = [], m, h, f = 16;0 < f && !a[f - 1];) { f--; } l.push({children:[], index:0}); var b = l[0], e; for (m = 0;m < f;m++) { - for (g = 0;g < a[m];g++) { + for (h = 0;h < a[m];h++) { b = l.pop(); - for (b.children[b.index] = h[d];0 < b.index;) { + for (b.children[b.index] = g[d];0 < b.index;) { b = l.pop(); } b.index++; @@ -26073,20 +26050,20 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } return l[0].children; } - function p(a, h, d, l, m, g, f, b, e) { - function r() { + function n(a, g, d, l, m, h, f, b, e) { + function t() { if (0 < H) { - return H--, B >> H & 1; + return H--, K >> H & 1; } - B = a[h++]; - if (255 == B && a[h++]) { - return H = 31, B = 0, h -= 2, 0; + K = a[g++]; + if (255 == K && a[g++]) { + return H = 31, K = 0, g -= 2, 0; } H = 7; - return B >>> 7; + return K >>> 7; } - function n(b) { - for (var a;null !== (a = r());) { + function p(b) { + for (var a;null !== (a = t());) { b = b[a]; if ("number" === typeof b) { return b; @@ -26097,9 +26074,9 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } return null; } - function k(b) { + function n(b) { for (var a = 0;0 < b;) { - var e = r(); + var e = t(); if (null === e) { return; } @@ -26108,149 +26085,149 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } return a; } - function p(b) { + function k(b) { if (1 === b) { - return 1 === r() ? 1 : -1; + return 1 === t() ? 1 : -1; } - var a = k(b); + var a = n(b); return a >= 1 << b - 1 ? a : a + (-1 << b) + 1; } - function t(b, a) { - var e = n(b.huffmanTableDC), e = 0 === e ? 0 : p(e); + function v(b, a) { + var e = p(b.huffmanTableDC), e = 0 === e ? 0 : k(e); b.blockData[a] = b.pred += e; for (e = 1;64 > e;) { - var c = n(b.huffmanTableAC), f = c & 15, c = c >> 4; + var c = p(b.huffmanTableAC), f = c & 15, c = c >> 4; if (0 === f) { if (15 > c) { break; } e += 16; } else { - e += c, b.blockData[a + u[e]] = p(f), e++; + e += c, b.blockData[a + u[e]] = k(f), e++; } } } - function v(b, a) { - var c = n(b.huffmanTableDC), c = 0 === c ? 0 : p(c) << e; + function w(b, a) { + var c = p(b.huffmanTableDC), c = 0 === c ? 0 : k(c) << e; b.blockData[a] = b.pred += c; } function M(b, a) { - b.blockData[a] |= r() << e; + b.blockData[a] |= t() << e; } - function F(b, a) { + function E(b, a) { if (0 < A) { A--; } else { - for (var c = g;c <= f;) { - var h = n(b.huffmanTableAC), m = h & 15, h = h >> 4; + for (var c = h;c <= f;) { + var g = p(b.huffmanTableAC), m = g & 15, g = g >> 4; if (0 === m) { - if (15 > h) { - A = k(h) + (1 << h) - 1; + if (15 > g) { + A = n(g) + (1 << g) - 1; break; } c += 16; } else { - c += h, b.blockData[a + u[c]] = p(m) * (1 << e), c++; + c += g, b.blockData[a + u[c]] = k(m) * (1 << e), c++; } } } } - function T(b, a) { - for (var c = g, h = 0, m;c <= f;) { + function J(b, a) { + for (var c = h, g = 0, m;c <= f;) { m = u[c]; - switch(y) { + switch(z) { case 0: - h = n(b.huffmanTableAC); - m = h & 15; - h >>= 4; + g = p(b.huffmanTableAC); + m = g & 15; + g >>= 4; if (0 === m) { - 15 > h ? (A = k(h) + (1 << h), y = 4) : (h = 16, y = 1); + 15 > g ? (A = n(g) + (1 << g), z = 4) : (g = 16, z = 1); } else { if (1 !== m) { throw "invalid ACn encoding"; } - G = p(m); - y = h ? 2 : 3; + G = k(m); + z = g ? 2 : 3; } continue; case 1: ; case 2: - b.blockData[a + m] ? b.blockData[a + m] += r() << e : (h--, 0 === h && (y = 2 == y ? 3 : 0)); + b.blockData[a + m] ? b.blockData[a + m] += t() << e : (g--, 0 === g && (z = 2 == z ? 3 : 0)); break; case 3: - b.blockData[a + m] ? b.blockData[a + m] += r() << e : (b.blockData[a + m] = G << e, y = 0); + b.blockData[a + m] ? b.blockData[a + m] += t() << e : (b.blockData[a + m] = G << e, z = 0); break; case 4: - b.blockData[a + m] && (b.blockData[a + m] += r() << e); + b.blockData[a + m] && (b.blockData[a + m] += t() << e); } c++; } - 4 === y && (A--, 0 === A && (y = 0)); + 4 === z && (A--, 0 === A && (z = 0)); } - var N = d.mcusPerLine, C = h, B = 0, H = 0, A = 0, y = 0, G, J = l.length, E, Q, S, K, P; - b = d.progressive ? 0 === g ? 0 === b ? v : M : 0 === b ? F : T : t; - var R = 0; - d = 1 == J ? l[0].blocksPerLine * l[0].blocksPerColumn : N * d.mcusPerColumn; + var P = d.mcusPerLine, y = g, K = 0, H = 0, A = 0, z = 0, G, L = l.length, F, S, U, N, R; + b = d.progressive ? 0 === h ? 0 === b ? w : M : 0 === b ? E : J : v; + var T = 0; + d = 1 == L ? l[0].blocksPerLine * l[0].blocksPerColumn : P * d.mcusPerColumn; m || (m = d); - for (var W, ba;R < d;) { - for (Q = 0;Q < J;Q++) { - l[Q].pred = 0; + for (var X, da;T < d;) { + for (S = 0;S < L;S++) { + l[S].pred = 0; } A = 0; - if (1 == J) { - for (E = l[0], P = 0;P < m;P++) { - b(E, 64 * ((E.blocksPerLine + 1) * (R / E.blocksPerLine | 0) + R % E.blocksPerLine)), R++; + if (1 == L) { + for (F = l[0], R = 0;R < m;R++) { + b(F, 64 * ((F.blocksPerLine + 1) * (T / F.blocksPerLine | 0) + T % F.blocksPerLine)), T++; } } else { - for (P = 0;P < m;P++) { - for (Q = 0;Q < J;Q++) { - for (E = l[Q], W = E.h, ba = E.v, S = 0;S < ba;S++) { - for (K = 0;K < W;K++) { - b(E, 64 * ((E.blocksPerLine + 1) * ((R / N | 0) * E.v + S) + (R % N * E.h + K))); + for (R = 0;R < m;R++) { + for (S = 0;S < L;S++) { + for (F = l[S], X = F.h, da = F.v, U = 0;U < da;U++) { + for (N = 0;N < X;N++) { + b(F, 64 * ((F.blocksPerLine + 1) * ((T / P | 0) * F.v + U) + (T % P * F.h + N))); } } } - R++; + T++; } } H = 0; - E = a[h] << 8 | a[h + 1]; - if (65280 >= E) { + F = a[g] << 8 | a[g + 1]; + if (65280 >= F) { throw "marker was not found"; } - if (65488 <= E && 65495 >= E) { - h += 2; + if (65488 <= F && 65495 >= F) { + g += 2; } else { break; } } - return h - C; + return g - y; } - function v(a, h) { - for (var d = h.blocksPerLine, l = h.blocksPerColumn, m = new Int32Array(64), g = 0;g < l;g++) { + function w(a, g) { + for (var d = g.blocksPerLine, l = g.blocksPerColumn, m = new Int32Array(64), h = 0;h < l;h++) { for (var f = 0;f < d;f++) { - for (var b = h, e = 64 * ((h.blocksPerLine + 1) * g + f), r = m, n = b.quantizationTable, p = void 0, k = void 0, t = void 0, u = void 0, v = void 0, F = void 0, T = void 0, N = void 0, C = void 0, B = void 0, B = 0;64 > B;B++) { - r[B] = b.blockData[e + B] * n[B]; + for (var b = g, e = 64 * ((g.blocksPerLine + 1) * h + f), t = m, p = b.quantizationTable, n = void 0, k = void 0, v = void 0, u = void 0, w = void 0, E = void 0, J = void 0, P = void 0, y = void 0, K = void 0, K = 0;64 > K;K++) { + t[K] = b.blockData[e + K] * p[K]; } - for (B = 0;8 > B;++B) { - n = 8 * B, 0 === r[1 + n] && 0 === r[2 + n] && 0 === r[3 + n] && 0 === r[4 + n] && 0 === r[5 + n] && 0 === r[6 + n] && 0 === r[7 + n] ? (C = 5793 * r[0 + n] + 512 >> 10, r[0 + n] = C, r[1 + n] = C, r[2 + n] = C, r[3 + n] = C, r[4 + n] = C, r[5 + n] = C, r[6 + n] = C, r[7 + n] = C) : (p = 5793 * r[0 + n] + 128 >> 8, k = 5793 * r[4 + n] + 128 >> 8, t = r[2 + n], u = r[6 + n], v = 2896 * (r[1 + n] - r[7 + n]) + 128 >> 8, N = 2896 * (r[1 + n] + r[7 + n]) + 128 >> 8, F = r[3 + n] << 4, T = - r[5 + n] << 4, C = p - k + 1 >> 1, p = p + k + 1 >> 1, k = C, C = 3784 * t + 1567 * u + 128 >> 8, t = 1567 * t - 3784 * u + 128 >> 8, u = C, C = v - T + 1 >> 1, v = v + T + 1 >> 1, T = C, C = N + F + 1 >> 1, F = N - F + 1 >> 1, N = C, C = p - u + 1 >> 1, p = p + u + 1 >> 1, u = C, C = k - t + 1 >> 1, k = k + t + 1 >> 1, t = C, C = 2276 * v + 3406 * N + 2048 >> 12, v = 3406 * v - 2276 * N + 2048 >> 12, N = C, C = 799 * F + 4017 * T + 2048 >> 12, F = 4017 * F - 799 * T + 2048 >> 12, T = - C, r[0 + n] = p + N, r[7 + n] = p - N, r[1 + n] = k + T, r[6 + n] = k - T, r[2 + n] = t + F, r[5 + n] = t - F, r[3 + n] = u + v, r[4 + n] = u - v); + for (K = 0;8 > K;++K) { + p = 8 * K, 0 === t[1 + p] && 0 === t[2 + p] && 0 === t[3 + p] && 0 === t[4 + p] && 0 === t[5 + p] && 0 === t[6 + p] && 0 === t[7 + p] ? (y = 5793 * t[0 + p] + 512 >> 10, t[0 + p] = y, t[1 + p] = y, t[2 + p] = y, t[3 + p] = y, t[4 + p] = y, t[5 + p] = y, t[6 + p] = y, t[7 + p] = y) : (n = 5793 * t[0 + p] + 128 >> 8, k = 5793 * t[4 + p] + 128 >> 8, v = t[2 + p], u = t[6 + p], w = 2896 * (t[1 + p] - t[7 + p]) + 128 >> 8, P = 2896 * (t[1 + p] + t[7 + p]) + 128 >> 8, E = t[3 + p] << 4, J = + t[5 + p] << 4, y = n - k + 1 >> 1, n = n + k + 1 >> 1, k = y, y = 3784 * v + 1567 * u + 128 >> 8, v = 1567 * v - 3784 * u + 128 >> 8, u = y, y = w - J + 1 >> 1, w = w + J + 1 >> 1, J = y, y = P + E + 1 >> 1, E = P - E + 1 >> 1, P = y, y = n - u + 1 >> 1, n = n + u + 1 >> 1, u = y, y = k - v + 1 >> 1, k = k + v + 1 >> 1, v = y, y = 2276 * w + 3406 * P + 2048 >> 12, w = 3406 * w - 2276 * P + 2048 >> 12, P = y, y = 799 * E + 4017 * J + 2048 >> 12, E = 4017 * E - 799 * J + 2048 >> 12, J = + y, t[0 + p] = n + P, t[7 + p] = n - P, t[1 + p] = k + J, t[6 + p] = k - J, t[2 + p] = v + E, t[5 + p] = v - E, t[3 + p] = u + w, t[4 + p] = u - w); } - for (B = 0;8 > B;++B) { - n = B, 0 === r[8 + n] && 0 === r[16 + n] && 0 === r[24 + n] && 0 === r[32 + n] && 0 === r[40 + n] && 0 === r[48 + n] && 0 === r[56 + n] ? (C = 5793 * r[B + 0] + 8192 >> 14, r[0 + n] = C, r[8 + n] = C, r[16 + n] = C, r[24 + n] = C, r[32 + n] = C, r[40 + n] = C, r[48 + n] = C, r[56 + n] = C) : (p = 5793 * r[0 + n] + 2048 >> 12, k = 5793 * r[32 + n] + 2048 >> 12, t = r[16 + n], u = r[48 + n], v = 2896 * (r[8 + n] - r[56 + n]) + 2048 >> 12, N = 2896 * (r[8 + n] + r[56 + n]) + 2048 >> 12, - F = r[24 + n], T = r[40 + n], C = p - k + 1 >> 1, p = p + k + 1 >> 1, k = C, C = 3784 * t + 1567 * u + 2048 >> 12, t = 1567 * t - 3784 * u + 2048 >> 12, u = C, C = v - T + 1 >> 1, v = v + T + 1 >> 1, T = C, C = N + F + 1 >> 1, F = N - F + 1 >> 1, N = C, C = p - u + 1 >> 1, p = p + u + 1 >> 1, u = C, C = k - t + 1 >> 1, k = k + t + 1 >> 1, t = C, C = 2276 * v + 3406 * N + 2048 >> 12, v = 3406 * v - 2276 * N + 2048 >> 12, N = C, C = 799 * F + 4017 * T + 2048 >> 12, F = 4017 * F - 799 * - T + 2048 >> 12, T = C, r[0 + n] = p + N, r[56 + n] = p - N, r[8 + n] = k + T, r[48 + n] = k - T, r[16 + n] = t + F, r[40 + n] = t - F, r[24 + n] = u + v, r[32 + n] = u - v); + for (K = 0;8 > K;++K) { + p = K, 0 === t[8 + p] && 0 === t[16 + p] && 0 === t[24 + p] && 0 === t[32 + p] && 0 === t[40 + p] && 0 === t[48 + p] && 0 === t[56 + p] ? (y = 5793 * t[K + 0] + 8192 >> 14, t[0 + p] = y, t[8 + p] = y, t[16 + p] = y, t[24 + p] = y, t[32 + p] = y, t[40 + p] = y, t[48 + p] = y, t[56 + p] = y) : (n = 5793 * t[0 + p] + 2048 >> 12, k = 5793 * t[32 + p] + 2048 >> 12, v = t[16 + p], u = t[48 + p], w = 2896 * (t[8 + p] - t[56 + p]) + 2048 >> 12, P = 2896 * (t[8 + p] + t[56 + p]) + 2048 >> 12, + E = t[24 + p], J = t[40 + p], y = n - k + 1 >> 1, n = n + k + 1 >> 1, k = y, y = 3784 * v + 1567 * u + 2048 >> 12, v = 1567 * v - 3784 * u + 2048 >> 12, u = y, y = w - J + 1 >> 1, w = w + J + 1 >> 1, J = y, y = P + E + 1 >> 1, E = P - E + 1 >> 1, P = y, y = n - u + 1 >> 1, n = n + u + 1 >> 1, u = y, y = k - v + 1 >> 1, k = k + v + 1 >> 1, v = y, y = 2276 * w + 3406 * P + 2048 >> 12, w = 3406 * w - 2276 * P + 2048 >> 12, P = y, y = 799 * E + 4017 * J + 2048 >> 12, E = 4017 * E - 799 * + J + 2048 >> 12, J = y, t[0 + p] = n + P, t[56 + p] = n - P, t[8 + p] = k + J, t[48 + p] = k - J, t[16 + p] = v + E, t[40 + p] = v - E, t[24 + p] = u + w, t[32 + p] = u - w); } - for (B = 0;64 > B;++B) { - p = e + B, k = r[B], k = -2056 >= k ? 0 : 2024 <= k ? 255 : k + 2056 >> 4, b.blockData[p] = k; + for (K = 0;64 > K;++K) { + n = e + K, k = t[K], k = -2056 >= k ? 0 : 2024 <= k ? 255 : k + 2056 >> 4, b.blockData[n] = k; } } } - return h.blockData; + return g.blockData; } - function t(a) { + function v(a) { return 0 >= a ? 0 : 255 <= a ? 255 : a; } var u = new Int32Array([0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63]), l = function() { @@ -26258,33 +26235,33 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } c.prototype.parse = function(c) { function d() { - var b = c[g] << 8 | c[g + 1]; - g += 2; + var b = c[h] << 8 | c[h + 1]; + h += 2; return b; } function l() { - var b = d(), b = c.subarray(g, g + b - 2); - g += b.length; + var b = d(), b = c.subarray(h, h + b - 2); + h += b.length; return b; } function m(b) { for (var a = Math.ceil(b.samplesPerLine / 8 / b.maxH), e = Math.ceil(b.scanLines / 8 / b.maxV), c = 0;c < b.components.length;c++) { H = b.components[c]; - var f = Math.ceil(Math.ceil(b.samplesPerLine / 8) * H.h / b.maxH), g = Math.ceil(Math.ceil(b.scanLines / 8) * H.v / b.maxV); + var f = Math.ceil(Math.ceil(b.samplesPerLine / 8) * H.h / b.maxH), h = Math.ceil(Math.ceil(b.scanLines / 8) * H.v / b.maxV); H.blockData = new Int16Array(64 * e * H.v * (a * H.h + 1)); H.blocksPerLine = f; - H.blocksPerColumn = g; + H.blocksPerColumn = h; } b.mcusPerLine = a; b.mcusPerColumn = e; } - var g = 0, f = null, b = null, e, r, n = [], k = [], t = [], z = d(); - if (65496 != z) { + var h = 0, f = null, b = null, e, t, p = [], k = [], v = [], B = d(); + if (65496 != B) { throw "SOI not found"; } - for (z = d();65497 != z;) { + for (B = d();65497 != B;) { var D; - switch(z) { + switch(B) { case 65504: ; case 65505: @@ -26319,26 +26296,26 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ ; case 65534: D = l(); - 65504 === z && 74 === D[0] && 70 === D[1] && 73 === D[2] && 70 === D[3] && 0 === D[4] && (f = {version:{major:D[5], minor:D[6]}, densityUnits:D[7], xDensity:D[8] << 8 | D[9], yDensity:D[10] << 8 | D[11], thumbWidth:D[12], thumbHeight:D[13], thumbData:D.subarray(14, 14 + 3 * D[12] * D[13])}); - 65518 === z && 65 === D[0] && 100 === D[1] && 111 === D[2] && 98 === D[3] && 101 === D[4] && 0 === D[5] && (b = {version:D[6], flags0:D[7] << 8 | D[8], flags1:D[9] << 8 | D[10], transformCode:D[11]}); + 65504 === B && 74 === D[0] && 70 === D[1] && 73 === D[2] && 70 === D[3] && 0 === D[4] && (f = {version:{major:D[5], minor:D[6]}, densityUnits:D[7], xDensity:D[8] << 8 | D[9], yDensity:D[10] << 8 | D[11], thumbWidth:D[12], thumbHeight:D[13], thumbData:D.subarray(14, 14 + 3 * D[12] * D[13])}); + 65518 === B && 65 === D[0] && 100 === D[1] && 111 === D[2] && 98 === D[3] && 101 === D[4] && 0 === D[5] && (b = {version:D[6], flags0:D[7] << 8 | D[8], flags1:D[9] << 8 | D[10], transformCode:D[11]}); break; case 65499: - for (var z = d() + g - 2, M;g < z;) { - var F = c[g++], T = new Int32Array(64); - if (0 === F >> 4) { + for (var B = d() + h - 2, M;h < B;) { + var E = c[h++], J = new Int32Array(64); + if (0 === E >> 4) { for (D = 0;64 > D;D++) { - M = u[D], T[M] = c[g++]; + M = u[D], J[M] = c[h++]; } } else { - if (1 === F >> 4) { + if (1 === E >> 4) { for (D = 0;64 > D;D++) { - M = u[D], T[M] = d(); + M = u[D], J[M] = d(); } } else { throw "DQT: invalid table spec"; } } - n[F & 15] = T; + p[E & 15] = J; } break; case 65472: @@ -26351,160 +26328,160 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } d(); e = {}; - e.extended = 65473 === z; - e.progressive = 65474 === z; - e.precision = c[g++]; + e.extended = 65473 === B; + e.progressive = 65474 === B; + e.precision = c[h++]; e.scanLines = d(); e.samplesPerLine = d(); e.components = []; e.componentIds = {}; - M = c[g++]; - for (var N = T = 0, z = 0;z < M;z++) { - var F = c[g], C = c[g + 1] >> 4, B = c[g + 1] & 15; - T < C && (T = C); - N < B && (N = B); - D = c[g + 2]; - D = e.components.push({h:C, v:B, quantizationTableId:D}); - e.componentIds[F] = D - 1; - g += 3; + M = c[h++]; + for (var P = J = 0, B = 0;B < M;B++) { + var E = c[h], y = c[h + 1] >> 4, K = c[h + 1] & 15; + J < y && (J = y); + P < K && (P = K); + D = c[h + 2]; + D = e.components.push({h:y, v:K, quantizationTableId:D}); + e.componentIds[E] = D - 1; + h += 3; } - e.maxH = T; - e.maxV = N; + e.maxH = J; + e.maxV = P; m(e); break; case 65476: M = d(); - for (z = 2;z < M;) { - F = c[g++]; - T = new Uint8Array(16); - for (D = N = 0;16 > D;D++, g++) { - N += T[D] = c[g]; + for (B = 2;B < M;) { + E = c[h++]; + J = new Uint8Array(16); + for (D = P = 0;16 > D;D++, h++) { + P += J[D] = c[h]; } - C = new Uint8Array(N); - for (D = 0;D < N;D++, g++) { - C[D] = c[g]; + y = new Uint8Array(P); + for (D = 0;D < P;D++, h++) { + y[D] = c[h]; } - z += 17 + N; - (0 === F >> 4 ? t : k)[F & 15] = a(T, C); + B += 17 + P; + (0 === E >> 4 ? v : k)[E & 15] = a(J, y); } break; case 65501: d(); - r = d(); + t = d(); break; case 65498: d(); - F = c[g++]; + E = c[h++]; M = []; - for (var H, z = 0;z < F;z++) { - D = e.componentIds[c[g++]], H = e.components[D], D = c[g++], H.huffmanTableDC = t[D >> 4], H.huffmanTableAC = k[D & 15], D = H.quantizationTableId, H.quantizationTable = n[D], M.push(H); + for (var H, B = 0;B < E;B++) { + D = e.componentIds[c[h++]], H = e.components[D], D = c[h++], H.huffmanTableDC = v[D >> 4], H.huffmanTableAC = k[D & 15], D = H.quantizationTableId, H.quantizationTable = p[D], M.push(H); } - z = c[g++]; - D = c[g++]; - F = c[g++]; - z = p(c, g, e, M, r, z, D, F >> 4, F & 15); - g += z; + B = c[h++]; + D = c[h++]; + E = c[h++]; + B = n(c, h, e, M, t, B, D, E >> 4, E & 15); + h += B; break; default: - if (255 == c[g - 3] && 192 <= c[g - 2] && 254 >= c[g - 2]) { - g -= 3; + if (255 == c[h - 3] && 192 <= c[h - 2] && 254 >= c[h - 2]) { + h -= 3; break; } - for (;g < c.length && 255 !== c[g];) { - g++; + for (;h < c.length && 255 !== c[h];) { + h++; } ; } - z = d(); + B = d(); } this.width = e.samplesPerLine; this.height = e.scanLines; this.jfif = f; this.adobe = b; this.components = []; - for (z = 0;z < e.components.length;z++) { - H = e.components[z], this.components.push({output:v(e, H), scaleX:H.h / e.maxH, scaleY:H.v / e.maxV, blocksPerLine:H.blocksPerLine, blocksPerColumn:H.blocksPerColumn}); + for (B = 0;B < e.components.length;B++) { + H = e.components[B], this.components.push({output:w(e, H), scaleX:H.h / e.maxH, scaleY:H.v / e.maxV, blocksPerLine:H.blocksPerLine, blocksPerColumn:H.blocksPerColumn}); } this.numComponents = this.components.length; }; c.prototype._getLinearizedBlockData = function(a, c) { - var d = this.width / a, m = this.height / c, g, f, b, e, r, n, l = 0, k, p = this.components.length, t = a * c * p, u = new Uint8Array(t), v = new Uint32Array(a); - for (n = 0;n < p;n++) { - g = this.components[n]; - f = g.scaleX * d; - b = g.scaleY * m; - l = n; - k = g.output; - e = g.blocksPerLine + 1 << 3; - for (r = 0;r < a;r++) { - g = 0 | r * f, v[r] = (g & 4294967288) << 3 | g & 7; + var d = this.width / a, m = this.height / c, h, f, b, e, l, p, n = 0, k, v = this.components.length, u = a * c * v, w = new Uint8Array(u), E = new Uint32Array(a); + for (p = 0;p < v;p++) { + h = this.components[p]; + f = h.scaleX * d; + b = h.scaleY * m; + n = p; + k = h.output; + e = h.blocksPerLine + 1 << 3; + for (l = 0;l < a;l++) { + h = 0 | l * f, E[l] = (h & 4294967288) << 3 | h & 7; } for (f = 0;f < c;f++) { - for (g = 0 | f * b, g = e * (g & 4294967288) | (g & 7) << 3, r = 0;r < a;r++) { - u[l] = k[g + v[r]], l += p; + for (h = 0 | f * b, h = e * (h & 4294967288) | (h & 7) << 3, l = 0;l < a;l++) { + w[n] = k[h + E[l]], n += v; } } } if (m = this.decodeTransform) { - for (n = 0;n < t;) { - for (d = g = 0;g < p;g++, n++, d += 2) { - u[n] = (u[n] * m[d] >> 8) + m[d + 1]; + for (p = 0;p < u;) { + for (d = h = 0;h < v;h++, p++, d += 2) { + w[p] = (w[p] * m[d] >> 8) + m[d + 1]; } } } - return u; + return w; }; c.prototype._isColorConversionNeeded = function() { return this.adobe && this.adobe.transformCode ? !0 : 3 == this.numComponents ? !0 : !1; }; c.prototype._convertYccToRgb = function(a) { - for (var c, d, m, g = 0, f = a.length;g < f;g += 3) { - c = a[g], d = a[g + 1], m = a[g + 2], a[g] = t(c - 179.456 + 1.402 * m), a[g + 1] = t(c + 135.459 - .344 * d - .714 * m), a[g + 2] = t(c - 226.816 + 1.772 * d); + for (var c, d, m, h = 0, f = a.length;h < f;h += 3) { + c = a[h], d = a[h + 1], m = a[h + 2], a[h] = v(c - 179.456 + 1.402 * m), a[h + 1] = v(c + 135.459 - .344 * d - .714 * m), a[h + 2] = v(c - 226.816 + 1.772 * d); } return a; }; c.prototype._convertYcckToRgb = function(a) { - for (var c, d, m, g, f, b, e, r, n, l, k, p, u, v, F = 0, T = 0, N = a.length;T < N;T += 4) { - c = a[T]; - d = a[T + 1]; - m = a[T + 2]; - g = a[T + 3]; + for (var c, d, m, h, f, b, e, l, p, n, k, u, w, M, E = 0, J = 0, P = a.length;J < P;J += 4) { + c = a[J]; + d = a[J + 1]; + m = a[J + 2]; + h = a[J + 3]; f = d * d; b = d * m; e = d * c; - r = d * g; - n = m * m; - l = m * g; + l = d * h; + p = m * m; + n = m * h; k = m * c; - p = c * c; - u = c * g; - v = g * g; - var C = -122.67195406894 - 6.60635669420364E-5 * f + 4.37130475926232E-4 * b - 5.4080610064599E-5 * e + 4.8449797120281E-4 * r - .154362151871126 * d - 9.57964378445773E-4 * n + 8.17076911346625E-4 * k - .00477271405408747 * l + 1.53380253221734 * m + 9.61250184130688E-4 * p - .00266257332283933 * u + .48357088451265 * c - 3.36197177618394E-4 * v + .484791561490776 * g, B = 107.268039397724 + 2.19927104525741E-5 * f - 6.40992018297945E-4 * b + 6.59397001245577E-4 * e + 4.26105652938837E-4 * - r - .176491792462875 * d - 7.78269941513683E-4 * n + .00130872261408275 * k + 7.70482631801132E-4 * l - .151051492775562 * m + .00126935368114843 * p - .00265090189010898 * u + .25802910206845 * c - 3.18913117588328E-4 * v - .213742400323665 * g; - c = -20.810012546947 - 5.70115196973677E-4 * f - 2.63409051004589E-5 * b + .0020741088115012 * e - .00288260236853442 * r + .814272968359295 * d - 1.53496057440975E-5 * n - 1.32689043961446E-4 * k + 5.60833691242812E-4 * l - .195152027534049 * m + .00174418132927582 * p - .00255243321439347 * u + .116935020465145 * c - 3.43531996510555E-4 * v + .24165260232407 * g; - a[F++] = t(C); - a[F++] = t(B); - a[F++] = t(c); + u = c * c; + w = c * h; + M = h * h; + var y = -122.67195406894 - 6.60635669420364E-5 * f + 4.37130475926232E-4 * b - 5.4080610064599E-5 * e + 4.8449797120281E-4 * l - .154362151871126 * d - 9.57964378445773E-4 * p + 8.17076911346625E-4 * k - .00477271405408747 * n + 1.53380253221734 * m + 9.61250184130688E-4 * u - .00266257332283933 * w + .48357088451265 * c - 3.36197177618394E-4 * M + .484791561490776 * h, K = 107.268039397724 + 2.19927104525741E-5 * f - 6.40992018297945E-4 * b + 6.59397001245577E-4 * e + 4.26105652938837E-4 * + l - .176491792462875 * d - 7.78269941513683E-4 * p + .00130872261408275 * k + 7.70482631801132E-4 * n - .151051492775562 * m + .00126935368114843 * u - .00265090189010898 * w + .25802910206845 * c - 3.18913117588328E-4 * M - .213742400323665 * h; + c = -20.810012546947 - 5.70115196973677E-4 * f - 2.63409051004589E-5 * b + .0020741088115012 * e - .00288260236853442 * l + .814272968359295 * d - 1.53496057440975E-5 * p - 1.32689043961446E-4 * k + 5.60833691242812E-4 * n - .195152027534049 * m + .00174418132927582 * u - .00255243321439347 * w + .116935020465145 * c - 3.43531996510555E-4 * M + .24165260232407 * h; + a[E++] = v(y); + a[E++] = v(K); + a[E++] = v(c); } return a; }; c.prototype._convertYcckToCmyk = function(a) { - for (var c, d, m, g = 0, f = a.length;g < f;g += 4) { - c = a[g], d = a[g + 1], m = a[g + 2], a[g] = t(434.456 - c - 1.402 * m), a[g + 1] = t(119.541 - c + .344 * d + .714 * m), a[g + 2] = t(481.816 - c - 1.772 * d); + for (var c, d, m, h = 0, f = a.length;h < f;h += 4) { + c = a[h], d = a[h + 1], m = a[h + 2], a[h] = v(434.456 - c - 1.402 * m), a[h + 1] = v(119.541 - c + .344 * d + .714 * m), a[h + 2] = v(481.816 - c - 1.772 * d); } return a; }; c.prototype._convertCmykToRgb = function(a) { - for (var c, d, m, g, f = 0, b = 1 / 255 / 255, e = 0, r = a.length;e < r;e += 4) { + for (var c, d, m, h, f = 0, b = 1 / 255 / 255, e = 0, l = a.length;e < l;e += 4) { c = a[e]; d = a[e + 1]; m = a[e + 2]; - g = a[e + 3]; - var n = c * (-4.387332384609988 * c + 54.48615194189176 * d + 18.82290502165302 * m + 212.25662451639585 * g - 72734.4411664936) + d * (1.7149763477362134 * d - 5.6096736904047315 * m - 17.873870861415444 * g - 1401.7366389350734) + m * (-2.5217340131683033 * m - 21.248923337353073 * g + 4465.541406466231) - g * (21.86122147463605 * g + 48317.86113160301), l = c * (8.841041422036149 * c + 60.118027045597366 * d + 6.871425592049007 * m + 31.159100130055922 * g - 20220.756542821975) + d * - (-15.310361306967817 * d + 17.575251261109482 * m + 131.35250912493976 * g - 48691.05921601825) + m * (4.444339102852739 * m + 9.8632861493405 * g - 6341.191035517494) - g * (20.737325471181034 * g + 47890.15695978492); - c = c * (.8842522430003296 * c + 8.078677503112928 * d + 30.89978309703729 * m - .23883238689178934 * g - 3616.812083916688) + d * (10.49593273432072 * d + 63.02378494754052 * m + 50.606957656360734 * g - 28620.90484698408) + m * (.03296041114873217 * m + 115.60384449646641 * g - 49363.43385999684) - g * (22.33816807309886 * g + 45932.16563550634); + h = a[e + 3]; + var p = c * (-4.387332384609988 * c + 54.48615194189176 * d + 18.82290502165302 * m + 212.25662451639585 * h - 72734.4411664936) + d * (1.7149763477362134 * d - 5.6096736904047315 * m - 17.873870861415444 * h - 1401.7366389350734) + m * (-2.5217340131683033 * m - 21.248923337353073 * h + 4465.541406466231) - h * (21.86122147463605 * h + 48317.86113160301), n = c * (8.841041422036149 * c + 60.118027045597366 * d + 6.871425592049007 * m + 31.159100130055922 * h - 20220.756542821975) + d * + (-15.310361306967817 * d + 17.575251261109482 * m + 131.35250912493976 * h - 48691.05921601825) + m * (4.444339102852739 * m + 9.8632861493405 * h - 6341.191035517494) - h * (20.737325471181034 * h + 47890.15695978492); + c = c * (.8842522430003296 * c + 8.078677503112928 * d + 30.89978309703729 * m - .23883238689178934 * h - 3616.812083916688) + d * (10.49593273432072 * d + 63.02378494754052 * m + 50.606957656360734 * h - 28620.90484698408) + m * (.03296041114873217 * m + 115.60384449646641 * h - 49363.43385999684) - h * (22.33816807309886 * h + 45932.16563550634); + a[f++] = 0 <= p ? 255 : -16581375 >= p ? 0 : 255 + p * b | 0; a[f++] = 0 <= n ? 255 : -16581375 >= n ? 0 : 255 + n * b | 0; - a[f++] = 0 <= l ? 255 : -16581375 >= l ? 0 : 255 + l * b | 0; a[f++] = 0 <= c ? 255 : -16581375 >= c ? 0 : 255 + c * b | 0; } return a; @@ -26519,21 +26496,21 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ c.prototype.copyToImageData = function(a) { var c = a.width, d = a.height, m = c * d * 4; a = a.data; - var c = this.getData(c, d, !0), g = d = 0, f, b, e, r; + var c = this.getData(c, d, !0), h = d = 0, f, b, e, l; switch(this.components.length) { case 1: - for (;g < m;) { - f = c[d++], a[g++] = f, a[g++] = f, a[g++] = f, a[g++] = 255; + for (;h < m;) { + f = c[d++], a[h++] = f, a[h++] = f, a[h++] = f, a[h++] = 255; } break; case 3: - for (;g < m;) { - e = c[d++], r = c[d++], f = c[d++], a[g++] = e, a[g++] = r, a[g++] = f, a[g++] = 255; + for (;h < m;) { + e = c[d++], l = c[d++], f = c[d++], a[h++] = e, a[h++] = l, a[h++] = f, a[h++] = 255; } break; case 4: - for (;g < m;) { - e = c[d++], r = c[d++], f = c[d++], b = c[d++], e = 255 - t(e * (1 - b / 255) + b), r = 255 - t(r * (1 - b / 255) + b), f = 255 - t(f * (1 - b / 255) + b), a[g++] = e, a[g++] = r, a[g++] = f, a[g++] = 255; + for (;h < m;) { + e = c[d++], l = c[d++], f = c[d++], b = c[d++], e = 255 - v(e * (1 - b / 255) + b), l = 255 - v(l * (1 - b / 255) + b), f = 255 - v(f * (1 - b / 255) + b), a[h++] = e, a[h++] = l, a[h++] = f, a[h++] = 255; } break; default: @@ -26550,46 +26527,46 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ function a() { this.bitBuffer = this.bitLength = 0; } - function p(a) { + function n(a) { if (this.pos + a > this.end) { throw d.StreamNoDataError; } } - function v() { + function w() { return this.end - this.pos; } - function t(a, h) { + function v(a, g) { var d = new l(this.bytes); d.pos = a; - d.end = h; + d.end = g; return d; } function u(a) { - var h = this.bytes, d = this.end + a.length; - if (d > h.length) { + var g = this.bytes, d = this.end + a.length; + if (d > g.length) { throw "stream buffer overfow"; } - h.set(a, this.end); + g.set(a, this.end); this.end = d; } d.StreamNoDataError = {}; var l = function() { - return function(c, h, d, l) { - void 0 === h && (h = 0); - c.buffer instanceof ArrayBuffer && (h += c.byteOffset, c = c.buffer); - void 0 === d && (d = c.byteLength - h); + return function(c, g, d, l) { + void 0 === g && (g = 0); + c.buffer instanceof ArrayBuffer && (g += c.byteOffset, c = c.buffer); + void 0 === d && (d = c.byteLength - g); void 0 === l && (l = d); - var m = new Uint8Array(c, h, l); - c = new DataView(c, h, l); + var m = new Uint8Array(c, g, l); + c = new DataView(c, g, l); c.bytes = m; c.pos = 0; c.end = d; c.bitBuffer = 0; c.bitLength = 0; c.align = a; - c.ensure = p; - c.remaining = v; - c.substream = t; + c.ensure = n; + c.remaining = w; + c.substream = v; c.push = u; return c; }; @@ -26600,21 +26577,21 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ (function(d) { (function(k) { function a() { - p || (p = new Worker(k.MP3WORKER_PATH), p.addEventListener("message", function(a) { + n || (n = new Worker(k.MP3WORKER_PATH), n.addEventListener("message", function(a) { "console" === a.data.action && console[a.data.method].call(console, a.data.message); })); - return p; + return n; } k.MP3WORKER_PATH = "../../lib/mp3/mp3worker.js"; - var p = null, v = 0, t = function() { - function k() { - this._sessionId = v++; + var n = null, w = 0, v = function() { + function n() { + this._sessionId = w++; this._onworkermessageBound = this.onworkermessage.bind(this); this._worker = a(); this._worker.addEventListener("message", this._onworkermessageBound, !1); this._worker.postMessage({sessionId:this._sessionId, action:"create"}); } - k.prototype.onworkermessage = function(a) { + n.prototype.onworkermessage = function(a) { if (a.data.sessionId === this._sessionId) { switch(a.data.action) { case "closed": @@ -26640,51 +26617,51 @@ SWF$$inline_723.traceLevel = SWF$$inline_723.parserOptions.register(new Option$$ } } }; - k.prototype.pushAsync = function(a) { + n.prototype.pushAsync = function(a) { this._worker.postMessage({sessionId:this._sessionId, action:"decode", data:a}); }; - k.prototype.close = function() { + n.prototype.close = function() { this._worker.postMessage({sessionId:this._sessionId, action:"close"}); }; - k.processAll = function(a) { - var c = 8E3, h = new Float32Array(c), q = 0, s = [], m = !1, g = new d.PromiseWrapper, f = new k; - f.onframedata = function(b, a, f, g) { + n.processAll = function(a) { + var c = 8E3, g = new Float32Array(c), q = 0, r = [], m = !1, h = new d.PromiseWrapper, f = new n; + f.onframedata = function(b, a, f, h) { a = b.length + q; if (a > c) { do { c *= 2; } while (a > c); a = new Float32Array(c); - a.set(h); - h = a; + a.set(g); + g = a; } - h.set(b, q); + g.set(b, q); q += b.length; }; f.onid3tag = function(b) { - s.push(b); + r.push(b); }; f.onclosed = function() { - m || g.resolve({data:h.subarray(0, q), id3Tags:s}); + m || h.resolve({data:g.subarray(0, q), id3Tags:r}); }; f.onerror = function(b) { - m || (m = !0, g.reject(b)); + m || (m = !0, h.reject(b)); }; f.pushAsync(a); f.close(); - return g.promise; + return h.promise; }; - return k; + return n; }(); - k.MP3DecoderSession = t; + k.MP3DecoderSession = v; })(d.SWF || (d.SWF = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -26694,7 +26671,7 @@ __extends = this.__extends || function(d, k) { function a(b, a) { return b && a ? "boldItalic" : b ? "bold" : a ? "italic" : "regular"; } - function p(b, a) { + function n(b, a) { switch(b.code) { case 6: ; @@ -26739,7 +26716,7 @@ __extends = this.__extends || function(d, k) { case 39: return b; case 87: - return{type:"binary", id:b.id, data:b.data}; + return {type:"binary", id:b.id, data:b.data}; case 11: ; case 33: @@ -26748,8 +26725,8 @@ __extends = this.__extends || function(d, k) { return b; } } - var v = d.SWF.Parser, t = k.Stream, u = d.ArrayUtilities.Inflate, l = d.ArrayUtilities.LzmaDecoder, c = v.SwfTag, h = v.DefinitionTags, q = v.ImageDefinitionTags, s = v.FontDefinitionTags, m = v.ControlTags, g = function() { - function g(b, a) { + var w = d.SWF.Parser, v = k.Stream, u = d.ArrayUtilities.Inflate, l = d.ArrayUtilities.LzmaDecoder, c = w.SwfTag, g = w.DefinitionTags, q = w.ImageDefinitionTags, r = w.FontDefinitionTags, m = w.ControlTags, h = function() { + function h(b, a) { this.isCompressed = !1; this.swfVersion = 0; this.useAVM1 = !0; @@ -26772,14 +26749,14 @@ __extends = this.__extends || function(d, k) { this._endTagEncountered = !1; this.readHeaderAndInitialize(b); } - g.prototype.appendLoadedData = function(b) { + h.prototype.appendLoadedData = function(b) { this.bytesLoaded += b.length; this._endTagEncountered || (this.isCompressed ? this._decompressor.push(b) : this.processDecompressedData(b), this.scanLoadedData()); }; - g.prototype.finishLoading = function() { + h.prototype.finishLoading = function() { this.isCompressed && (this._decompressor.close(), this._decompressor = null, this.scanLoadedData()); }; - g.prototype.getSymbol = function(b) { + h.prototype.getSymbol = function(b) { if (this.eagerlyParsedSymbolsMap[b]) { return this.eagerlyParsedSymbolsMap[b]; } @@ -26791,18 +26768,18 @@ __extends = this.__extends || function(d, k) { a.className = this.symbolClassesMap[b] || null; return a; }; - g.prototype.getParsedTag = function(b) { + h.prototype.getParsedTag = function(b) { k.enterTimeline("Parse tag " + c[b.tagCode]); this._dataStream.align(); this._dataStream.pos = b.byteOffset; - var a = {code:b.tagCode}, e = v.LowLevel.tagHandlers[b.tagCode], f = Math.min(b.byteOffset + b.byteLength, this._dataStream.end); + var a = {code:b.tagCode}, e = w.LowLevel.tagHandlers[b.tagCode], f = Math.min(b.byteOffset + b.byteLength, this._dataStream.end); e(this.data, this._dataStream, a, this.swfVersion, b.tagCode, f); this._dataStream.pos !== f && this.emitTagSlopWarning(b, f); - b = p(a, this.dictionary); + b = n(a, this.dictionary); k.leaveTimeline(); return b; }; - g.prototype.readHeaderAndInitialize = function(b) { + h.prototype.readHeaderAndInitialize = function(b) { k.enterTimeline("Initialize SWFFile"); var a = 67 === b[0], e = 90 === b[0]; this.isCompressed = a || e; @@ -26811,7 +26788,7 @@ __extends = this.__extends || function(d, k) { this._uncompressedLength = (b[4] | b[5] << 8 | b[6] << 16 | b[7] << 24) >>> 0; this.bytesLoaded = b.length; this.data = new Uint8Array(this.isCompressed ? this._uncompressedLength : this.bytesTotal); - this._dataStream = new t(this.data.buffer); + this._dataStream = new v(this.data.buffer); this._dataStream.pos = 8; this._dataView = this._dataStream; a ? (this.data.set(b.subarray(0, 8)), this._uncompressedLoadedLength = 8, this._decompressor = u.create(!0), this._decompressor.onData = this.processFirstBatchOfDecompressedData.bind(this), this._decompressor.onError = function(b) { @@ -26823,31 +26800,31 @@ __extends = this.__extends || function(d, k) { this._lastScanPosition = this._dataStream.pos; this.scanLoadedData(); }; - g.prototype.parseHeaderContents = function() { - var b = v.LowLevel.readHeader(this.data, this._dataStream); + h.prototype.parseHeaderContents = function() { + var b = w.LowLevel.readHeader(this.data, this._dataStream); this.bounds = b.bounds; this.frameRate = b.frameRate; this.frameCount = b.frameCount; }; - g.prototype.processFirstBatchOfDecompressedData = function(b) { + h.prototype.processFirstBatchOfDecompressedData = function(b) { this.processDecompressedData(b); this.parseHeaderContents(); this._decompressor.onData = this.processDecompressedData.bind(this); }; - g.prototype.processDecompressedData = function(b) { + h.prototype.processDecompressedData = function(b) { var a = Math.min(b.length, this._uncompressedLength - this._uncompressedLoadedLength); d.ArrayUtilities.memCopy(this.data, b, this._uncompressedLoadedLength, 0, a); this._uncompressedLoadedLength += a; }; - g.prototype.scanLoadedData = function() { + h.prototype.scanLoadedData = function() { k.enterTimeline("Scan loaded SWF file tags"); this._dataStream.pos = this._lastScanPosition; this.scanTagsToOffset(this._uncompressedLoadedLength, !0); this._lastScanPosition = this._dataStream.pos; k.leaveTimeline(); }; - g.prototype.scanTagsToOffset = function(b, a) { - for (var e = new r(0, 0, 0), c;(c = this._dataStream.pos) < b - 1 && this.parseNextTagHeader(e);) { + h.prototype.scanTagsToOffset = function(b, a) { + for (var e = new t(0, 0, 0), c;(c = this._dataStream.pos) < b - 1 && this.parseNextTagHeader(e);) { if (0 === e.tagCode) { a && (this._endTagEncountered = !0, console.log("SWF load time: " + (.001 * (Date.now() - this._loadStarted)).toFixed(4) + "sec")); break; @@ -26861,13 +26838,13 @@ __extends = this.__extends || function(d, k) { this._dataStream.pos !== f && this.emitTagSlopWarning(e, f); } }; - g.prototype.parseNextTagHeader = function(b) { + h.prototype.parseNextTagHeader = function(b) { var a = this._dataStream.pos, e = this._dataView.getUint16(a, !0), a = a + 2; b.tagCode = e >> 6; e &= 63; if (63 === e) { if (a + 4 > this._uncompressedLoadedLength) { - return!1; + return !1; } e = this._dataView.getUint32(a, !0); a += 4; @@ -26875,75 +26852,75 @@ __extends = this.__extends || function(d, k) { this._dataStream.pos = a; b.byteOffset = a; b.byteLength = e; - return!0; + return !0; }; - g.prototype.scanTag = function(a, f) { - var g = this._dataStream, d = g.pos, n = a.tagCode, r = a.byteLength; - if (39 === n) { - this.addLazySymbol(n, d, r), d += r, g.pos += 4, this.scanTagsToOffset(d, !1), this._dataStream.pos !== d && this.emitTagSlopWarning(a, d); + h.prototype.scanTag = function(a, f) { + var h = this._dataStream, p = h.pos, d = a.tagCode, l = a.byteLength; + if (39 === d) { + this.addLazySymbol(d, p, l), p += l, h.pos += 4, this.scanTagsToOffset(p, !1), this._dataStream.pos !== p && this.emitTagSlopWarning(a, p); } else { - if (q[n]) { - g = this.addLazySymbol(n, d, r), this.decodeEmbeddedImage(g); + if (q[d]) { + h = this.addLazySymbol(d, p, l), this.decodeEmbeddedImage(h); } else { - if (s[n]) { - g = this.addLazySymbol(n, d, r), this.registerEmbeddedFont(g); + if (r[d]) { + h = this.addLazySymbol(d, p, l), this.registerEmbeddedFont(h); } else { - if (h[n]) { - this.addLazySymbol(n, d, r), this.jumpToNextTag(r); + if (g[d]) { + this.addLazySymbol(d, p, l), this.jumpToNextTag(l); } else { - if (f || 76 === n || 56 === n) { - if (m[n]) { - this.addControlTag(n, d, r); + if (f || 76 === d || 56 === d) { + if (m[d]) { + this.addControlTag(d, p, l); } else { - switch(n) { + switch(d) { case 69: - this.setFileAttributes(r); + this.setFileAttributes(l); break; case 86: - this.setSceneAndFrameLabelData(r); + this.setSceneAndFrameLabelData(l); break; case 9: - this.backgroundColor = v.LowLevel.rgb(this.data, this._dataStream); + this.backgroundColor = w.LowLevel.rgb(this.data, this._dataStream); break; case 8: - this._jpegTables || (this._jpegTables = 0 === r ? new Uint8Array(0) : this.data.subarray(g.pos, g.pos + r - 2)); - this.jumpToNextTag(r); + this._jpegTables || (this._jpegTables = 0 === l ? new Uint8Array(0) : this.data.subarray(h.pos, h.pos + l - 2)); + this.jumpToNextTag(l); break; case 82: ; case 72: - this.useAVM1 ? this.jumpToNextTag(r) : (d += r, r = new b, 82 === n ? (r.flags = v.readUi32(this.data, g), r.name = v.readString(this.data, g, -1)) : (r.flags = 0, r.name = ""), r.data = this.data.subarray(g.pos, d), this.abcBlocks.push(r), g.pos = d); + this.useAVM1 ? this.jumpToNextTag(l) : (p += l, l = new b, 82 === d ? (l.flags = w.readUi32(this.data, h), l.name = w.readString(this.data, h, -1)) : (l.flags = 0, l.name = ""), l.data = this.data.subarray(h.pos, p), this.abcBlocks.push(l), h.pos = p); break; case 76: - d += r; - for (r = v.readUi16(this.data, g);r--;) { - var n = v.readUi16(this.data, g), l = v.readString(this.data, g, -1); - this.symbolClassesMap[n] = l; - this.symbolClassesList.push({id:n, className:l}); + p += l; + for (l = w.readUi16(this.data, h);l--;) { + var d = w.readUi16(this.data, h), t = w.readString(this.data, h, -1); + this.symbolClassesMap[d] = t; + this.symbolClassesList.push({id:d, className:t}); } - g.pos = d; + h.pos = p; break; case 59: - this.useAVM1 && (n = this._currentInitActionBlocks || (this._currentInitActionBlocks = []), g = this._dataView.getUint16(g.pos, !0), n.push({spriteId:g, actionsData:this.data.subarray(d + 2, d + r)})); - this.jumpToNextTag(r); + this.useAVM1 && (d = this._currentInitActionBlocks || (this._currentInitActionBlocks = []), h = this._dataView.getUint16(h.pos, !0), d.push({spriteId:h, actionsData:this.data.subarray(p + 2, p + l)})); + this.jumpToNextTag(l); break; case 12: - this.useAVM1 && (this._currentActionBlocks || (this._currentActionBlocks = [])).push(this.data.subarray(g.pos, g.pos + r)); - this.jumpToNextTag(r); + this.useAVM1 && (this._currentActionBlocks || (this._currentActionBlocks = [])).push(this.data.subarray(h.pos, h.pos + l)); + this.jumpToNextTag(l); break; case 18: ; case 45: - g = v.LowLevel.soundStreamHead(this.data, this._dataStream, d + r); - this._currentSoundStreamHead = v.SoundStream.FromTag(g); + h = w.LowLevel.soundStreamHead(this.data, this._dataStream, p + l); + this._currentSoundStreamHead = w.SoundStream.FromTag(h); break; case 19: - this._currentSoundStreamBlock = this.data.subarray(g.pos, g.pos += r); + this._currentSoundStreamBlock = this.data.subarray(h.pos, h.pos += l); break; case 43: - d = g.pos + r; - this._currentFrameLabel = v.readString(this.data, g, -1); - g.pos = d; + p = h.pos + l; + this._currentFrameLabel = w.readString(this.data, h, -1); + h.pos = p; break; case 1: this.finishFrame(); @@ -26951,17 +26928,17 @@ __extends = this.__extends || function(d, k) { case 0: break; case 56: - d = g.pos + r; - r = v.readUi16(this.data, g); - for (l = this._currentExports || (this._currentExports = []);r--;) { - var n = v.readUi16(this.data, g), k = v.readString(this.data, g, -1); - if (g.pos > d) { - g.pos = d; + p = h.pos + l; + l = w.readUi16(this.data, h); + for (t = this._currentExports || (this._currentExports = []);l--;) { + var d = w.readUi16(this.data, h), n = w.readString(this.data, h, -1); + if (h.pos > p) { + h.pos = p; break; } - l.push(new e(n, k)); + t.push(new e(d, n)); } - g.pos = d; + h.pos = p; break; case 23: ; @@ -26976,7 +26953,7 @@ __extends = this.__extends || function(d, k) { case 57: ; case 71: - this.jumpToNextTag(r); + this.jumpToNextTag(l); break; case 74: ; @@ -26985,7 +26962,7 @@ __extends = this.__extends || function(d, k) { case 65: ; case 66: - this.jumpToNextTag(r); + this.jumpToNextTag(l); break; case 58: ; @@ -27000,7 +26977,7 @@ __extends = this.__extends || function(d, k) { case 77: ; case 24: - this.jumpToNextTag(r); + this.jumpToNextTag(l); break; case 51: ; @@ -27025,129 +27002,129 @@ __extends = this.__extends || function(d, k) { case 16: ; case 29: - console.info("Ignored tag (these shouldn't occur) " + n + ": " + c[n]); - this.jumpToNextTag(r); + console.info("Ignored tag (these shouldn't occur) " + d + ": " + c[d]); + this.jumpToNextTag(l); break; default: - this.jumpToNextTag(r); + this.jumpToNextTag(l); } } } else { - this.jumpToNextTag(r); + this.jumpToNextTag(l); } } } } } }; - g.prototype.parseSpriteTimeline = function(b) { + h.prototype.parseSpriteTimeline = function(b) { k.enterTimeline("parseSpriteTimeline"); - var a = this.data, e = this._dataStream, c = this._dataView, g = {id:b.id, type:"sprite", frames:[]}, h = b.byteOffset + b.byteLength, m = g.frames, d = null, n = [], l = null, q = null, s = null, p = null; + var a = this.data, e = this._dataStream, c = this._dataView, h = {id:b.id, type:"sprite", frames:[]}, g = b.byteOffset + b.byteLength, m = h.frames, p = null, d = [], l = null, q = null, r = null, n = null; e.pos = b.byteOffset + 2; - g.frameCount = c.getUint16(e.pos, !0); + h.frameCount = c.getUint16(e.pos, !0); e.pos += 2; - for (b = new r(0, 0, 0);e.pos < h;) { + for (b = new t(0, 0, 0);e.pos < g;) { this.parseNextTagHeader(b); - var t = b.byteLength, x = b.tagCode; - if (e.pos + t > h) { + var v = b.byteLength, u = b.tagCode; + if (e.pos + v > g) { break; } - if (v.ControlTags[x]) { - n.push(new r(x, e.pos, t)); + if (w.ControlTags[u]) { + d.push(new t(u, e.pos, v)); } else { - switch(x) { + switch(u) { case 12: - this.useAVM1 && (s || (s = []), s.push(a.subarray(e.pos, e.pos + t))); + this.useAVM1 && (r || (r = []), r.push(a.subarray(e.pos, e.pos + v))); break; case 59: - this.useAVM1 && (p || (p = []), x = c.getUint16(e.pos, !0), e.pos += 2, p.push({spriteId:x, actionsData:a.subarray(e.pos, e.pos + t)})); + this.useAVM1 && (n || (n = []), u = c.getUint16(e.pos, !0), e.pos += 2, n.push({spriteId:u, actionsData:a.subarray(e.pos, e.pos + v)})); break; case 43: - t = e.pos + t; - d = v.readString(a, e, -1); - e.pos = t; - t = 0; + v = e.pos + v; + p = w.readString(a, e, -1); + e.pos = v; + v = 0; break; case 1: - m.push(new f(n, d, l, q, s, p, null)); - d = null; - n = []; - p = s = q = l = null; + m.push(new f(d, p, l, q, r, n, null)); + p = null; + d = []; + n = r = q = l = null; break; case 0: - e.pos = h, t = 0; + e.pos = g, v = 0; } } - e.pos += t; + e.pos += v; } k.leaveTimeline(); - return g; + return h; }; - g.prototype.jumpToNextTag = function(b) { + h.prototype.jumpToNextTag = function(b) { this._dataStream.pos += b; }; - g.prototype.emitTagSlopWarning = function(b, a) { + h.prototype.emitTagSlopWarning = function(b, a) { this._dataStream.pos = a; }; - g.prototype.finishFrame = function() { + h.prototype.finishFrame = function() { 0 === this.pendingUpdateDelays && this.framesLoaded++; this.frames.push(new f(this._currentControlTags, this._currentFrameLabel, this._currentSoundStreamHead, this._currentSoundStreamBlock, this._currentActionBlocks, this._currentInitActionBlocks, this._currentExports)); this._currentExports = this._currentInitActionBlocks = this._currentActionBlocks = this._currentSoundStreamBlock = this._currentSoundStreamHead = this._currentControlTags = this._currentFrameLabel = null; }; - g.prototype.setFileAttributes = function(b) { + h.prototype.setFileAttributes = function(b) { this.attributes && this.jumpToNextTag(b); b = this.data[this._dataStream.pos]; this._dataStream.pos += 4; this.attributes = {network:b & 1, relativeUrls:b & 2, noCrossDomainCaching:b & 4, doAbc:b & 8, hasMetadata:b & 16, useGpu:b & 32, useDirectBlit:b & 64}; this.useAVM1 = !this.attributes.doAbc; }; - g.prototype.setSceneAndFrameLabelData = function(b) { - this.sceneAndFrameLabelData ? this.jumpToNextTag(b) : this.sceneAndFrameLabelData = v.LowLevel.defineScene(this.data, this._dataStream, null); + h.prototype.setSceneAndFrameLabelData = function(b) { + this.sceneAndFrameLabelData ? this.jumpToNextTag(b) : this.sceneAndFrameLabelData = w.LowLevel.defineScene(this.data, this._dataStream, null); }; - g.prototype.addControlTag = function(b, a, e) { - (this._currentControlTags || (this._currentControlTags = [])).push(new r(b, a, e)); + h.prototype.addControlTag = function(b, a, e) { + (this._currentControlTags || (this._currentControlTags = [])).push(new t(b, a, e)); this.jumpToNextTag(e); }; - g.prototype.addLazySymbol = function(b, a, e) { + h.prototype.addLazySymbol = function(b, a, e) { var c = this._dataStream.getUint16(this._dataStream.pos, !0); - b = new n(c, b, a, e); + b = new p(c, b, a, e); return this.dictionary[c] = b; }; - g.prototype.decodeEmbeddedFont = function(b) { + h.prototype.decodeEmbeddedFont = function(b) { var e = this.getParsedTag(b); - b = new x(e.id, b, "font", e); + b = new C(e.id, b, "font", e); this.eagerlyParsedSymbolsMap[b.id] = b; this.eagerlyParsedSymbolsList.push(b); this.fonts.push({name:e.name, id:e.id, style:a(e.bold, e.italic)}); }; - g.prototype.registerEmbeddedFont = function(b) { + h.prototype.registerEmbeddedFont = function(b) { if (inFirefox) { - var e = this._dataStream, c = e.getUint16(e.pos, !0), f, g; - 10 === b.tagCode ? (g = "__autofont__" + b.byteOffset, f = "regular") : (f = this.data[e.pos + 2], f = a(!!(f & 2), !!(f & 1)), g = this.data[e.pos + 4], e.pos += 5, g = v.readString(this.data, e, g)); - this.fonts.push({name:g, id:c, style:f}); + var e = this._dataStream, c = e.getUint16(e.pos, !0), f, h; + 10 === b.tagCode ? (h = "__autofont__" + b.byteOffset, f = "regular") : (f = this.data[e.pos + 2], f = a(!!(f & 2), !!(f & 1)), h = this.data[e.pos + 4], e.pos += 5, h = w.readString(this.data, e, h)); + this.fonts.push({name:h, id:c, style:f}); e.pos = b.byteOffset + b.byteLength; } else { this.decodeEmbeddedFont(b); } }; - g.prototype.decodeEmbeddedImage = function(b) { + h.prototype.decodeEmbeddedImage = function(b) { var a = this.getParsedTag(b); - b = new x(a.id, b, "image", a); + b = new C(a.id, b, "image", a); this.eagerlyParsedSymbolsMap[b.id] = b; this.eagerlyParsedSymbolsList.push(b); }; - return g; + return h; }(); - k.SWFFile = g; + k.SWFFile = h; var f = function() { - return function(b, a, e, c, f, g, h) { + return function(b, a, e, c, f, h, g) { this.controlTags = b; this.labelName = a; this.soundStreamHead = e; this.soundStreamBlock = c; this.actionBlocks = f; - this.initActionBlocks = g; - this.exports = h; + this.initActionBlocks = h; + this.exports = g; }; }(); k.SWFFrame = f; @@ -27167,34 +27144,34 @@ __extends = this.__extends || function(d, k) { }; }(); k.SymbolExport = e; - var r = function() { + var t = function() { return function(b, a, e) { this.tagCode = b; this.byteOffset = a; this.byteLength = e; }; }(); - k.UnparsedTag = r; - var n = function(b) { - function a(e, c, f, g) { - b.call(this, c, f, g); + k.UnparsedTag = t; + var p = function(b) { + function a(e, c, f, h) { + b.call(this, c, f, h); this.id = e; } __extends(a, b); return a; - }(r); - k.DictionaryEntry = n; - var x = function(b) { - function a(e, c, f, g) { + }(t); + k.DictionaryEntry = p; + var C = function(b) { + function a(e, c, f, h) { b.call(this, e, c.tagCode, c.byteOffset, c.byteLength); this.type = f; - this.definition = g; + this.definition = h; this.ready = !1; } __extends(a, b); return a; - }(n); - k.EagerlyParsedDictionaryEntry = x; + }(p); + k.EagerlyParsedDictionaryEntry = C; })(d.SWF || (d.SWF = {})); })(Shumway || (Shumway = {})); (function(d) { @@ -27206,10 +27183,10 @@ __extends = this.__extends || function(d, k) { })(k || (k = {})); var a = {16767231:"image/jpeg", 8998990:"image/png", 4671814:"image/gif"}; k = function() { - function d(a, k) { + function d(a, n) { this.type = 4; this.bytesLoaded = a.length; - a.length === k ? this.data = a : (this.data = new Uint8Array(k), this.data.set(a)); + a.length === n ? this.data = a : (this.data = new Uint8Array(n), this.data.set(a)); this.setMimetype(); } Object.defineProperty(d.prototype, "bytesTotal", {get:function() { @@ -27234,14 +27211,14 @@ __extends = this.__extends || function(d, k) { }; }(); d.LoadProgressUpdate = a; - var p = function() { - function p(a) { + var n = function() { + function n(a) { this._file = null; this._listener = a; this._delayedUpdatesPromise = this._loadingServiceSession = null; this._bytesLoaded = 0; } - p.prototype.loadFile = function(a) { + n.prototype.loadFile = function(a) { d.SWF.enterTimeline("Load file", a.url); this._bytesLoaded = 0; var l = this._loadingServiceSession = d.FileLoadingService.instance.createSession(); @@ -27251,37 +27228,37 @@ __extends = this.__extends || function(d, k) { l.onclose = this.processLoadClose.bind(this); l.open(a); }; - p.prototype.abortLoad = function() { + n.prototype.abortLoad = function() { }; - p.prototype.loadBytes = function(a) { + n.prototype.loadBytes = function(a) { d.SWF.enterTimeline("Load bytes"); this.processNewData(a, {bytesLoaded:a.length, bytesTotal:a.length}); this.processLoadClose(); }; - p.prototype.processLoadOpen = function() { + n.prototype.processLoadOpen = function() { }; - p.prototype.processNewData = function(p, l) { - this._bytesLoaded += p.length; + n.prototype.processNewData = function(n, l) { + this._bytesLoaded += n.length; if (8192 > this._bytesLoaded && this._bytesLoaded < l.bytesTotal) { - this._queuedInitialData || (this._queuedInitialData = new Uint8Array(Math.min(8192, l.bytesTotal))), this._queuedInitialData.set(p, this._bytesLoaded - p.length); + this._queuedInitialData || (this._queuedInitialData = new Uint8Array(Math.min(8192, l.bytesTotal))), this._queuedInitialData.set(n, this._bytesLoaded - n.length); } else { if (this._queuedInitialData) { var c = new Uint8Array(this._bytesLoaded); c.set(this._queuedInitialData); - c.set(p, this._bytesLoaded - p.length); - p = c; + c.set(n, this._bytesLoaded - n.length); + n = c; this._queuedInitialData = null; } - var h = this._file, q = c = 0; - if (h) { - h instanceof k && (c = h.eagerlyParsedSymbolsList.length, q = h.framesLoaded), h.appendLoadedData(p); + var g = this._file, q = c = 0; + if (g) { + g instanceof k && (c = g.eagerlyParsedSymbolsList.length, q = g.framesLoaded), g.appendLoadedData(n); } else { - var h = p, s = l.bytesTotal, m = h[0] << 16 | h[1] << 8 | h[2], h = 22355 === (m & 65535) ? new k(h, s) : 16767231 === m || 8998990 === m || 4671814 === m ? new d.ImageFile(h, s) : null; - h = this._file = h; - this._listener.onLoadOpen(h); + var g = n, r = l.bytesTotal, m = g[0] << 16 | g[1] << 8 | g[2], g = 22355 === (m & 65535) ? new k(g, r) : 16767231 === m || 8998990 === m || 4671814 === m ? new d.ImageFile(g, r) : null; + g = this._file = g; + this._listener.onLoadOpen(g); } - if (h instanceof k) { - this.processSWFFileUpdate(h, c, q); + if (g instanceof k) { + this.processSWFFileUpdate(g, c, q); } else { if (this._listener.onLoadProgress(new a(l.bytesLoaded, -1)), l.bytesLoaded === l.bytesTotal) { this._listener.onImageBytesLoaded(); @@ -27289,9 +27266,9 @@ __extends = this.__extends || function(d, k) { } } }; - p.prototype.processError = function(a) { + n.prototype.processError = function(a) { }; - p.prototype.processLoadClose = function() { + n.prototype.processLoadClose = function() { var a = this._file; if (a instanceof k) { var l = a.eagerlyParsedSymbolsList.length, c = a.framesLoaded; @@ -27300,41 +27277,41 @@ __extends = this.__extends || function(d, k) { } a.bytesLoaded !== a.bytesTotal || d.SWF.leaveTimeline(); }; - p.prototype.processSWFFileUpdate = function(d, l, c) { - var h; + n.prototype.processSWFFileUpdate = function(d, l, c) { + var g; if (l = d.eagerlyParsedSymbolsList.length - l) { - h = this._listener.onNewEagerlyParsedSymbols(d.eagerlyParsedSymbolsList, l); - this._delayedUpdatesPromise && (h = Promise.all([this._delayedUpdatesPromise, h])); - this._delayedUpdatesPromise = h; - this._lastDelayedUpdate = s = new a(d.bytesLoaded, d.frames.length); + g = this._listener.onNewEagerlyParsedSymbols(d.eagerlyParsedSymbolsList, l); + this._delayedUpdatesPromise && (g = Promise.all([this._delayedUpdatesPromise, g])); + this._delayedUpdatesPromise = g; + this._lastDelayedUpdate = r = new a(d.bytesLoaded, d.frames.length); d.pendingUpdateDelays++; var q = this; d.framesLoaded = c; - h.then(function() { + g.then(function() { d.pendingUpdateDelays--; - d.framesLoaded = s.framesLoaded; - q._listener.onLoadProgress(s); - q._delayedUpdatesPromise === h && (q._delayedUpdatesPromise = null, q._lastDelayedUpdate = null); + d.framesLoaded = r.framesLoaded; + q._listener.onLoadProgress(r); + q._delayedUpdatesPromise === g && (q._delayedUpdatesPromise = null, q._lastDelayedUpdate = null); }); } else { - var s = this._lastDelayedUpdate; - if (s) { - s.bytesLoaded = d.bytesLoaded, s.framesLoaded = d.frames.length; + var r = this._lastDelayedUpdate; + if (r) { + r.bytesLoaded = d.bytesLoaded, r.framesLoaded = d.frames.length; } else { this._listener.onLoadProgress(new a(d.bytesLoaded, d.framesLoaded)); } } }; - return p; + return n; }(); - d.FileLoader = p; - var v; + d.FileLoader = n; + var w; (function(a) { a[a.SWF = 22355] = "SWF"; a[a.JPG = 16767231] = "JPG"; a[a.PNG = 8998990] = "PNG"; a[a.GIF = 4671814] = "GIF"; - })(v || (v = {})); + })(w || (w = {})); })(Shumway || (Shumway = {})); console.timeEnd("Load SWF Parser"); console.time("Load Flash TS Dependencies"); @@ -27342,71 +27319,71 @@ console.time("Load Flash TS Dependencies"); function k(a) { var c = {}; a = a.split(","); - for (var g = 0;g < a.length;g++) { - c[a[g]] = !0; + for (var h = 0;h < a.length;h++) { + c[a[h]] = !0; } return c; } - var a = /^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, p = /^<\/([-A-Za-z0-9_]+)[^>]*>/, v = /([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, t = k("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"), u = k("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"), - l = k("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), c = k("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), h = k("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), q = k("script,style"); + var a = /^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, n = /^<\/([-A-Za-z0-9_]+)[^>]*>/, w = /([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, v = k("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"), u = k("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"), + l = k("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), c = k("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), g = k("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), q = k("script,style"); d.HTMLParser = function(d, m) { - function g() { + function h() { return this[this.length - 1]; } function f(a, e, f, d) { e = e.toLowerCase(); if (u[e]) { - for (;g() && l[g()];) { - b("", g()); + for (;h() && l[h()];) { + b("", h()); } } - c[e] && g() == e && b("", e); - (d = t[e] || !!d) || n.push(e); + c[e] && h() == e && b("", e); + (d = v[e] || !!d) || p.push(e); if (m.start) { - var r = Object.create(null); - f.replace(v, function(b, a, e, c, f) { + var t = Object.create(null); + f.replace(w, function(b, a, e, c, f) { a = a.toLowerCase(); - r[a] = e ? e : c ? c : f ? f : h[a] ? a : ""; + t[a] = e ? e : c ? c : f ? f : g[a] ? a : ""; return b; }); - m.start && m.start(e, r, !!d); + m.start && m.start(e, t, !!d); } } function b(b, a) { if (a) { - for (e = n.length - 1;0 <= e && n[e] != a;e--) { + for (e = p.length - 1;0 <= e && p[e] != a;e--) { } } else { var e = 0 } if (0 <= e) { - for (var c = n.length - 1;c >= e;c--) { - m.end && m.end(n[c]); + for (var c = p.length - 1;c >= e;c--) { + m.end && m.end(p[c]); } - n.length = e; + p.length = e; } } - for (var e, r, n = [], k = d;d;) { - r = !0; - if (g() && q[g()]) { - d = d.replace(new RegExp("(.*)]*>"), function(b, a) { + for (var e, t, p = [], k = d;d;) { + t = !0; + if (h() && q[h()]) { + d = d.replace(new RegExp("(.*)]*>"), function(b, a) { a = a.replace(/\x3c!--(.*?)--\x3e/g, "$1").replace(/ e ? d : d.substring(0, e), d = 0 > e ? "" : d.substring(e), m.chars && m.chars(r)); + t && (e = d.indexOf("<"), t = 0 > e ? d : d.substring(0, e), d = 0 > e ? "" : d.substring(e), m.chars && m.chars(t)); } if (d == k) { throw "Parse Error: " + d; @@ -27417,7 +27394,7 @@ console.time("Load Flash TS Dependencies"); }; })(Shumway || (Shumway = {})); (function(d) { - var k = d.Debug.notImplemented, a = d.Debug.somewhatImplemented, p = d.Bounds, v = d.ArrayUtilities.DataBuffer, t = d.ColorUtilities, u = d.AVM2.AS.flash, l = d.NumberUtilities.altTieBreakRound; + var k = d.Debug.notImplemented, a = d.Debug.somewhatImplemented, n = d.Bounds, w = d.ArrayUtilities.DataBuffer, v = d.ColorUtilities, u = d.AVM2.AS.flash, l = d.NumberUtilities.altTieBreakRound; (function(a) { a[a.None = 0] = "None"; a[a.DirtyBounds = 1] = "DirtyBounds"; @@ -27426,10 +27403,10 @@ console.time("Load Flash TS Dependencies"); a[a.DirtyFlow = 8] = "DirtyFlow"; a[a.Dirty = a.DirtyBounds | a.DirtyContent | a.DirtyStyle | a.DirtyFlow] = "Dirty"; })(d.TextContentFlags || (d.TextContentFlags = {})); - var c = {lt:"<", gt:">", amp:"&", quot:'"', apos:"'", nbsp:"\u00a0"}, h = function() { - function h(a) { + var c = {lt:"<", gt:">", amp:"&", quot:'"', apos:"'", nbsp:"\u00a0"}, g = function() { + function g(a) { this._id = u.display.DisplayObject.getNextSyncID(); - this._bounds = new p(0, 0, 0, 0); + this._bounds = new n(0, 0, 0, 0); this._plainText = ""; this._autoSize = this._borderColor = this._backgroundColor = 0; this._wordWrap = !1; @@ -27437,106 +27414,108 @@ console.time("Load Flash TS Dependencies"); this.flags = this._scrollH = 0; this.defaultTextFormat = a || new u.text.TextFormat; this.textRuns = []; - this.textRunData = new v; + this.textRunData = new w; this.coords = this.matrix = null; } - h.prototype.parseHtml = function(h, m, g) { - var f = "", b = this.textRuns, e = b.length = 0, r = 0, n = this.defaultTextFormat.clone(), l = null, q = [], p; - d.HTMLParser(h, p = {chars:function(a) { - for (var g = "", h = 0;h < a.length;h++) { - var m = a.charAt(h); + g.prototype.parseHtml = function(g, m, h) { + var f = "", b = this.textRuns, e = b.length = 0, l = 0, p = this.defaultTextFormat.clone(), q = null, n = [], w; + d.HTMLParser(g, w = {chars:function(a) { + for (var h = "", g = 0;g < a.length;g++) { + var m = a.charAt(g); if ("&" !== m) { - g += m; + h += m; } else { - if (m = d.StringUtilities.indexOfAny(a, ["&", ";"], h + 1), 0 < m) { - h = a.substring(h + 1, m); - if (1 < h.length && "#" === h.charAt(0)) { - var q = 0, q = 2 < h.length && "x" === h.charAt(1) ? parseInt(h.substring(1)) : parseInt(h.substring(2), 16), g = g + String.fromCharCode(q) + if (m = d.StringUtilities.indexOfAny(a, ["&", ";"], g + 1), 0 < m) { + g = a.substring(g + 1, m); + if (1 < g.length && "#" === g.charAt(0)) { + var r = 0, r = 2 < g.length && "x" === g.charAt(1) ? parseInt(g.substring(1)) : parseInt(g.substring(2), 16), h = h + String.fromCharCode(r) } else { - void 0 !== c[h] ? g += c[h] : d.Debug.unexpected(h); + void 0 !== c[g] ? h += c[g] : d.Debug.unexpected(g); } - h = m; + g = m; } else { - for (var s in c) { - if (a.indexOf(s, h + 1) === h + 1) { - g += c[s]; - h += s.length; + for (var n in c) { + if (a.indexOf(n, g + 1) === g + 1) { + h += c[n]; + g += n.length; break; } } } } } - a = g; + a = h; f += a; - r += a.length; - r - e && (l && l.textFormat.equals(n) ? l.endIndex = r : (l = new u.text.TextRun(e, r, n), b.push(l)), e = r); + l += a.length; + l - e && (q && q.textFormat.equals(p) ? q.endIndex = l : (q = new u.text.TextRun(e, l, p), b.push(q)), e = l); }, start:function(b, e) { var c = !1; - m && (c = m.hasStyle(b)) && (q.push(n), n = n.clone(), m.applyStyle(n, b)); + m && (c = m.hasStyle(b)) && (n.push(p), p = p.clone(), m.applyStyle(p, b)); switch(b) { case "a": - q.push(n); + n.push(p); a(""); - var h = e.target || n.target, d = e.url || n.url; - if (h !== n.target || d !== n.url) { - c || (n = n.clone()), n.target = h, n.url = d; + var g = e.target || p.target, d = e.url || p.url; + if (g !== p.target || d !== p.url) { + c || (p = p.clone()), p.target = g, p.url = d; } break; case "b": - q.push(n); - n.bold || (c || (n = n.clone()), n.bold = !0); + n.push(p); + p.bold || (c || (p = p.clone()), p.bold = !0); break; case "font": - q.push(n); - var h = t.isValidHexColor(e.color) ? t.hexToRGB(e.color) : n.color, d = e.face || n.font, r = isNaN(e.size) ? n.size : +e.size; - if (h !== n.color || d !== n.font || r !== n.size) { - c || (n = n.clone()), n.color = h, n.font = d, n.size = r; + n.push(p); + var g = v.isValidHexColor(e.color) ? v.hexToRGB(e.color) : p.color, d = e.face || p.font, l = isNaN(e.size) ? p.size : +e.size; + if (g !== p.color || d !== p.font || l !== p.size) { + c || (p = p.clone()), p.color = g, p.font = d, p.size = l; } break; case "img": k(""); break; case "i": - q.push(n); - n.italic || (c || (n = n.clone()), n.italic = !0); + n.push(p); + p.italic || (c || (p = p.clone()), p.italic = !0); break; case "li": - if (q.push(n), n.bullet || (c || (n = n.clone()), n.bullet = !0), "\r" === f[f.length - 1]) { + if (n.push(p), p.bullet || (c || (p = p.clone()), p.bullet = !0), "\r" === f[f.length - 1]) { break; } ; case "br": - g && p.chars("\r"); + ; + case "sbr": + h && w.chars("\r"); break; case "span": ; case "p": - h = !1; - q.push(n); - m && e.class && (d = "." + e.class, h = m.hasStyle(d)) && (c || (n = n.clone()), m.applyStyle(n, d)); + g = !1; + n.push(p); + m && e.class && (d = "." + e.class, g = m.hasStyle(d)) && (c || (p = p.clone()), m.applyStyle(p, d)); if ("span" === b) { break; } d = e.align; - -1 < u.text.TextFormatAlign.toNumber(d) && d !== n.align && (c || h || (n = n.clone()), n.align = d); + -1 < u.text.TextFormatAlign.toNumber(d) && d !== p.align && (c || g || (p = p.clone()), p.align = d); break; case "textformat": - q.push(n); - var h = isNaN(e.blockindent) ? n.blockIndent : +e.blockindent, d = isNaN(e.indent) ? n.indent : +e.indent, r = isNaN(e.leading) ? n.leading : +e.leading, l = isNaN(e.leftmargin) ? n.leftMargin : +e.leftmargin, s = isNaN(e.rightmargin) ? n.rightMargin : +e.rightmargin; - if (h !== n.blockIndent || d !== n.indent || r !== n.leading || l !== n.leftMargin || s !== n.rightMargin) { - c || (n = n.clone()), n.blockIndent = h, n.indent = d, n.leading = r, n.leftMargin = l, n.rightMargin = s; + n.push(p); + var g = isNaN(e.blockindent) ? p.blockIndent : +e.blockindent, d = isNaN(e.indent) ? p.indent : +e.indent, l = isNaN(e.leading) ? p.leading : +e.leading, t = isNaN(e.leftmargin) ? p.leftMargin : +e.leftmargin, q = isNaN(e.rightmargin) ? p.rightMargin : +e.rightmargin; + if (g !== p.blockIndent || d !== p.indent || l !== p.leading || t !== p.leftMargin || q !== p.rightMargin) { + c || (p = p.clone()), p.blockIndent = g, p.indent = d, p.leading = l, p.leftMargin = t, p.rightMargin = q; } break; case "u": - q.push(n), n.underline || (c || (n = n.clone()), n.underline = !0); + n.push(p), p.underline || (c || (p = p.clone()), p.underline = !0); } }, end:function(b) { switch(b) { case "li": ; case "p": - g && p.chars("\r"); + h && w.chars("\r"); case "a": ; case "b": @@ -27548,13 +27527,13 @@ console.time("Load Flash TS Dependencies"); case "textformat": ; case "u": - n = q.pop(), m && m.hasStyle(b) && (n = q.pop()); + p = n.pop(), m && m.hasStyle(b) && (p = n.pop()); } }}); this._plainText = f; this._serializeTextRuns(); }; - Object.defineProperty(h.prototype, "plainText", {get:function() { + Object.defineProperty(g.prototype, "plainText", {get:function() { return this._plainText; }, set:function(a) { this._plainText = a; @@ -27562,43 +27541,43 @@ console.time("Load Flash TS Dependencies"); a && (a = new u.text.TextRun(0, a.length, this.defaultTextFormat), this.textRuns[0] = a); this._serializeTextRuns(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "bounds", {get:function() { + Object.defineProperty(g.prototype, "bounds", {get:function() { return this._bounds; }, set:function(a) { this._bounds.copyFrom(a); this.flags |= 1; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "autoSize", {get:function() { + Object.defineProperty(g.prototype, "autoSize", {get:function() { return this._autoSize; }, set:function(a) { a !== this._autoSize && (this._autoSize = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "wordWrap", {get:function() { + Object.defineProperty(g.prototype, "wordWrap", {get:function() { return this._wordWrap; }, set:function(a) { a !== this._wordWrap && (this._wordWrap = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scrollV", {get:function() { + Object.defineProperty(g.prototype, "scrollV", {get:function() { return this._scrollV; }, set:function(a) { a !== this._scrollV && (this._scrollV = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scrollH", {get:function() { + Object.defineProperty(g.prototype, "scrollH", {get:function() { return this._scrollH; }, set:function(a) { a !== this._scrollH && (this._scrollH = a, this._plainText && (this.flags |= 8)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "backgroundColor", {get:function() { + Object.defineProperty(g.prototype, "backgroundColor", {get:function() { return this._backgroundColor; }, set:function(a) { a !== this._backgroundColor && (this._backgroundColor = a, this.flags |= 4); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "borderColor", {get:function() { + Object.defineProperty(g.prototype, "borderColor", {get:function() { return this._borderColor; }, set:function(a) { a !== this._borderColor && (this._borderColor = a, this.flags |= 4); }, enumerable:!0, configurable:!0}); - h.prototype._serializeTextRuns = function() { + g.prototype._serializeTextRuns = function() { var a = this.textRuns; this.textRunData.clear(); for (var c = 0;c < a.length;c++) { @@ -27606,21 +27585,21 @@ console.time("Load Flash TS Dependencies"); } this.flags |= 2; }; - h.prototype._writeTextRun = function(a) { + g.prototype._writeTextRun = function(a) { var c = this.textRunData; c.writeInt(a.beginIndex); c.writeInt(a.endIndex); a = a.textFormat; - var g = +a.size; - c.writeInt(g); + var h = +a.size; + c.writeInt(h); var f = u.text.Font.getByNameAndStyle(a.font, a.style) || u.text.Font.getDefaultFont(); f.fontType === u.text.FontType.EMBEDDED ? c.writeUTF("swffont" + f._id) : c.writeUTF(f._fontFamily); - c.writeInt(l(f.ascent * g, !0)); - c.writeInt(l(f.descent * g, !1)); - c.writeInt(null === a.leading ? f.leading * g : +a.leading); - var b = g = !1; - f.fontType === u.text.FontType.DEVICE && (g = null === a.bold ? f.fontStyle === u.text.FontStyle.BOLD || f.fontType === u.text.FontStyle.BOLD_ITALIC : !!a.bold, b = null === a.italic ? f.fontStyle === u.text.FontStyle.ITALIC || f.fontType === u.text.FontStyle.BOLD_ITALIC : !!a.italic); - c.writeBoolean(g); + c.writeInt(l(f.ascent * h, !0)); + c.writeInt(l(f.descent * h, !1)); + c.writeInt(null === a.leading ? f.leading * h : +a.leading); + var b = h = !1; + f.fontType === u.text.FontType.DEVICE && (h = null === a.bold ? f.fontStyle === u.text.FontStyle.BOLD || f.fontType === u.text.FontStyle.BOLD_ITALIC : !!a.bold, b = null === a.italic ? f.fontStyle === u.text.FontStyle.ITALIC || f.fontType === u.text.FontStyle.BOLD_ITALIC : !!a.italic); + c.writeBoolean(h); c.writeBoolean(b); c.writeInt(+a.color); c.writeInt(u.text.TextFormatAlign.toNumber(a.align)); @@ -27632,106 +27611,106 @@ console.time("Load Flash TS Dependencies"); c.writeInt(+a.rightMargin); c.writeBoolean(!!a.underline); }; - h.prototype.appendText = function(a, c) { + g.prototype.appendText = function(a, c) { c || (c = this.defaultTextFormat); - var g = this._plainText, f = new u.text.TextRun(g.length, g.length + a.length, c); - this._plainText = g + a; + var h = this._plainText, f = new u.text.TextRun(h.length, h.length + a.length, c); + this._plainText = h + a; this.textRuns.push(f); this._writeTextRun(f); }; - h.prototype.prependText = function(a, c) { + g.prototype.prependText = function(a, c) { c || (c = this.defaultTextFormat); this._plainText = a + this._plainText; - for (var g = this.textRuns, f = a.length, b = 0;b < g.length;b++) { - var e = g[b]; + for (var h = this.textRuns, f = a.length, b = 0;b < h.length;b++) { + var e = h[b]; e.beginIndex += f; e.endIndex += f; } - g.unshift(new u.text.TextRun(0, f, c)); + h.unshift(new u.text.TextRun(0, f, c)); this._serializeTextRuns(); }; - h.prototype.replaceText = function(a, c, g, f) { - if (!(c < a) && g) { + g.prototype.replaceText = function(a, c, h, f) { + if (!(c < a) && h) { if (0 === c) { - this.prependText(g, f); + this.prependText(h, f); } else { var b = this._plainText; if (a >= b.length) { - this.appendText(g, f); + this.appendText(h, f); } else { - var e = this.defaultTextFormat, h = e; - f && (h = h.clone(), h.merge(f)); + var e = this.defaultTextFormat, g = e; + f && (g = g.clone(), g.merge(f)); if (0 >= a && c >= b.length) { - f ? (this.defaultTextFormat = h, this.plainText = g, this.defaultTextFormat = e) : this.plainText = g; + f ? (this.defaultTextFormat = g, this.plainText = h, this.defaultTextFormat = e) : this.plainText = h; } else { - for (var e = this.textRuns, d = [], l = a + g.length, q = l - c, p = 0;p < e.length;p++) { - var k = e[p]; - if (a < k.endIndex) { - if (a <= k.beginIndex && l >= k.endIndex) { + for (var e = this.textRuns, p = [], d = a + h.length, l = d - c, q = 0;q < e.length;q++) { + var n = e[q]; + if (a < n.endIndex) { + if (a <= n.beginIndex && d >= n.endIndex) { continue; } - var t = k.containsIndex(a), v = k.containsIndex(c); - if (t && v) { + var k = n.containsIndex(a), v = n.containsIndex(c); + if (k && v) { if (f) { - t = k.clone(); - t.endIndex = a; - d.push(t); - p--; - k.beginIndex = a + 1; + k = n.clone(); + k.endIndex = a; + p.push(k); + q--; + n.beginIndex = a + 1; continue; } } else { - t ? k.endIndex = a : v ? f ? (d.push(new u.text.TextRun(a, l, h)), k.beginIndex = l) : (k.beginIndex = a, k.endIndex += q) : (k.beginIndex += q, k.endIndex += q); + k ? n.endIndex = a : v ? f ? (p.push(new u.text.TextRun(a, d, g)), n.beginIndex = d) : (n.beginIndex = a, n.endIndex += l) : (n.beginIndex += l, n.endIndex += l); } } - d.push(k); + p.push(n); } - this._plainText = b.substring(0, a) + g + b.substring(c); - this.textRuns = d; + this._plainText = b.substring(0, a) + h + b.substring(c); + this.textRuns = p; this._serializeTextRuns(); } } } } }; - return h; + return g; }(); - d.TextContent = h; + d.TextContent = g; })(Shumway || (Shumway = {})); -var Shumway$$inline_767 = Shumway || (Shumway = {}), AVM2$$inline_768 = Shumway$$inline_767.AVM2 || (Shumway$$inline_767.AVM2 = {}), AS$$inline_769 = AVM2$$inline_768.AS || (AVM2$$inline_768.AS = {}); -AS$$inline_769.flashOptions = Shumway$$inline_767.Settings.shumwayOptions.register(new Shumway$$inline_767.Options.OptionSet("Flash Options")); -AS$$inline_769.traceEventsOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option("te", "Trace Events", "boolean", !1, "Trace dispatching of events.")); -AS$$inline_769.traceLoaderOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option("tp", "Trace Loader", "boolean", !1, "Trace loader execution.")); -AS$$inline_769.disableAudioOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option("da", "Disable Audio", "boolean", !1, "Disables audio.")); -AS$$inline_769.webAudioOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option(null, "Use WebAudio for Sound", "boolean", !1, "Enables WebAudio API for MovieClip sound stream. (MP3 format is an exception)")); -AS$$inline_769.webAudioMP3Option = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option(null, "Use MP3 decoding to WebAudio", "boolean", !1, "Enables WebAudio API and software MP3 decoding and disables any AUDIO tag usage for MP3 format")); -AS$$inline_769.mediaSourceOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option(null, "Use Media Source for Video", "boolean", !1, "Enables Media Source Extension API for NetStream.")); -AS$$inline_769.mediaSourceMP3Option = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option(null, "Use Media Source for MP3", "boolean", !0, "Enables Media Source Extension API for MP3 streams.")); -AS$$inline_769.flvOption = AS$$inline_769.flashOptions.register(new Shumway$$inline_767.Options.Option(null, "FLV support.", "string", "unsupported", "Defines how to deal with FLV streams.")); +var Shumway$$inline_765 = Shumway || (Shumway = {}), AVM2$$inline_766 = Shumway$$inline_765.AVM2 || (Shumway$$inline_765.AVM2 = {}), AS$$inline_767 = AVM2$$inline_766.AS || (AVM2$$inline_766.AS = {}); +AS$$inline_767.flashOptions = Shumway$$inline_765.Settings.shumwayOptions.register(new Shumway$$inline_765.Options.OptionSet("Flash Options")); +AS$$inline_767.traceEventsOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option("te", "Trace Events", "boolean", !1, "Trace dispatching of events.")); +AS$$inline_767.traceLoaderOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option("tp", "Trace Loader", "boolean", !1, "Trace loader execution.")); +AS$$inline_767.disableAudioOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option("da", "Disable Audio", "boolean", !1, "Disables audio.")); +AS$$inline_767.webAudioOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option(null, "Use WebAudio for Sound", "boolean", !1, "Enables WebAudio API for MovieClip sound stream. (MP3 format is an exception)")); +AS$$inline_767.webAudioMP3Option = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option(null, "Use MP3 decoding to WebAudio", "boolean", !1, "Enables WebAudio API and software MP3 decoding and disables any AUDIO tag usage for MP3 format")); +AS$$inline_767.mediaSourceOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option(null, "Use Media Source for Video", "boolean", !1, "Enables Media Source Extension API for NetStream.")); +AS$$inline_767.mediaSourceMP3Option = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option(null, "Use Media Source for MP3", "boolean", !0, "Enables Media Source Extension API for MP3 streams.")); +AS$$inline_767.flvOption = AS$$inline_767.flashOptions.register(new Shumway$$inline_765.Options.Option(null, "FLV support.", "string", "unsupported", "Defines how to deal with FLV streams.")); __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; }; (function(d) { (function(k) { - var a = d.Debug.warning, p = d.Bounds, v = d.AVM2.AS.flash, t = function() { - function l(c, h) { + var a = d.Debug.warning, n = d.Bounds, w = d.AVM2.AS.flash, v = function() { + function l(c, g) { this.data = c; if (c.className) { var l = d.AVM2.Runtime.AVM2.instance.applicationDomain; try { this.symbolClass = l.getClass(c.className); - } catch (s) { - a("Symbol " + c.id + " bound to non-existing class " + c.className), this.symbolClass = h; + } catch (r) { + a("Symbol " + c.id + " bound to non-existing class " + c.className), this.symbolClass = g; } } else { - this.symbolClass = h; + this.symbolClass = g; } this.isAVM1Object = !1; } @@ -27740,24 +27719,24 @@ __extends = this.__extends || function(d, k) { }, enumerable:!0, configurable:!0}); return l; }(); - k.Symbol = t; + k.Symbol = v; var u = function(a) { - function c(c, d, s) { + function c(c, d, r) { a.call(this, c, d); - this.dynamic = s; + this.dynamic = r; } __extends(c, a); c.prototype._setBoundsFromData = function(a) { - this.fillBounds = a.fillBounds ? p.FromUntyped(a.fillBounds) : null; - this.lineBounds = a.lineBounds ? p.FromUntyped(a.lineBounds) : null; + this.fillBounds = a.fillBounds ? n.FromUntyped(a.fillBounds) : null; + this.lineBounds = a.lineBounds ? n.FromUntyped(a.lineBounds) : null; !this.lineBounds && this.fillBounds && (this.lineBounds = this.fillBounds.clone()); }; return c; - }(t); + }(v); k.DisplaySymbol = u; - t = function(a) { + v = function(a) { function c(c) { - a.call(this, c, v.utils.ByteArray); + a.call(this, c, w.utils.ByteArray); } __extends(c, a); c.FromData = function(a) { @@ -27767,8 +27746,8 @@ __extends = this.__extends || function(d, k) { return d; }; return c; - }(t); - k.BinarySymbol = t; + }(v); + k.BinarySymbol = v; k.SoundStart = function() { return function(a, c) { this.soundId = a; @@ -27781,11 +27760,11 @@ var RtmpJs; (function(d) { (function(d) { var a = function() { - function a(d, k, p) { - this._socket = ShumwayCom.createRtmpSocket({host:d, port:k, ssl:p.useSecureTransport}); + function a(d, n, k) { + this._socket = ShumwayCom.createRtmpSocket({host:d, port:n, ssl:k.useSecureTransport}); } Object.defineProperty(a, "isAvailable", {get:function() { - return!("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpSocket); + return !("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpSocket); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "onopen", {get:function() { return this._onopen; @@ -27812,8 +27791,8 @@ var RtmpJs; }, set:function(a) { this._socket.setCloseCallback(this._onclose = a); }, enumerable:!0, configurable:!0}); - a.prototype.send = function(a, d, k) { - return this._socket.send(a, d, k); + a.prototype.send = function(a, d, n) { + return this._socket.send(a, d, n); }; a.prototype.close = function() { this._socket.close(); @@ -27826,7 +27805,7 @@ var RtmpJs; this._xhr = ShumwayCom.createRtmpXHR(); } Object.defineProperty(a, "isAvailable", {get:function() { - return!("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpXHR); + return !("undefined" === typeof ShumwayCom || !ShumwayCom.createRtmpXHR); }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "status", {get:function() { return this._xhr.status; @@ -27849,9 +27828,9 @@ var RtmpJs; }, set:function(a) { this._xhr.setErrorCallback(this._onerror = a); }, enumerable:!0, configurable:!0}); - a.prototype.open = function(a, d, k) { - void 0 === k && (k = !0); - this._xhr.open(a, d, k); + a.prototype.open = function(a, d, n) { + void 0 === n && (n = !0); + this._xhr.open(a, d, n); }; a.prototype.setRequestHeader = function(a, d) { this._xhr.setRequestHeader(a, d); @@ -27884,12 +27863,12 @@ var RtmpJs; a.prototype.abort = function() { this.buffer ? this.bufferLength = 0 : this.lastMessageComplete || (this.lastMessageComplete = !0, this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:null, firstChunk:!1, lastChunk:!0})); }; - a.prototype._push = function(a, d, k) { + a.prototype._push = function(a, d, n) { if (this.onmessage) { - if (d && k || !this.buffer) { - this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:a, firstChunk:d, lastChunk:k}); + if (d && n || !this.buffer) { + this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:a, firstChunk:d, lastChunk:n}); } else { - if (d && (this.bufferLength = 0, this.lastLength > this.buffer.length && (this.buffer = new Uint8Array(this.lastLength))), this.buffer.set(a, this.bufferLength), this.bufferLength += a.length, k) { + if (d && (this.bufferLength = 0, this.lastLength > this.buffer.length && (this.buffer = new Uint8Array(this.lastLength))), this.buffer.set(a, this.bufferLength), this.bufferLength += a.length, n) { this.onmessage({timestamp:this.lastTimestamp, streamId:this.lastStreamId, chunkedStreamId:this.id, typeId:this.lastTypeId, data:this.buffer.subarray(0, this.bufferLength), firstChunk:!0, lastChunk:!0}); } } @@ -27917,16 +27896,16 @@ var RtmpJs; a.prototype.push = function(a) { var d = a.length + this.bufferLength; if (d > this.buffer.length) { - for (var k = 2 * this.buffer.length;d > k;) { - k *= 2; + for (var n = 2 * this.buffer.length;d > n;) { + n *= 2; } - 524288 < k && this._fail("Buffer overflow"); - k = new Uint8Array(k); - k.set(this.buffer); - this.buffer = k; + 524288 < n && this._fail("Buffer overflow"); + n = new Uint8Array(n); + n.set(this.buffer); + this.buffer = n; } - for (var k = 0, l = this.bufferLength;k < a.length;k++, l++) { - this.buffer[l] = a[k]; + for (var n = 0, l = this.bufferLength;n < a.length;n++, l++) { + this.buffer[l] = a[n]; } this.bufferLength = d; this.bytesReceived += a.length; @@ -27960,8 +27939,8 @@ var RtmpJs; return; } a = 1536; - for (k = 8;1536 > k;k++) { - this.buffer[k] !== this.randomData[k] && this._fail("Random data do not match @" + k); + for (n = 8;1536 > n;n++) { + this.buffer[n] !== this.randomData[n] && this._fail("Random data do not match @" + n); } this.state = "handshake_done"; this.lastAckSent = this.bytesReceived; @@ -28042,31 +28021,31 @@ var RtmpJs; return this._sendMessage(a, d); }; a.prototype.sendUserControlMessage = function(a, d) { - var k = new Uint8Array(2 + d.length); - k[0] = a >> 8 & 255; - k[1] = a & 255; - k.set(d, 2); - this._sendMessage(2, {typeId:4, streamId:0, data:k}); + var n = new Uint8Array(2 + d.length); + n[0] = a >> 8 & 255; + n[1] = a & 255; + n.set(d, 2); + this._sendMessage(2, {typeId:4, streamId:0, data:n}); }; a.prototype._sendAck = function() { var a = new Uint8Array([this.bytesReceived >>> 24 & 255, this.bytesReceived >>> 16 & 255, this.bytesReceived >>> 8 & 255, this.bytesReceived & 255]); this._sendMessage(2, {typeId:3, streamId:0, data:a}); }; a.prototype._sendMessage = function(a, d) { - var k = d.data, l = k.length, c = this._getChunkStream(a), h = ("timestamp" in d ? d.timestamp : Date.now() - this.epochStart) | 0, q = h - c.sentTimestamp | 0, s = new Uint8Array(this.chunkSize + 18), m; - 64 > a ? (m = 1, s[0] = a) : 320 > a ? (m = 2, s[0] = 0, s[1] = a - 64) : (m = 3, s[0] = 1, s[1] = a - 64 >> 8 & 255, s[2] = a - 64 & 255); - var g = m, f = 0; - d.streamId !== c.sentStreamId || 0 > q ? (0 !== (h & 4278190080) ? (f = h, s[g] = s[g + 1] = s[g + 2] = 255) : (s[g] = h >> 16 & 255, s[g + 1] = h >> 8 & 255, s[g + 2] = h & 255), g += 3, s[g++] = l >> 16 & 255, s[g++] = l >> 8 & 255, s[g++] = l & 255, s[g++] = d.typeId, s[g++] = d.streamId & 255, s[g++] = d.streamId >> 8 & 255, s[g++] = d.streamId >> 16 & 255, s[g++] = d.streamId >> 24 & 255) : l !== c.sentLength || d.typeId !== c.sentTypeId ? (s[0] |= 64, 0 !== (q & 4278190080) ? (f = q, - s[g] = s[g + 1] = s[g + 2] = 255) : (s[g] = q >> 16 & 255, s[g + 1] = q >> 8 & 255, s[g + 2] = q & 255), g += 3, s[g++] = l >> 16 & 255, s[g++] = l >> 8 & 255, s[g++] = l & 255, s[g++] = d.typeId) : 0 !== q ? (s[0] |= 128, 0 !== (q & 4278190080) ? (f = q, s[g] = s[g + 1] = s[g + 2] = 255) : (s[g] = q >> 16 & 255, s[g + 1] = q >> 8 & 255, s[g + 2] = q & 255), g += 3) : s[0] |= 192; - f && (s[g++] = f >>> 24 & 255, s[g++] = f >>> 16 & 255, s[g++] = f >>> 8 & 255, s[g++] = f & 255); - c.sentTimestamp = h; + var n = d.data, l = n.length, c = this._getChunkStream(a), g = ("timestamp" in d ? d.timestamp : Date.now() - this.epochStart) | 0, q = g - c.sentTimestamp | 0, r = new Uint8Array(this.chunkSize + 18), m; + 64 > a ? (m = 1, r[0] = a) : 320 > a ? (m = 2, r[0] = 0, r[1] = a - 64) : (m = 3, r[0] = 1, r[1] = a - 64 >> 8 & 255, r[2] = a - 64 & 255); + var h = m, f = 0; + d.streamId !== c.sentStreamId || 0 > q ? (0 !== (g & 4278190080) ? (f = g, r[h] = r[h + 1] = r[h + 2] = 255) : (r[h] = g >> 16 & 255, r[h + 1] = g >> 8 & 255, r[h + 2] = g & 255), h += 3, r[h++] = l >> 16 & 255, r[h++] = l >> 8 & 255, r[h++] = l & 255, r[h++] = d.typeId, r[h++] = d.streamId & 255, r[h++] = d.streamId >> 8 & 255, r[h++] = d.streamId >> 16 & 255, r[h++] = d.streamId >> 24 & 255) : l !== c.sentLength || d.typeId !== c.sentTypeId ? (r[0] |= 64, 0 !== (q & 4278190080) ? (f = q, + r[h] = r[h + 1] = r[h + 2] = 255) : (r[h] = q >> 16 & 255, r[h + 1] = q >> 8 & 255, r[h + 2] = q & 255), h += 3, r[h++] = l >> 16 & 255, r[h++] = l >> 8 & 255, r[h++] = l & 255, r[h++] = d.typeId) : 0 !== q ? (r[0] |= 128, 0 !== (q & 4278190080) ? (f = q, r[h] = r[h + 1] = r[h + 2] = 255) : (r[h] = q >> 16 & 255, r[h + 1] = q >> 8 & 255, r[h + 2] = q & 255), h += 3) : r[0] |= 192; + f && (r[h++] = f >>> 24 & 255, r[h++] = f >>> 16 & 255, r[h++] = f >>> 8 & 255, r[h++] = f & 255); + c.sentTimestamp = g; c.sentStreamId = d.streamId; c.sentTypeId = d.typeId; c.sentLength = l; for (c = 0;c < l;) { - q = Math.min(l - c, this.chunkSize), s.set(k.subarray(c, c + q), g), c += q, this.ondata(s.subarray(0, g + q)), s[0] |= 192, g = m; + q = Math.min(l - c, this.chunkSize), r.set(n.subarray(c, c + q), h), c += q, this.ondata(r.subarray(0, h + q)), r[0] |= 192, h = m; } - return h; + return g; }; a.prototype._getChunkStream = function(a) { var d = this.chunkStreams[a]; @@ -28079,41 +28058,41 @@ var RtmpJs; }; a.prototype._parseChunkedData = function() { if (!(1 > this.bufferLength)) { - var a = this.buffer[0] >> 6 & 3, d = 1, k = this.buffer[0] & 63; - if (0 === k) { + var a = this.buffer[0] >> 6 & 3, d = 1, n = this.buffer[0] & 63; + if (0 === n) { if (2 > this.bufferLength) { return; } - k = this.buffer[1] + 64; + n = this.buffer[1] + 64; d = 2; } else { - if (1 === k) { + if (1 === n) { if (2 > this.bufferLength) { return; } - k = (this.buffer[1] << 8) + this.buffer[2] + 64; + n = (this.buffer[1] << 8) + this.buffer[2] + 64; d = 3; } } var l = 0 === a ? 11 : 1 === a ? 7 : 2 === a ? 3 : 0; if (!(this.bufferLength < d + l)) { - var c = 3 !== a && 255 === this.buffer[d] && 255 === this.buffer[d + 1] && 255 === this.buffer[d + 2] ? 4 : 0, h = d + l + c; - if (!(this.bufferLength < h)) { - var k = this._getChunkStream(k), q; - q = 3 === a ? k.lastTimestamp : this.buffer[d] << 16 | this.buffer[d + 1] << 8 | this.buffer[d + 2]; + var c = 3 !== a && 255 === this.buffer[d] && 255 === this.buffer[d + 1] && 255 === this.buffer[d + 2] ? 4 : 0, g = d + l + c; + if (!(this.bufferLength < g)) { + var n = this._getChunkStream(n), q; + q = 3 === a ? n.lastTimestamp : this.buffer[d] << 16 | this.buffer[d + 1] << 8 | this.buffer[d + 2]; c && (q = d + l, q = this.buffer[q] << 24 | this.buffer[q + 1] << 16 | this.buffer[q + 2] << 8 | this.buffer[q + 3]); if (1 === a || 2 === a) { - q = k.lastTimestamp + q | 0; + q = n.lastTimestamp + q | 0; } - var l = k.lastLength, c = k.lastTypeId, s = k.lastStreamId; + var l = n.lastLength, c = n.lastTypeId, r = n.lastStreamId; if (0 === a || 1 === a) { l = this.buffer[d + 3] << 16 | this.buffer[d + 4] << 8 | this.buffer[d + 5], c = this.buffer[d + 6]; } - 0 === a && (s = this.buffer[d + 10] << 24 | this.buffer[d + 9] << 16 | this.buffer[d + 8] << 8 | this.buffer[d + 7]); + 0 === a && (r = this.buffer[d + 10] << 24 | this.buffer[d + 9] << 16 | this.buffer[d + 8] << 8 | this.buffer[d + 7]); var m; - 3 === a && k.waitingForBytes ? (m = !1, a = Math.min(k.waitingForBytes, this.peerChunkSize), d = k.waitingForBytes - a) : (m = !0, a = Math.min(l, this.peerChunkSize), d = l - a); - if (!(this.bufferLength < h + a)) { - return k.lastTimestamp = q, k.lastLength = l, k.lastTypeId = c, k.lastStreamId = s, k.lastMessageComplete = !d, k.waitingForBytes = d, k._push(this.buffer.subarray(h, h + a), m, !d), h + a; + 3 === a && n.waitingForBytes ? (m = !1, a = Math.min(n.waitingForBytes, this.peerChunkSize), d = n.waitingForBytes - a) : (m = !0, a = Math.min(l, this.peerChunkSize), d = l - a); + if (!(this.bufferLength < g + a)) { + return n.lastTimestamp = q, n.lastLength = l, n.lastTypeId = c, n.lastStreamId = r, n.lastMessageComplete = !d, n.waitingForBytes = d, n._push(this.buffer.subarray(g, g + a), m, !d), g + a; } } } @@ -28186,9 +28165,9 @@ var RtmpJs; } else { var m = d.readObject(), d = d.readObject(); if (c.onstreamcreated) { - var g = new p(c, d); - c._streams[d] = g; - c.onstreamcreated({transactionId:l, commandObject:m, streamId:d, stream:g, isError:a}); + var h = new n(c, d); + c._streams[d] = h; + c.onstreamcreated({transactionId:l, commandObject:m, streamId:d, stream:h, isError:a}); } } } else { @@ -28203,26 +28182,26 @@ var RtmpJs; return this.channel = l; }; a.prototype.call = function(a, d, l, c) { - var h = this.channel, q = new k.utils.ByteArray; + var g = this.channel, q = new k.utils.ByteArray; q.objectEncoding = 0; q.writeObject(a); q.writeObject(d); q.writeObject(l); q.writeObject(c); - h.send(3, {streamId:0, typeId:20, data:new Uint8Array(q._buffer, 0, q.length)}); + g.send(3, {streamId:0, typeId:20, data:new Uint8Array(q._buffer, 0, q.length)}); }; a.prototype.createStream = function(a) { this.sendCommandOrResponse("createStream", a, null); }; a.prototype.sendCommandOrResponse = function(a, d, l, c) { - var h = this.channel, q = new k.utils.ByteArray; + var g = this.channel, q = new k.utils.ByteArray; q.writeByte(0); q.objectEncoding = 0; q.writeObject(a); q.writeObject(d); q.writeObject(l || null); 3 < arguments.length && q.writeObject(c); - h.send(3, {streamId:0, typeId:17, data:new Uint8Array(q._buffer, 0, q.length)}); + g.send(3, {streamId:0, typeId:17, data:new Uint8Array(q._buffer, 0, q.length)}); }; a.prototype._setBuffer = function(a) { this.channel.sendUserControlMessage(3, new Uint8Array([a >> 24 & 255, a >> 16 & 255, a >> 8 & 255, a & 255, 0, 0, 0, 100])); @@ -28233,22 +28212,22 @@ var RtmpJs; return a; }(); d.BaseTransport = a; - var p = function() { - function a(d, k) { + var n = function() { + function a(d, n) { this.transport = d; - this.streamId = k; + this.streamId = n; } a.prototype.play = function(a, d, l, c) { - var h = new k.utils.ByteArray; - h.objectEncoding = 0; - h.writeObject("play"); - h.writeObject(0); - h.writeObject(null); - h.writeObject(a); - 1 < arguments.length && h.writeObject(d); - 2 < arguments.length && h.writeObject(l); - 3 < arguments.length && h.writeObject(c); - this.transport._sendCommand(this.streamId, new Uint8Array(h._buffer, 0, h.length)); + var g = new k.utils.ByteArray; + g.objectEncoding = 0; + g.writeObject("play"); + g.writeObject(0); + g.writeObject(null); + g.writeObject(a); + 1 < arguments.length && g.writeObject(d); + 2 < arguments.length && g.writeObject(l); + 3 < arguments.length && g.writeObject(c); + this.transport._sendCommand(this.streamId, new Uint8Array(g._buffer, 0, g.length)); this.transport._setBuffer(this.streamId); }; a.prototype._push = function(a) { @@ -28280,26 +28259,26 @@ var RtmpJs; if (0 > d || "/" !== a[d + 1]) { return null; } - var k = a.substring(0, d).toLocaleLowerCase(); - if ("rtmp" !== k && "rtmpt" !== k && "rtmps" !== k && "rtmpe" !== k && "rtmpte" !== k && "rtmfp" !== k) { + var n = a.substring(0, d).toLocaleLowerCase(); + if ("rtmp" !== n && "rtmpt" !== n && "rtmps" !== n && "rtmpe" !== n && "rtmpte" !== n && "rtmfp" !== n) { return null; } - var l, c, h = d + 1; + var l, c, g = d + 1; if ("/" === a[d + 2]) { - h = a.indexOf("/", d + 3); - if (0 > h) { + g = a.indexOf("/", d + 3); + if (0 > g) { return; } var q = a.indexOf(":", d + 1); - 0 <= q && q < h ? (l = a.substring(d + 3, q), c = +a.substring(q + 1, h)) : l = a.substring(d + 3, h); + 0 <= q && q < g ? (l = a.substring(d + 3, q), c = +a.substring(q + 1, g)) : l = a.substring(d + 3, g); } - return{protocol:k, host:l, port:c, app:a.substring(h + 1)}; + return {protocol:n, host:l, port:c, app:a.substring(g + 1)}; }; })(RtmpJs || (RtmpJs = {})); (function(d) { (function(k) { function a(a, d, l) { - d || (d = v); + d || (d = w); var c = "undefined" !== typeof k.ShumwayComRtmpXHR && k.ShumwayComRtmpXHR.isAvailable ? new k.ShumwayComRtmpXHR : new XMLHttpRequest({mozSystem:!0}); c.open("POST", a, !0); c.responseType = "arraybuffer"; @@ -28313,7 +28292,7 @@ var RtmpJs; }; c.send(d); } - var p = function(a) { + var n = function(a) { function d(l) { a.call(this); "string" === typeof l && (l = {host:l}); @@ -28323,46 +28302,46 @@ var RtmpJs; } __extends(d, a); d.prototype.connect = function(a, c) { - function h(b) { + function g(b) { return f.send(b.buffer, b.byteOffset, b.byteLength); } var d = "undefined" !== typeof navigator && navigator.mozTCPSocket; if (!d) { throw Error("Your browser does not support socket communication.\nCurrenly only Firefox with enabled mozTCPSocket is allowed (see README.md)."); } - var s = this._initChannel(a, c), m = [], g = !1, f = "undefined" !== typeof k.ShumwayComRtmpSocket && k.ShumwayComRtmpSocket.isAvailable ? new k.ShumwayComRtmpSocket(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}) : d.open(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}); + var r = this._initChannel(a, c), m = [], h = !1, f = "undefined" !== typeof k.ShumwayComRtmpSocket && k.ShumwayComRtmpSocket.isAvailable ? new k.ShumwayComRtmpSocket(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}) : d.open(this.host, this.port, {useSecureTransport:this.ssl, binaryType:"arraybuffer"}); f.onopen = function(b) { - s.ondata = function(b) { + r.ondata = function(b) { b = new Uint8Array(b); m.push(b); - 1 < m.length || h(b) && m.shift(); + 1 < m.length || g(b) && m.shift(); }; - s.onclose = function() { + r.onclose = function() { f.close(); }; - s.start(); + r.start(); }; f.ondrain = function(b) { - for (m.shift();0 < m.length && h(m[0]);) { + for (m.shift();0 < m.length && g(m[0]);) { m.shift(); } }; f.onclose = function(b) { - s.stop(g); + r.stop(h); }; f.onerror = function(b) { - g = !0; + h = !0; console.error("socket error: " + b.data); }; f.ondata = function(b) { - s.push(new Uint8Array(b.data)); + r.push(new Uint8Array(b.data)); }; }; return d; }(d.BaseTransport); - k.RtmpTransport = p; - p = function(d) { - function k(a) { + k.RtmpTransport = n; + n = function(d) { + function n(a) { d.call(this); var c = (a.ssl ? "https" : "http") + "://" + (a.host || "localhost"); a.port && (c += ":" + a.port); @@ -28372,13 +28351,13 @@ var RtmpJs; this.requestId = 0; this.data = []; } - __extends(k, d); - k.prototype.connect = function(d, c) { - var h = this._initChannel(d, c); - h.ondata = function(a) { + __extends(n, d); + n.prototype.connect = function(d, c) { + var g = this._initChannel(d, c); + g.ondata = function(a) { this.data.push(new Uint8Array(a)); }.bind(this); - h.onclose = function() { + g.onclose = function() { this.stopped = !0; }.bind(this); a(this.baseUrl + "/fcs/ident2", null, function(c, d) { @@ -28389,30 +28368,30 @@ var RtmpJs; this.sessionId = String.fromCharCode.apply(null, a).slice(0, -1); console.log("session id: " + this.sessionId); this.tick(); - h.start(); + g.start(); }.bind(this)); }.bind(this)); }; - k.prototype.tick = function() { + n.prototype.tick = function() { var d = function(a, c) { if (200 !== c) { throw Error("Invalid HTTP status"); } - var g = a[0]; + var h = a[0]; 1 < a.length && this.channel.push(a.subarray(1)); - setTimeout(this.tick.bind(this), 16 * g); + setTimeout(this.tick.bind(this), 16 * h); }.bind(this); if (this.stopped) { a(this.baseUrl + "/close/2", null, function() { }); } else { if (0 < this.data.length) { - var c, h = 0; + var c, g = 0; this.data.forEach(function(a) { - h += a.length; + g += a.length; }); var q = 0; - c = new Uint8Array(h); + c = new Uint8Array(g); this.data.forEach(function(a) { c.set(a, q); q += a.length; @@ -28424,10 +28403,10 @@ var RtmpJs; } } }; - return k; + return n; }(d.BaseTransport); - k.RtmptTransport = p; - var v = new Uint8Array([0]); + k.RtmptTransport = n; + var w = new Uint8Array([0]); })(d.Browser || (d.Browser = {})); })(RtmpJs || (RtmpJs = {})); (function(d) { @@ -28445,10 +28424,10 @@ var RtmpJs; a[c + 2] = b >> 8 & 255; a[c + 3] = b & 255; } - function t(a) { + function v(a) { return a.charCodeAt(0) << 24 | a.charCodeAt(1) << 16 | a.charCodeAt(2) << 8 | a.charCodeAt(3); } - var u = Shumway.StringUtilities.utf8decode, l = [1, 0, 0, 0, 1, 0, 0, 0, 1], c = [0, 0, 0], h = function() { + var u = Shumway.StringUtilities.utf8decode, l = [1, 0, 0, 0, 1, 0, 0, 0, 1], c = [0, 0, 0], g = function() { function a(c, b) { this.boxtype = c; "uuid" === c && (this.userType = b); @@ -28461,7 +28440,7 @@ var RtmpJs; }; a.prototype.write = function(a) { k(a, this.offset, this.size); - k(a, this.offset + 4, t(this.boxtype)); + k(a, this.offset + 4, v(this.boxtype)); if (!this.userType) { return 8; } @@ -28475,7 +28454,7 @@ var RtmpJs; }; return a; }(); - a.Box = h; + a.Box = g; var q = function(a) { function c(b, e, f) { void 0 === e && (e = 0); @@ -28494,9 +28473,9 @@ var RtmpJs; return e + 4; }; return c; - }(h); + }(g); a.FullBox = q; - var s = function(a) { + var r = function(a) { function c(b, e, f) { a.call(this, "ftype"); this.majorBrand = b; @@ -28509,19 +28488,19 @@ var RtmpJs; }; c.prototype.write = function(b) { var e = this, c = a.prototype.write.call(this, b); - k(b, this.offset + c, t(this.majorBrand)); + k(b, this.offset + c, v(this.majorBrand)); k(b, this.offset + c + 4, this.minorVersion); c += 8; this.compatibleBrands.forEach(function(a) { - k(b, e.offset + c, t(a)); + k(b, e.offset + c, v(a)); c += 4; }, this); return c; }; return c; - }(h); - a.FileTypeBox = s; - s = function(a) { + }(g); + a.FileTypeBox = r; + r = function(a) { function c(b, e) { a.call(this, b); this.children = e; @@ -28542,36 +28521,36 @@ var RtmpJs; return e; }; return c; - }(h); - a.BoxContainerBox = s; + }(g); + a.BoxContainerBox = r; var m = function(a) { - function c(b, e, f, h) { - a.call(this, "moov", d([b], e, [f, h])); + function c(b, e, f, g) { + a.call(this, "moov", d([b], e, [f, g])); this.header = b; this.tracks = e; this.extendsBox = f; - this.userData = h; + this.userData = g; } __extends(c, a); return c; - }(s); + }(r); a.MovieBox = m; m = function(a) { - function c(b, e, f, h, d, m, q, k) { - void 0 === h && (h = 1); + function c(b, e, f, g, d, m, q, r) { + void 0 === g && (g = 1); void 0 === d && (d = 1); void 0 === m && (m = l); void 0 === q && (q = -20828448E5); - void 0 === k && (k = -20828448E5); + void 0 === r && (r = -20828448E5); a.call(this, "mvhd", 0, 0); this.timescale = b; this.duration = e; this.nextTrackId = f; - this.rate = h; + this.rate = g; this.volume = d; this.matrix = m; this.creationTime = q; - this.modificationTime = k; + this.modificationTime = r; } __extends(c, a); c.prototype.layout = function(b) { @@ -28618,23 +28597,23 @@ var RtmpJs; a[a.TRACK_IN_PREVIEW = 4] = "TRACK_IN_PREVIEW"; })(a.TrackHeaderFlags || (a.TrackHeaderFlags = {})); m = function(a) { - function c(b, e, f, h, d, m, q, k, s, p, t) { + function c(b, e, f, g, d, m, q, r, n, k, v) { void 0 === q && (q = 0); - void 0 === k && (k = 0); - void 0 === s && (s = l); - void 0 === p && (p = -20828448E5); - void 0 === t && (t = -20828448E5); + void 0 === r && (r = 0); + void 0 === n && (n = l); + void 0 === k && (k = -20828448E5); + void 0 === v && (v = -20828448E5); a.call(this, "tkhd", 0, b); this.trackId = e; this.duration = f; - this.width = h; + this.width = g; this.height = d; this.volume = m; this.alternateGroup = q; - this.layer = k; - this.matrix = s; - this.creationTime = p; - this.modificationTime = t; + this.layer = r; + this.matrix = n; + this.creationTime = k; + this.modificationTime = v; } __extends(c, a); c.prototype.layout = function(b) { @@ -28671,15 +28650,15 @@ var RtmpJs; }(q); a.TrackHeaderBox = m; m = function(a) { - function c(b, e, f, h, d) { + function c(b, e, f, g, d) { void 0 === f && (f = "unk"); - void 0 === h && (h = -20828448E5); + void 0 === g && (g = -20828448E5); void 0 === d && (d = -20828448E5); a.call(this, "mdhd", 0, 0); this.timescale = b; this.duration = e; this.language = f; - this.creationTime = h; + this.creationTime = g; this.modificationTime = d; } __extends(c, a); @@ -28713,7 +28692,7 @@ var RtmpJs; c.prototype.write = function(b) { var e = a.prototype.write.call(this, b); k(b, this.offset + e, 0); - k(b, this.offset + e + 4, t(this.handlerType)); + k(b, this.offset + e + 4, v(this.handlerType)); k(b, this.offset + e + 8, 0); k(b, this.offset + e + 12, 0); k(b, this.offset + e + 16, 0); @@ -28817,7 +28796,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.DataInformationBox = m; m = function(a) { function c(b) { @@ -28845,17 +28824,17 @@ var RtmpJs; }(q); a.SampleDescriptionBox = m; m = function(a) { - function c(b, e, f, h, d) { - a.call(this, "stbl", [b, e, f, h, d]); + function c(b, e, f, g, d) { + a.call(this, "stbl", [b, e, f, g, d]); this.sampleDescriptions = b; this.timeToSample = e; this.sampleToChunk = f; - this.sampleSizes = h; + this.sampleSizes = g; this.chunkOffset = d; } __extends(c, a); return c; - }(s); + }(r); a.SampleTableBox = m; m = function(a) { function c(b, e, f) { @@ -28866,7 +28845,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.MediaInformationBox = m; m = function(a) { function c(b, e, f) { @@ -28877,7 +28856,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.MediaBox = m; m = function(a) { function c(b, e) { @@ -28887,15 +28866,15 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.TrackBox = m; m = function(a) { - function c(b, e, f, h, d) { + function c(b, e, f, g, d) { a.call(this, "trex", 0, 0); this.trackId = b; this.defaultSampleDescriptionIndex = e; this.defaultSampleDuration = f; - this.defaultSampleSize = h; + this.defaultSampleSize = g; this.defaultSampleFlags = d; } __extends(c, a); @@ -28923,7 +28902,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.MovieExtendsBox = m; m = function(a) { function c(b, e) { @@ -28974,11 +28953,11 @@ var RtmpJs; a[a.DEFAULT_SAMPLE_FLAGS_PRESENT = 32] = "DEFAULT_SAMPLE_FLAGS_PRESENT"; })(a.TrackFragmentFlags || (a.TrackFragmentFlags = {})); m = function(a) { - function c(b, e, f, h, d, m, l) { + function c(b, e, f, g, d, m, l) { a.call(this, "tfhd", 0, b); this.trackId = e; this.baseDataOffset = f; - this.sampleDescriptionIndex = h; + this.sampleDescriptionIndex = g; this.defaultSampleDuration = d; this.defaultSampleSize = m; this.defaultSampleFlags = l; @@ -29034,7 +29013,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.TrackFragmentBox = m; (function(a) { a[a.IS_LEADING_MASK = 201326592] = "IS_LEADING_MASK"; @@ -29056,11 +29035,11 @@ var RtmpJs; a[a.SAMPLE_COMPOSITION_TIME_OFFSET = 2048] = "SAMPLE_COMPOSITION_TIME_OFFSET"; })(a.TrackRunFlags || (a.TrackRunFlags = {})); q = function(a) { - function c(b, e, f, h) { + function c(b, e, f, g) { a.call(this, "trun", 1, b); this.samples = e; this.dataOffset = f; - this.firstSampleFlags = h; + this.firstSampleFlags = g; } __extends(c, a); c.prototype.layout = function(b) { @@ -29080,8 +29059,8 @@ var RtmpJs; e += 4; f & 1 && (k(b, this.offset + e, this.dataOffset), e += 4); f & 4 && (k(b, this.offset + e, this.firstSampleFlags), e += 4); - for (var h = 0;h < c;h++) { - var d = this.samples[h]; + for (var g = 0;g < c;g++) { + var d = this.samples[g]; f & 256 && (k(b, this.offset + e, d.duration), e += 4); f & 512 && (k(b, this.offset + e, d.size), e += 4); f & 1024 && (k(b, this.offset + e, d.flags), e += 4); @@ -29100,7 +29079,7 @@ var RtmpJs; } __extends(c, a); return c; - }(s); + }(r); a.MovieFragmentBox = q; q = function(a) { function c(b) { @@ -29124,7 +29103,7 @@ var RtmpJs; return c; }; return c; - }(h); + }(g); a.MediaDataBox = q; q = function(a) { function c(b, e) { @@ -29142,17 +29121,17 @@ var RtmpJs; return e + 8; }; return c; - }(h); + }(g); a.SampleEntry = q; - s = function(a) { - function c(b, e, f, h, d, m) { + r = function(a) { + function c(b, e, f, g, d, m) { void 0 === f && (f = 2); - void 0 === h && (h = 16); + void 0 === g && (g = 16); void 0 === d && (d = 44100); void 0 === m && (m = null); a.call(this, b, e); this.channelCount = f; - this.sampleSize = h; + this.sampleSize = g; this.sampleRate = d; this.otherBoxes = m; } @@ -29179,25 +29158,25 @@ var RtmpJs; }; return c; }(q); - a.AudioSampleEntry = s; + a.AudioSampleEntry = r; a.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH = 24; q = function(c) { - function f(b, e, f, h, d, m, l, q, k, s) { + function f(b, e, f, g, d, m, l, q, r, n) { void 0 === d && (d = ""); void 0 === m && (m = 72); void 0 === l && (l = 72); void 0 === q && (q = 1); - void 0 === k && (k = a.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH); - void 0 === s && (s = null); + void 0 === r && (r = a.COLOR_NO_ALPHA_VIDEO_SAMPLE_DEPTH); + void 0 === n && (n = null); c.call(this, b, e); this.width = f; - this.height = h; + this.height = g; this.compressorName = d; this.horizResolution = m; this.vertResolution = l; this.frameCount = q; - this.depth = k; - this.otherBoxes = s; + this.depth = r; + this.otherBoxes = n; if (31 < d.length) { throw Error("invalid compressor name"); } @@ -29239,7 +29218,7 @@ var RtmpJs; return f; }(q); a.VideoSampleEntry = q; - h = function(a) { + g = function(a) { function c(b, e) { a.call(this, b); this.data = e; @@ -29254,24 +29233,24 @@ var RtmpJs; return e + this.data.length; }; return c; - }(h); - a.RawTag = h; + }(g); + a.RawTag = g; })(d.Iso || (d.Iso = {})); })(d.MP4 || (d.MP4 = {})); })(RtmpJs || (RtmpJs = {})); (function(d) { (function(d) { function a(a) { - for (var c = a.length >> 1, h = new Uint8Array(c), g = 0;g < c;g++) { - h[g] = parseInt(a.substr(2 * g, 2), 16); + for (var c = a.length >> 1, g = new Uint8Array(c), h = 0;h < c;h++) { + g[h] = parseInt(a.substr(2 * h, 2), 16); } - return h; + return g; } - var p = [5500, 11025, 22050, 44100], v = ["PCM", "ADPCM", "MP3", "PCM le", "Nellymouser16", "Nellymouser8", "Nellymouser", "G.711 A-law", "G.711 mu-law", null, "AAC", "Speex", "MP3 8khz"], t; + var n = [5500, 11025, 22050, 44100], w = ["PCM", "ADPCM", "MP3", "PCM le", "Nellymouser16", "Nellymouser8", "Nellymouser", "G.711 A-law", "G.711 mu-law", null, "AAC", "Speex", "MP3 8khz"], v; (function(a) { a[a.HEADER = 0] = "HEADER"; a[a.RAW = 1] = "RAW"; - })(t || (t = {})); + })(v || (v = {})); var u = [null, "JPEG", "Sorenson", "Screen", "VP6", "VP6 alpha", "Screen2", "AVC"], l; (function(a) { a[a.KEY = 1] = "KEY"; @@ -29286,15 +29265,15 @@ var RtmpJs; a[a.NALU = 1] = "NALU"; a[a.END = 2] = "END"; })(c || (c = {})); - var h; + var g; (function(a) { a[a.CAN_GENERATE_HEADER = 0] = "CAN_GENERATE_HEADER"; a[a.NEED_HEADER_DATA = 1] = "NEED_HEADER_DATA"; a[a.MAIN_PACKETS = 2] = "MAIN_PACKETS"; - })(h || (h = {})); - t = function() { + })(g || (g = {})); + v = function() { function c(a) { - var h = this; + var g = this; this.oncodecinfo = function(a) { }; this.ondata = function(a) { @@ -29303,8 +29282,8 @@ var RtmpJs; this.metadata = a; this.trackStates = this.metadata.tracks.map(function(a, c) { var b = {trackId:c + 1, trackInfo:a, cachedDuration:0, samplesProcessed:0, initializationData:[]}; - h.metadata.audioTrackId === c && (h.audioTrackState = b); - h.metadata.videoTrackId === c && (h.videoTrackState = b); + g.metadata.audioTrackId === c && (g.audioTrackState = b); + g.metadata.videoTrackId === c && (g.videoTrackState = b); return b; }, this); this._checkIfNeedHeaderData(); @@ -29312,14 +29291,14 @@ var RtmpJs; this.cachedPackets = []; this.chunkIndex = 0; } - c.prototype.pushPacket = function(a, c, g) { + c.prototype.pushPacket = function(a, c, h) { 0 === this.state && this._tryGenerateHeader(); switch(a) { case 8: a = this.audioTrackState; - var f = 0, b = 1, e = c[f], h = e >> 4, d; + var f = 0, b = 1, e = c[f], g = e >> 4, d; f++; - switch(h) { + switch(g) { case 10: b = c[f++]; d = 1024; @@ -29329,7 +29308,7 @@ var RtmpJs; var l = c[f + 1] >> 1 & 3; d = 1 === l ? 3 === d ? 1152 : 576 : 3 === l ? 384 : 1152; } - c = {codecDescription:v[h], codecId:h, data:c.subarray(f), rate:p[e >> 2 & 3], size:e & 2 ? 16 : 8, channels:e & 1 ? 2 : 1, samples:d, packetType:b}; + c = {codecDescription:w[g], codecId:g, data:c.subarray(f), rate:n[e >> 2 & 3], size:e & 2 ? 16 : 8, channels:e & 1 ? 2 : 1, samples:d, packetType:b}; if (!a || a.trackInfo.codecId !== c.codecId) { throw Error("Unexpected audio packet codec: " + c.codecDescription); } @@ -29345,7 +29324,7 @@ var RtmpJs; } ; } - this.cachedPackets.push({packet:c, timestamp:g, trackId:a.trackId}); + this.cachedPackets.push({packet:c, timestamp:h, trackId:a.trackId}); break; case 9: a = this.videoTrackState; @@ -29380,7 +29359,7 @@ var RtmpJs; } ; } - this.cachedPackets.push({packet:e, timestamp:g, trackId:a.trackId}); + this.cachedPackets.push({packet:e, timestamp:h, trackId:a.trackId}); break; default: throw Error("unknown packet type: " + a);; @@ -29404,25 +29383,25 @@ var RtmpJs; case 7: return 0 < b.initializationData.length; default: - return!0; + return !0; } })) { - for (var c = ["isom"], h = [], g = 0;g < this.trackStates.length;g++) { - var f = this.trackStates[g], b = f.trackInfo, e; + for (var c = ["isom"], g = [], h = 0;h < this.trackStates.length;h++) { + var f = this.trackStates[h], b = f.trackInfo, e; switch(b.codecId) { case 10: var l = f.initializationData[0]; e = new d.Iso.AudioSampleEntry("mp4a", 1, b.channels, b.samplesize, b.samplerate); - var n = new Uint8Array(41 + l.length); - n.set(a("0000000003808080"), 0); - n[8] = 32 + l.length; - n.set(a("00020004808080"), 9); - n[16] = 18 + l.length; - n.set(a("40150000000000FA000000000005808080"), 17); - n[34] = l.length; - n.set(l, 35); - n.set(a("068080800102"), 35 + l.length); - e.otherBoxes = [new d.Iso.RawTag("esds", n)]; + var p = new Uint8Array(41 + l.length); + p.set(a("0000000003808080"), 0); + p[8] = 32 + l.length; + p.set(a("00020004808080"), 9); + p[16] = 18 + l.length; + p.set(a("40150000000000FA000000000005808080"), 17); + p[34] = l.length; + p.set(l, 35); + p.set(a("068080800102"), 35 + l.length); + e.otherBoxes = [new d.Iso.RawTag("esds", p)]; f.mimeTypeCodec = "mp4a.40." + (l[0] >> 3); break; case 2: @@ -29445,107 +29424,107 @@ var RtmpJs; throw Error("not supported track type");; } var q; - f === this.audioTrackState ? q = new d.Iso.TrackBox(new d.Iso.TrackHeaderBox(3, f.trackId, -1, 0, 0, 1, g), new d.Iso.MediaBox(new d.Iso.MediaHeaderBox(b.timescale, -1, b.language), new d.Iso.HandlerBox("soun", "SoundHandler"), new d.Iso.MediaInformationBox(new d.Iso.SoundMediaHeaderBox, new d.Iso.DataInformationBox(new d.Iso.DataReferenceBox([new d.Iso.DataEntryUrlBox(d.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), new d.Iso.SampleTableBox(new d.Iso.SampleDescriptionBox([e]), new d.Iso.RawTag("stts", - a("0000000000000000")), new d.Iso.RawTag("stsc", a("0000000000000000")), new d.Iso.RawTag("stsz", a("000000000000000000000000")), new d.Iso.RawTag("stco", a("0000000000000000")))))) : f === this.videoTrackState && (q = new d.Iso.TrackBox(new d.Iso.TrackHeaderBox(3, f.trackId, -1, b.width, b.height, 0, g), new d.Iso.MediaBox(new d.Iso.MediaHeaderBox(b.timescale, -1, b.language), new d.Iso.HandlerBox("vide", "VideoHandler"), new d.Iso.MediaInformationBox(new d.Iso.VideoMediaHeaderBox, new d.Iso.DataInformationBox(new d.Iso.DataReferenceBox([new d.Iso.DataEntryUrlBox(d.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), + f === this.audioTrackState ? q = new d.Iso.TrackBox(new d.Iso.TrackHeaderBox(3, f.trackId, -1, 0, 0, 1, h), new d.Iso.MediaBox(new d.Iso.MediaHeaderBox(b.timescale, -1, b.language), new d.Iso.HandlerBox("soun", "SoundHandler"), new d.Iso.MediaInformationBox(new d.Iso.SoundMediaHeaderBox, new d.Iso.DataInformationBox(new d.Iso.DataReferenceBox([new d.Iso.DataEntryUrlBox(d.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), new d.Iso.SampleTableBox(new d.Iso.SampleDescriptionBox([e]), new d.Iso.RawTag("stts", + a("0000000000000000")), new d.Iso.RawTag("stsc", a("0000000000000000")), new d.Iso.RawTag("stsz", a("000000000000000000000000")), new d.Iso.RawTag("stco", a("0000000000000000")))))) : f === this.videoTrackState && (q = new d.Iso.TrackBox(new d.Iso.TrackHeaderBox(3, f.trackId, -1, b.width, b.height, 0, h), new d.Iso.MediaBox(new d.Iso.MediaHeaderBox(b.timescale, -1, b.language), new d.Iso.HandlerBox("vide", "VideoHandler"), new d.Iso.MediaInformationBox(new d.Iso.VideoMediaHeaderBox, new d.Iso.DataInformationBox(new d.Iso.DataReferenceBox([new d.Iso.DataEntryUrlBox(d.Iso.SELF_CONTAINED_DATA_REFERENCE_FLAG)])), new d.Iso.SampleTableBox(new d.Iso.SampleDescriptionBox([e]), new d.Iso.RawTag("stts", a("0000000000000000")), new d.Iso.RawTag("stsc", a("0000000000000000")), new d.Iso.RawTag("stsz", a("000000000000000000000000")), new d.Iso.RawTag("stco", a("0000000000000000"))))))); - h.push(q); + g.push(q); } - g = new d.Iso.MovieExtendsBox(null, [new d.Iso.TrackExtendsBox(1, 1, 0, 0, 0), new d.Iso.TrackExtendsBox(2, 1, 0, 0, 0)], null); + h = new d.Iso.MovieExtendsBox(null, [new d.Iso.TrackExtendsBox(1, 1, 0, 0, 0), new d.Iso.TrackExtendsBox(2, 1, 0, 0, 0)], null); f = new d.Iso.BoxContainerBox("udat", [new d.Iso.MetaBox(new d.Iso.RawTag("hdlr", a("00000000000000006D6469726170706C000000000000000000")), [new d.Iso.RawTag("ilst", a("00000025A9746F6F0000001D6461746100000001000000004C61766635342E36332E313034"))])]); b = new d.Iso.MovieHeaderBox(1E3, 0, this.trackStates.length + 1); - h = new d.Iso.MovieBox(b, h, g, f); + g = new d.Iso.MovieBox(b, g, h, f); c = new d.Iso.FileTypeBox("isom", 512, c); - g = c.layout(0); - f = h.layout(g); - g = new Uint8Array(g + f); - c.write(g); - h.write(g); + h = c.layout(0); + f = g.layout(h); + h = new Uint8Array(h + f); + c.write(h); + g.write(h); this.oncodecinfo(this.trackStates.map(function(b) { return b.mimeTypeCodec; })); - this.ondata(g); - this.filePos += g.length; + this.ondata(h); + this.filePos += h.length; this.state = 2; } }; c.prototype._chunk = function() { var a, c = this.cachedPackets; if (0 !== c.length) { - for (var g = [], f = 0, b = [], e = [], h = 0;h < this.trackStates.length;h++) { - var n = this.trackStates[h], l = n.trackInfo, q = n.trackId, p = c.filter(function(b) { + for (var h = [], f = 0, b = [], e = [], g = 0;g < this.trackStates.length;g++) { + var p = this.trackStates[g], l = p.trackInfo, q = p.trackId, n = c.filter(function(b) { return b.trackId === q; }); - if (0 !== p.length) { - var t = new d.Iso.TrackFragmentBaseMediaDecodeTimeBox(n.cachedDuration), u; + if (0 !== n.length) { + var v = new d.Iso.TrackFragmentBaseMediaDecodeTimeBox(p.cachedDuration), u; e.push(f); switch(l.codecId) { case 10: ; case 2: u = []; - for (a = 0;a < p.length;a++) { - var v = p[a].packet, T = Math.round(v.samples * l.timescale / l.samplerate); - g.push(v.data); - f += v.data.length; - u.push({duration:T, size:v.data.length}); - n.samplesProcessed += v.samples; + for (a = 0;a < n.length;a++) { + var w = n[a].packet, J = Math.round(w.samples * l.timescale / l.samplerate); + h.push(w.data); + f += w.data.length; + u.push({duration:J, size:w.data.length}); + p.samplesProcessed += w.samples; } a = 32; a = new d.Iso.TrackFragmentHeaderBox(a, q, 0, 0, 0, 0, 33554432); - p = 769; - u = new d.Iso.TrackRunBox(p, u, 0, 0); - n.cachedDuration = Math.round(n.samplesProcessed * l.timescale / l.samplerate); + n = 769; + u = new d.Iso.TrackRunBox(n, u, 0, 0); + p.cachedDuration = Math.round(p.samplesProcessed * l.timescale / l.samplerate); break; case 7: ; case 4: u = []; - v = n.samplesProcessed; - T = Math.round(v * l.timescale / l.framerate); - for (a = 0;a < p.length;a++) { - var N = p[a].packet; - v++; - var C = Math.round(v * l.timescale / l.framerate), B = C - T, T = C, H = Math.round(v * l.timescale / l.framerate + N.compositionTime * l.timescale / 1E3); - g.push(N.data); - f += N.data.length; - u.push({duration:B, size:N.data.length, flags:1 === N.frameType ? 33554432 : 16842752, compositionTimeOffset:H - C}); + w = p.samplesProcessed; + J = Math.round(w * l.timescale / l.framerate); + for (a = 0;a < n.length;a++) { + var P = n[a].packet; + w++; + var y = Math.round(w * l.timescale / l.framerate), K = y - J, J = y, H = Math.round(w * l.timescale / l.framerate + P.compositionTime * l.timescale / 1E3); + h.push(P.data); + f += P.data.length; + u.push({duration:K, size:P.data.length, flags:1 === P.frameType ? 33554432 : 16842752, compositionTimeOffset:H - y}); } a = 32; a = new d.Iso.TrackFragmentHeaderBox(a, q, 0, 0, 0, 0, 33554432); - p = 3841; - u = new d.Iso.TrackRunBox(p, u, 0, 0); - n.cachedDuration = T; - n.samplesProcessed = v; + n = 3841; + u = new d.Iso.TrackRunBox(n, u, 0, 0); + p.cachedDuration = J; + p.samplesProcessed = w; break; default: throw Error("Un codec");; } - n = new d.Iso.TrackFragmentBox(a, t, u); - b.push(n); + p = new d.Iso.TrackFragmentBox(a, v, u); + b.push(p); } } this.cachedPackets.splice(0, c.length); - h = new d.Iso.MovieFragmentHeaderBox(++this.chunkIndex); - c = new d.Iso.MovieFragmentBox(h, b); + g = new d.Iso.MovieFragmentHeaderBox(++this.chunkIndex); + c = new d.Iso.MovieFragmentBox(g, b); f = c.layout(0); - g = new d.Iso.MediaDataBox(g); - n = g.layout(f); + h = new d.Iso.MediaDataBox(h); + p = h.layout(f); l = f + 8; - for (h = 0;h < b.length;h++) { - b[h].run.dataOffset = l + e[h]; + for (g = 0;g < b.length;g++) { + b[g].run.dataOffset = l + e[g]; } - b = new Uint8Array(f + n); + b = new Uint8Array(f + p); c.write(b); - g.write(b); + h.write(b); this.ondata(b); this.filePos += b.length; } }; return c; }(); - d.MP4Mux = t; + d.MP4Mux = v; d.parseFLVMetadata = function(a) { - var c = [], h = -1, g = -1, f = +a.asGetPublicProperty("duration"), b, e, d = a.asGetPublicProperty("audiocodecid"); + var c = [], g = -1, h = -1, f = +a.asGetPublicProperty("duration"), b, e, d = a.asGetPublicProperty("audiocodecid"); switch(d) { case 2: ; @@ -29566,39 +29545,39 @@ var RtmpJs; b = null; e = -1; } - var n, l, k = a.asGetPublicProperty("videocodecid"); - switch(k) { + var p, l, n = a.asGetPublicProperty("videocodecid"); + switch(n) { case 4: ; case "vp6f": - n = "vp6f"; + p = "vp6f"; l = 4; break; case 7: ; case "avc1": - n = "avc1"; + p = "avc1"; l = 7; break; default: - if (!isNaN(k)) { - throw Error("Unsupported video codec: " + k); + if (!isNaN(n)) { + throw Error("Unsupported video codec: " + n); } - n = null; + p = null; l = -1; } b = null === b ? null : {codecDescription:b, codecId:e, language:"und", timescale:+a.asGetPublicProperty("audiosamplerate") || 44100, samplerate:+a.asGetPublicProperty("audiosamplerate") || 44100, channels:+a.asGetPublicProperty("audiochannels") || 2, samplesize:16}; - n = null === n ? null : {codecDescription:n, codecId:l, language:"und", timescale:6E4, framerate:+a.asGetPublicProperty("videoframerate") || +a.asGetPublicProperty("framerate"), width:+a.asGetPublicProperty("width"), height:+a.asGetPublicProperty("height")}; + p = null === p ? null : {codecDescription:p, codecId:l, language:"und", timescale:6E4, framerate:+a.asGetPublicProperty("videoframerate") || +a.asGetPublicProperty("framerate"), width:+a.asGetPublicProperty("width"), height:+a.asGetPublicProperty("height")}; if (a = a.asGetPublicProperty("trackinfo")) { for (l = 0;l < a.length;l++) { e = a[l]; - var p = e.asGetPublicProperty("sampledescription")[0]; - p.asGetPublicProperty("sampletype") === d ? (b.language = e.asGetPublicProperty("language"), b.timescale = +e.asGetPublicProperty("timescale")) : p.asGetPublicProperty("sampletype") === k && (n.language = e.asGetPublicProperty("language"), n.timescale = +e.asGetPublicProperty("timescale")); + var k = e.asGetPublicProperty("sampledescription")[0]; + k.asGetPublicProperty("sampletype") === d ? (b.language = e.asGetPublicProperty("language"), b.timescale = +e.asGetPublicProperty("timescale")) : k.asGetPublicProperty("sampletype") === n && (p.language = e.asGetPublicProperty("language"), p.timescale = +e.asGetPublicProperty("timescale")); } } - n && (g = c.length, c.push(n)); - b && (h = c.length, c.push(b)); - return{tracks:c, duration:f, audioTrackId:h, videoTrackId:g}; + p && (h = c.length, c.push(p)); + b && (g = c.length, c.push(b)); + return {tracks:c, duration:f, audioTrackId:g, videoTrackId:h}; }; })(d.MP4 || (d.MP4 = {})); })(RtmpJs || (RtmpJs = {})); @@ -29616,10 +29595,10 @@ var RtmpJs; if (0 < this.bufferSize) { d = this.bufferSize + a.length; if (this.buffer.byteLength < d) { - var k = new Uint8Array(this.buffer, 0, this.bufferSize); + var n = new Uint8Array(this.buffer, 0, this.bufferSize); this.buffer = new ArrayBuffer(d); d = new Uint8Array(this.buffer); - d.set(k); + d.set(n); } else { d = new Uint8Array(this.buffer, 0, d); } @@ -29628,11 +29607,11 @@ var RtmpJs; d = a; } a = 0; - for (k = d.length;a < k;) { + for (n = d.length;a < n;) { var l = 0; switch(this.state) { case 0: - if (a + 9 > k) { + if (a + 9 > n) { break; } var c = d[a + 5] << 24 | d[a + 6] << 16 | d[a + 7] << 8 | d[a + 8]; @@ -29640,20 +29619,20 @@ var RtmpJs; this._error("Invalid header length"); break; } - if (a + c > k) { + if (a + c > n) { break; } if (70 !== d[a] || 76 !== d[a + 1] || 86 !== d[a + 2] || 1 !== d[a + 3] || 0 !== (d[a + 4] & 250)) { this._error("Invalid FLV header"); break; } - var h = d[a + 4], l = 9 < c ? d.subarray(a + 9, a + c) : null; - this.onHeader && this.onHeader({hasAudio:!!(h & 4), hasVideo:!!(h & 1), extra:l}); + var g = d[a + 4], l = 9 < c ? d.subarray(a + 9, a + c) : null; + this.onHeader && this.onHeader({hasAudio:!!(g & 4), hasVideo:!!(g & 1), extra:l}); this.state = 2; l = c; break; case 2: - if (a + 4 + 11 > k) { + if (a + 4 + 11 > n) { break; } if ((d[a + 0] << 24 | d[a + 1] << 16 | d[a + 2] << 8 | d[a + 3]) !== this.previousTagSize) { @@ -29661,21 +29640,21 @@ var RtmpJs; break; } var c = d[a + 5] << 16 | d[a + 6] << 8 | d[a + 7], q = a + 4 + 11; - if (q + c > k) { + if (q + c > n) { break; } - h = d[a + 4]; - if (0 !== (d[a + 12] << 16 | d[a + 13] << 8 | d[a + 14]) || 0 !== (h & 192)) { + g = d[a + 4]; + if (0 !== (d[a + 12] << 16 | d[a + 13] << 8 | d[a + 14]) || 0 !== (g & 192)) { this._error("Invalid FLV tag"); break; } - var s = h & 31; - if (8 !== s && 9 !== s && 18 !== s) { + var r = g & 31; + if (8 !== r && 9 !== r && 18 !== r) { this._error("Invalid FLV tag type"); break; } - var h = !!(h & 32), m = d[a + 8] << 16 | d[a + 9] << 8 | d[a + 10] | d[d + 11] << 24; - this.onTag && this.onTag({type:s, needPreprocessing:h, timestamp:m, data:d.subarray(q, q + c)}); + var g = !!(g & 32), m = d[a + 8] << 16 | d[a + 9] << 8 | d[a + 10] | d[d + 11] << 24; + this.onTag && this.onTag({type:r, needPreprocessing:g, timestamp:m, data:d.subarray(q, q + c)}); l += 15 + c; this.previousTagSize = c + 11; this.state = 2; @@ -29707,17 +29686,17 @@ var RtmpJs; (function(a) { (function(d) { (function(k) { - function t(a) { + function v(a) { switch(a) { case c: ; - case -h: + case -g: return 0; case l: ; case -l: - return-1; - case h: + return -1; + case g: ; case -c: return 0; @@ -29729,34 +29708,34 @@ var RtmpJs; switch(a) { case c: ; - case -h: + case -g: return 1; case l: ; case -l: return 0; - case h: + case g: ; case -c: - return-1; + return -1; default: return Math.sin(a); } } - var l = Math.PI, c = l / 2, h = l + c, q = 2 * l, s = function(a) { - function c(a, b, e, g, h, d) { + var l = Math.PI, c = l / 2, g = l + c, q = 2 * l, r = function(a) { + function c(a, b, e, h, g, d) { void 0 === a && (a = 1); void 0 === b && (b = 0); void 0 === e && (e = 0); - void 0 === g && (g = 1); - void 0 === h && (h = 0); + void 0 === h && (h = 1); + void 0 === g && (g = 0); void 0 === d && (d = 0); var m = this._data = new Float64Array(6); m[0] = a; m[1] = b; m[2] = e; - m[3] = g; - m[4] = h; + m[3] = h; + m[4] = g; m[5] = d; } __extends(c, a); @@ -29799,14 +29778,14 @@ var RtmpJs; c.prototype.concat = function(a) { var b = this._data; a = a._data; - var e = b[0] * a[0], c = 0, g = 0, h = b[3] * a[3], d = b[4] * a[0] + a[4], m = b[5] * a[3] + a[5]; + var e = b[0] * a[0], c = 0, h = 0, g = b[3] * a[3], d = b[4] * a[0] + a[4], m = b[5] * a[3] + a[5]; if (0 !== b[1] || 0 !== b[2] || 0 !== a[1] || 0 !== a[2]) { - e += b[1] * a[2], h += b[2] * a[1], c += b[0] * a[1] + b[1] * a[3], g += b[2] * a[0] + b[3] * a[2], d += b[5] * a[2], m += b[4] * a[1]; + e += b[1] * a[2], g += b[2] * a[1], c += b[0] * a[1] + b[1] * a[3], h += b[2] * a[0] + b[3] * a[2], d += b[5] * a[2], m += b[4] * a[1]; } b[0] = e; b[1] = c; - b[2] = g; - b[3] = h; + b[2] = h; + b[3] = g; b[4] = d; b[5] = m; }; @@ -29814,30 +29793,30 @@ var RtmpJs; this.preMultiplyInto(a, this); }; c.prototype.preMultiplyInto = function(a, b) { - var e = this._data, c = a._data, g = b._data, h = c[0] * e[0], d = 0, m = 0, l = c[3] * e[3], q = c[4] * e[0] + e[4], k = c[5] * e[3] + e[5]; + var e = this._data, c = a._data, h = b._data, g = c[0] * e[0], d = 0, m = 0, l = c[3] * e[3], q = c[4] * e[0] + e[4], n = c[5] * e[3] + e[5]; if (0 !== c[1] || 0 !== c[2] || 0 !== e[1] || 0 !== e[2]) { - h += c[1] * e[2], l += c[2] * e[1], d += c[0] * e[1] + c[1] * e[3], m += c[2] * e[0] + c[3] * e[2], q += c[5] * e[2], k += c[4] * e[1]; + g += c[1] * e[2], l += c[2] * e[1], d += c[0] * e[1] + c[1] * e[3], m += c[2] * e[0] + c[3] * e[2], q += c[5] * e[2], n += c[4] * e[1]; } - g[0] = h; - g[1] = d; - g[2] = m; - g[3] = l; - g[4] = q; - g[5] = k; + h[0] = g; + h[1] = d; + h[2] = m; + h[3] = l; + h[4] = q; + h[5] = n; }; c.prototype.invert = function() { this.invertInto(this); }; c.prototype.invertInto = function(a) { - var b = this._data, e = a._data, c = b[1], g = b[2], h = b[4], d = b[5]; - if (0 === c && 0 === g) { + var b = this._data, e = a._data, c = b[1], h = b[2], g = b[4], d = b[5]; + if (0 === c && 0 === h) { var m = e[0] = 1 / b[0], b = e[3] = 1 / b[3]; e[1] = e[2] = 0; - e[4] = -m * h; + e[4] = -m * g; e[5] = -b * d; } else { - var m = b[0], b = b[3], l = m * b - c * g; - 0 === l ? a.identity() : (l = 1 / l, a = 0, a = e[0] = b * l, c = e[1] = -c * l, g = e[2] = -g * l, b = e[3] = m * l, e[4] = -(a * h + g * d), e[5] = -(c * h + b * d)); + var m = b[0], b = b[3], l = m * b - c * h; + 0 === l ? a.identity() : (l = 1 / l, a = 0, a = e[0] = b * l, c = e[1] = -c * l, h = e[2] = -h * l, b = e[3] = m * l, e[4] = -(a * g + h * d), e[5] = -(c * g + b * d)); } }; c.prototype.identity = function() { @@ -29845,40 +29824,40 @@ var RtmpJs; a[0] = a[3] = 1; a[1] = a[2] = a[4] = a[5] = 0; }; - c.prototype.createBox = function(a, b, e, c, g) { + c.prototype.createBox = function(a, b, e, c, h) { void 0 === e && (e = 0); void 0 === c && (c = 0); - void 0 === g && (g = 0); - var h = this._data; + void 0 === h && (h = 0); + var g = this._data; if (0 !== e) { - var d = t(e); + var d = v(e); e = u(e); - h[0] = d * a; - h[1] = e * b; - h[2] = -e * a; - h[3] = d * b; + g[0] = d * a; + g[1] = e * b; + g[2] = -e * a; + g[3] = d * b; } else { - h[0] = a, h[1] = 0, h[2] = 0, h[3] = b; + g[0] = a, g[1] = 0, g[2] = 0, g[3] = b; } - h[4] = c; - h[5] = g; + g[4] = c; + g[5] = h; }; - c.prototype.createGradientBox = function(a, b, e, c, g) { + c.prototype.createGradientBox = function(a, b, e, c, h) { void 0 === e && (e = 0); void 0 === c && (c = 0); - void 0 === g && (g = 0); - this.createBox(a / 1638.4, b / 1638.4, e, c + a / 2, g + b / 2); + void 0 === h && (h = 0); + this.createBox(a / 1638.4, b / 1638.4, e, c + a / 2, h + b / 2); }; c.prototype.rotate = function(a) { a = +a; if (0 !== a) { - var b = this._data, e = t(a); + var b = this._data, e = v(a); a = u(a); - var c = b[0], g = b[1], h = b[2], d = b[3], m = b[4], l = b[5]; - b[0] = c * e - g * a; - b[1] = c * a + g * e; - b[2] = h * e - d * a; - b[3] = h * a + d * e; + var c = b[0], h = b[1], g = b[2], d = b[3], m = b[4], l = b[5]; + b[0] = c * e - h * a; + b[1] = c * a + h * e; + b[2] = g * e - d * a; + b[3] = g * a + d * e; b[4] = m * e - l * a; b[5] = m * a + l * e; } @@ -29914,14 +29893,14 @@ var RtmpJs; return a; }; c.prototype.transformBounds = function(a) { - var b = this._data, e = b[0], c = b[1], g = b[2], h = b[3], d = b[4], m = b[5], l = a.xMin, q = a.yMin, k = a.width, s = a.height, b = Math.round(e * l + g * q + d), p = Math.round(c * l + h * q + m), t = Math.round(e * (l + k) + g * q + d), u = Math.round(c * (l + k) + h * q + m), v = Math.round(e * (l + k) + g * (q + s) + d), k = Math.round(c * (l + k) + h * (q + s) + m), e = Math.round(e * l + g * (q + s) + d), c = Math.round(c * l + h * (q + s) + m), h = 0; - b > t && (h = b, b = t, t = h); - v > e && (h = v, v = e, e = h); - a.xMin = b < v ? b : v; - a.xMax = t > e ? t : e; - p > u && (h = p, p = u, u = h); - k > c && (h = k, k = c, c = h); - a.yMin = p < k ? p : k; + var b = this._data, e = b[0], c = b[1], h = b[2], g = b[3], d = b[4], m = b[5], l = a.xMin, q = a.yMin, n = a.width, r = a.height, b = Math.round(e * l + h * q + d), k = Math.round(c * l + g * q + m), v = Math.round(e * (l + n) + h * q + d), u = Math.round(c * (l + n) + g * q + m), w = Math.round(e * (l + n) + h * (q + r) + d), n = Math.round(c * (l + n) + g * (q + r) + m), e = Math.round(e * l + h * (q + r) + d), c = Math.round(c * l + g * (q + r) + m), g = 0; + b > v && (g = b, b = v, v = g); + w > e && (g = w, w = e, e = g); + a.xMin = b < w ? b : w; + a.xMax = v > e ? v : e; + k > u && (g = k, k = u, u = g); + n > c && (g = n, n = c, c = g); + a.yMin = k < n ? k : n; a.yMax = u > c ? u : c; }; c.prototype.getDeterminant = function() { @@ -29975,14 +29954,14 @@ var RtmpJs; b[4] = a.tx; b[5] = a.ty; }; - c.prototype.setTo = function(a, b, e, c, g, h) { + c.prototype.setTo = function(a, b, e, c, h, g) { var d = this._data; d[0] = a; d[1] = b; d[2] = e; d[3] = c; - d[4] = g; - d[5] = h; + d[4] = h; + d[5] = g; }; c.prototype.toTwipsInPlace = function() { var a = this._data; @@ -30017,14 +29996,14 @@ var RtmpJs; 0 === a ? (e[0] = b.x, e[2] = b.y, e[4] = b.z) : 1 === a && (e[1] = b.x, e[3] = b.y, e[5] = b.z); }; c.prototype.updateScaleAndRotation = function(a, b, e, c) { - var g = this._data; + var h = this._data; if (0 !== e && e !== q || 0 !== c && c !== q) { - var h = t(e), d = u(e); - e === c ? (g[0] = h * a, g[1] = d * a) : (g[0] = t(c) * a, g[1] = u(c) * a); - g[2] = -d * b; - g[3] = h * b; + var g = v(e), d = u(e); + e === c ? (h[0] = g * a, h[1] = d * a) : (h[0] = v(c) * a, h[1] = u(c) * a); + h[2] = -d * b; + h[3] = g * b; } else { - g[0] = a, g[1] = g[2] = 0, g[3] = b; + h[0] = a, h[1] = h[2] = 0, h[3] = b; } }; c.prototype.clone = function() { @@ -30057,7 +30036,7 @@ var RtmpJs; c.TEMP_MATRIX = new c; return c; }(a.ASNative); - k.Matrix = s; + k.Matrix = r; })(d.geom || (d.geom = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -30066,27 +30045,27 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(v) { - function t(a, c, h, g, f, b, e) { - var d = c * c, n = h * h, l = g * g, t = d + n + l, u = Math.sqrt(t); - c /= u; - h /= u; - g /= u; - d /= t; - n /= t; - l /= t; - t = Math.cos(a); + (function(n) { + (function(k) { + function v(a, c, g, h, f, b, e) { + var d = c * c, p = g * g, l = h * h, k = d + p + l, v = Math.sqrt(k); + c /= v; + g /= v; + h /= v; + d /= k; + p /= k; + l /= k; + k = Math.cos(a); a = Math.sin(a); - return new k.geom.Matrix3D([d + (n + l) * t, c * h * (1 - t) + g * a, c * g * (1 - t) - h * a, 0, c * h * (1 - t) - g * a, n + (d + l) * t, h * g * (1 - t) + c * a, 0, c * g * (1 - t) + h * a, h * g * (1 - t) - c * a, l + (d + n) * t, 0, (f * (n + l) - c * (b * h + e * g)) * (1 - t) + (b * g - e * h) * a, (b * (d + l) - h * (f * c + e * g)) * (1 - t) + (e * c - f * g) * a, (e * (d + n) - g * (f * c + b * h)) * (1 - t) + (f * h - b * c) * a, 1]); + return new n.geom.Matrix3D([d + (p + l) * k, c * g * (1 - k) + h * a, c * h * (1 - k) - g * a, 0, c * g * (1 - k) - h * a, p + (d + l) * k, g * h * (1 - k) + c * a, 0, c * h * (1 - k) + g * a, g * h * (1 - k) - c * a, l + (d + p) * k, 0, (f * (p + l) - c * (b * g + e * h)) * (1 - k) + (b * h - e * g) * a, (b * (d + l) - g * (f * c + e * h)) * (1 - k) + (e * c - f * h) * a, (e * (d + p) - h * (f * c + b * g)) * (1 - k) + (f * g - b * c) * a, 1]); } - var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = new Uint32Array([0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15]), h = function(h) { + var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = new Uint32Array([0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15]), g = function(g) { function d(a) { void 0 === a && (a = null); this._matrix = new Float32Array(16); a && 16 <= a.length ? this.copyRawDataFrom(a) : this.identity(); } - __extends(d, h); + __extends(d, g); d.interpolate = function(a, c, f) { u("public flash.geom.Matrix3D::static interpolate"); }; @@ -30099,7 +30078,7 @@ var RtmpJs; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "position", {get:function() { var a = this._matrix; - return new k.geom.Vector3D(a[12], a[13], a[14]); + return new n.geom.Vector3D(a[12], a[13], a[14]); }, set:function(a) { var c = this._matrix; c[12] = a.x; @@ -30107,11 +30086,11 @@ var RtmpJs; c[14] = a.z; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "determinant", {get:function() { - var a = this._matrix, c = a[4], f = a[8], b = a[12], e = a[5], h = a[9], d = a[13], l = a[6], q = a[10], k = a[14], s = a[7], p = a[11], t = a[15]; - return a[0] * (e * (q * t - p * k) - l * (h * t - p * d) + s * (h * k - q * d)) - a[1] * (c * (q * t - p * k) - l * (f * t - p * b) + s * (f * k - q * b)) + a[2] * (c * (h * t - p * d) - e * (f * t - p * b) + s * (f * d - h * b)) - a[3] * (c * (h * k - q * d) - e * (f * k - q * b) + l * (f * d - h * b)); + var a = this._matrix, c = a[4], f = a[8], b = a[12], e = a[5], g = a[9], d = a[13], l = a[6], q = a[10], n = a[14], r = a[7], k = a[11], v = a[15]; + return a[0] * (e * (q * v - k * n) - l * (g * v - k * d) + r * (g * n - q * d)) - a[1] * (c * (q * v - k * n) - l * (f * v - k * b) + r * (f * n - q * b)) + a[2] * (c * (g * v - k * d) - e * (f * v - k * b) + r * (f * d - g * b)) - a[3] * (c * (g * n - q * d) - e * (f * n - q * b) + l * (f * d - g * b)); }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { - return new k.geom.Matrix3D(this._matrix); + return new n.geom.Matrix3D(this._matrix); }; d.prototype.copyToMatrix3D = function(a) { a._matrix.set(this._matrix); @@ -30119,68 +30098,68 @@ var RtmpJs; d.prototype.append = function(a) { var c = a._matrix, f = this._matrix; a = this._matrix; - var b = c[0], e = c[4], h = c[8], d = c[12], l = c[1], q = c[5], k = c[9], s = c[13], p = c[2], t = c[6], u = c[10], v = c[14], C = c[3], B = c[7], H = c[11], c = c[15], A = f[0], y = f[4], G = f[8], J = f[12], E = f[1], Q = f[5], S = f[9], K = f[13], P = f[2], R = f[6], W = f[10], ba = f[14], w = f[3], X = f[7], U = f[11], f = f[15]; - a[0] = b * A + e * E + h * P + d * w; - a[1] = l * A + q * E + k * P + s * w; - a[2] = p * A + t * E + u * P + v * w; - a[3] = C * A + B * E + H * P + c * w; - a[4] = b * y + e * Q + h * R + d * X; - a[5] = l * y + q * Q + k * R + s * X; - a[6] = p * y + t * Q + u * R + v * X; - a[7] = C * y + B * Q + H * R + c * X; - a[8] = b * G + e * S + h * W + d * U; - a[9] = l * G + q * S + k * W + s * U; - a[10] = p * G + t * S + u * W + v * U; - a[11] = C * G + B * S + H * W + c * U; - a[12] = b * J + e * K + h * ba + d * f; - a[13] = l * J + q * K + k * ba + s * f; - a[14] = p * J + t * K + u * ba + v * f; - a[15] = C * J + B * K + H * ba + c * f; + var b = c[0], e = c[4], g = c[8], d = c[12], l = c[1], q = c[5], n = c[9], k = c[13], r = c[2], v = c[6], u = c[10], w = c[14], y = c[3], K = c[7], H = c[11], c = c[15], A = f[0], z = f[4], G = f[8], L = f[12], F = f[1], S = f[5], U = f[9], N = f[13], R = f[2], T = f[6], X = f[10], da = f[14], x = f[3], Y = f[7], V = f[11], f = f[15]; + a[0] = b * A + e * F + g * R + d * x; + a[1] = l * A + q * F + n * R + k * x; + a[2] = r * A + v * F + u * R + w * x; + a[3] = y * A + K * F + H * R + c * x; + a[4] = b * z + e * S + g * T + d * Y; + a[5] = l * z + q * S + n * T + k * Y; + a[6] = r * z + v * S + u * T + w * Y; + a[7] = y * z + K * S + H * T + c * Y; + a[8] = b * G + e * U + g * X + d * V; + a[9] = l * G + q * U + n * X + k * V; + a[10] = r * G + v * U + u * X + w * V; + a[11] = y * G + K * U + H * X + c * V; + a[12] = b * L + e * N + g * da + d * f; + a[13] = l * L + q * N + n * da + k * f; + a[14] = r * L + v * N + u * da + w * f; + a[15] = y * L + K * N + H * da + c * f; }; d.prototype.prepend = function(a) { var c = this._matrix, f = a._matrix; a = this._matrix; - var b = c[0], e = c[4], h = c[8], d = c[12], l = c[1], q = c[5], k = c[9], s = c[13], p = c[2], t = c[6], u = c[10], v = c[14], C = c[3], B = c[7], H = c[11], c = c[15], A = f[0], y = f[4], G = f[8], J = f[12], E = f[1], Q = f[5], S = f[9], K = f[13], P = f[2], R = f[6], W = f[10], ba = f[14], w = f[3], X = f[7], U = f[11], f = f[15]; - a[0] = b * A + e * E + h * P + d * w; - a[1] = l * A + q * E + k * P + s * w; - a[2] = p * A + t * E + u * P + v * w; - a[3] = C * A + B * E + H * P + c * w; - a[4] = b * y + e * Q + h * R + d * X; - a[5] = l * y + q * Q + k * R + s * X; - a[6] = p * y + t * Q + u * R + v * X; - a[7] = C * y + B * Q + H * R + c * X; - a[8] = b * G + e * S + h * W + d * U; - a[9] = l * G + q * S + k * W + s * U; - a[10] = p * G + t * S + u * W + v * U; - a[11] = C * G + B * S + H * W + c * U; - a[12] = b * J + e * K + h * ba + d * f; - a[13] = l * J + q * K + k * ba + s * f; - a[14] = p * J + t * K + u * ba + v * f; - a[15] = C * J + B * K + H * ba + c * f; + var b = c[0], e = c[4], g = c[8], d = c[12], l = c[1], q = c[5], n = c[9], k = c[13], r = c[2], v = c[6], u = c[10], w = c[14], y = c[3], K = c[7], H = c[11], c = c[15], A = f[0], z = f[4], G = f[8], L = f[12], F = f[1], S = f[5], U = f[9], N = f[13], R = f[2], T = f[6], X = f[10], da = f[14], x = f[3], Y = f[7], V = f[11], f = f[15]; + a[0] = b * A + e * F + g * R + d * x; + a[1] = l * A + q * F + n * R + k * x; + a[2] = r * A + v * F + u * R + w * x; + a[3] = y * A + K * F + H * R + c * x; + a[4] = b * z + e * S + g * T + d * Y; + a[5] = l * z + q * S + n * T + k * Y; + a[6] = r * z + v * S + u * T + w * Y; + a[7] = y * z + K * S + H * T + c * Y; + a[8] = b * G + e * U + g * X + d * V; + a[9] = l * G + q * U + n * X + k * V; + a[10] = r * G + v * U + u * X + w * V; + a[11] = y * G + K * U + H * X + c * V; + a[12] = b * L + e * N + g * da + d * f; + a[13] = l * L + q * N + n * da + k * f; + a[14] = r * L + v * N + u * da + w * f; + a[15] = y * L + K * N + H * da + c * f; }; d.prototype.invert = function() { var a = this.determinant; if (1E-7 > Math.abs(a)) { - return!1; + return !1; } - var a = 1 / a, c = this._matrix, f = c[0], b = c[1], e = c[2], h = c[3], d = c[4], l = c[5], q = c[6], k = c[7], s = c[8], p = c[9], t = c[10], u = c[11], v = c[12], C = c[13], B = c[14], H = c[15]; - c[0] = a * (l * (t * H - B * u) - p * (q * H - B * k) + C * (q * u - t * k)); - c[1] = -a * (b * (t * H - B * u) - p * (e * H - B * h) + C * (e * u - t * h)); - c[2] = a * (b * (q * H - B * k) - l * (e * H - B * h) + C * (e * k - q * h)); - c[3] = -a * (b * (q * u - t * k) - l * (e * u - t * h) + p * (e * k - q * h)); - c[4] = -a * (d * (t * H - B * u) - s * (q * H - B * k) + v * (q * u - t * k)); - c[5] = a * (f * (t * H - B * u) - s * (e * H - B * h) + v * (e * u - t * h)); - c[6] = -a * (f * (q * H - B * k) - d * (e * H - B * h) + v * (e * k - q * h)); - c[7] = a * (f * (q * u - t * k) - d * (e * u - t * h) + s * (e * k - q * h)); - c[8] = a * (d * (p * H - C * u) - s * (l * H - C * k) + v * (l * u - p * k)); - c[9] = -a * (f * (p * H - C * u) - s * (b * H - C * h) + v * (b * u - p * h)); - c[10] = a * (f * (l * H - C * k) - d * (b * H - C * h) + v * (b * k - l * h)); - c[11] = -a * (f * (l * u - p * k) - d * (b * u - p * h) + s * (b * k - l * h)); - c[12] = -a * (d * (p * B - C * t) - s * (l * B - C * q) + v * (l * t - p * q)); - c[13] = a * (f * (p * B - C * t) - s * (b * B - C * e) + v * (b * t - p * e)); - c[14] = -a * (f * (l * B - C * q) - d * (b * B - C * e) + v * (b * q - l * e)); - c[15] = a * (f * (l * t - p * q) - d * (b * t - p * e) + s * (b * q - l * e)); - return!0; + var a = 1 / a, c = this._matrix, f = c[0], b = c[1], e = c[2], g = c[3], d = c[4], l = c[5], q = c[6], n = c[7], k = c[8], r = c[9], v = c[10], u = c[11], w = c[12], y = c[13], K = c[14], H = c[15]; + c[0] = a * (l * (v * H - K * u) - r * (q * H - K * n) + y * (q * u - v * n)); + c[1] = -a * (b * (v * H - K * u) - r * (e * H - K * g) + y * (e * u - v * g)); + c[2] = a * (b * (q * H - K * n) - l * (e * H - K * g) + y * (e * n - q * g)); + c[3] = -a * (b * (q * u - v * n) - l * (e * u - v * g) + r * (e * n - q * g)); + c[4] = -a * (d * (v * H - K * u) - k * (q * H - K * n) + w * (q * u - v * n)); + c[5] = a * (f * (v * H - K * u) - k * (e * H - K * g) + w * (e * u - v * g)); + c[6] = -a * (f * (q * H - K * n) - d * (e * H - K * g) + w * (e * n - q * g)); + c[7] = a * (f * (q * u - v * n) - d * (e * u - v * g) + k * (e * n - q * g)); + c[8] = a * (d * (r * H - y * u) - k * (l * H - y * n) + w * (l * u - r * n)); + c[9] = -a * (f * (r * H - y * u) - k * (b * H - y * g) + w * (b * u - r * g)); + c[10] = a * (f * (l * H - y * n) - d * (b * H - y * g) + w * (b * n - l * g)); + c[11] = -a * (f * (l * u - r * n) - d * (b * u - r * g) + k * (b * n - l * g)); + c[12] = -a * (d * (r * K - y * v) - k * (l * K - y * q) + w * (l * v - r * q)); + c[13] = a * (f * (r * K - y * v) - k * (b * K - y * e) + w * (b * v - r * e)); + c[14] = -a * (f * (l * K - y * q) - d * (b * K - y * e) + w * (b * q - l * e)); + c[15] = a * (f * (l * v - r * q) - d * (b * v - r * e) + k * (b * q - l * e)); + return !0; }; d.prototype.identity = function() { var a = this._matrix; @@ -30201,13 +30180,13 @@ var RtmpJs; a = +a; c = +c; f = +f; - var b = this._matrix, e = b[3], h = b[7], d = b[11], l = b[15]; + var b = this._matrix, e = b[3], g = b[7], d = b[11], l = b[15]; b[0] += a * e; b[1] += c * e; b[2] += f * e; - b[4] += a * h; - b[5] += c * h; - b[6] += f * h; + b[4] += a * g; + b[5] += c * g; + b[6] += f * g; b[8] += a * d; b[9] += c * d; b[10] += f * d; @@ -30217,7 +30196,7 @@ var RtmpJs; }; d.prototype.appendRotation = function(a, c, f) { void 0 === f && (f = null); - this.append(t(+a / 180 * Math.PI, c.x, c.y, c.z, f ? f.x : 0, f ? f.y : 0, f ? f.z : 0)); + this.append(v(+a / 180 * Math.PI, c.x, c.y, c.z, f ? f.x : 0, f ? f.y : 0, f ? f.z : 0)); }; d.prototype.appendScale = function(a, c, f) { a = +a; @@ -30241,15 +30220,15 @@ var RtmpJs; a = +a; c = +c; f = +f; - var b = this._matrix, e = b[1], h = b[5], d = b[9], l = b[2], q = b[6], k = b[10], s = b[3], p = b[7], t = b[11]; + var b = this._matrix, e = b[1], g = b[5], d = b[9], l = b[2], q = b[6], n = b[10], r = b[3], k = b[7], v = b[11]; b[12] += b[0] * a + b[4] * c + b[8] * f; - b[13] += e * a + h * c + d * f; - b[14] += l * a + q * c + k * f; - b[15] += s * a + p * c + t * f; + b[13] += e * a + g * c + d * f; + b[14] += l * a + q * c + n * f; + b[15] += r * a + k * c + v * f; }; d.prototype.prependRotation = function(a, c, f) { void 0 === f && (f = null); - this.prepend(t(+a / 180 * Math.PI, c.x, c.y, c.z, f ? f.x : 0, f ? f.y : 0, f ? f.z : 0)); + this.prepend(v(+a / 180 * Math.PI, c.x, c.y, c.z, f ? f.x : 0, f ? f.y : 0, f ? f.z : 0)); }; d.prototype.prependScale = function(a, c, f) { a = +a; @@ -30272,19 +30251,19 @@ var RtmpJs; d.prototype.transformVector = function(a) { var c = this._matrix, f = a.x, b = a.y; a = a.z; - return new k.geom.Vector3D(c[0] * f + c[4] * b + c[8] * a + c[12], c[1] * f + c[5] * b + c[9] * a + c[13], c[2] * f + c[6] * b + c[10] * a + c[14]); + return new n.geom.Vector3D(c[0] * f + c[4] * b + c[8] * a + c[12], c[1] * f + c[5] * b + c[9] * a + c[13], c[2] * f + c[6] * b + c[10] * a + c[14]); }; d.prototype.deltaTransformVector = function(a) { var c = this._matrix, f = a.x, b = a.y; a = a.z; - return new k.geom.Vector3D(c[0] * f + c[4] * b + c[8] * a, c[1] * f + c[5] * b + c[9] * a, c[2] * f + c[6] * b + c[10] * a); + return new n.geom.Vector3D(c[0] * f + c[4] * b + c[8] * a, c[1] * f + c[5] * b + c[9] * a, c[2] * f + c[6] * b + c[10] * a); }; d.prototype.transformVectors = function(a, c) { - for (var f = this._matrix, b = f[0], e = f[4], h = f[8], d = f[12], l = f[1], q = f[5], k = f[9], s = f[13], p = f[2], t = f[6], u = f[10], f = f[14], v = 0;v < a.length - 2;v += 3) { - var C = a.asGetNumericProperty(v), B = a.asGetNumericProperty(v + 1), H = a.asGetNumericProperty(v + 2); - c.push(b * C + e * B + h * H + d); - c.push(l * C + q * B + k * H + s); - c.push(p * C + t * B + u * H + f); + for (var f = this._matrix, b = f[0], e = f[4], g = f[8], d = f[12], l = f[1], q = f[5], n = f[9], r = f[13], k = f[2], v = f[6], u = f[10], f = f[14], w = 0;w < a.length - 2;w += 3) { + var y = a.asGetNumericProperty(w), K = a.asGetNumericProperty(w + 1), H = a.asGetNumericProperty(w + 2); + c.push(b * y + e * K + g * H + d); + c.push(l * y + q * K + n * H + r); + c.push(k * y + v * K + u * H + f); } }; d.prototype.transpose = function() { @@ -30318,32 +30297,32 @@ var RtmpJs; this._matrix.set(a._matrix); }; d.prototype.copyRawDataTo = function(a) { - var g = 0, f = !1; - void 0 === g && (g = 0); + var h = 0, f = !1; + void 0 === h && (h = 0); void 0 === f && (f = !1); - var g = g >>> 0, b = this._matrix; + var h = h >>> 0, b = this._matrix; if (f) { - for (f = 0, g |= 0;16 > f;f++, g++) { - a.asSetNumericProperty(g, b[c[f]]); + for (f = 0, h |= 0;16 > f;f++, h++) { + a.asSetNumericProperty(h, b[c[f]]); } } else { - for (f = 0, g |= 0;16 > f;f++, g++) { - a.asSetNumericProperty(g, b[f]); + for (f = 0, h |= 0;16 > f;f++, h++) { + a.asSetNumericProperty(h, b[f]); } } }; d.prototype.copyRawDataFrom = function(a) { - var g = 0, f = !1; - void 0 === g && (g = 0); + var h = 0, f = !1; + void 0 === h && (h = 0); void 0 === f && (f = !1); - var g = g >>> 0, b = this._matrix; + var h = h >>> 0, b = this._matrix; if (f) { - for (f = 0, g |= 0;16 > f;f++, g++) { - b[c[f]] = a.asGetNumericProperty(g) || 0; + for (f = 0, h |= 0;16 > f;f++, h++) { + b[c[f]] = a.asGetNumericProperty(h) || 0; } } else { - for (f = 0, g |= 0;16 > f;f++, g++) { - b[f] = a.asGetNumericProperty(g) || 0; + for (f = 0, h |= 0;16 > f;f++, h++) { + b[f] = a.asGetNumericProperty(h) || 0; } } }; @@ -30381,8 +30360,8 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.ASNative); - v.Matrix3D = h; - })(k.geom || (k.geom = {})); + k.Matrix3D = g; + })(n.geom || (n.geom = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -30390,11 +30369,11 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + (function(n) { + (function(n) { + var k = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.geom.Orientation3D"); + k("public flash.geom.Orientation3D"); } __extends(c, a); c.classInitializer = null; @@ -30406,8 +30385,8 @@ var RtmpJs; c.QUATERNION = "quaternion"; return c; }(a.ASNative); - k.Orientation3D = u; - })(k.geom || (k.geom = {})); + n.Orientation3D = u; + })(n.geom || (n.geom = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -30415,39 +30394,39 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { - function h() { + (function(n) { + (function(n) { + var k = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + function g() { u("public flash.geom.PerspectiveProjection"); } - __extends(h, a); - Object.defineProperty(h.prototype, "fieldOfView", {get:function() { - p("public flash.geom.PerspectiveProjection::get fieldOfView"); + __extends(g, a); + Object.defineProperty(g.prototype, "fieldOfView", {get:function() { + k("public flash.geom.PerspectiveProjection::get fieldOfView"); }, set:function(a) { - p("public flash.geom.PerspectiveProjection::set fieldOfView"); + k("public flash.geom.PerspectiveProjection::set fieldOfView"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "projectionCenter", {get:function() { - p("public flash.geom.PerspectiveProjection::get projectionCenter"); + Object.defineProperty(g.prototype, "projectionCenter", {get:function() { + k("public flash.geom.PerspectiveProjection::get projectionCenter"); }, set:function(a) { - p("public flash.geom.PerspectiveProjection::set projectionCenter"); + k("public flash.geom.PerspectiveProjection::set projectionCenter"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "focalLength", {get:function() { - p("public flash.geom.PerspectiveProjection::get focalLength"); + Object.defineProperty(g.prototype, "focalLength", {get:function() { + k("public flash.geom.PerspectiveProjection::get focalLength"); }, set:function(a) { - p("public flash.geom.PerspectiveProjection::set focalLength"); + k("public flash.geom.PerspectiveProjection::set focalLength"); }, enumerable:!0, configurable:!0}); - h.prototype.toMatrix3D = function() { - p("public flash.geom.PerspectiveProjection::toMatrix3D"); + g.prototype.toMatrix3D = function() { + k("public flash.geom.PerspectiveProjection::toMatrix3D"); }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + return g; }(a.ASNative); - k.PerspectiveProjection = l; - })(k.geom || (k.geom = {})); + n.PerspectiveProjection = l; + })(n.geom || (n.geom = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -30457,12 +30436,12 @@ var RtmpJs; (function(a) { (function(d) { (function(d) { - var k = function(a) { - function d(a, h) { + var n = function(a) { + function d(a, g) { void 0 === a && (a = 0); - void 0 === h && (h = 0); + void 0 === g && (g = 0); this.x = +a; - this.y = +h; + this.y = +g; } __extends(d, a); Object.defineProperty(d.prototype, "native_x", {get:function() { @@ -30475,34 +30454,34 @@ var RtmpJs; }, set:function(a) { this.y = a; }, enumerable:!0, configurable:!0}); - d.prototype.Point = function(a, h) { + d.prototype.Point = function(a, g) { void 0 === a && (a = 0); - void 0 === h && (h = 0); + void 0 === g && (g = 0); this.x = a; - this.y = h; + this.y = g; }; Object.defineProperty(d.prototype, "length", {get:function() { return Math.sqrt(this.x * this.x + this.y * this.y); }, enumerable:!0, configurable:!0}); - d.interpolate = function(a, h, q) { - var k = 1 - q; - return new d(a.x * q + h.x * k, a.y * q + h.y * k); + d.interpolate = function(a, g, q) { + var n = 1 - q; + return new d(a.x * q + g.x * n, a.y * q + g.y * n); }; - d.distance = function(a, h) { - var d = h.x - a.x, l = h.y - a.y; + d.distance = function(a, g) { + var d = g.x - a.x, l = g.y - a.y; return 0 === d ? Math.abs(l) : 0 === l ? Math.abs(d) : Math.sqrt(d * d + l * l); }; - d.polar = function(a, h) { + d.polar = function(a, g) { a = +a; - h = +h; - return new d(a * Math.cos(h), a * Math.sin(h)); + g = +g; + return new d(a * Math.cos(g), a * Math.sin(g)); }; d.prototype.clone = function() { return new d(this.x, this.y); }; - d.prototype.offset = function(a, h) { + d.prototype.offset = function(a, g) { this.x += +a; - this.y += +h; + this.y += +g; }; d.prototype.equals = function(a) { return this.x === a.x && this.y === a.y; @@ -30522,9 +30501,9 @@ var RtmpJs; this.x = a.x; this.y = a.y; }; - d.prototype.setTo = function(a, h) { + d.prototype.setTo = function(a, g) { this.x = +a; - this.y = +h; + this.y = +g; }; d.prototype.toTwips = function() { this.x = 20 * this.x | 0; @@ -30550,7 +30529,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.ASNative); - d.Point = k; + d.Point = n; })(d.geom || (d.geom = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -30561,21 +30540,21 @@ var RtmpJs; (function(a) { (function(d) { (function(d) { - var k = function(a) { - function l(a, d, l, k) { + var n = function(a) { + function l(a, g, d, l) { void 0 === a && (a = 0); + void 0 === g && (g = 0); void 0 === d && (d = 0); void 0 === l && (l = 0); - void 0 === k && (k = 0); this.x = +a; - this.y = +d; - this.width = +l; - this.height = +k; + this.y = +g; + this.width = +d; + this.height = +l; } __extends(l, a); l.FromBounds = function(a) { - var d = a.xMin, q = a.yMin; - return new l(d / 20, q / 20, (a.xMax - d) / 20, (a.yMax - q) / 20); + var g = a.xMin, d = a.yMin; + return new l(g / 20, d / 20, (a.xMax - g) / 20, (a.yMax - d) / 20); }; Object.defineProperty(l.prototype, "native_x", {get:function() { return this.x; @@ -30651,35 +30630,35 @@ var RtmpJs; l.prototype.setEmpty = function() { this.height = this.width = this.y = this.x = 0; }; - l.prototype.inflate = function(a, d) { + l.prototype.inflate = function(a, g) { a = +a; - d = +d; + g = +g; this.x -= a; - this.y -= d; + this.y -= g; this.width += 2 * a; - this.height += 2 * d; + this.height += 2 * g; }; l.prototype.inflatePoint = function(a) { this.inflate(a.x, a.y); }; - l.prototype.offset = function(a, d) { + l.prototype.offset = function(a, g) { this.x += +a; - this.y += +d; + this.y += +g; }; l.prototype.offsetPoint = function(a) { this.offset(a.x, a.y); }; - l.prototype.contains = function(a, d) { + l.prototype.contains = function(a, g) { a = +a; - d = +d; - return a >= this.x && a < this.right && d >= this.y && d < this.bottom; + g = +g; + return a >= this.x && a < this.right && g >= this.y && g < this.bottom; }; l.prototype.containsPoint = function(a) { return this.contains(a.x, a.y); }; l.prototype.containsRect = function(a) { - var d = a.x + a.width, l = a.y + a.height, k = this.x + this.width, m = this.y + this.height; - return a.x >= this.x && a.x < k && a.y >= this.y && a.y < m && d > this.x && d <= k && l > this.y && l <= m; + var g = a.x + a.width, d = a.y + a.height, l = this.x + this.width, m = this.y + this.height; + return a.x >= this.x && a.x < l && a.y >= this.y && a.y < m && g > this.x && g <= l && d > this.y && d <= m; }; l.prototype.intersection = function(a) { return this.clone().intersectInPlace(a); @@ -30688,17 +30667,17 @@ var RtmpJs; return Math.max(this.x, a.x) <= Math.min(this.right, a.right) && Math.max(this.y, a.y) <= Math.min(this.bottom, a.bottom); }; l.prototype.intersectInPlace = function(a) { - var d = this.x, l = this.y, k = a.x, m = a.y, g = Math.max(d, k), d = Math.min(d + this.width, k + a.width); - if (g <= d && (k = Math.max(l, m), a = Math.min(l + this.height, m + a.height), k <= a)) { - return this.setTo(g, k, d - g, a - k), this; + var g = this.x, d = this.y, l = a.x, m = a.y, h = Math.max(g, l), g = Math.min(g + this.width, l + a.width); + if (h <= g && (l = Math.max(d, m), a = Math.min(d + this.height, m + a.height), l <= a)) { + return this.setTo(h, l, g - h, a - l), this; } this.setEmpty(); return this; }; l.prototype.intersectInPlaceInt32 = function(a) { - var d = this.x | 0, l = this.y | 0, k = this.width | 0, m = this.height | 0, g = a.x | 0, f = a.width | 0, b = Math.max(d, g) | 0, d = Math.min(d + k | 0, g + f | 0) | 0; - if (b <= d && (k = a.y | 0, g = a.height | 0, a = Math.max(l, k) | 0, l = Math.min(l + m | 0, k + g | 0), a <= l)) { - return this.setTo(b, a, d - b, l - a), this; + var g = this.x | 0, d = this.y | 0, l = this.width | 0, m = this.height | 0, h = a.x | 0, f = a.width | 0, b = Math.max(g, h) | 0, g = Math.min(g + l | 0, h + f | 0) | 0; + if (b <= g && (l = a.y | 0, h = a.height | 0, a = Math.max(d, l) | 0, d = Math.min(d + m | 0, l + h | 0), a <= d)) { + return this.setTo(b, a, g - b, d - a), this; } this.setEmpty(); return this; @@ -30713,8 +30692,8 @@ var RtmpJs; if (this.isEmpty()) { return this.copyFrom(a), this; } - var d = Math.min(this.x, a.x), l = Math.min(this.y, a.y); - this.setTo(d, l, Math.max(this.right, a.right) - d, Math.max(this.bottom, a.bottom) - l); + var g = Math.min(this.x, a.x), d = Math.min(this.y, a.y); + this.setTo(g, d, Math.max(this.right, a.right) - g, Math.max(this.bottom, a.bottom) - d); return this; }; l.prototype.equals = function(a) { @@ -30726,11 +30705,11 @@ var RtmpJs; this.width = a.width; this.height = a.height; }; - l.prototype.setTo = function(a, d, l, k) { + l.prototype.setTo = function(a, g, d, l) { this.x = +a; - this.y = +d; - this.width = +l; - this.height = +k; + this.y = +g; + this.width = +d; + this.height = +l; }; l.prototype.toTwips = function() { this.x = 20 * this.x | 0; @@ -30753,19 +30732,19 @@ var RtmpJs; return this; }; l.prototype.snapInPlace = function() { - var a = Math.ceil(this.x + this.width), d = Math.ceil(this.y + this.height); + var a = Math.ceil(this.x + this.width), g = Math.ceil(this.y + this.height); this.x = Math.floor(this.x); this.y = Math.floor(this.y); this.width = a - this.x; - this.height = d - this.y; + this.height = g - this.y; return this; }; l.prototype.roundInPlace = function() { - var a = Math.round(this.x + this.width), d = Math.round(this.y + this.height); + var a = Math.round(this.x + this.width), g = Math.round(this.y + this.height); this.x = Math.round(this.x); this.y = Math.round(this.y); this.width = a - this.x; - this.height = d - this.y; + this.height = g - this.y; return this; }; l.prototype.toString = function() { @@ -30789,7 +30768,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.ASNative); - d.Rectangle = k; + d.Rectangle = n; })(d.geom || (d.geom = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -30798,60 +30777,60 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.throwError, c = d.AVM2.Errors, h = function(a) { - function d(a) { + (function(n) { + (function(k) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.throwError, c = d.AVM2.Errors, g = function(a) { + function g(a) { a || l("ArgumentError", c.NullPointerError, "displayObject"); this._displayObject = a; } - __extends(d, a); - Object.defineProperty(d.prototype, "matrix", {get:function() { + __extends(g, a); + Object.defineProperty(g.prototype, "matrix", {get:function() { return this._displayObject._getMatrix().clone().toPixelsInPlace(); }, set:function(a) { this._displayObject._setMatrix(a, !0); }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "colorTransform", {get:function() { + Object.defineProperty(g.prototype, "colorTransform", {get:function() { return this._displayObject._colorTransform.clone(); }, set:function(a) { this._displayObject._setColorTransform(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "concatenatedMatrix", {get:function() { + Object.defineProperty(g.prototype, "concatenatedMatrix", {get:function() { var a = this._displayObject._getConcatenatedMatrix().clone().toPixelsInPlace(); this._displayObject._stage || a.scale(5, 5); return a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "concatenatedColorTransform", {get:function() { + Object.defineProperty(g.prototype, "concatenatedColorTransform", {get:function() { return this._displayObject._getConcatenatedColorTransform(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "pixelBounds", {get:function() { - t("public flash.geom.Transform::get pixelBounds"); + Object.defineProperty(g.prototype, "pixelBounds", {get:function() { + v("public flash.geom.Transform::get pixelBounds"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(d.prototype, "matrix3D", {get:function() { + Object.defineProperty(g.prototype, "matrix3D", {get:function() { var a = this._displayObject._matrix3D; return a && a.clone(); }, set:function(a) { - v.Matrix3D.isType(a) || l("TypeError", c.CheckTypeFailedError, a, "flash.geom.Matrix3D"); + k.Matrix3D.isType(a) || l("TypeError", c.CheckTypeFailedError, a, "flash.geom.Matrix3D"); a = a.rawData; - this.matrix = new k.geom.Matrix(a.asGetPublicProperty(0), a.asGetPublicProperty(1), a.asGetPublicProperty(4), a.asGetPublicProperty(5), a.asGetPublicProperty(12), a.asGetPublicProperty(13)); + this.matrix = new n.geom.Matrix(a.asGetPublicProperty(0), a.asGetPublicProperty(1), a.asGetPublicProperty(4), a.asGetPublicProperty(5), a.asGetPublicProperty(12), a.asGetPublicProperty(13)); u("public flash.geom.Transform::set matrix3D"); }, enumerable:!0, configurable:!0}); - d.prototype.getRelativeMatrix3D = function(a) { - t("public flash.geom.Transform::getRelativeMatrix3D"); + g.prototype.getRelativeMatrix3D = function(a) { + v("public flash.geom.Transform::getRelativeMatrix3D"); }; - Object.defineProperty(d.prototype, "perspectiveProjection", {get:function() { - t("public flash.geom.Transform::get perspectiveProjection"); + Object.defineProperty(g.prototype, "perspectiveProjection", {get:function() { + v("public flash.geom.Transform::get perspectiveProjection"); }, set:function(a) { - t("public flash.geom.Transform::set perspectiveProjection"); + v("public flash.geom.Transform::set perspectiveProjection"); }, enumerable:!0, configurable:!0}); - d.classInitializer = null; - d.initializer = null; - d.classSymbols = null; - d.instanceSymbols = null; - return d; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + return g; }(a.ASNative); - v.Transform = h; - })(k.geom || (k.geom = {})); + k.Transform = g; + })(n.geom || (n.geom = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -30859,30 +30838,30 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { - function d() { + (function(n) { + (function(n) { + var k = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + function g() { u("public flash.geom.Utils3D"); } - __extends(d, a); - d.projectVector = function(a, c) { - p("public flash.geom.Utils3D::static projectVector"); + __extends(g, a); + g.projectVector = function(a, c) { + k("public flash.geom.Utils3D::static projectVector"); }; - d.projectVectors = function(a, c, d, g) { - p("public flash.geom.Utils3D::static projectVectors"); + g.projectVectors = function(a, c, g, h) { + k("public flash.geom.Utils3D::static projectVectors"); }; - d.pointTowards = function(a, c, d, g, f) { - p("public flash.geom.Utils3D::static pointTowards"); + g.pointTowards = function(a, c, g, h, f) { + k("public flash.geom.Utils3D::static pointTowards"); }; - d.classInitializer = null; - d.initializer = null; - d.classSymbols = null; - d.instanceSymbols = null; - return d; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + return g; }(a.ASNative); - k.Utils3D = l; - })(k.geom || (k.geom = {})); + n.Utils3D = l; + })(n.geom || (n.geom = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -30892,16 +30871,16 @@ var RtmpJs; (function(a) { (function(d) { (function(d) { - var k = function(a) { - function d(a, h, l, k) { + var n = function(a) { + function d(a, g, l, n) { void 0 === a && (a = 0); - void 0 === h && (h = 0); + void 0 === g && (g = 0); void 0 === l && (l = 0); - void 0 === k && (k = 0); + void 0 === n && (n = 0); this.x = +a; - this.y = +h; + this.y = +g; this.z = +l; - this.w = +k; + this.w = +n; } __extends(d, a); Object.defineProperty(d.prototype, "native_x", {get:function() { @@ -30930,11 +30909,11 @@ var RtmpJs; Object.defineProperty(d.prototype, "lengthSquared", {get:function() { return this.x * this.x + this.y * this.y + this.z * this.z; }, enumerable:!0, configurable:!0}); - d.angleBetween = function(a, d) { - return Math.acos(a.dotProduct(d) / (a.length * d.length)); + d.angleBetween = function(a, g) { + return Math.acos(a.dotProduct(g) / (a.length * g.length)); }; - d.distance = function(a, d) { - return a.subtract(d).length; + d.distance = function(a, g) { + return a.subtract(g).length; }; d.prototype.dotProduct = function(a) { return this.x * a.x + this.y * a.y + this.z * a.z; @@ -30974,11 +30953,11 @@ var RtmpJs; this.y = -this.y; this.z = -this.z; }; - d.prototype.equals = function(a, d) { - return this.x === a.x && this.y === a.y && this.z === a.z && (!d || this.w === a.w); + d.prototype.equals = function(a, g) { + return this.x === a.x && this.y === a.y && this.z === a.z && (!g || this.w === a.w); }; - d.prototype.nearEquals = function(a, d, l) { - return Math.abs(this.x - a.x) < d && Math.abs(this.y - a.y) < d && Math.abs(this.z - a.z) < d && (!l || Math.abs(this.w - a.w) < d); + d.prototype.nearEquals = function(a, g, d) { + return Math.abs(this.x - a.x) < g && Math.abs(this.y - a.y) < g && Math.abs(this.z - a.z) < g && (!d || Math.abs(this.w - a.w) < g); }; d.prototype.project = function() { this.x /= this.w; @@ -30990,10 +30969,10 @@ var RtmpJs; this.y = a.y; this.z = a.z; }; - d.prototype.setTo = function(a, d, l) { + d.prototype.setTo = function(a, g, d) { this.x = +a; - this.y = +d; - this.z = +l; + this.y = +g; + this.z = +d; }; d.prototype.clone = function() { return new d(this.x, this.y, this.z, this.w); @@ -31010,7 +30989,7 @@ var RtmpJs; d.Z_AXIS = Object.freeze(new d(0, 0, 1)); return d; }(a.ASNative); - d.Vector3D = k; + d.Vector3D = n; })(d.geom || (d.geom = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -31019,9 +30998,9 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.Debug.somewhatImplemented, c = function(a) { + (function(n) { + (function(n) { + var k = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.Debug.somewhatImplemented, c = function(a) { function c() { u("public flash.accessibility.Accessibility"); } @@ -31030,11 +31009,11 @@ var RtmpJs; l("public flash.accessibility.Accessibility::get active"); return c._active; }, enumerable:!0, configurable:!0}); - c.sendEvent = function(a, c, g, f) { - p("public flash.accessibility.Accessibility::static sendEvent"); + c.sendEvent = function(a, c, h, f) { + k("public flash.accessibility.Accessibility::static sendEvent"); }; c.updateProperties = function() { - p("public flash.accessibility.Accessibility::static updateProperties"); + k("public flash.accessibility.Accessibility::static updateProperties"); }; c.classInitializer = null; c.initializer = null; @@ -31043,8 +31022,8 @@ var RtmpJs; c._active = !1; return c; }(a.ASNative); - k.Accessibility = c; - })(k.accessibility || (k.accessibility = {})); + n.Accessibility = c; + })(n.accessibility || (n.accessibility = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -31052,11 +31031,11 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + (function(n) { + (function(n) { + var k = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.accessibility.AccessibilityImplementation"); + k("public flash.accessibility.AccessibilityImplementation"); } __extends(c, a); c.classInitializer = null; @@ -31065,8 +31044,8 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.ASNative); - k.AccessibilityImplementation = u; - })(k.accessibility || (k.accessibility = {})); + n.AccessibilityImplementation = u; + })(n.accessibility || (n.accessibility = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -31076,7 +31055,7 @@ var RtmpJs; (function(a) { (function(d) { (function(d) { - var k = function(a) { + var n = function(a) { function d() { } __extends(d, a); @@ -31086,7 +31065,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.ASNative); - d.AccessibilityProperties = k; + d.AccessibilityProperties = n; })(d.accessibility || (d.accessibility = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -31095,15 +31074,15 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { + (function(n) { + (function(n) { + var k = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c, d) { - this._type = p(a); + this._type = k(a); this._bubbles = !!c; this._cancelable = !!d; this._currentTarget = this._target = null; - this._eventPhase = k.EventPhase.AT_TARGET; + this._eventPhase = n.EventPhase.AT_TARGET; this._isDefaultPrevented = this._stopImmediatePropagation = this._stopPropagation = !1; } __extends(c, a); @@ -31141,9 +31120,9 @@ var RtmpJs; case c.ACTIVATE: ; case c.DEACTIVATE: - return!0; + return !0; } - return!1; + return !1; }; Object.defineProperty(c.prototype, "type", {get:function() { return this._type; @@ -31176,7 +31155,7 @@ var RtmpJs; return this._isDefaultPrevented; }; c.prototype.isBroadcastEvent = function() { - return!!this._isBroadcastEvent; + return !!this._isBroadcastEvent; }; c.prototype.clone = function() { return new c(this._type, this._bubbles, this._cancelable); @@ -31189,9 +31168,9 @@ var RtmpJs; c[d - 1] = arguments[d]; } for (var d = "[" + a, m = 0;m < c.length;m++) { - var g = c[m], f = this.asGetPublicProperty(g); + var h = c[m], f = this.asGetPublicProperty(h); "string" === typeof f && (f = '"' + f + '"'); - d += " " + g + "=" + f; + d += " " + h + "=" + f; } return d + "]"; }; @@ -31245,8 +31224,8 @@ var RtmpJs; c.AVM1_LOAD = "load"; return c; }(a.ASNative); - k.Event = u; - })(k.events || (k.events = {})); + n.Event = u; + })(n.events || (n.events = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -31254,9 +31233,9 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = d.isFunction, l = d.isNullOrUndefined, c = d.AVM2.Runtime.throwError, h = function() { + (function(n) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = d.isFunction, l = d.isNullOrUndefined, c = d.AVM2.Runtime.throwError, g = function() { return function(a, c, b) { this.listener = a; this.useCapture = c; @@ -31271,19 +31250,19 @@ var RtmpJs; return 0 === this._entries.length; }; a.prototype.insert = function(a, b, e) { - for (var c = this._entries, g = c.length, d = g - 1;0 <= d;d--) { + for (var c = this._entries, h = c.length, d = h - 1;0 <= d;d--) { var m = c[d]; if (m.listener === a) { return; } if (e > m.priority) { - g = d; + h = d; } else { break; } } c = this.ensureNonAliasedEntries(); - c.splice(g, 0, new h(a, b, e)); + c.splice(h, 0, new g(a, b, e)); }; a.prototype.ensureNonAliasedEntries = function() { var a = this._entries; @@ -31306,7 +31285,7 @@ var RtmpJs; this._entries === a && 0 < this._aliasCount && this._aliasCount--; }; return a; - }(), s = function() { + }(), r = function() { function a() { this.reset(); } @@ -31325,14 +31304,14 @@ var RtmpJs; var b = this._queues[a.type]; if (b) { for (var e = 0, c = 0;c < b.length;c++) { - var g = b[c]; - if (null === g) { + var h = b[c]; + if (null === h) { e++; } else { try { - g.dispatchEvent(a); - } catch (d) { - console.warn("caught error under broadcast event " + a.type + ": ", d); + h.dispatchEvent(a); + } catch (g) { + console.warn("caught error under broadcast event " + a.type + ": ", g); } } } @@ -31350,13 +31329,13 @@ var RtmpJs; }; return a; }(); - v.BroadcastEventDispatchQueue = s; - var m = function(g) { + w.BroadcastEventDispatchQueue = r; + var m = function(h) { function f(a) { void 0 === a && (a = null); this._target = a || this; } - __extends(f, g); + __extends(f, h); f.prototype.toString = function() { return a.ASObject.dynamicPrototype.$BgtoString.call(this); }; @@ -31367,35 +31346,35 @@ var RtmpJs; f.prototype._getListeners = function(a) { return a ? this._captureListeners || (this._captureListeners = Object.create(null)) : this._targetOrBubblingListeners || (this._targetOrBubblingListeners = Object.create(null)); }; - f.prototype.addEventListener = function(a, e, g, d, h) { - void 0 === g && (g = !1); - void 0 === d && (d = 0); + f.prototype.addEventListener = function(a, e, h, g, d) { void 0 === h && (h = !1); + void 0 === g && (g = 0); + void 0 === d && (d = !1); (2 > arguments.length || 5 < arguments.length) && c("ArgumentError", k.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/addEventListener()", 2, arguments.length); u(e) || c("TypeError", k.Errors.CheckTypeFailedError, e, "Function"); l(a) && c("TypeError", k.Errors.NullPointerError, "type"); - a = t(a); - g = !!g; - d |= 0; + a = v(a); h = !!h; - var m = this._getListeners(g); - (m[a] || (m[a] = new q)).insert(e, g, d); - !g && v.Event.isBroadcastEventType(a) && f.broadcastEventDispatchQueue.add(a, this); + g |= 0; + d = !!d; + var m = this._getListeners(h); + (m[a] || (m[a] = new q)).insert(e, h, g); + !h && w.Event.isBroadcastEventType(a) && f.broadcastEventDispatchQueue.add(a, this); }; - f.prototype.removeEventListener = function(a, e, g) { - void 0 === g && (g = !1); + f.prototype.removeEventListener = function(a, e, h) { + void 0 === h && (h = !1); (2 > arguments.length || 3 < arguments.length) && c("ArgumentError", k.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/removeEventListener()", 2, arguments.length); u(e) || c("TypeError", k.Errors.CheckTypeFailedError, e, "Function"); l(a) && c("TypeError", k.Errors.NullPointerError, "type"); - a = t(a); - var d = this._getListeners(!!g), h = d[a]; - h && (h.remove(e), h.isEmpty() && (!g && v.Event.isBroadcastEventType(a) && f.broadcastEventDispatchQueue.remove(a, this), d[a] = null)); + a = v(a); + var g = this._getListeners(!!h), d = g[a]; + d && (d.remove(e), d.isEmpty() && (!h && w.Event.isBroadcastEventType(a) && f.broadcastEventDispatchQueue.remove(a, this), g[a] = null)); }; f.prototype._hasTargetOrBubblingEventListener = function(a) { - return!(!this._targetOrBubblingListeners || !this._targetOrBubblingListeners[a]); + return !(!this._targetOrBubblingListeners || !this._targetOrBubblingListeners[a]); }; f.prototype._hasCaptureEventListener = function(a) { - return!(!this._captureListeners || !this._captureListeners[a]); + return !(!this._captureListeners || !this._captureListeners[a]); }; f.prototype._hasEventListener = function(a) { return this._hasTargetOrBubblingEventListener(a) || this._hasCaptureEventListener(a); @@ -31403,84 +31382,84 @@ var RtmpJs; f.prototype.hasEventListener = function(a) { 1 !== arguments.length && c("ArgumentError", k.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/hasEventListener()", 1, arguments.length); l(a) && c("TypeError", k.Errors.NullPointerError, "type"); - a = t(a); + a = v(a); return this._hasEventListener(a); }; f.prototype.willTrigger = function(a) { 1 !== arguments.length && c("ArgumentError", k.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/hasEventListener()", 1, arguments.length); l(a) && c("TypeError", k.Errors.NullPointerError, "type"); - a = t(a); + a = v(a); if (this._hasEventListener(a)) { - return!0; + return !0; } - if (p.display.DisplayObject.isType(this)) { + if (n.display.DisplayObject.isType(this)) { var e = this._parent; do { if (e._hasEventListener(a)) { - return!0; + return !0; } } while (e = e._parent); } - return!1; + return !1; }; f.prototype._skipDispatchEvent = function(a) { if (this._hasEventListener(a.type)) { - return!1; + return !1; } - if (!a.isBroadcastEvent() && a._bubbles && p.display.DisplayObject.isType(this)) { + if (!a.isBroadcastEvent() && a._bubbles && n.display.DisplayObject.isType(this)) { for (var e = this._parent;e;e = e._parent) { if (e._hasEventListener(a.type)) { - return!1; + return !1; } } } - return!0; + return !0; }; f.prototype.dispatchEvent = function(a) { 1 !== arguments.length && c("ArgumentError", k.Errors.WrongArgumentCountError, "flash.events::EventDispatcher/dispatchEvent()", 1, arguments.length); if (this._skipDispatchEvent(a)) { - return!0; + return !0; } - var e = a._type, g = this._target, d = !0, h = []; - if (!a.isBroadcastEvent() && p.display.DisplayObject.isType(this)) { + var e = a._type, h = this._target, g = !0, d = []; + if (!a.isBroadcastEvent() && n.display.DisplayObject.isType(this)) { for (var m = this._parent;m;) { - m._hasEventListener(e) && h.push(m), m = m._parent; + m._hasEventListener(e) && d.push(m), m = m._parent; } - for (m = h.length - 1;0 <= m && d;m--) { - var l = h[m]; + for (m = d.length - 1;0 <= m && g;m--) { + var l = d[m]; if (l._hasCaptureEventListener(e)) { - var q = l._getListenersForType(!0, e), d = f.callListeners(q, a, g, l, v.EventPhase.CAPTURING_PHASE) + var q = l._getListenersForType(!0, e), g = f.callListeners(q, a, h, l, w.EventPhase.CAPTURING_PHASE) } } } - d && (q = this._getListenersForType(!1, e)) && (d = f.callListeners(q, a, g, g, v.EventPhase.AT_TARGET)); - if (!a.isBroadcastEvent() && d && a.bubbles) { - for (m = 0;m < h.length && d;m++) { - l = h[m], l._hasTargetOrBubblingEventListener(e) && (q = l._getListenersForType(!1, e), d = f.callListeners(q, a, g, l, v.EventPhase.BUBBLING_PHASE)); + g && (q = this._getListenersForType(!1, e)) && (g = f.callListeners(q, a, h, h, w.EventPhase.AT_TARGET)); + if (!a.isBroadcastEvent() && g && a.bubbles) { + for (m = 0;m < d.length && g;m++) { + l = d[m], l._hasTargetOrBubblingEventListener(e) && (q = l._getListenersForType(!1, e), g = f.callListeners(q, a, h, l, w.EventPhase.BUBBLING_PHASE)); } } - return!a._isDefaultPrevented; + return !a._isDefaultPrevented; }; - f.callListeners = function(a, e, c, f, g) { + f.callListeners = function(a, e, c, f, h) { if (a.isEmpty()) { - return!0; + return !0; } e._target && (e = e.asCallPublicProperty("clone", null)); - for (var d = a.snapshot(), h = 0;h < d.length;h++) { - var m = d[h]; + for (var g = a.snapshot(), d = 0;d < g.length;d++) { + var m = g[d]; e._target = c; e._currentTarget = f; - e._eventPhase = g; + e._eventPhase = h; m.listener(e); if (e._stopImmediatePropagation) { break; } } - a.releaseSnapshot(d); - return!e._stopPropagation; + a.releaseSnapshot(g); + return !e._stopPropagation; }; f.classInitializer = function() { - f.broadcastEventDispatchQueue = new s; + f.broadcastEventDispatchQueue = new r; }; f.initializer = function() { this._target = this; @@ -31490,8 +31469,8 @@ var RtmpJs; f.instanceSymbols = null; return f; }(a.ASNative); - v.EventDispatcher = m; - })(p.events || (p.events = {})); + w.EventDispatcher = m; + })(n.events || (n.events = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -31499,12 +31478,12 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(k) { - (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + (function(n) { + (function(n) { + var k = d.Debug.dummyConstructor, u = function(a) { function c() { a.call(this); - p("public flash.events.EventPhase"); + k("public flash.events.EventPhase"); } __extends(c, a); c.classInitializer = null; @@ -31516,8 +31495,8 @@ var RtmpJs; c.BUBBLING_PHASE = 3; return c; }(a.ASNative); - k.EventPhase = u; - })(k.events || (k.events = {})); + n.EventPhase = u; + })(n.events || (n.events = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -31527,9 +31506,9 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = function(a) { - function c(c, d, k, m) { - a.call(this, c, d, k); + var v = d.Debug.notImplemented, u = function(a) { + function c(c, d, n, m) { + a.call(this, c, d, n); this._text = m; } __extends(c, a); @@ -31547,7 +31526,7 @@ var RtmpJs; return this.formatToString("TextEvent", "type", "bubbles", "cancelable", "text"); }; c.prototype.copyNativeData = function(a) { - t("public flash.events.TextEvent::copyNativeData"); + v("public flash.events.TextEvent::copyNativeData"); }; c.classInitializer = null; c.initializer = null; @@ -31569,12 +31548,12 @@ var RtmpJs; (function(a) { (function(d) { var k = function(a) { - function d(c, h, l, k, m) { - void 0 === h && (h = !1); + function d(c, g, l, n, m) { + void 0 === g && (g = !1); void 0 === l && (l = !1); - void 0 === k && (k = ""); + void 0 === n && (n = ""); void 0 === m && (m = 0); - a.call(this, c, h, l, k); + a.call(this, c, g, l, n); this.setID(m); } __extends(d, a); @@ -31608,10 +31587,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k, m) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n, m) { a.call(this, void 0, void 0, void 0); - t("public flash.events.GameInputEvent"); + v("public flash.events.GameInputEvent"); } __extends(c, a); c.classInitializer = null; @@ -31633,8 +31612,8 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.AVM2.Runtime.asCoerceString, u = d.Debug.dummyConstructor, l = d.Debug.somewhatImplemented, c = function(c) { - function d(a, m, g, f, b, e, l, n, k) { + var v = d.AVM2.Runtime.asCoerceString, u = d.Debug.dummyConstructor, l = d.Debug.somewhatImplemented, c = function(c) { + function d(a, m, h, f, b, e, l, p, q) { c.call(this, void 0, void 0, void 0); u("public flash.events.GestureEvent"); } @@ -31675,15 +31654,15 @@ var RtmpJs; Object.defineProperty(d.prototype, "phase", {get:function() { return this._phase; }, set:function(a) { - this._phase = t(a); + this._phase = v(a); }, enumerable:!0, configurable:!0}); d.prototype.updateAfterEvent = function() { l("public flash.events.GestureEvent::updateAfterEvent"); }; - d.prototype.NativeCtor = function(a, c, g, f, b, e) { - this._phase = t(a); + d.prototype.NativeCtor = function(a, c, h, f, b, e) { + this._phase = v(a); this._localX = +c; - this._localY = +g; + this._localY = +h; this._ctrlKey = !!f; this._altKey = !!b; this._shiftKey = !!e; @@ -31712,10 +31691,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k, m) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n, m) { a.call(this, void 0, void 0, void 0); - t("public flash.events.HTTPStatusEvent"); + v("public flash.events.HTTPStatusEvent"); } __extends(c, a); c.prototype._setStatus = function(a) { @@ -31763,12 +31742,12 @@ var RtmpJs; (function(a) { (function(d) { var k = function(a) { - function d(c, h, l, k, m) { - void 0 === h && (h = !1); + function d(c, g, l, n, m) { + void 0 === g && (g = !1); void 0 === l && (l = !1); - void 0 === k && (k = ""); + void 0 === n && (n = ""); void 0 === m && (m = 0); - a.call(this, c, h, l, k, m); + a.call(this, c, g, l, n, m); } __extends(d, a); d.prototype.clone = function() { @@ -31800,10 +31779,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k, m, g, f, b, e, r) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n, m, h, f, b, e, t) { a.call(this, void 0, void 0, void 0); - t("public flash.events.KeyboardEvent"); + v("public flash.events.KeyboardEvent"); } __extends(c, a); Object.defineProperty(c.prototype, "charCode", {get:function() { @@ -31864,131 +31843,131 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(c) { - function h(a, d, h, g, f, b, e, l, n, k, p) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(c) { + function g(a, d, g, h, f, b, e, l, p, n, k) { c.call(this, void 0, void 0, void 0); u("public flash.events.MouseEvent"); } - __extends(h, c); - h.typeFromDOMType = function(a) { + __extends(g, c); + g.typeFromDOMType = function(a) { switch(a) { case "click": - return h.CLICK; + return g.CLICK; case "dblclick": - return h.DOUBLE_CLICK; + return g.DOUBLE_CLICK; case "mousedown": - return h.MOUSE_DOWN; + return g.MOUSE_DOWN; case "mouseout": ; case "mouseover": ; case "mousemove": - return h.MOUSE_MOVE; + return g.MOUSE_MOVE; case "mouseup": - return h.MOUSE_UP; + return g.MOUSE_UP; default: - t(a); + v(a); } }; - Object.defineProperty(h.prototype, "localX", {get:function() { + Object.defineProperty(g.prototype, "localX", {get:function() { return this._localX / 20 | 0; }, set:function(a) { this._localX = 20 * a | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "localY", {get:function() { + Object.defineProperty(g.prototype, "localY", {get:function() { return this._localY / 20 | 0; }, set:function(a) { this._localY = 20 * a | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageX", {get:function() { + Object.defineProperty(g.prototype, "stageX", {get:function() { return isNaN(this.localX + this.localY) ? Number.NaN : this._getGlobalPoint().x / 20 | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageY", {get:function() { + Object.defineProperty(g.prototype, "stageY", {get:function() { return isNaN(this.localX + this.localY) ? Number.NaN : this._getGlobalPoint().y / 20 | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "movementX", {get:function() { + Object.defineProperty(g.prototype, "movementX", {get:function() { return this._movementX || 0; }, set:function(a) { this._movementX = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "movementY", {get:function() { + Object.defineProperty(g.prototype, "movementY", {get:function() { return this._movementY || 0; }, set:function(a) { this._movementY = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "delta", {get:function() { + Object.defineProperty(g.prototype, "delta", {get:function() { return this._delta; }, set:function(a) { this._delta = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "ctrlKey", {get:function() { + Object.defineProperty(g.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "altKey", {get:function() { + Object.defineProperty(g.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "shiftKey", {get:function() { + Object.defineProperty(g.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "buttonDown", {get:function() { + Object.defineProperty(g.prototype, "buttonDown", {get:function() { return this._buttonDown; }, set:function(a) { this._buttonDown = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "relatedObject", {get:function() { + Object.defineProperty(g.prototype, "relatedObject", {get:function() { return this._relatedObject; }, set:function(a) { this._relatedObject = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "isRelatedObjectInaccessible", {get:function() { + Object.defineProperty(g.prototype, "isRelatedObjectInaccessible", {get:function() { return this._isRelatedObjectInaccessible; }, set:function(a) { this._isRelatedObjectInaccessible = a; }, enumerable:!0, configurable:!0}); - h.prototype.updateAfterEvent = function() { + g.prototype.updateAfterEvent = function() { d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"].requestRendering(); }; - h.prototype._getGlobalPoint = function() { + g.prototype._getGlobalPoint = function() { var c = this._position; c || (c = this._position = new a.geom.Point); this.target ? (c.setTo(this._localX, this._localY), this._target._getConcatenatedMatrix().transformPointInPlace(c)) : c.setTo(0, 0); return c; }; - h.prototype.clone = function() { + g.prototype.clone = function() { return new a.events.MouseEvent(this.type, this.bubbles, this.cancelable, this.localX, this.localY, this.relatedObject, this.ctrlKey, this.altKey, this.shiftKey, this.buttonDown, this.delta); }; - h.prototype.toString = function() { + g.prototype.toString = function() { return this.formatToString("MouseEvent", "type", "bubbles", "cancelable", "eventPhase", "localX", "localY", "relatedObject", "ctrlKey", "altKey", "shiftKey", "buttonDown", "delta"); }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h.CLICK = "click"; - h.DOUBLE_CLICK = "doubleClick"; - h.MOUSE_DOWN = "mouseDown"; - h.MOUSE_MOVE = "mouseMove"; - h.MOUSE_OUT = "mouseOut"; - h.MOUSE_OVER = "mouseOver"; - h.MOUSE_UP = "mouseUp"; - h.RELEASE_OUTSIDE = "releaseOutside"; - h.MOUSE_WHEEL = "mouseWheel"; - h.ROLL_OUT = "rollOut"; - h.ROLL_OVER = "rollOver"; - h.MIDDLE_CLICK = "middleClick"; - h.MIDDLE_MOUSE_DOWN = "middleMouseDown"; - h.MIDDLE_MOUSE_UP = "middleMouseUp"; - h.RIGHT_CLICK = "rightClick"; - h.RIGHT_MOUSE_DOWN = "rightMouseDown"; - h.RIGHT_MOUSE_UP = "rightMouseUp"; - h.CONTEXT_MENU = "contextMenu"; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g.CLICK = "click"; + g.DOUBLE_CLICK = "doubleClick"; + g.MOUSE_DOWN = "mouseDown"; + g.MOUSE_MOVE = "mouseMove"; + g.MOUSE_OUT = "mouseOut"; + g.MOUSE_OVER = "mouseOver"; + g.MOUSE_UP = "mouseUp"; + g.RELEASE_OUTSIDE = "releaseOutside"; + g.MOUSE_WHEEL = "mouseWheel"; + g.ROLL_OUT = "rollOut"; + g.ROLL_OVER = "rollOver"; + g.MIDDLE_CLICK = "middleClick"; + g.MIDDLE_MOUSE_DOWN = "middleMouseDown"; + g.MIDDLE_MOUSE_UP = "middleMouseUp"; + g.RIGHT_CLICK = "rightClick"; + g.RIGHT_MOUSE_DOWN = "rightMouseDown"; + g.RIGHT_MOUSE_UP = "rightMouseUp"; + g.CONTEXT_MENU = "contextMenu"; + return g; }(a.events.Event); k.MouseEvent = l; })(a.events || (a.events = {})); @@ -32002,7 +31981,7 @@ var RtmpJs; (function(a) { (function(d) { var k = function(d) { - function l(a, d, l, k) { + function l(a, d, l, n) { } __extends(l, d); Object.defineProperty(l.prototype, "info", {get:function() { @@ -32034,10 +32013,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(d) { - function c(a, c, k, m, g) { + var v = d.Debug.dummyConstructor, u = function(d) { + function c(a, c, n, m, h) { d.call(this, void 0, void 0, void 0); - t("public flash.events.ProgressEvent"); + v("public flash.events.ProgressEvent"); } __extends(c, d); Object.defineProperty(c.prototype, "bytesLoaded", {get:function() { @@ -32075,10 +32054,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k, m, g) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n, m, h) { a.call(this, void 0, void 0, void 0, void 0, void 0); - t("public flash.events.SecurityErrorEvent"); + v("public flash.events.SecurityErrorEvent"); } __extends(c, a); c.classInitializer = null; @@ -32099,10 +32078,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n) { a.call(this, void 0, void 0, void 0); - t("public flash.events.TimerEvent"); + v("public flash.events.TimerEvent"); } __extends(c, a); c.prototype.clone = function() { @@ -32133,109 +32112,109 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.somewhatImplemented, u = d.Debug.dummyConstructor, l = function(a) { - function h(d, h, m, g, f, b, e, l, n, k, p, t, v, M) { + var v = d.Debug.somewhatImplemented, u = d.Debug.dummyConstructor, l = function(a) { + function g(d, g, m, h, f, b, e, l, p, n, k, v, w, M) { a.call(this, void 0, void 0, void 0); u("public flash.events.TouchEvent"); } - __extends(h, a); - Object.defineProperty(h.prototype, "touchPointID", {get:function() { + __extends(g, a); + Object.defineProperty(g.prototype, "touchPointID", {get:function() { return this._touchPointID; }, set:function(a) { this._touchPointID = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "isPrimaryTouchPoint", {get:function() { + Object.defineProperty(g.prototype, "isPrimaryTouchPoint", {get:function() { return this._isPrimaryTouchPoint; }, set:function(a) { this._isPrimaryTouchPoint = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "localX", {get:function() { + Object.defineProperty(g.prototype, "localX", {get:function() { return this._localX; }, set:function(a) { this._localX = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "localY", {get:function() { + Object.defineProperty(g.prototype, "localY", {get:function() { return this._localY; }, set:function(a) { this._localY = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "sizeX", {get:function() { + Object.defineProperty(g.prototype, "sizeX", {get:function() { return this._sizeX; }, set:function(a) { this._sizeX = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "sizeY", {get:function() { + Object.defineProperty(g.prototype, "sizeY", {get:function() { return this._sizeY; }, set:function(a) { this._sizeY = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "pressure", {get:function() { + Object.defineProperty(g.prototype, "pressure", {get:function() { return this._pressure; }, set:function(a) { this._pressure = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "relatedObject", {get:function() { + Object.defineProperty(g.prototype, "relatedObject", {get:function() { return this._relatedObject; }, set:function(a) { this._relatedObject = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "ctrlKey", {get:function() { + Object.defineProperty(g.prototype, "ctrlKey", {get:function() { return this._ctrlKey; }, set:function(a) { this._ctrlKey = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "altKey", {get:function() { + Object.defineProperty(g.prototype, "altKey", {get:function() { return this._altKey; }, set:function(a) { this._altKey = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "shiftKey", {get:function() { + Object.defineProperty(g.prototype, "shiftKey", {get:function() { return this._shiftKey; }, set:function(a) { this._shiftKey = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageX", {get:function() { - t("TouchEvent::get stageX"); + Object.defineProperty(g.prototype, "stageX", {get:function() { + v("TouchEvent::get stageX"); return this._localX; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageY", {get:function() { - t("TouchEvent::get stageY"); + Object.defineProperty(g.prototype, "stageY", {get:function() { + v("TouchEvent::get stageY"); return this._localY; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "isRelatedObjectInaccessible", {get:function() { + Object.defineProperty(g.prototype, "isRelatedObjectInaccessible", {get:function() { return this._isRelatedObjectInaccessible; }, set:function(a) { this._isRelatedObjectInaccessible = a; }, enumerable:!0, configurable:!0}); - h.prototype.clone = function() { + g.prototype.clone = function() { return new k.TouchEvent(this.type, this.bubbles, this.cancelable, this.touchPointID, this.isPrimaryTouchPoint, this.localX, this.localY, this.sizeX, this.sizeY, this.pressure, this.relatedObject, this.ctrlKey, this.altKey, this.shiftKey); }; - h.prototype.toString = function() { + g.prototype.toString = function() { return this.formatToString("TouchEvent", "type", "bubbles", "cancelable", "eventPhase", "touchPointID", "isPrimaryTouchPoint", "localX", "localY", "sizeX", "sizeY", "pressure", "relatedObject", "ctrlKey", "altKey", "shiftKey"); }; - h.prototype.updateAfterEvent = function() { + g.prototype.updateAfterEvent = function() { d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"].requestRendering(); }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h.TOUCH_BEGIN = "touchBegin"; - h.TOUCH_END = "touchEnd"; - h.TOUCH_MOVE = "touchMove"; - h.TOUCH_OVER = "touchOver"; - h.TOUCH_OUT = "touchOut"; - h.TOUCH_ROLL_OVER = "touchRollOver"; - h.TOUCH_ROLL_OUT = "touchRollOut"; - h.TOUCH_TAP = "touchTap"; - h.PROXIMITY_BEGIN = "proximityBegin"; - h.PROXIMITY_END = "proximityEnd"; - h.PROXIMITY_MOVE = "proximityMove"; - h.PROXIMITY_OUT = "proximityOut"; - h.PROXIMITY_OVER = "proximityOver"; - h.PROXIMITY_ROLL_OUT = "proximityRollOut"; - h.PROXIMITY_ROLL_OVER = "proximityRollOver"; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g.TOUCH_BEGIN = "touchBegin"; + g.TOUCH_END = "touchEnd"; + g.TOUCH_MOVE = "touchMove"; + g.TOUCH_OVER = "touchOver"; + g.TOUCH_OUT = "touchOut"; + g.TOUCH_ROLL_OVER = "touchRollOver"; + g.TOUCH_ROLL_OUT = "touchRollOut"; + g.TOUCH_TAP = "touchTap"; + g.PROXIMITY_BEGIN = "proximityBegin"; + g.PROXIMITY_END = "proximityEnd"; + g.PROXIMITY_MOVE = "proximityMove"; + g.PROXIMITY_OUT = "proximityOut"; + g.PROXIMITY_OVER = "proximityOver"; + g.PROXIMITY_ROLL_OUT = "proximityRollOut"; + g.PROXIMITY_ROLL_OVER = "proximityRollOver"; + return g; }(a.events.Event); k.TouchEvent = l; })(a.events || (a.events = {})); @@ -32248,10 +32227,10 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(c, d, k, m) { + var v = d.Debug.dummyConstructor, u = function(a) { + function c(c, d, n, m) { a.call(this, void 0, void 0, void 0, void 0, void 0); - t("public flash.events.UncaughtErrorEvent"); + v("public flash.events.UncaughtErrorEvent"); } __extends(c, a); c.classInitializer = null; @@ -32293,8 +32272,8 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.isNullOrUndefined, c = d.AVM2.Runtime.asCoerceString, h = d.AVM2.Runtime.throwError, q = d.AVM2.Runtime.checkNullParameter, s = d.Bounds, m = a.geom, g = a.events; + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.isNullOrUndefined, c = d.AVM2.Runtime.asCoerceString, g = d.AVM2.Runtime.throwError, q = d.AVM2.Runtime.checkNullParameter, r = d.Bounds, m = a.geom, h = a.events; (function(a) { a[a.None = 0] = "None"; a[a.Visible = 1] = "Visible"; @@ -32327,8 +32306,8 @@ var RtmpJs; a[a.DirtyMiscellaneousProperties = 1073741824] = "DirtyMiscellaneousProperties"; a[a.Dirty = a.DirtyMatrix | a.DirtyChildren | a.DirtyGraphics | a.DirtyTextContent | a.DirtyBitmapData | a.DirtyNetStream | a.DirtyColorTransform | a.DirtyMask | a.DirtyClipDepth | a.DirtyMiscellaneousProperties] = "Dirty"; a[a.Bubbling = a.ContainsFrameScriptPendingChildren | a.ContainsMorph] = "Bubbling"; - })(v.DisplayObjectFlags || (v.DisplayObjectFlags = {})); - var f = v.DisplayObjectFlags; + })(w.DisplayObjectFlags || (w.DisplayObjectFlags = {})); + var f = w.DisplayObjectFlags; (function(a) { a[a.None = 0] = "None"; a[a.Continue = 0] = "Continue"; @@ -32336,7 +32315,7 @@ var RtmpJs; a[a.Skip = 2] = "Skip"; a[a.FrontToBack = 8] = "FrontToBack"; a[a.Filter = 16] = "Filter"; - })(v.VisitorFlags || (v.VisitorFlags = {})); + })(w.VisitorFlags || (w.VisitorFlags = {})); (function(a) { a[a.HitTestBounds = 0] = "HitTestBounds"; a[a.HitTestBoundsAndMask = 1] = "HitTestBoundsAndMask"; @@ -32344,26 +32323,26 @@ var RtmpJs; a[a.Mouse = 3] = "Mouse"; a[a.ObjectsUnderPoint = 4] = "ObjectsUnderPoint"; a[a.Drop = 5] = "Drop"; - })(v.HitTestingType || (v.HitTestingType = {})); + })(w.HitTestingType || (w.HitTestingType = {})); (function(a) { a[a.None = 0] = "None"; a[a.Bounds = 1] = "Bounds"; a[a.Shape = 2] = "Shape"; - })(v.HitTestingResult || (v.HitTestingResult = {})); + })(w.HitTestingResult || (w.HitTestingResult = {})); var b = function(b) { - function r() { - g.EventDispatcher.instanceConstructorNoInitialize.call(this); + function t() { + h.EventDispatcher.instanceConstructorNoInitialize.call(this); this._addReference(); this._setFlags(256); } - __extends(r, b); - r.getNextSyncID = function() { + __extends(t, b); + t.getNextSyncID = function() { return this._syncID++; }; - r.reset = function() { + t.reset = function() { this._advancableInstances = new d.WeakList; }; - r.prototype.createAnimatedDisplayObject = function(b, e, c) { + t.prototype.createAnimatedDisplayObject = function(b, e, c) { var f = b.symbolClass; b = f.isSubtypeOf(a.display.BitmapData) ? a.display.Bitmap.initializeFrom(b) : f.initializeFrom(b); e.flags & 32 && (b._name = e.name); @@ -32372,44 +32351,44 @@ var RtmpJs; c && f.instanceConstructorNoInitialize.call(b); return b; }; - r.performFrameNavigation = function(b, e) { - b ? r._runScripts = e : e = r._runScripts; + t.performFrameNavigation = function(b, e) { + b ? t._runScripts = e : e = t._runScripts; k.enterTimeline("DisplayObject.InitFrame"); - v.DisplayObject._advancableInstances.forEach(function(a) { + w.DisplayObject._advancableInstances.forEach(function(a) { a._initFrame(b); }); k.leaveTimeline(); k.enterTimeline("DisplayObject.EnterFrame"); - b && e && r._broadcastFrameEvent(g.Event.ENTER_FRAME); + b && e && t._broadcastFrameEvent(h.Event.ENTER_FRAME); k.leaveTimeline(); k.enterTimeline("DisplayObject.ConstructFrame"); - v.DisplayObject._advancableInstances.forEach(function(a) { + w.DisplayObject._advancableInstances.forEach(function(a) { a._constructFrame(); }); k.leaveTimeline(); - e ? (k.enterTimeline("DisplayObject.FrameConstructed"), r._broadcastFrameEvent(g.Event.FRAME_CONSTRUCTED), k.leaveTimeline(), k.enterTimeline("DisplayObject.EnqueueFrameScripts"), v.DisplayObject._advancableInstances.forEach(function(a) { - v.DisplayObjectContainer.isInstanceOf(a) && !a.parent && a._enqueueFrameScripts(); - }), a.display.DisplayObject._stage._enqueueFrameScripts(), k.leaveTimeline(), k.enterTimeline("DisplayObject.RunFrameScript"), v.MovieClip.runFrameScripts(), k.leaveTimeline(), k.enterTimeline("DisplayObject.ExitFrame"), r._broadcastFrameEvent(g.Event.EXIT_FRAME), k.leaveTimeline()) : v.MovieClip.reset(); - b && (r._runScripts = !0); + e ? (k.enterTimeline("DisplayObject.FrameConstructed"), t._broadcastFrameEvent(h.Event.FRAME_CONSTRUCTED), k.leaveTimeline(), k.enterTimeline("DisplayObject.EnqueueFrameScripts"), w.DisplayObject._advancableInstances.forEach(function(a) { + w.DisplayObjectContainer.isInstanceOf(a) && !a.parent && a._enqueueFrameScripts(); + }), a.display.DisplayObject._stage._enqueueFrameScripts(), k.leaveTimeline(), k.enterTimeline("DisplayObject.RunFrameScript"), w.MovieClip.runFrameScripts(), k.leaveTimeline(), k.enterTimeline("DisplayObject.ExitFrame"), t._broadcastFrameEvent(h.Event.EXIT_FRAME), k.leaveTimeline()) : w.MovieClip.reset(); + b && (t._runScripts = !0); }; - r._broadcastFrameEvent = function(a) { + t._broadcastFrameEvent = function(a) { var b; switch(a) { - case g.Event.ENTER_FRAME: + case h.Event.ENTER_FRAME: ; - case g.Event.FRAME_CONSTRUCTED: + case h.Event.FRAME_CONSTRUCTED: ; - case g.Event.EXIT_FRAME: + case h.Event.EXIT_FRAME: ; - case g.Event.RENDER: - b = g.Event.getBroadcastInstance(a); + case h.Event.RENDER: + b = h.Event.getBroadcastInstance(a); } - g.EventDispatcher.broadcastEventDispatchQueue.dispatchEvent(b); + h.EventDispatcher.broadcastEventDispatchQueue.dispatchEvent(b); }; - r.prototype._setInitialName = function() { + t.prototype._setInitialName = function() { this._name = "instance" + a.display.DisplayObject._instanceID++; }; - r.prototype._setParent = function(a, b) { + t.prototype._setParent = function(a, b) { var e = this._parent; this._parent = a; this._setDepth(b); @@ -32422,11 +32401,11 @@ var RtmpJs; } e && this._removeReference(); }; - r.prototype._setDepth = function(a) { + t.prototype._setDepth = function(a) { -1 < a ? this._setFlags(2048) : this._removeFlags(2048); this._depth = a; }; - r.prototype._setFillAndLineBoundsFromWidthAndHeight = function(a, b) { + t.prototype._setFillAndLineBoundsFromWidthAndHeight = function(a, b) { this._fillBounds.width = a; this._fillBounds.height = b; this._lineBounds.width = a; @@ -32434,41 +32413,41 @@ var RtmpJs; this._removeFlags(6); this._invalidateParentFillAndLineBounds(!0, !0); }; - r.prototype._setFillAndLineBoundsFromSymbol = function(a) { + t.prototype._setFillAndLineBoundsFromSymbol = function(a) { a.fillBounds && (this._fillBounds.copyFrom(a.fillBounds), this._removeFlags(4)); a.lineBounds && (this._lineBounds.copyFrom(a.lineBounds), this._removeFlags(2)); this._invalidateParentFillAndLineBounds(!!a.fillBounds, !!a.lineBounds); }; - r.prototype._setFlags = function(a) { + t.prototype._setFlags = function(a) { this._displayObjectFlags |= a; }; - r.prototype._setDirtyFlags = function(a) { + t.prototype._setDirtyFlags = function(a) { this._displayObjectFlags |= a; this._parent && this._parent._propagateFlagsUp(536870912); }; - r.prototype._toggleFlags = function(a, b) { + t.prototype._toggleFlags = function(a, b) { this._displayObjectFlags = b ? this._displayObjectFlags | a : this._displayObjectFlags & ~a; }; - r.prototype._removeFlags = function(a) { + t.prototype._removeFlags = function(a) { this._displayObjectFlags &= ~a; }; - r.prototype._hasFlags = function(a) { - return(this._displayObjectFlags & a) === a; + t.prototype._hasFlags = function(a) { + return (this._displayObjectFlags & a) === a; }; - r.prototype._hasAnyFlags = function(a) { - return!!(this._displayObjectFlags & a); + t.prototype._hasAnyFlags = function(a) { + return !!(this._displayObjectFlags & a); }; - r.prototype._propagateFlagsUp = function(a) { + t.prototype._propagateFlagsUp = function(a) { if (!this._hasFlags(a)) { this._setFlags(a); var b = this._parent; b && b._propagateFlagsUp(a); } }; - r.prototype._propagateFlagsDown = function(a) { + t.prototype._propagateFlagsDown = function(a) { this._setFlags(a); }; - r.prototype._findNearestAncestor = function() { + t.prototype._findNearestAncestor = function() { for (var a = this;a;) { if (!1 === a._hasFlags(128)) { return a; @@ -32477,7 +32456,7 @@ var RtmpJs; } return null; }; - r.prototype._findFurthestAncestorOrSelf = function() { + t.prototype._findFurthestAncestorOrSelf = function() { for (var a = this;a;) { if (!a._parent) { return a; @@ -32485,36 +32464,36 @@ var RtmpJs; a = a._parent; } }; - r.prototype._isAncestor = function(a) { + t.prototype._isAncestor = function(a) { for (;a;) { if (a === this) { - return!0; + return !0; } a = a._parent; } - return!1; + return !1; }; - r._clampRotation = function(a) { + t._clampRotation = function(a) { a %= 360; 180 < a ? a -= 360 : -180 > a && (a += 360); return a; }; - r._getAncestors = function(a, b) { - var e = r._path; + t._getAncestors = function(a, b) { + var e = t._path; for (e.length = 0;a && a !== b;) { e.push(a), a = a._parent; } return e; }; - r.prototype._getConcatenatedMatrix = function() { + t.prototype._getConcatenatedMatrix = function() { this._hasFlags(32) && (this._parent ? this._parent._getConcatenatedMatrix().preMultiplyInto(this._getMatrix(), this._concatenatedMatrix) : this._concatenatedMatrix.copyFrom(this._getMatrix()), this._removeFlags(32)); return this._concatenatedMatrix; }; - r.prototype._getInvertedConcatenatedMatrix = function() { + t.prototype._getInvertedConcatenatedMatrix = function() { this._hasFlags(64) && (this._getConcatenatedMatrix().invertInto(this._invertedConcatenatedMatrix), this._removeFlags(64)); return this._invertedConcatenatedMatrix; }; - r.prototype._setMatrix = function(a, b) { + t.prototype._setMatrix = function(a, b) { if (b || !this._matrix.equals(a)) { var e = this._matrix; e.copyFrom(a); @@ -32523,27 +32502,27 @@ var RtmpJs; this._scaleY = e.getScaleY(); this._skewX = a.getSkewX(); this._skewY = a.getSkewY(); - this._rotation = r._clampRotation(180 * this._skewY / Math.PI); + this._rotation = t._clampRotation(180 * this._skewY / Math.PI); this._removeFlags(8); this._setFlags(16); this._setDirtyFlags(1048576); this._invalidatePosition(); } }; - r.prototype._getMatrix = function() { + t.prototype._getMatrix = function() { this._hasFlags(8) && (this._matrix.updateScaleAndRotation(this._scaleX, this._scaleY, this._skewX, this._skewY), this._removeFlags(8)); return this._matrix; }; - r.prototype._getInvertedMatrix = function() { + t.prototype._getInvertedMatrix = function() { this._hasFlags(16) && (this._getMatrix().invertInto(this._invertedMatrix), this._removeFlags(16)); return this._invertedMatrix; }; - r.prototype._getConcatenatedColorTransform = function() { + t.prototype._getConcatenatedColorTransform = function() { if (!this.stage) { return this._colorTransform.clone(); } if (this._hasFlags(128)) { - var b = this._findNearestAncestor(), e = r._getAncestors(this, b), c = e.length - 1; + var b = this._findNearestAncestor(), e = t._getAncestors(this, b), c = e.length - 1; a.display.Stage.isType(e[c]) && c--; for (var f = b && !a.display.Stage.isType(b) ? b._concatenatedColorTransform.clone() : new m.ColorTransform;0 <= c;) { b = e[c--], f.preMultiply(b._colorTransform), f.convertToFixedPoint(), b._concatenatedColorTransform.copyFrom(f), b._removeFlags(128); @@ -32551,19 +32530,19 @@ var RtmpJs; } return this._concatenatedColorTransform; }; - r.prototype._setColorTransform = function(a) { + t.prototype._setColorTransform = function(a) { this._colorTransform.copyFrom(a); this._colorTransform.convertToFixedPoint(); this._propagateFlagsDown(128); this._setDirtyFlags(67108864); }; - r.prototype._invalidateFillAndLineBounds = function(a, b) { + t.prototype._invalidateFillAndLineBounds = function(a, b) { this._propagateFlagsUp((b ? 2 : 0) | (a ? 4 : 0)); }; - r.prototype._invalidateParentFillAndLineBounds = function(a, b) { + t.prototype._invalidateParentFillAndLineBounds = function(a, b) { this._parent && this._parent._invalidateFillAndLineBounds(a, b); }; - r.prototype._getContentBounds = function(a) { + t.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); var b, e; a ? (b = 2, e = this._lineBounds) : (b = 4, e = this._fillBounds); @@ -32575,9 +32554,9 @@ var RtmpJs; } return e; }; - r.prototype._getChildBounds = function(a, b) { + t.prototype._getChildBounds = function(a, b) { }; - r.prototype._getTransformedBounds = function(a, b) { + t.prototype._getTransformedBounds = function(a, b) { var e = this._getContentBounds(b).clone(); if (a === this || e.isEmpty()) { return e; @@ -32587,19 +32566,19 @@ var RtmpJs; c.transformBounds(e); return e; }; - r.prototype._stopTimelineAnimation = function() { + t.prototype._stopTimelineAnimation = function() { this._removeFlags(4096); }; - r.prototype._invalidateMatrix = function() { + t.prototype._invalidateMatrix = function() { this._setDirtyFlags(1048576); this._setFlags(24); this._invalidatePosition(); }; - r.prototype._invalidatePosition = function() { + t.prototype._invalidatePosition = function() { this._propagateFlagsDown(96); this._invalidateParentFillAndLineBounds(!0, !0); }; - r.prototype._animate = function(b) { + t.prototype._animate = function(b) { var e = !(b.flags & 1) && b.flags & 2; b.flags & 4 ? (m.Matrix.TEMP_MATRIX.copyFromUntyped(b.matrix), this._setMatrix(m.Matrix.TEMP_MATRIX, !1)) : e && this._setMatrix(m.Matrix.FROZEN_IDENTITY_MATRIX, !1); b.flags & 8 ? (m.ColorTransform.TEMP_COLOR_TRANSFORM.copyFromUntyped(b.cxform), this._setColorTransform(m.ColorTransform.TEMP_COLOR_TRANSFORM)) : e && this._setColorTransform(m.ColorTransform.FROZEN_IDENTITY_COLOR_TRANSFORM); @@ -32611,34 +32590,34 @@ var RtmpJs; c = void 0 === b.clipDepth ? -1 : b.clipDepth, c !== this._clipDepth && (this._clipDepth = c, this._setDirtyFlags(268435456)); } if (b.flags & 256) { - for (var c = [], f = b.filters, d = 0;d < f.length;d++) { - var g = f[d], h; - switch(g.type) { + for (var c = [], f = b.filters, h = 0;h < f.length;h++) { + var d = f[h], g; + switch(d.type) { case 0: - h = a.filters.DropShadowFilter.FromUntyped(g); + g = a.filters.DropShadowFilter.FromUntyped(d); break; case 1: - h = a.filters.BlurFilter.FromUntyped(g); + g = a.filters.BlurFilter.FromUntyped(d); break; case 2: - h = a.filters.GlowFilter.FromUntyped(g); + g = a.filters.GlowFilter.FromUntyped(d); break; case 3: - h = a.filters.BevelFilter.FromUntyped(g); + g = a.filters.BevelFilter.FromUntyped(d); break; case 4: - h = a.filters.GradientGlowFilter.FromUntyped(g); + g = a.filters.GradientGlowFilter.FromUntyped(d); break; case 5: - h = a.filters.ConvolutionFilter.FromUntyped(g); + g = a.filters.ConvolutionFilter.FromUntyped(d); break; case 6: - h = a.filters.ColorMatrixFilter.FromUntyped(g); + g = a.filters.ColorMatrixFilter.FromUntyped(d); break; case 7: - h = a.filters.GradientBevelFilter.FromUntyped(g); + g = a.filters.GradientBevelFilter.FromUntyped(d); } - c.push(h); + c.push(g); } this._filters = c; this._setDirtyFlags(1073741824); @@ -32646,22 +32625,22 @@ var RtmpJs; e && (this._filters = null, this._setDirtyFlags(1073741824)); } if (b.flags & 512 || e) { - h = a.display.BlendMode.fromNumber(void 0 === b.blendMode ? 1 : b.blendMode), h !== this._blendMode && (this._blendMode = h, this._setDirtyFlags(1073741824)); + g = a.display.BlendMode.fromNumber(void 0 === b.blendMode ? 1 : b.blendMode), g !== this._blendMode && (this._blendMode = g, this._setDirtyFlags(1073741824)); } if (b.flags & 1024 || e) { - h = 0 < b.bmpCache, h !== this._hasFlags(65536) && (this._toggleFlags(65536, h), this._setDirtyFlags(1073741824)); + g = 0 < b.bmpCache, g !== this._hasFlags(65536) && (this._toggleFlags(65536, g), this._setDirtyFlags(1073741824)); } if (b.flags & 8192 || e) { b = 0 !== b.visibility, b !== this._hasFlags(1) && (this._toggleFlags(1, b), this._setDirtyFlags(1073741824)); } }; - r.prototype._propagateEvent = function(a) { + t.prototype._propagateEvent = function(a) { this.visit(function(b) { b.dispatchEvent(a); return 0; }, 0); }; - Object.defineProperty(r.prototype, "x", {get:function() { + Object.defineProperty(t.prototype, "x", {get:function() { return this._getX(); }, set:function(a) { a = 20 * a | 0; @@ -32672,14 +32651,14 @@ var RtmpJs; } a !== this._matrix.tx && (this._matrix.tx = a, this._invertedMatrix.tx = -a, this._invalidatePosition(), this._setDirtyFlags(1048576)); }, enumerable:!0, configurable:!0}); - r.prototype._getX = function() { + t.prototype._getX = function() { var a = this._matrix.tx; if (this._canHaveTextContent()) { var b = this._getContentBounds(), a = a + b.xMin } return a / 20; }; - Object.defineProperty(r.prototype, "y", {get:function() { + Object.defineProperty(t.prototype, "y", {get:function() { return this._getY(); }, set:function(a) { a = 20 * a | 0; @@ -32690,38 +32669,38 @@ var RtmpJs; } a !== this._matrix.ty && (this._matrix.ty = a, this._invertedMatrix.ty = -a, this._invalidatePosition(), this._setDirtyFlags(1048576)); }, enumerable:!0, configurable:!0}); - r.prototype._getY = function() { + t.prototype._getY = function() { var a = this._matrix.ty; if (this._canHaveTextContent()) { var b = this._getContentBounds(), a = a + b.yMin } return a / 20; }; - Object.defineProperty(r.prototype, "scaleX", {get:function() { + Object.defineProperty(t.prototype, "scaleX", {get:function() { return Math.abs(this._scaleX); }, set:function(a) { a = +a; this._stopTimelineAnimation(); a !== this._scaleX && (this._scaleX = a, this._invalidateMatrix()); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "scaleY", {get:function() { + Object.defineProperty(t.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { a = +a; this._stopTimelineAnimation(); a !== this._scaleY && (this._scaleY = a, this._invalidateMatrix()); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "scaleZ", {get:function() { + Object.defineProperty(t.prototype, "scaleZ", {get:function() { return this._scaleZ; }, set:function(a) { - t("public DisplayObject::set scaleZ"); + v("public DisplayObject::set scaleZ"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "rotation", {get:function() { + Object.defineProperty(t.prototype, "rotation", {get:function() { return this._rotation; }, set:function(a) { a = +a; this._stopTimelineAnimation(); - a = r._clampRotation(a); + a = t._clampRotation(a); if (a !== this._rotation) { var b = (a - this._rotation) / 180 * Math.PI; this._skewX += b; @@ -32730,30 +32709,30 @@ var RtmpJs; this._invalidateMatrix(); } }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "rotationX", {get:function() { + Object.defineProperty(t.prototype, "rotationX", {get:function() { return this._rotationX; }, set:function(a) { - t("public DisplayObject::set rotationX"); + v("public DisplayObject::set rotationX"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "rotationY", {get:function() { + Object.defineProperty(t.prototype, "rotationY", {get:function() { return this._rotationY; }, set:function(a) { - t("public DisplayObject::set rotationY"); + v("public DisplayObject::set rotationY"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "rotationZ", {get:function() { + Object.defineProperty(t.prototype, "rotationZ", {get:function() { return this._rotationZ; }, set:function(a) { - t("public DisplayObject::set rotationZ"); + v("public DisplayObject::set rotationZ"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "width", {get:function() { + Object.defineProperty(t.prototype, "width", {get:function() { return this._getWidth(); }, set:function(a) { this._setWidth(a); }, enumerable:!0, configurable:!0}); - r.prototype._getWidth = function() { + t.prototype._getWidth = function() { return this._getTransformedBounds(this._parent, !0).width / 20; }; - r.prototype._setWidth = function(a) { + t.prototype._setWidth = function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (!(0 > a)) { @@ -32767,15 +32746,15 @@ var RtmpJs; } } }; - Object.defineProperty(r.prototype, "height", {get:function() { + Object.defineProperty(t.prototype, "height", {get:function() { return this._getHeight(); }, set:function(a) { this._setHeight(a); }, enumerable:!0, configurable:!0}); - r.prototype._getHeight = function() { + t.prototype._getHeight = function() { return this._getTransformedBounds(this._parent, !0).height / 20; }; - r.prototype._setHeight = function(a) { + t.prototype._setHeight = function(a) { a = 20 * a | 0; this._stopTimelineAnimation(); if (!(0 > a)) { @@ -32789,7 +32768,7 @@ var RtmpJs; } } }; - Object.defineProperty(r.prototype, "mask", {get:function() { + Object.defineProperty(t.prototype, "mask", {get:function() { return this._mask; }, set:function(a) { if (this._mask !== a && a !== this) { @@ -32800,20 +32779,20 @@ var RtmpJs; this._setDirtyFlags(134217728); } }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "transform", {get:function() { + Object.defineProperty(t.prototype, "transform", {get:function() { return this._getTransform(); }, set:function(a) { this._stopTimelineAnimation(); a.matrix3D ? this._matrix3D = a.matrix3D : this._setMatrix(a.matrix, !0); this._setColorTransform(a.colorTransform); }, enumerable:!0, configurable:!0}); - r.prototype._getTransform = function() { + t.prototype._getTransform = function() { return new a.geom.Transform(this); }; - r.prototype.destroy = function() { + t.prototype.destroy = function() { this._setFlags(512); }; - Object.defineProperty(r.prototype, "root", {get:function() { + Object.defineProperty(t.prototype, "root", {get:function() { var a = this; do { if (a._root === a) { @@ -32823,7 +32802,7 @@ var RtmpJs; } while (a); return null; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "stage", {get:function() { + Object.defineProperty(t.prototype, "stage", {get:function() { var a = this; do { if (a._stage === a) { @@ -32833,48 +32812,48 @@ var RtmpJs; } while (a); return null; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "name", {get:function() { + Object.defineProperty(t.prototype, "name", {get:function() { return this._name; }, set:function(a) { q(a, "name"); this._name = c(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "parent", {get:function() { + Object.defineProperty(t.prototype, "parent", {get:function() { return this._parent; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "alpha", {get:function() { + Object.defineProperty(t.prototype, "alpha", {get:function() { return this._colorTransform.alphaMultiplier; }, set:function(a) { this._stopTimelineAnimation(); a = +a; a !== this._colorTransform.alphaMultiplier && (this._colorTransform.alphaMultiplier = a, this._colorTransform.convertToFixedPoint(), this._propagateFlagsDown(128), this._setDirtyFlags(67108864)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "blendMode", {get:function() { + Object.defineProperty(t.prototype, "blendMode", {get:function() { return this._blendMode; }, set:function(a) { this._stopTimelineAnimation(); a = c(a); - a !== this._blendMode && (0 > v.BlendMode.toNumber(a) && h("ArgumentError", k.Errors.InvalidEnumError, "blendMode"), this._blendMode = a, this._setDirtyFlags(1073741824)); + a !== this._blendMode && (0 > w.BlendMode.toNumber(a) && g("ArgumentError", k.Errors.InvalidEnumError, "blendMode"), this._blendMode = a, this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "scale9Grid", {get:function() { + Object.defineProperty(t.prototype, "scale9Grid", {get:function() { return this._getScale9Grid(); }, set:function(a) { this._stopTimelineAnimation(); - this._scale9Grid = s.FromRectangle(a); + this._scale9Grid = r.FromRectangle(a); this._setDirtyFlags(1073741824); }, enumerable:!0, configurable:!0}); - r.prototype._getScale9Grid = function() { + t.prototype._getScale9Grid = function() { return this._scale9Grid ? a.geom.Rectangle.FromBounds(this._scale9Grid) : null; }; - Object.defineProperty(r.prototype, "cacheAsBitmap", {get:function() { + Object.defineProperty(t.prototype, "cacheAsBitmap", {get:function() { return this._getCacheAsBitmap(); }, set:function(a) { this._hasFlags(65536) || (this._toggleFlags(65536, !!a), this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); - r.prototype._getCacheAsBitmap = function() { + t.prototype._getCacheAsBitmap = function() { return this._filters && 0 < this._filters.length || this._hasFlags(65536); }; - Object.defineProperty(r.prototype, "filters", {get:function() { + Object.defineProperty(t.prototype, "filters", {get:function() { return this._getFilters(); }, set:function(a) { this._filters || (this._filters = []); @@ -32884,83 +32863,83 @@ var RtmpJs; }), b = !0); b && this._setDirtyFlags(1073741824); }, enumerable:!0, configurable:!0}); - r.prototype._getFilters = function() { + t.prototype._getFilters = function() { return this._filters ? this._filters.map(function(a) { return a.clone(); }) : []; }; - Object.defineProperty(r.prototype, "visible", {get:function() { + Object.defineProperty(t.prototype, "visible", {get:function() { return this._hasFlags(1); }, set:function(a) { a = !!a; a !== this._hasFlags(1) && (this._toggleFlags(1, a), this._setDirtyFlags(1073741824)); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "z", {get:function() { + Object.defineProperty(t.prototype, "z", {get:function() { return this._z; }, set:function(a) { this._z = +a; - t("public DisplayObject::set z"); + v("public DisplayObject::set z"); }, enumerable:!0, configurable:!0}); - r.prototype.getBounds = function(a) { + t.prototype.getBounds = function(a) { return m.Rectangle.FromBounds(this._getTransformedBounds(a || this, !0)); }; - r.prototype.getRect = function(a) { + t.prototype.getRect = function(a) { return m.Rectangle.FromBounds(this._getTransformedBounds(a || this, !1)); }; - r.prototype.globalToLocal = function(a) { + t.prototype.globalToLocal = function(a) { return this._getInvertedConcatenatedMatrix().transformPointInPlace(a.clone().toTwips()).round().toPixels(); }; - r.prototype.localToGlobal = function(a) { + t.prototype.localToGlobal = function(a) { return this._getConcatenatedMatrix().transformPointInPlace(a.clone().toTwips()).round().toPixels(); }; - r.prototype.globalToLocal3D = function(a) { - t("public DisplayObject::globalToLocal3D"); + t.prototype.globalToLocal3D = function(a) { + v("public DisplayObject::globalToLocal3D"); return null; }; - r.prototype.localToGlobal3D = function(a) { - t("public DisplayObject::localToGlobal3D"); + t.prototype.localToGlobal3D = function(a) { + v("public DisplayObject::localToGlobal3D"); return null; }; - r.prototype.local3DToGlobal = function(a) { - t("public DisplayObject::local3DToGlobal"); + t.prototype.local3DToGlobal = function(a) { + v("public DisplayObject::local3DToGlobal"); return null; }; - r.prototype.visit = function(a, b, e) { + t.prototype.visit = function(a, b, e) { void 0 === e && (e = 0); - var c, f, d = b & 8; + var c, f, h = b & 8; for (c = [this];0 < c.length;) { f = c.pop(); - var g = 0, g = b & 16 && !f._hasAnyFlags(e) ? 2 : a(f); - if (0 === g) { + var d = 0, d = b & 16 && !f._hasAnyFlags(e) ? 2 : a(f); + if (0 === d) { if (f = f._children) { - for (var g = f.length, h = 0;h < g;h++) { - c.push(f[d ? h : g - 1 - h]); + for (var d = f.length, g = 0;g < d;g++) { + c.push(f[h ? g : d - 1 - g]); } } } else { - if (1 === g) { + if (1 === d) { break; } } } }; - Object.defineProperty(r.prototype, "loaderInfo", {get:function() { + Object.defineProperty(t.prototype, "loaderInfo", {get:function() { var a = this.root; return a ? a._loaderInfo : null; }, enumerable:!0, configurable:!0}); - r.prototype._canHaveGraphics = function() { - return!1; + t.prototype._canHaveGraphics = function() { + return !1; }; - r.prototype._getGraphics = function() { + t.prototype._getGraphics = function() { return null; }; - r.prototype._canHaveTextContent = function() { - return!1; + t.prototype._canHaveTextContent = function() { + return !1; }; - r.prototype._getTextContent = function() { + t.prototype._getTextContent = function() { return null; }; - r.prototype._ensureGraphics = function() { + t.prototype._ensureGraphics = function() { if (this._graphics) { return this._graphics; } @@ -32970,59 +32949,59 @@ var RtmpJs; this._setDirtyFlags(4194304); return this._graphics; }; - r.prototype._setStaticContentFromSymbol = function(b) { + t.prototype._setStaticContentFromSymbol = function(b) { this._canHaveGraphics() ? (this._graphics = b.graphics, this._setDirtyFlags(4194304)) : a.text.StaticText.isType(this) && (this._textContent = b.textContent, this._setDirtyFlags(8388608)); this._symbol = b; this._setFillAndLineBoundsFromSymbol(b); }; - r.prototype.hitTestObject = function(a) { + t.prototype.hitTestObject = function(a) { var b = this._getContentBounds(!1).clone(), e = a._getContentBounds(!1).clone(); this._getConcatenatedMatrix().transformBounds(b); a._getConcatenatedMatrix().transformBounds(e); return b.intersects(e); }; - r.prototype.hitTestPoint = function(a, b, e) { - return!!this._containsGlobalPoint(20 * +a | 0, 20 * +b | 0, e ? 2 : 0, null); + t.prototype.hitTestPoint = function(a, b, e) { + return !!this._containsGlobalPoint(20 * +a | 0, 20 * +b | 0, e ? 2 : 0, null); }; - r.prototype._containsPoint = function(a, b, e, c, f, g) { + t.prototype._containsPoint = function(a, b, e, c, f, h) { var d = this._boundsAndMaskContainPoint(a, b, e, c, f); if (0 === d || 2 > f) { return d; } - (a = this._containsPointDirectly(e, c, a, b)) && g && (5 === f ? g[0] = this : (4 === f || v.InteractiveObject.isType(this) && this._mouseEnabled) && g.push(this)); + (a = this._containsPointDirectly(e, c, a, b)) && h && (5 === f ? h[0] = this : (4 === f || w.InteractiveObject.isType(this) && this._mouseEnabled) && h.push(this)); return a ? 2 : d; }; - r.prototype._containsGlobalPoint = function(a, b, e, c) { + t.prototype._containsGlobalPoint = function(a, b, e, c) { var f = this._getInvertedConcatenatedMatrix(); return this._containsPoint(a, b, f.transformX(a, b), f.transformY(a, b), e, c); }; - r.prototype._boundsAndMaskContainPoint = function(a, b, e, c, f) { + t.prototype._boundsAndMaskContainPoint = function(a, b, e, c, f) { return 1 <= f && this._hasFlags(32768) ? 1 : 3 <= f && !this._hasFlags(1) || !this._getContentBounds().contains(e, c) ? 0 : 0 !== f && this._mask ? this._mask._containsGlobalPoint(a, b, 1, null) : 1; }; - r.prototype._containsPointDirectly = function(a, b, e, c) { - return!1; + t.prototype._containsPointDirectly = function(a, b, e, c) { + return !1; }; - Object.defineProperty(r.prototype, "scrollRect", {get:function() { + Object.defineProperty(t.prototype, "scrollRect", {get:function() { return this._getScrollRect(); }, set:function(a) { this._scrollRect = a ? a.clone() : null; u("public DisplayObject::set scrollRect"); }, enumerable:!0, configurable:!0}); - r.prototype._getScrollRect = function() { + t.prototype._getScrollRect = function() { return this._scrollRect ? this._scrollRect.clone() : null; }; - Object.defineProperty(r.prototype, "opaqueBackground", {get:function() { + Object.defineProperty(t.prototype, "opaqueBackground", {get:function() { return this._opaqueBackground; }, set:function(a) { this._opaqueBackground = a; }, enumerable:!0, configurable:!0}); - r.prototype._getDistance = function(a) { + t.prototype._getDistance = function(a) { for (var b = 0, e = this;e !== a;) { b++, e = e._parent; } return b; }; - r.prototype.findNearestCommonAncestor = function(a) { + t.prototype.findNearestCommonAncestor = function(a) { if (!a) { return null; } @@ -33037,18 +33016,18 @@ var RtmpJs; } return b; }; - r.prototype._getLocalMousePosition = function() { + t.prototype._getLocalMousePosition = function() { var b = a.ui.Mouse._currentPosition; this._parent && (b = this._parent.globalToLocal(a.ui.Mouse._currentPosition)); return b; }; - Object.defineProperty(r.prototype, "mouseX", {get:function() { + Object.defineProperty(t.prototype, "mouseX", {get:function() { return this._getLocalMousePosition().x; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "mouseY", {get:function() { + Object.defineProperty(t.prototype, "mouseY", {get:function() { return this._getLocalMousePosition().y; }, enumerable:!0, configurable:!0}); - r.prototype.debugName = function(a) { + t.prototype.debugName = function(a) { void 0 === a && (a = !1); var b = this._id + " [" + this._depth + "]: (" + this._referenceCount + ") " + this; if (a) { @@ -33060,25 +33039,25 @@ var RtmpJs; } return b; }; - r.prototype.debugTrace = function() { + t.prototype.debugTrace = function() { var a, b; void 0 === a && (a = 1024); void 0 === b && (b = ""); var e = this, c = new d.IndentingWriter; this.visit(function(f) { - var g = f._getDistance(e); - if (g > a) { + var h = f._getDistance(e); + if (h > a) { return 2; } - g = b + d.StringUtilities.multiple(" ", g); - c.writeObject(g + f.debugName() + ", bounds: " + f.getBounds(null).toString(), {"...":{value:f}}); + h = b + d.StringUtilities.multiple(" ", h); + c.writeObject(h + f.debugName() + ", bounds: " + f.getBounds(null).toString(), {"...":{value:f}}); return 0; }, 0); }; - r.prototype._addReference = function() { + t.prototype._addReference = function() { this._referenceCount++; }; - r.prototype._removeReference = function() { + t.prototype._removeReference = function() { this._referenceCount--; if (0 === this._referenceCount && this._children) { for (var a = this._children, b = 0;b < a.length;b++) { @@ -33086,20 +33065,20 @@ var RtmpJs; } } }; - Object.defineProperty(r.prototype, "accessibilityProperties", {get:function() { + Object.defineProperty(t.prototype, "accessibilityProperties", {get:function() { return this._accessibilityProperties; }, set:function(a) { this._accessibilityProperties = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "blendShader", {set:function(a) { - t("public DisplayObject::set blendShader"); + Object.defineProperty(t.prototype, "blendShader", {set:function(a) { + v("public DisplayObject::set blendShader"); }, enumerable:!0, configurable:!0}); - r._syncID = 0; - r._instanceID = 1; - r.classInitializer = function() { + t._syncID = 0; + t._instanceID = 1; + t.classInitializer = function() { this.reset(); }; - r.initializer = function(b) { + t.initializer = function(b) { this._id = a.display.DisplayObject.getNextSyncID(); this._displayObjectFlags = 2085617767; this._stage = this._root = null; @@ -33111,10 +33090,10 @@ var RtmpJs; this._scaleZ = 1; this._height = this._width = this._rotationZ = this._rotationY = this._rotationX = this._rotation = 0; this._filters = this._scrollRect = this._opaqueBackground = null; - this._blendMode = v.BlendMode.NORMAL; + this._blendMode = w.BlendMode.NORMAL; this._accessibilityProperties = this._loaderInfo = this._scale9Grid = null; - this._fillBounds = new s(0, 0, 0, 0); - this._lineBounds = new s(0, 0, 0, 0); + this._fillBounds = new r(0, 0, 0, 0); + this._lineBounds = new r(0, 0, 0, 0); this._clipDepth = -1; this._concatenatedMatrix = new m.Matrix; this._invertedConcatenatedMatrix = new m.Matrix; @@ -33132,13 +33111,13 @@ var RtmpJs; this._referenceCount = 0; b && (b.scale9Grid && (this._scale9Grid = b.scale9Grid), this._symbol = b); }; - r.classSymbols = null; - r.instanceSymbols = null; - r._runScripts = !0; - r._path = []; - return r; + t.classSymbols = null; + t.instanceSymbols = null; + t._runScripts = !0; + t._path = []; + return t; }(a.events.EventDispatcher); - v.DisplayObject = b; + w.DisplayObject = b; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -33148,30 +33127,30 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = function(c) { - function h(a, c, d) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = function(c) { + function g(a, c, d) { void 0 === a && (a = null); void 0 === c && (c = "auto"); void 0 === d && (d = !1); - v.DisplayObject.instanceConstructorNoInitialize.call(this); + w.DisplayObject.instanceConstructorNoInitialize.call(this); this._symbol ? this._bitmapData.class.instanceConstructorNoInitialize.call(this._bitmapData) : this.bitmapData = a; - this._pixelSnapping = t(c); + this._pixelSnapping = v(c); this._smoothing = !!d; } - __extends(h, c); - Object.defineProperty(h.prototype, "pixelSnapping", {get:function() { + __extends(g, c); + Object.defineProperty(g.prototype, "pixelSnapping", {get:function() { return this._pixelSnapping; }, set:function(a) { - 0 > v.PixelSnapping.toNumber(a) && u("ArgumentError", k.Errors.InvalidEnumError, "pixelSnapping"); - this._pixelSnapping = t(a); + 0 > w.PixelSnapping.toNumber(a) && u("ArgumentError", k.Errors.InvalidEnumError, "pixelSnapping"); + this._pixelSnapping = v(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "smoothing", {get:function() { + Object.defineProperty(g.prototype, "smoothing", {get:function() { return this._smoothing; }, set:function(a) { this._smoothing = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "bitmapData", {get:function() { + Object.defineProperty(g.prototype, "bitmapData", {get:function() { return this._bitmapData; }, set:function(a) { this._bitmapData !== a && (this._bitmapData && this._bitmapData._removeBitmapReferrer(this), a && a._addBitmapReferrer(this)); @@ -33179,14 +33158,14 @@ var RtmpJs; this._invalidateParentFillAndLineBounds(!0, !0); this._setDirtyFlags(16777216); }, enumerable:!0, configurable:!0}); - h.prototype._getContentBounds = function(a) { + g.prototype._getContentBounds = function(a) { return this._bitmapData ? this._bitmapData._getContentBounds() : new d.Bounds(0, 0, 0, 0); }; - h.prototype._containsPointDirectly = function(a, c, d, g) { - return!0; + g.prototype._containsPointDirectly = function(a, c, d, h) { + return !0; }; - h.classInitializer = null; - h.initializer = function(c) { + g.classInitializer = null; + g.initializer = function(c) { this._smoothing = this._pixelSnapping = this._bitmapData = null; if (c) { var d = c.symbolClass; @@ -33195,11 +33174,11 @@ var RtmpJs; this._setFillAndLineBoundsFromWidthAndHeight(20 * c.width | 0, 20 * c.height | 0); } }; - h.classSymbols = null; - h.instanceSymbols = null; - return h; + g.classSymbols = null; + g.instanceSymbols = null; + return g; }(a.display.DisplayObject); - v.Bitmap = l; + w.Bitmap = l; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -33210,13 +33189,13 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.warning, u = function(a) { + var v = d.Debug.warning, u = function(a) { function c() { k.DisplayObject.instanceConstructorNoInitialize.call(this); } __extends(c, a); c.prototype._canHaveGraphics = function() { - return!0; + return !0; }; c.prototype._getGraphics = function() { return this._graphics; @@ -33226,7 +33205,7 @@ var RtmpJs; }, enumerable:!0, configurable:!0}); c.prototype._containsPointDirectly = function(a, c, d, m) { d = this._getGraphics(); - return!!d && d._containsPoint(a, c, !0, 0); + return !!d && d._containsPoint(a, c, !0, 0); }; c.classSymbols = null; c.instanceSymbols = null; @@ -33254,8 +33233,8 @@ var RtmpJs; c.prototype.processRequires = function(a, c) { if (a) { for (var d = this.graphics._textures, m = 0;m < a.length;m++) { - var g = c.getSymbolById(a[m]); - g ? d.push(g.getSharedInstance()) : (65535 !== a[m] && t("Bitmap symbol " + a[m] + " required by shape, but not defined."), d.push(null)); + var h = c.getSymbolById(a[m]); + h ? d.push(h.getSharedInstance()) : (65535 !== a[m] && v("Bitmap symbol " + a[m] + " required by shape, but not defined."), d.push(null)); } } }; @@ -33272,7 +33251,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = a.display.DisplayObject, c = a.events, h = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = a.display.DisplayObject, c = a.events, g = function(a) { function d() { l.instanceConstructorNoInitialize.call(this); } @@ -33281,17 +33260,17 @@ var RtmpJs; return this._tabEnabled; }, set:function(a) { a = !!a; - var d = this._tabEnabled; + var h = this._tabEnabled; this._tabEnabled = a; - d !== a && this.dispatchEvent(c.Event.getInstance(c.Event.TAB_ENABLED_CHANGE, !0)); + h !== a && this.dispatchEvent(c.Event.getInstance(c.Event.TAB_ENABLED_CHANGE, !0)); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "tabIndex", {get:function() { return this._tabIndex; }, set:function(a) { a |= 0; - var d = this._tabIndex; + var h = this._tabIndex; this._tabIndex = a; - d !== a && this.dispatchEvent(c.Event.getInstance(c.Event.TAB_INDEX_CHANGE, !0)); + h !== a && this.dispatchEvent(c.Event.getInstance(c.Event.TAB_INDEX_CHANGE, !0)); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "focusRect", {get:function() { return this._focusRect; @@ -33312,17 +33291,17 @@ var RtmpJs; Object.defineProperty(d.prototype, "accessibilityImplementation", {get:function() { return this._accessibilityImplementation; }, set:function(a) { - t("public flash.display.InteractiveObject::set accessibilityImplementation"); + v("public flash.display.InteractiveObject::set accessibilityImplementation"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "softKeyboardInputAreaOfInterest", {get:function() { return this._softKeyboardInputAreaOfInterest; }, set:function(a) { - t("public flash.display.InteractiveObject::set softKeyboardInputAreaOfInterest"); + v("public flash.display.InteractiveObject::set softKeyboardInputAreaOfInterest"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "needsSoftKeyboard", {get:function() { return this._needsSoftKeyboard; }, set:function(a) { - t("public flash.display.InteractiveObject::set needsSoftKeyboard"); + v("public flash.display.InteractiveObject::set needsSoftKeyboard"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "contextMenu", {get:function() { return this._contextMenu; @@ -33331,7 +33310,7 @@ var RtmpJs; this._contextMenu = a; }, enumerable:!0, configurable:!0}); d.prototype.requestSoftKeyboard = function() { - t("public flash.display.InteractiveObject::requestSoftKeyboard"); + v("public flash.display.InteractiveObject::requestSoftKeyboard"); }; d.classInitializer = null; d.initializer = function() { @@ -33348,7 +33327,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.display.DisplayObject); - k.InteractiveObject = h; + k.InteractiveObject = g; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -33359,17 +33338,17 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = function(a) { - function d(a, c, h, g) { + var v = d.Debug.notImplemented, u = function(a) { + function d(a, c, g, h) { void 0 === a && (a = null); void 0 === c && (c = null); - void 0 === h && (h = null); void 0 === g && (g = null); + void 0 === h && (h = null); k.InteractiveObject.instanceConstructorNoInitialize.call(this); a && (this.upState = a); c && (this.overState = c); - h && (this.downState = h); - g && (this.hitTestState = g); + g && (this.downState = g); + h && (this.hitTestState = h); this._updateButton(); } __extends(d, a); @@ -33391,7 +33370,7 @@ var RtmpJs; Object.defineProperty(d.prototype, "trackAsMenu", {get:function() { return this._trackAsMenu; }, set:function(a) { - t("public flash.display.SimpleButton::set trackAsMenu"); + v("public flash.display.SimpleButton::set trackAsMenu"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "upState", {get:function() { return this._upState; @@ -33423,11 +33402,11 @@ var RtmpJs; this._hitTestState = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "soundTransform", {get:function() { - t("public flash.display.SimpleButton::get soundTransform"); + v("public flash.display.SimpleButton::get soundTransform"); }, set:function(a) { - t("public flash.display.SimpleButton::set soundTransform"); + v("public flash.display.SimpleButton::set soundTransform"); }, enumerable:!0, configurable:!0}); - d.prototype._containsPoint = function(a, c, d, g, f, b) { + d.prototype._containsPoint = function(a, c, d, h, f, b) { d = 3 === f ? this._hitTestState : this._currentState; if (!d) { return 0; @@ -33474,30 +33453,30 @@ var RtmpJs; }(); k.ButtonState = l; u = function(c) { - function h(d, h) { + function g(d, g) { c.call(this, d, a.display.SimpleButton, !0); this.hitTestState = this.downState = this.overState = this.upState = null; - this.loaderInfo = h; + this.loaderInfo = g; } - __extends(h, c); - h.FromData = function(c, s) { - var m = new h(c, s); - s.actionScriptVersion === k.ActionScriptVersion.ACTIONSCRIPT2 && (m.isAVM1Object = !0); - var g = c.states, f = null, b, e; - for (e in g) { - var r = g[e]; - if (1 === r.length) { - if (b = r[0], f = s.getSymbolById(b.symbolId), !f) { + __extends(g, c); + g.FromData = function(c, r) { + var m = new g(c, r); + r.actionScriptVersion === k.ActionScriptVersion.ACTIONSCRIPT2 && (m.isAVM1Object = !0); + var h = c.states, f = null, b, e; + for (e in h) { + var t = h[e]; + if (1 === t.length) { + if (b = t[0], f = r.getSymbolById(b.symbolId), !f) { continue; } } else { - b = {flags:1, depth:1}, f = new a.display.SpriteSymbol({id:-1, className:null}, s), f.frames.push(new d.SWF.SWFFrame(r)); + b = {flags:1, depth:1}, f = new a.display.SpriteSymbol({id:-1, className:null}, r), f.frames.push(new d.SWF.SWFFrame(t)); } m[e + "State"] = new l(f, b); } return m; }; - return h; + return g; }(d.Timeline.DisplaySymbol); k.ButtonSymbol = u; })(a.display || (a.display = {})); @@ -33509,10 +33488,10 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.notImplemented, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.throwError, c = d.AVM2.Runtime.checkParameterType, h = d.NumberUtilities.clamp, q = d.AVM2.ABC.Multiname, s = a.events, m = function(d) { + (function(w) { + var v = d.Debug.notImplemented, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.throwError, c = d.AVM2.Runtime.checkParameterType, g = d.NumberUtilities.clamp, q = d.AVM2.ABC.Multiname, r = a.events, m = function(d) { function f() { - v.InteractiveObject.instanceConstructorNoInitialize.call(this); + w.InteractiveObject.instanceConstructorNoInitialize.call(this); this._setDirtyFlags(2097152); } __extends(f, d); @@ -33538,12 +33517,12 @@ var RtmpJs; c._setFlags(256); if (c._symbol && c._symbol.isAVM1Object) { try { - c.dispatchEvent(s.Event.getInstance(s.Event.AVM1_INIT)); + c.dispatchEvent(r.Event.getInstance(r.Event.AVM1_INIT)); } catch (f) { console.warn("caught error under DisplayObjectContainer AVM1_INIT event: ", f); } try { - c.dispatchEvent(s.Event.getInstance(s.Event.AVM1_CONSTRUCT)); + c.dispatchEvent(r.Event.getInstance(r.Event.AVM1_CONSTRUCT)); } catch (d) { console.warn("caught error under DisplayObjectContainer AVM1_CONSTRUCT event: ", d); } @@ -33551,15 +33530,15 @@ var RtmpJs; c._hasAnyFlags(24576) && this._setFlags(16384); } try { - c.dispatchEvent(s.Event.getInstance(s.Event.ADDED, !0)); - } catch (g) { - console.warn("caught error under DisplayObject ADDED event: ", g); + c.dispatchEvent(r.Event.getInstance(r.Event.ADDED, !0)); + } catch (h) { + console.warn("caught error under DisplayObject ADDED event: ", h); } if (c.stage) { try { - c.dispatchEvent(s.Event.getInstance(s.Event.ADDED_TO_STAGE)); - } catch (h) { - console.warn("caught error under DisplayObject ADDED_TO_STAGE event: ", h); + c.dispatchEvent(r.Event.getInstance(r.Event.ADDED_TO_STAGE)); + } catch (g) { + console.warn("caught error under DisplayObject ADDED_TO_STAGE event: ", g); } } } @@ -33570,7 +33549,7 @@ var RtmpJs; this._removeFlags(16384); for (var a = this._children, e = 0;e < a.length;e++) { var c = a[e]; - (f.isType(c) || v.AVM1Movie.isType(c)) && c._enqueueFrameScripts(); + (f.isType(c) || w.AVM1Movie.isType(c)) && c._enqueueFrameScripts(); } } }; @@ -33581,7 +33560,7 @@ var RtmpJs; return this._children.length; }; Object.defineProperty(f.prototype, "textSnapshot", {get:function() { - t("public DisplayObjectContainer::get textSnapshot"); + v("public DisplayObjectContainer::get textSnapshot"); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "tabChildren", {get:function() { return this._tabChildren; @@ -33595,7 +33574,7 @@ var RtmpJs; a = !!a; var e = this._tabChildren; this._tabChildren = a; - e !== a && this.dispatchEvent(s.Event.getInstance(s.Event.TAB_CHILDREN_CHANGE, !0)); + e !== a && this.dispatchEvent(r.Event.getInstance(r.Event.TAB_CHILDREN_CHANGE, !0)); }; Object.defineProperty(f.prototype, "mouseChildren", {get:function() { return this._mouseChildren; @@ -33620,11 +33599,11 @@ var RtmpJs; var d = this._children; (0 > e || e > d.length) && l("RangeError", k.Errors.ParamRangeError); if (b._parent === this) { - return this.setChildIndex(b, h(e, 0, d.length - 1)), b; + return this.setChildIndex(b, g(e, 0, d.length - 1)), b; } - b._parent && (f.prototype.removeChildAt.call(b._parent, b._parent.getChildIndex(b)), e = h(e, 0, d.length)); - for (var g = d.length - 1;g >= e;g--) { - d[g]._index++; + b._parent && (f.prototype.removeChildAt.call(b._parent, b._parent.getChildIndex(b)), e = g(e, 0, d.length)); + for (var h = d.length - 1;h >= e;h--) { + d[h]._index++; } d.splice(e, 0, b); b._setParent(this, -1); @@ -33632,27 +33611,27 @@ var RtmpJs; b._invalidatePosition(); this._invalidateChildren(); b._addReference(); - b.dispatchEvent(s.Event.getInstance(s.Event.ADDED, !0)); - b.stage && b._propagateEvent(s.Event.getInstance(s.Event.ADDED_TO_STAGE)); + b.dispatchEvent(r.Event.getInstance(r.Event.ADDED, !0)); + b.stage && b._propagateEvent(r.Event.getInstance(r.Event.ADDED_TO_STAGE)); return b; }; f.prototype.addTimelineObjectAtDepth = function(a, e) { e |= 0; - for (var c = this._children, f = c.length - 1, d = f + 1, g = f;0 <= g;g--) { - var h = c[g]; - if (-1 < h._depth) { - if (h._depth < e) { - d = g + 1; + for (var c = this._children, f = c.length - 1, d = f + 1, h = f;0 <= h;h--) { + var g = c[h]; + if (-1 < g._depth) { + if (g._depth < e) { + d = h + 1; break; } - d = g; + d = h; } } if (d > f) { c.push(a), a._index = d; } else { - for (c.splice(d, 0, a), g = d;g < c.length;g++) { - c[g]._index = g; + for (c.splice(d, 0, a), h = d;h < c.length;h++) { + c[h]._index = h; } } a._setParent(this, e); @@ -33668,7 +33647,7 @@ var RtmpJs; var e = this._children; (0 > a || a >= e.length) && l("RangeError", k.Errors.ParamRangeError); var c = e[a]; - c._hasFlags(256) && (c.dispatchEvent(s.Event.getInstance(s.Event.REMOVED, !0)), this.stage && c._propagateEvent(s.Event.getInstance(s.Event.REMOVED_FROM_STAGE)), a = this.getChildIndex(c)); + c._hasFlags(256) && (c.dispatchEvent(r.Event.getInstance(r.Event.REMOVED, !0)), this.stage && c._propagateEvent(r.Event.getInstance(r.Event.REMOVED_FROM_STAGE)), a = this.getChildIndex(c)); e.splice(a, 1); for (var f = e.length - 1;f >= a;f--) { e[f]._index--; @@ -33730,9 +33709,9 @@ var RtmpJs; f.prototype.getClipDepthIndex = function(a) { a |= 0; for (var e = this._children, c = this._children.length - 1, f = !0, d = c;0 <= d;d--) { - var g = e[d]; - if (!(0 > g._depth)) { - if (g._depth <= a) { + var h = e[d]; + if (!(0 > h._depth)) { + if (h._depth <= a) { return f ? c : d; } f = !1; @@ -33742,10 +33721,10 @@ var RtmpJs; }; f.prototype.getChildByName = function(a) { a = u(a); - return(a = this._lookupChildByName(a)) ? (a._addReference(), a) : null; + return (a = this._lookupChildByName(a)) ? (a._addReference(), a) : null; }; f.prototype._lookupChildByIndex = function(a) { - return(a = this._children[a]) && a._hasFlags(256) ? a : null; + return (a = this._children[a]) && a._hasFlags(256) ? a : null; }; f.prototype._lookupChildByName = function(a) { for (var e = this._children, c = 0;c < e.length;c++) { @@ -33756,46 +33735,46 @@ var RtmpJs; } return null; }; - f.prototype._containsPoint = function(a, e, c, f, d, g) { - return this._containsPointImpl(a, e, c, f, d, g, !1); + f.prototype._containsPoint = function(a, e, c, f, d, h) { + return this._containsPointImpl(a, e, c, f, d, h, !1); }; - f.prototype._containsPointImpl = function(a, e, c, f, d, g, h) { + f.prototype._containsPointImpl = function(a, e, c, f, d, h, g) { var m; - if (!h && (m = this._boundsAndMaskContainPoint(a, e, c, f, d), 0 === m || 2 > d)) { + if (!g && (m = this._boundsAndMaskContainPoint(a, e, c, f, d), 0 === m || 2 > d)) { return m; } - h = !1; + g = !1; for (var l = this._getUnclippedChildren(d, a, e), k = l ? l.length : 0;k--;) { - if (m = l[k], !m._maskedObject && (m = m._containsGlobalPoint(a, e, d, g), 2 === m)) { + if (m = l[k], !m._maskedObject && (m = m._containsGlobalPoint(a, e, d, h), 2 === m)) { if (3 > d) { return m; } - h = !0; + g = !0; if (!(4 <= d)) { if (!this._mouseEnabled) { - return g.length = 0, m; + return h.length = 0, m; } - this._mouseChildren || (g[0] = this); - if (0 !== g.length) { + this._mouseChildren || (h[0] = this); + if (0 !== h.length) { return 2; } } } } - if (h && 4 > d) { - return 3 === d && 0 === g.length && (g[0] = this), 2; + if (g && 4 > d) { + return 3 === d && 0 === h.length && (h[0] = this), 2; } - (a = this._containsPointDirectly(c, f, a, e)) && (5 === d ? g[0] = this : (4 === d || g && this._mouseEnabled) && g.push(this)); - return h || a ? 2 : 0; + (a = this._containsPointDirectly(c, f, a, e)) && (5 === d ? h[0] = this : (4 === d || h && this._mouseEnabled) && h.push(this)); + return g || a ? 2 : 0; }; f.prototype._getUnclippedChildren = function(a, e, c) { var f = this._children; if (!f) { return null; } - for (var d, g = 0;f && g < f.length;g++) { - var h = f[g]; - -1 !== h._clipDepth ? (d || (d = f.slice(0, g)), 2 !== a && (h._containsGlobalPoint(e, c, 2, null) || (g = this.getClipDepthIndex(h._clipDepth)))) : d && d.push(h); + for (var d, h = 0;f && h < f.length;h++) { + var g = f[h]; + -1 !== g._clipDepth ? (d || (d = f.slice(0, h)), 2 !== a && (g._containsGlobalPoint(e, c, 2, null) || (h = this.getClipDepthIndex(g._clipDepth)))) : d && d.push(g); } return d || f; }; @@ -33810,7 +33789,7 @@ var RtmpJs; return e.reverse(); }; f.prototype.areInaccessibleObjectsUnderPoint = function(a) { - t("public DisplayObjectContainer::areInaccessibleObjectsUnderPoint"); + v("public DisplayObjectContainer::areInaccessibleObjectsUnderPoint"); }; f.prototype.contains = function(b) { c(b, "child", a.display.DisplayObject); @@ -33860,7 +33839,7 @@ var RtmpJs; }; return f; }(a.display.InteractiveObject); - v.DisplayObjectContainer = m; + w.DisplayObjectContainer = m; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -33871,9 +33850,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.JointStyle"); + n("public flash.display.JointStyle"); } __extends(c, a); c.fromNumber = function(a) { @@ -33897,7 +33876,7 @@ var RtmpJs; case c.MITER: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -33920,9 +33899,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.CapsStyle"); + n("public flash.display.CapsStyle"); } __extends(c, a); c.fromNumber = function(a) { @@ -33946,7 +33925,7 @@ var RtmpJs; case c.SQUARE: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -33969,9 +33948,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.LineScaleMode"); + n("public flash.display.LineScaleMode"); } __extends(c, a); c.fromNumber = function(a) { @@ -33999,7 +33978,7 @@ var RtmpJs; case c.HORIZONTAL: return 3; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -34023,9 +34002,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.GradientType"); + n("public flash.display.GradientType"); } __extends(c, a); c.fromNumber = function(a) { @@ -34045,7 +34024,7 @@ var RtmpJs; case c.RADIAL: return 18; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -34067,9 +34046,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.SpreadMethod"); + n("public flash.display.SpreadMethod"); } __extends(c, a); c.fromNumber = function(a) { @@ -34093,7 +34072,7 @@ var RtmpJs; case c.REPEAT: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -34116,9 +34095,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.InterpolationMethod"); + n("public flash.display.InterpolationMethod"); } __extends(c, a); c.fromNumber = function(a) { @@ -34138,7 +34117,7 @@ var RtmpJs; case c.LINEAR_RGB: return 1; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -34161,13 +34140,13 @@ var RtmpJs; (function(d) { (function(d) { var k = function(a) { - function d(a, h, l, k) { + function d(a, g, l, k) { void 0 === a && (a = null); - void 0 === h && (h = null); + void 0 === g && (g = null); void 0 === l && (l = !0); void 0 === k && (k = !1); this.bitmapData = a; - this.matrix = h; + this.matrix = g; this.repeat = !!l; this.smooth = !!k; } @@ -34189,9 +34168,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.GraphicsEndFill"); + n("public flash.display.GraphicsEndFill"); } __extends(c, a); c.classInitializer = null; @@ -34211,23 +34190,23 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { - function c(a, c, d, m, g, f, b, e) { + var n = d.AVM2.Runtime.asCoerceString, u = function(a) { + function c(a, c, d, m, h, f, b, e) { void 0 === a && (a = "linear"); void 0 === c && (c = null); void 0 === d && (d = null); void 0 === m && (m = null); - void 0 === g && (g = null); + void 0 === h && (h = null); void 0 === f && (f = "pad"); void 0 === b && (b = "rgb"); void 0 === e && (e = 0); - this.type = p(a); + this.type = n(a); this.colors = c; this.alphas = d; this.ratios = m; - this.matrix = g; + this.matrix = h; this.spreadMethod = f; - this.interpolationMethod = p(b); + this.interpolationMethod = n(b); this.focalPointRatio = +e; } __extends(c, a); @@ -34248,14 +34227,14 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { + var n = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c, d) { void 0 === a && (a = null); void 0 === c && (c = null); void 0 === d && (d = "evenOdd"); this.commands = a; this.data = c; - this.winding = p(d); + this.winding = n(d); } __extends(c, a); c.classInitializer = null; @@ -34275,9 +34254,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.GraphicsPathCommand"); + n("public flash.display.GraphicsPathCommand"); } __extends(c, a); c.classInitializer = null; @@ -34304,9 +34283,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.GraphicsPathWinding"); + n("public flash.display.GraphicsPathWinding"); } __extends(c, a); c.classInitializer = null; @@ -34329,11 +34308,11 @@ var RtmpJs; (function(d) { (function(d) { var k = function(a) { - function d(a, h) { + function d(a, g) { void 0 === a && (a = 0); - void 0 === h && (h = 1); + void 0 === g && (g = 1); this.color = a >>> 0; - this.alpha = +h; + this.alpha = +g; } __extends(d, a); d.classInitializer = null; @@ -34353,20 +34332,20 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { - function c(a, c, d, m, g, f, b) { + var n = d.AVM2.Runtime.asCoerceString, u = function(a) { + function c(a, c, d, m, h, f, b) { void 0 === a && (a = NaN); void 0 === c && (c = !1); void 0 === d && (d = "normal"); void 0 === m && (m = "none"); - void 0 === g && (g = "round"); + void 0 === h && (h = "round"); void 0 === f && (f = 3); void 0 === b && (b = null); this.thickness = +a; this.pixelHinting = !!c; - this.scaleMode = p(d); - this.caps = p(m); - this.joints = p(g); + this.scaleMode = n(d); + this.caps = n(m); + this.joints = n(h); this.miterLimit = +f; this.fill = b; } @@ -34388,11 +34367,11 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { - function d(a, c, h, g) { - void 0 === g && (g = "none"); - u(g); - p("public flash.display.GraphicsTrianglePath"); + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + function d(a, c, g, h) { + void 0 === h && (h = "none"); + u(h); + n("public flash.display.GraphicsTrianglePath"); } __extends(d, a); d.classInitializer = null; @@ -34410,9 +34389,9 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - function t(a, b, e, c) { + (function(n) { + (function(w) { + function v(a, b, e, c) { a = e - a; b = c - b; return a * a + b * b; @@ -34426,74 +34405,74 @@ var RtmpJs; return 0 > c ? a : 1 < c ? e : u(a, b, e, c); } function c(a, b, e, c, f) { - var d = f * f, g = 1 - f, h = g * g; - return a * g * h + 3 * b * f * h + 3 * e * g * d + c * f * d; + var d = f * f, h = 1 - f, g = h * h; + return a * h * g + 3 * b * f * g + 3 * e * h * d + c * f * d; } - function h(a, b, e, f) { - var d = b - a, g; - g = 2 * (e - b); - var h = f - e; - d + h === g && (h *= 1.0001); - var m = 2 * d - g, l = g - 2 * d, l = Math.sqrt(l * l - 4 * d * (d - g + h)); - g = 2 * (d - g + h); - d = (m + l) / g; - m = (m - l) / g; + function g(a, b, e, f) { + var d = b - a, h; + h = 2 * (e - b); + var g = f - e; + d + g === h && (g *= 1.0001); + var m = 2 * d - h, l = h - 2 * d, l = Math.sqrt(l * l - 4 * d * (d - h + g)); + h = 2 * (d - h + g); + d = (m + l) / h; + m = (m - l) / h; l = []; 0 <= d && 1 >= d && l.push(Math.round(c(a, b, e, f, d))); 0 <= m && 1 >= m && l.push(Math.round(c(a, b, e, f, m))); return l; } - function q(a, b, e, c, f, d, g, h, m) { + function q(a, b, e, c, f, d, h, g, m) { function l(a) { - return a * (q + a * (t + a * x)) + b - m; + return a * (n + a * (v + a * C)) + b - m; } - function n(b) { + function p(b) { 0 > b ? b = 0 : 1 < b && (b = 1); - return a + b * (k + b * (p + b * u)); + return a + b * (k + b * (q + b * u)); } - function r(a, b, e, c) { + function t(a, b, e, c) { if (!(Math.abs(e - b) <= c)) { var f = .5 * (b + e); - 0 >= a(b) * a(e) ? (v = b, I = e) : (r(a, b, f, c), r(a, f, e, c)); + 0 >= a(b) * a(e) ? (w = b, I = e) : (t(a, b, f, c), t(a, f, e, c)); } } - var k = 3 * (e - a), q = 3 * (c - b), p = 3 * (f - e) - k, t = 3 * (d - c) - q, u = g - a - k - p, x = h - b - q - t, v = 0, I = 1; - r(l, 0, 1, .05); - d = s(v, I, l); + var k = 3 * (e - a), n = 3 * (c - b), q = 3 * (f - e) - k, v = 3 * (d - c) - n, u = h - a - k - q, C = g - b - n - v, w = 0, I = 1; + t(l, 0, 1, .05); + d = r(w, I, l); if (1E-5 < Math.abs(l(d))) { - return[]; + return []; } e = []; - 1 >= d && e.push(n(d)); - c = x; - f = d * c + t; - g = f * f - 4 * c * (d * f + q); - if (0 > g) { + 1 >= d && e.push(p(d)); + c = C; + f = d * c + v; + h = f * f - 4 * c * (d * f + n); + if (0 > h) { return e; } - g = Math.sqrt(g); + h = Math.sqrt(h); c = 1 / (c + c); - d = (g - f) * c; - c *= -f - g; - 0 <= d && 1 >= d && e.push(n(d)); - 0 <= c && 1 >= c && e.push(n(c)); + d = (h - f) * c; + c *= -f - h; + 0 <= d && 1 >= d && e.push(p(d)); + 0 <= c && 1 >= c && e.push(p(c)); return e; } - function s(a, b, e) { - var c, f, d, g, h, m, l = a; + function r(a, b, e) { + var c, f, d, h, g, m, l = a; f = e(a); if (0 === f) { return a; } - g = e(b); - if (0 === g) { + h = e(b); + if (0 === h) { return b; } - if (0 < g * f) { + if (0 < h * f) { return a; } - for (var n = 0, r = 0;50 > r;++r) { - n++; + for (var p = 0, t = 0;50 > t;++t) { + p++; c = .5 * (b + a); d = e(c); if (0 === d) { @@ -34502,22 +34481,22 @@ var RtmpJs; if (1E-6 > Math.abs(c - a)) { break; } - 0 < d * f && (a = b, b = f, f = g, g = b); + 0 < d * f && (a = b, b = f, f = h, h = b); b = d - f; - m = g - d; - h = g - f; - if (g * h < 2 * d * b) { - b = c, g = d; + m = h - d; + g = h - f; + if (h * g < 2 * d * b) { + b = c, h = d; } else { - g = (c - a) / b; - b = (b - m) / (m * h); - b = a - g * f * (1 - b * d); - g = e(b); - if (0 === g || 1E-6 > Math.abs(b - l)) { + h = (c - a) / b; + b = (b - m) / (m * g); + b = a - h * f * (1 - b * d); + h = e(b); + if (0 === h || 1E-6 > Math.abs(b - l)) { return b; } l = b; - 0 > g * f || (a = b, f = g, b = c, g = d); + 0 > h * f || (a = b, f = h, b = c, h = d); } } return c; @@ -34525,33 +34504,33 @@ var RtmpJs; function m(a, b, e, c, f, d) { return d > b !== c > b && a < (e - f) * (b - d) / (c - d) + f; } - var g = d.Debug.notImplemented, f = d.AVM2.Runtime.asCoerceString, b = d.AVM2.Runtime.throwError, e = d.NumberUtilities.clamp, r = d.Bounds, n = p.display.GradientType, x = p.display.SpreadMethod, I = p.display.InterpolationMethod, z = p.display.LineScaleMode, D = p.display.CapsStyle, M = p.display.JointStyle, F = d.ShapeData, T = function(a) { - function s() { - this._id = p.display.DisplayObject.getNextSyncID(); - this._graphicsData = new F; + var h = d.Debug.notImplemented, f = d.AVM2.Runtime.asCoerceString, b = d.AVM2.Runtime.throwError, e = d.NumberUtilities.clamp, t = d.Bounds, p = n.display.GradientType, C = n.display.SpreadMethod, I = n.display.InterpolationMethod, B = n.display.LineScaleMode, D = n.display.CapsStyle, M = n.display.JointStyle, E = d.ShapeData, J = function(a) { + function r() { + this._id = n.display.DisplayObject.getNextSyncID(); + this._graphicsData = new E; this._textures = []; - this._fillBounds = new r(134217728, 134217728, 134217728, 134217728); - this._lineBounds = new r(134217728, 134217728, 134217728, 134217728); + this._fillBounds = new t(134217728, 134217728, 134217728, 134217728); + this._lineBounds = new t(134217728, 134217728, 134217728, 134217728); this._lastX = this._lastY = 0; this._boundsIncludeLastCoordinates = !0; this._parent = null; this._topLeftStrokeWidth = this._bottomRightStrokeWidth = 0; this._isDirty = !0; } - __extends(s, a); - s.FromData = function(a) { - var b = new p.display.Graphics; - b._graphicsData = F.FromPlainObject(a.shape); + __extends(r, a); + r.FromData = function(a) { + var b = new n.display.Graphics; + b._graphicsData = E.FromPlainObject(a.shape); a.lineBounds && (b._lineBounds.copyFrom(a.lineBounds), b._fillBounds.copyFrom(a.fillBounds || a.lineBounds)); return b; }; - s.prototype.getGraphicsData = function() { + r.prototype.getGraphicsData = function() { return this._graphicsData; }; - s.prototype.getUsedTextures = function() { + r.prototype.getUsedTextures = function() { return this._textures; }; - s.prototype._setStrokeWidth = function(a) { + r.prototype._setStrokeWidth = function(a) { switch(a) { case 1: this._topLeftStrokeWidth = 0; @@ -34565,75 +34544,75 @@ var RtmpJs; this._bottomRightStrokeWidth = this._topLeftStrokeWidth = a = Math.ceil(.5 * a) | 0; } }; - s.prototype._setParent = function(a) { + r.prototype._setParent = function(a) { this._parent = a; }; - s.prototype._invalidate = function() { + r.prototype._invalidate = function() { this._parent._invalidateFillAndLineBounds(!0, !0); this._parent._propagateFlagsUp(536870912); this._isDirty = !0; }; - s.prototype._getContentBounds = function(a) { + r.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); return a ? this._lineBounds : this._fillBounds; }; - s.prototype.clear = function() { + r.prototype.clear = function() { this._graphicsData.isEmpty() || (this._graphicsData.clear(), this._textures.length = 0, this._fillBounds.setToSentinels(), this._lineBounds.setToSentinels(), this._lastX = this._lastY = 0, this._boundsIncludeLastCoordinates = !1, this._invalidate()); }; - s.prototype.beginFill = function(a, b) { + r.prototype.beginFill = function(a, b) { void 0 === b && (b = 1); a = a >>> 0 & 16777215; b = Math.round(255 * e(+b, -1, 1)) | 0; this._graphicsData.beginFill(a << 8 | b); }; - s.prototype.beginGradientFill = function(a, b, e, c, f, d, g, h) { + r.prototype.beginGradientFill = function(a, b, e, c, f, d, h, g) { void 0 === f && (f = null); void 0 === d && (d = "pad"); - void 0 === g && (g = "rgb"); - void 0 === h && (h = 0); - this._writeGradientStyle(2, a, b, e, c, f, d, g, h, !1); + void 0 === h && (h = "rgb"); + void 0 === g && (g = 0); + this._writeGradientStyle(2, a, b, e, c, f, d, h, g, !1); }; - s.prototype.beginBitmapFill = function(a, b, e, c) { + r.prototype.beginBitmapFill = function(a, b, e, c) { void 0 === b && (b = null); void 0 === e && (e = !0); void 0 === c && (c = !1); this._writeBitmapStyle(3, a, b, e, c, !1); }; - s.prototype.endFill = function() { + r.prototype.endFill = function() { this._graphicsData.endFill(); }; - s.prototype.lineStyle = function(a, b, c, d, g, h, m, l) { + r.prototype.lineStyle = function(a, b, c, d, h, g, m, l) { void 0 === b && (b = 0); void 0 === c && (c = 1); void 0 === d && (d = !1); - void 0 === g && (g = "normal"); - void 0 === h && (h = null); + void 0 === h && (h = "normal"); + void 0 === g && (g = null); void 0 === m && (m = null); void 0 === l && (l = 3); a = +a; b = b >>> 0 & 16777215; c = Math.round(255 * e(+c, -1, 1)); d = !!d; - g = f(g); h = f(h); + g = f(g); m = f(m); l = e(+l | 0, 0, 255); - isNaN(a) ? (this._setStrokeWidth(0), this._graphicsData.endLine()) : (a = 20 * e(+a, 0, 255) | 0, this._setStrokeWidth(a), g = z.toNumber(f(g)), 0 > g && (g = z.toNumber(z.NORMAL)), h = D.toNumber(f(h)), 0 > h && (h = D.toNumber(D.ROUND)), m = M.toNumber(f(m)), 0 > m && (m = M.toNumber(M.ROUND)), this._graphicsData.lineStyle(a, b << 8 | c, d, g, h, m, l)); + isNaN(a) ? (this._setStrokeWidth(0), this._graphicsData.endLine()) : (a = 20 * e(+a, 0, 255) | 0, this._setStrokeWidth(a), h = B.toNumber(f(h)), 0 > h && (h = B.toNumber(B.NORMAL)), g = D.toNumber(f(g)), 0 > g && (g = D.toNumber(D.ROUND)), m = M.toNumber(f(m)), 0 > m && (m = M.toNumber(M.ROUND)), this._graphicsData.lineStyle(a, b << 8 | c, d, h, g, m, l)); }; - s.prototype.lineGradientStyle = function(a, b, e, c, f, d, g, h) { + r.prototype.lineGradientStyle = function(a, b, e, c, f, d, h, g) { void 0 === f && (f = null); void 0 === d && (d = "pad"); - void 0 === g && (g = "rgb"); - void 0 === h && (h = 0); - this._writeGradientStyle(6, a, b, e, c, f, d, g, h, !this._graphicsData.hasLines); + void 0 === h && (h = "rgb"); + void 0 === g && (g = 0); + this._writeGradientStyle(6, a, b, e, c, f, d, h, g, !this._graphicsData.hasLines); }; - s.prototype.lineBitmapStyle = function(a, b, e, c) { + r.prototype.lineBitmapStyle = function(a, b, e, c) { void 0 === b && (b = null); void 0 === e && (e = !0); void 0 === c && (c = !1); this._writeBitmapStyle(7, a, b, e, c, !this._graphicsData.hasLines); }; - s.prototype.drawRect = function(a, b, e, c) { + r.prototype.drawRect = function(a, b, e, c) { a = 20 * a | 0; b = 20 * b | 0; e = a + (20 * e | 0); @@ -34647,7 +34626,7 @@ var RtmpJs; this._applyLastCoordinates(a, b); this._invalidate(); }; - s.prototype.drawRoundRect = function(a, b, e, c, f, d) { + r.prototype.drawRoundRect = function(a, b, e, c, f, d) { a = +a; b = +b; e = +e; @@ -34656,58 +34635,58 @@ var RtmpJs; if ((d = +d) && f) { f = f / 2 | 0; d = d / 2 | 0; - var g = e / 2, h = c / 2; - f > g && (f = g); - d > h && (d = h); - g === f && h === d ? f === d ? this.drawCircle(a + f, b + d, f) : this.drawEllipse(a, b, 2 * f, 2 * d) : (e = a + e, c = b + c, g = a + f, f = e - f, h = b + d, d = c - d, this.moveTo(e, d), this.curveTo(e, c, f, c), this.lineTo(g, c), this.curveTo(a, c, a, d), this.lineTo(a, h), this.curveTo(a, b, g, b), this.lineTo(f, b), this.curveTo(e, b, e, h), this.lineTo(e, d)); + var h = e / 2, g = c / 2; + f > h && (f = h); + d > g && (d = g); + h === f && g === d ? f === d ? this.drawCircle(a + f, b + d, f) : this.drawEllipse(a, b, 2 * f, 2 * d) : (e = a + e, c = b + c, h = a + f, f = e - f, g = b + d, d = c - d, this.moveTo(e, d), this.curveTo(e, c, f, c), this.lineTo(h, c), this.curveTo(a, c, a, d), this.lineTo(a, g), this.curveTo(a, b, h, b), this.lineTo(f, b), this.curveTo(e, b, e, g), this.lineTo(e, d)); } else { this.drawRect(a, b, e, c); } }; - s.prototype.drawRoundRectComplex = function(a, b, e, c, f, d, g, h) { + r.prototype.drawRoundRectComplex = function(a, b, e, c, f, d, h, g) { a = +a; b = +b; e = +e; c = +c; f = +f; d = +d; - g = +g; h = +h; - if (f | d | g | h) { + g = +g; + if (f | d | h | g) { e = a + e; c = b + c; var m = a + f; - this.moveTo(e, c - h); - this.curveTo(e, c, e - h, c); - this.lineTo(a + g, c); - this.curveTo(a, c, a, c - g); + this.moveTo(e, c - g); + this.curveTo(e, c, e - g, c); + this.lineTo(a + h, c); + this.curveTo(a, c, a, c - h); this.lineTo(a, b + f); this.curveTo(a, b, m, b); this.lineTo(e - d, b); this.curveTo(e, b, e, b + d); - this.lineTo(e, c - h); + this.lineTo(e, c - g); } else { this.drawRect(a, b, e, c); } }; - s.prototype.drawCircle = function(a, b, e) { + r.prototype.drawCircle = function(a, b, e) { e = +e; this.drawEllipse(+a - e, +b - e, 2 * e, 2 * e); }; - s.prototype.drawEllipse = function(a, b, e, c) { + r.prototype.drawEllipse = function(a, b, e, c) { e = +e / 2; c = +c / 2; a = +a + e; b = +b + c; var f = a + e, d = b; this.moveTo(f, d); - for (var g = 0, h = 1, m = 0, l = 0;4 > l;l++) { - var n = g + Math.PI / 2, g = 4 / 3 * Math.tan((n - g) / 4), r = f - m * g * e, k = d + h * g * c, h = Math.cos(n), m = Math.sin(n), f = a + h * e, d = b + m * c; - this.cubicCurveTo(r, k, f + m * g * e, d - h * g * c, f, d); - g = n; + for (var h = 0, g = 1, m = 0, l = 0;4 > l;l++) { + var p = h + Math.PI / 2, h = 4 / 3 * Math.tan((p - h) / 4), t = f - m * h * e, k = d + g * h * c, g = Math.cos(p), m = Math.sin(p), f = a + g * e, d = b + m * c; + this.cubicCurveTo(t, k, f + m * h * e, d - g * h * c, f, d); + h = p; } }; - s.prototype.moveTo = function(a, b) { + r.prototype.moveTo = function(a, b) { a = 20 * a | 0; b = 20 * b | 0; this._graphicsData.moveTo(a, b); @@ -34715,14 +34694,14 @@ var RtmpJs; this._lastY = b; this._boundsIncludeLastCoordinates = !1; }; - s.prototype.lineTo = function(a, b) { + r.prototype.lineTo = function(a, b) { a = 20 * a | 0; b = 20 * b | 0; this._graphicsData.lineTo(a, b); this._applyLastCoordinates(a, b); this._invalidate(); }; - s.prototype.curveTo = function(a, b, e, c) { + r.prototype.curveTo = function(a, b, e, c) { a = 20 * a | 0; b = 20 * b | 0; e = 20 * e | 0; @@ -34733,7 +34712,7 @@ var RtmpJs; this._applyLastCoordinates(e, c); this._invalidate(); }; - s.prototype.cubicCurveTo = function(a, b, e, c, f, d) { + r.prototype.cubicCurveTo = function(a, b, e, c, f, d) { a = 20 * a | 0; b = 20 * b | 0; e = 20 * e | 0; @@ -34741,21 +34720,21 @@ var RtmpJs; f = 20 * f | 0; d = 20 * d | 0; this._graphicsData.cubicCurveTo(a, b, e, c, f, d); - var g = this._lastX, m = this._lastY; - if (a < g || e < g || a > f || e > f) { - for (a = h(g, a, e, f), e = a.length;e--;) { + var h = this._lastX, m = this._lastY; + if (a < h || e < h || a > f || e > f) { + for (a = g(h, a, e, f), e = a.length;e--;) { this._extendBoundsByX(a[e] | 0); } } if (b < m || c < m || b > d || c > d) { - for (a = h(m, b, c, d), e = a.length;e--;) { + for (a = g(m, b, c, d), e = a.length;e--;) { this._extendBoundsByY(a[e] | 0); } } this._applyLastCoordinates(f, d); this._invalidate(); }; - s.prototype.copyFrom = function(a) { + r.prototype.copyFrom = function(a) { this._graphicsData = a._graphicsData.clone(); this._fillBounds = a._fillBounds.clone(); this._lineBounds = a._lineBounds.clone(); @@ -34765,93 +34744,93 @@ var RtmpJs; this._boundsIncludeLastCoordinates = a._boundsIncludeLastCoordinates; this._invalidate(); }; - s.prototype.drawPath = function(a, b, e) { + r.prototype.drawPath = function(a, b, e) { void 0 === e && (e = "evenOdd"); f(e); - g("public flash.display.Graphics::drawPath"); + h("public flash.display.Graphics::drawPath"); }; - s.prototype.drawTriangles = function(a, b, e, c) { + r.prototype.drawTriangles = function(a, b, e, c) { void 0 === c && (c = "none"); f(c); - g("public flash.display.Graphics::drawTriangles"); + h("public flash.display.Graphics::drawTriangles"); }; - s.prototype.drawGraphicsData = function(a) { - g("public flash.display.Graphics::drawGraphicsData"); + r.prototype.drawGraphicsData = function(a) { + h("public flash.display.Graphics::drawGraphicsData"); }; - s.prototype._containsPoint = function(a, b, e, c) { + r.prototype._containsPoint = function(a, b, e, c) { var f = this._graphicsData.hasLines; if (!c && !(e && f ? this._lineBounds : this._fillBounds).contains(a, b)) { - return!1; + return !1; } f = !1; this._graphicsData.hasFills && (f = this._fillContainsPoint(a, b, c)); !f && e && (f = this._linesContainsPoint(a, b, c)); return f; }; - s.prototype._fillContainsPoint = function(a, b, e) { - for (var c = this._graphicsData, f = c.commands, d = c.commandsPosition, g = c.coordinates, c = c.morphCoordinates, h = 0, l = 0, n = 0, r = 0, k = 0, s, p, t = !1, x = !1, v = 0, I = 0, z = !1, D = 0;D < d;D++) { - s = f[D]; - switch(s) { + r.prototype._fillContainsPoint = function(a, b, e) { + for (var c = this._graphicsData, f = c.commands, d = c.commandsPosition, h = c.coordinates, c = c.morphCoordinates, g = 0, l = 0, p = 0, t = 0, k = 0, n, r, v = !1, C = !1, w = 0, I = 0, B = !1, D = 0;D < d;D++) { + n = f[D]; + switch(n) { case 9: - t && x && m(a, b, l, n, v, I) && (z = !z); - t = !0; - l = v = g[h++]; - n = I = g[h++]; - e && (l = v += (c[h - 2] - v) * e, n = I += (c[h - 2] - I) * e); + v && C && m(a, b, l, p, w, I) && (B = !B); + v = !0; + l = w = h[g++]; + p = I = h[g++]; + e && (l = w += (c[g - 2] - w) * e, p = I += (c[g - 2] - I) * e); continue; case 10: - r = g[h++]; - k = g[h++]; - e && (r += (c[h - 2] - r) * e, k += (c[h - 1] - k) * e); - x && m(a, b, l, n, r, k) && (z = !z); + t = h[g++]; + k = h[g++]; + e && (t += (c[g - 2] - t) * e, k += (c[g - 1] - k) * e); + C && m(a, b, l, p, t, k) && (B = !B); break; case 11: - s = g[h++]; - p = g[h++]; - r = g[h++]; - k = g[h++]; - e && (s += (c[h - 4] - s) * e, p += (c[h - 3] - p) * e, r += (c[h - 2] - r) * e, k += (c[h - 1] - k) * e); + n = h[g++]; + r = h[g++]; + t = h[g++]; + k = h[g++]; + e && (n += (c[g - 4] - n) * e, r += (c[g - 3] - r) * e, t += (c[g - 2] - t) * e, k += (c[g - 1] - k) * e); var M; - if (M = x) { - if (p > b === n > b && k > b === n > b) { + if (M = C) { + if (r > b === p > b && k > b === p > b) { M = !1; } else { - if (l >= a && s >= a && r >= a) { + if (l >= a && n >= a && t >= a) { M = !0; } else { - M = n - 2 * p + k; - p = 2 * (p - n); - var F = p * p - 4 * M * (n - b); - 0 > F ? M = !1 : (F = Math.sqrt(F), M = 1 / (M + M), n = (F - p) * M, p = (-p - F) * M, M = !1, 0 <= n && 1 >= n && u(l, s, r, n) > a && (M = !M), 0 <= p && 1 >= p && u(l, s, r, p) > a && (M = !M)); + M = p - 2 * r + k; + r = 2 * (r - p); + var E = r * r - 4 * M * (p - b); + 0 > E ? M = !1 : (E = Math.sqrt(E), M = 1 / (M + M), p = (E - r) * M, r = (-r - E) * M, M = !1, 0 <= p && 1 >= p && u(l, n, t, p) > a && (M = !M), 0 <= r && 1 >= r && u(l, n, t, r) > a && (M = !M)); } } } - M && (z = !z); + M && (B = !B); break; case 12: - s = g[h++]; - p = g[h++]; - var F = g[h++], T = g[h++], r = g[h++], k = g[h++]; - e && (s += (c[h - 6] - s) * e, p += (c[h - 5] - p) * e, F += (c[h - 4] - F) * e, T += (c[h - 3] - T) * e, r += (c[h - 2] - r) * e, k += (c[h - 1] - k) * e); - if (M = x) { + n = h[g++]; + r = h[g++]; + var E = h[g++], J = h[g++], t = h[g++], k = h[g++]; + e && (n += (c[g - 6] - n) * e, r += (c[g - 5] - r) * e, E += (c[g - 4] - E) * e, J += (c[g - 3] - J) * e, t += (c[g - 2] - t) * e, k += (c[g - 1] - k) * e); + if (M = C) { M = a; - var C = n > b; - if (p > b === C && T > b === C && k > b === C) { + var y = p > b; + if (r > b === y && J > b === y && k > b === y) { M = !1; } else { - if (l < M && s < M && F < M && r < M) { + if (l < M && n < M && E < M && t < M) { M = !1; } else { - C = !1; - l = q(l, n, s, p, F, T, r, k, b); - for (s = l.length;s;s--) { - l[s] >= M && (C = !C); + y = !1; + l = q(l, p, n, r, E, J, t, k, b); + for (n = l.length;n;n--) { + l[n] >= M && (y = !y); } - M = C; + M = y; } } } - M && (z = !z); + M && (B = !B); break; case 1: ; @@ -34860,191 +34839,191 @@ var RtmpJs; case 3: ; case 4: - t && x && m(a, b, l, n, v, I) && (z = !z); - if (z) { - return!0; + v && C && m(a, b, l, p, w, I) && (B = !B); + if (B) { + return !0; } - t = !1; - x = 4 !== s; + v = !1; + C = 4 !== n; break; case 5: - h++; + g++; } - l = r; - n = k; + l = t; + p = k; } - t && x && m(a, b, l, n, v, I) && (z = !z); - return z; + v && C && m(a, b, l, p, w, I) && (B = !B); + return B; }; - s.prototype._linesContainsPoint = function(a, b, e) { - for (var f = this._graphicsData, d = f.commands, g = f.commandsPosition, m = f.coordinates, f = f.morphCoordinates, n = 0, r = 0, k = 0, q = 0, s = 0, p, x, v, I, z, D = 0, M = p = 0, F = 0, T = 0, C = 0, N = 0, ha = 0;ha < g;ha++) { - switch(d[ha]) { + r.prototype._linesContainsPoint = function(a, b, e) { + for (var f = this._graphicsData, d = f.commands, h = f.commandsPosition, m = f.coordinates, f = f.morphCoordinates, p = 0, t = 0, k = 0, n = 0, q = 0, r, C, w, I, B, D = 0, M = r = 0, E = 0, J = 0, y = 0, P = 0, ja = 0;ja < h;ja++) { + switch(d[ja]) { case 9: - r = m[n++]; - k = m[n++]; - e && (r += (f[n - 2] - r) * e, k += (f[n - 1] - k) * e); + t = m[p++]; + k = m[p++]; + e && (t += (f[p - 2] - t) * e, k += (f[p - 1] - k) * e); continue; case 10: if (0 === D) { - r = m[n++]; - k = m[n++]; - e && (r += (f[n - 2] - r) * e, k += (f[n - 1] - k) * e); + t = m[p++]; + k = m[p++]; + e && (t += (f[p - 2] - t) * e, k += (f[p - 1] - k) * e); continue; } - q = m[n++]; - s = m[n++]; - e && (q += (f[n - 2] - q) * e, s += (f[n - 1] - s) * e); - if (r === q && k === s) { + n = m[p++]; + q = m[p++]; + e && (n += (f[p - 2] - n) * e, q += (f[p - 1] - q) * e); + if (t === n && k === q) { break; } - if (T < r && T < q || F > r && F > q || N < k && N < s || C > k && C > s) { + if (J < t && J < n || E > t && E > n || P < k && P < q || y > k && y > q) { break; } - if (q === r || s === k) { - return!0; + if (n === t || q === k) { + return !0; } - z = ((a - r) * (q - r) + (b - k) * (s - k)) / t(r, k, q, s); - if (0 > z) { - if (t(a, b, r, k) <= M) { - return!0; + B = ((a - t) * (n - t) + (b - k) * (q - k)) / v(t, k, n, q); + if (0 > B) { + if (v(a, b, t, k) <= M) { + return !0; } break; } - if (1 < z) { - if (t(a, b, q, s) <= M) { - return!0; + if (1 < B) { + if (v(a, b, n, q) <= M) { + return !0; } break; } - if (t(a, b, r + z * (q - r), k + z * (s - k)) <= M) { - return!0; + if (v(a, b, t + B * (n - t), k + B * (q - k)) <= M) { + return !0; } break; case 11: if (0 === D) { - n += 2; - r = m[n++]; - k = m[n++]; - e && (r += (f[n - 2] - r) * e, k += (f[n - 1] - k) * e); + p += 2; + t = m[p++]; + k = m[p++]; + e && (t += (f[p - 2] - t) * e, k += (f[p - 1] - k) * e); continue; } - p = m[n++]; - x = m[n++]; - q = m[n++]; - s = m[n++]; - e && (p += (f[n - 4] - p) * e, x += (f[n - 3] - x) * e, q += (f[n - 2] - q) * e, s += (f[n - 1] - s) * e); - var ea = l(r, p, q); - if (T < r && T < ea && T < q || F > r && F > ea && F > q) { + r = m[p++]; + C = m[p++]; + n = m[p++]; + q = m[p++]; + e && (r += (f[p - 4] - r) * e, C += (f[p - 3] - C) * e, n += (f[p - 2] - n) * e, q += (f[p - 1] - q) * e); + var ga = l(t, r, n); + if (J < t && J < ga && J < n || E > t && E > ga && E > n) { break; } - ea = l(k, x, s); - if (N < k && N < ea && N < s || C > k && C > ea && C > s) { + ga = l(k, C, q); + if (P < k && P < ga && P < q || y > k && y > ga && y > q) { break; } - for (z = 0;1 > z;z += .02) { - if (v = u(r, p, q, z), !(v < F || v > T) && (I = u(k, x, s, z), !(I < C || I > N) && (a - v) * (a - v) + (b - I) * (b - I) < M)) { - return!0; + for (B = 0;1 > B;B += .02) { + if (w = u(t, r, n, B), !(w < E || w > J) && (I = u(k, C, q, B), !(I < y || I > P) && (a - w) * (a - w) + (b - I) * (b - I) < M)) { + return !0; } } break; case 12: if (0 === D) { - n += 4; - n++; - r = m[n++]; - e && (r += (f[n - 2] - r) * e, k += (f[n - 1] - k) * e); + p += 4; + p++; + t = m[p++]; + e && (t += (f[p - 2] - t) * e, k += (f[p - 1] - k) * e); continue; } - p = m[n++]; - x = m[n++]; - var ea = m[n++], aa = m[n++], q = m[n++], s = m[n++]; - e && (p += (f[n - 6] - p) * e, x += (f[n - 5] - x) * e, ea += (f[n - 4] - ea) * e, aa += (f[n - 3] - aa) * e, q += (f[n - 2] - q) * e, s += (f[n - 1] - s) * e); - for (v = h(r, p, ea, q);2 > v.length;) { - v.push(q); + r = m[p++]; + C = m[p++]; + var ga = m[p++], ca = m[p++], n = m[p++], q = m[p++]; + e && (r += (f[p - 6] - r) * e, C += (f[p - 5] - C) * e, ga += (f[p - 4] - ga) * e, ca += (f[p - 3] - ca) * e, n += (f[p - 2] - n) * e, q += (f[p - 1] - q) * e); + for (w = g(t, r, ga, n);2 > w.length;) { + w.push(n); } - if (T < r && T < q && T < v[0] && T < v[1] || F > r && F > q && F > v[0] && F > v[1]) { + if (J < t && J < n && J < w[0] && J < w[1] || E > t && E > n && E > w[0] && E > w[1]) { break; } - for (v = h(k, x, aa, s);2 > v.length;) { - v.push(s); + for (w = g(k, C, ca, q);2 > w.length;) { + w.push(q); } - if (N < k && N < s && N < v[0] && N < v[1] || C > k && C > s && C > v[0] && C > v[1]) { + if (P < k && P < q && P < w[0] && P < w[1] || y > k && y > q && y > w[0] && y > w[1]) { break; } - for (z = 0;1 > z;z += .02) { - if (v = c(r, p, ea, q, z), !(v < F || v > T) && (I = c(k, x, aa, s, z), !(I < C || I > N) && (a - v) * (a - v) + (b - I) * (b - I) < M)) { - return!0; + for (B = 0;1 > B;B += .02) { + if (w = c(t, r, ga, n, B), !(w < E || w > J) && (I = c(k, C, ca, q, B), !(I < y || I > P) && (a - w) * (a - w) + (b - I) * (b - I) < M)) { + return !0; } } break; case 5: - D = m[n++], e && (D += (f[n - 1] - D) * e), p = D >> 2, M = p * p, F = a - p, T = a + p, C = b - p, N = b + p; + D = m[p++], e && (D += (f[p - 1] - D) * e), r = D >> 2, M = r * r, E = a - r, J = a + r, y = b - r, P = b + r; } - r = q; - k = s; + t = n; + k = q; } - return!1; + return !1; }; - s.prototype._writeBitmapStyle = function(a, e, c, f, g, h) { - d.isNullOrUndefined(e) ? b("TypeError", k.Errors.NullPointerError, "bitmap") : p.display.BitmapData.isType(e) || b("TypeError", k.Errors.CheckTypeFailedError, "bitmap", "flash.display.BitmapData"); - d.isNullOrUndefined(c) ? c = p.geom.Matrix.FROZEN_IDENTITY_MATRIX : p.geom.Matrix.isType(c) || b("TypeError", k.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"); + r.prototype._writeBitmapStyle = function(a, e, c, f, h, g) { + d.isNullOrUndefined(e) ? b("TypeError", k.Errors.NullPointerError, "bitmap") : n.display.BitmapData.isType(e) || b("TypeError", k.Errors.CheckTypeFailedError, "bitmap", "flash.display.BitmapData"); + d.isNullOrUndefined(c) ? c = n.geom.Matrix.FROZEN_IDENTITY_MATRIX : n.geom.Matrix.isType(c) || b("TypeError", k.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"); f = !!f; - g = !!g; - h || (h = this._textures.length, this._textures.push(e), this._graphicsData.beginBitmap(a, h, c, f, g)); + h = !!h; + g || (g = this._textures.length, this._textures.push(e), this._graphicsData.beginBitmap(a, g, c, f, h)); }; - s.prototype._writeGradientStyle = function(a, c, g, h, m, l, r, q, s, t) { + r.prototype._writeGradientStyle = function(a, c, h, g, m, l, t, q, r, v) { d.isNullOrUndefined(c) && b("TypeError", k.Errors.NullPointerError, "type"); - c = n.toNumber(f(c)); + c = p.toNumber(f(c)); 0 > c && b("ArgumentError", k.Errors.InvalidEnumError, "type"); - d.isNullOrUndefined(g) && b("TypeError", k.Errors.NullPointerError, "colors"); - g instanceof Array || b("TypeError", k.Errors.CheckTypeFailedError, "colors", "Array"); - h instanceof Array || b("TypeError", k.Errors.CheckTypeFailedError, "alphas", "Array"); - d.isNullOrUndefined(h) && b("TypeError", k.Errors.NullPointerError, "alphas"); + d.isNullOrUndefined(h) && b("TypeError", k.Errors.NullPointerError, "colors"); + h instanceof Array || b("TypeError", k.Errors.CheckTypeFailedError, "colors", "Array"); + g instanceof Array || b("TypeError", k.Errors.CheckTypeFailedError, "alphas", "Array"); + d.isNullOrUndefined(g) && b("TypeError", k.Errors.NullPointerError, "alphas"); m instanceof Array || b("TypeError", k.Errors.CheckTypeFailedError, "ratios", "Array"); d.isNullOrUndefined(m) && b("TypeError", k.Errors.NullPointerError, "ratios"); - var u = [], v = [], z = g.length, D = z === h.length && z === m.length; + var u = [], w = [], B = h.length, D = B === g.length && B === m.length; if (D) { - for (var M = 0;M < z;M++) { - var F = +m[M]; - if (255 < F || 0 > F) { + for (var M = 0;M < B;M++) { + var E = +m[M]; + if (255 < E || 0 > E) { D = !1; break; } - u[M] = g[M] << 8 & 4294967040 | 255 * e(+h[M], 0, 1); - v[M] = F; + u[M] = h[M] << 8 & 4294967040 | 255 * e(+g[M], 0, 1); + w[M] = E; } } - D && (d.isNullOrUndefined(l) ? l = p.geom.Matrix.FROZEN_IDENTITY_MATRIX : p.geom.Matrix.isType(l) || b("TypeError", k.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"), t || (g = x.toNumber(f(r)), 0 > g && (g = x.toNumber(x.PAD)), q = I.toNumber(f(q)), 0 > q && (q = I.toNumber(I.RGB)), s = e(+s, -1, 1) / 2 * 255 | 0, this._graphicsData.beginGradient(a, u, v, c, l, g, q, s))); + D && (d.isNullOrUndefined(l) ? l = n.geom.Matrix.FROZEN_IDENTITY_MATRIX : n.geom.Matrix.isType(l) || b("TypeError", k.Errors.CheckTypeFailedError, "matrix", "flash.geom.Matrix"), v || (h = C.toNumber(f(t)), 0 > h && (h = C.toNumber(C.PAD)), q = I.toNumber(f(q)), 0 > q && (q = I.toNumber(I.RGB)), r = e(+r, -1, 1) / 2 * 255 | 0, this._graphicsData.beginGradient(a, u, w, c, l, h, q, r))); }; - s.prototype._extendBoundsByPoint = function(a, b) { + r.prototype._extendBoundsByPoint = function(a, b) { this._extendBoundsByX(a); this._extendBoundsByY(b); }; - s.prototype._extendBoundsByX = function(a) { + r.prototype._extendBoundsByX = function(a) { this._fillBounds.extendByX(a); var b = this._lineBounds; 134217728 === b.xMin ? (b.xMin = a - this._topLeftStrokeWidth, b.xMax = a + this._bottomRightStrokeWidth) : (b.xMin = Math.min(a - this._topLeftStrokeWidth, b.xMin), b.xMax = Math.max(a + this._bottomRightStrokeWidth, b.xMax)); }; - s.prototype._extendBoundsByY = function(a) { + r.prototype._extendBoundsByY = function(a) { this._fillBounds.extendByY(a); var b = this._lineBounds; 134217728 === b.yMin ? (b.yMin = a - this._topLeftStrokeWidth, b.yMax = a + this._bottomRightStrokeWidth) : (b.yMin = Math.min(a - this._topLeftStrokeWidth, b.yMin), b.yMax = Math.max(a + this._bottomRightStrokeWidth, b.yMax)); }; - s.prototype._applyLastCoordinates = function(a, b) { + r.prototype._applyLastCoordinates = function(a, b) { this._boundsIncludeLastCoordinates || this._extendBoundsByPoint(this._lastX, this._lastY); this._boundsIncludeLastCoordinates = !0; this._lastX = a; this._lastY = b; this._extendBoundsByPoint(a, b); }; - s.classInitializer = null; - s.initializer = null; - s.classSymbols = null; - s.instanceSymbols = null; - return s; + r.classInitializer = null; + r.initializer = null; + r.classSymbols = null; + r.instanceSymbols = null; + return r; }(a.ASNative); - v.Graphics = T; - })(p.display || (p.display = {})); + w.Graphics = J; + })(n.display || (n.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -35054,7 +35033,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Timeline, l = d.NumberUtilities.clamp, c; + var v = d.Debug.notImplemented, u = d.Timeline, l = d.NumberUtilities.clamp, c; (function(a) { a[a.Inactive = 0] = "Inactive"; a[a.LockToPointer = 1] = "LockToPointer"; @@ -35076,12 +35055,12 @@ var RtmpJs; }; q.prototype._processControlTags = function(a, c) { if (c) { - for (var g = this._children.slice(), f = 0;f < g.length;f++) { - var b = g[f]; + for (var h = this._children.slice(), f = 0;f < h.length;f++) { + var b = h[f]; if (!(0 > b._depth)) { - for (var e = null, h = 0;h < a.length;h++) { - if (a[h].depth === b._depth) { - e = a[h]; + for (var e = null, g = 0;g < a.length;g++) { + if (a[g].depth === b._depth) { + e = a[g]; break; } } @@ -35089,9 +35068,9 @@ var RtmpJs; } } } - g = this._symbol.loaderInfo; + h = this._symbol.loaderInfo; for (f = 0;f < a.length;f++) { - switch(b = a[f], e = void 0 === b.tagCode ? b : g._file.getParsedTag(b), e.code) { + switch(b = a[f], e = void 0 === b.tagCode ? b : h._file.getParsedTag(b), e.code) { case 5: ; case 28: @@ -35102,8 +35081,8 @@ var RtmpJs; case 26: ; case 70: - var h = e, l = h.depth, b = this.getTimelineObjectAtDepth(l), k = -1 < h.symbolId; - if (h.flags & 1) { + var g = e, l = g.depth, b = this.getTimelineObjectAtDepth(l), k = -1 < g.symbolId; + if (g.flags & 1) { if (!b) { break; } @@ -35112,11 +35091,11 @@ var RtmpJs; break; } } - var q = null; - if (k && (q = g.getSymbolById(h.symbolId), !q)) { + var n = null; + if (k && (n = h.getSymbolById(g.symbolId), !n)) { break; } - b ? (q && !q.dynamic && b._setStaticContentFromSymbol(q), b._hasFlags(4096) && b._animate(e)) : (b = this.createAnimatedDisplayObject(q, h, !1), this.addTimelineObjectAtDepth(b, l), q.isAVM1Object && d.AVM1.Lib.initializeAVM1Object(b, q.avm1Context, h)); + b ? (n && !n.dynamic && b._setStaticContentFromSymbol(n), b._hasFlags(4096) && b._animate(e)) : (b = this.createAnimatedDisplayObject(n, g, !1), this.addTimelineObjectAtDepth(b, l), n.isAVM1Object && d.AVM1.Lib.initializeAVM1Object(b, n.avm1Context, g)); } } }; @@ -35128,7 +35107,7 @@ var RtmpJs; } }; q.prototype._canHaveGraphics = function() { - return!0; + return !0; }; q.prototype._getGraphics = function() { return this._graphics; @@ -35155,9 +35134,9 @@ var RtmpJs; this._useHandCursor = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "soundTransform", {get:function() { - t("public flash.display.Sprite::get soundTransform"); + v("public flash.display.Sprite::get soundTransform"); }, set:function(a) { - t("public flash.display.Sprite::set soundTransform"); + v("public flash.display.Sprite::set soundTransform"); }, enumerable:!0, configurable:!0}); q.prototype.startDrag = function(c, d) { void 0 === c && (c = !1); @@ -35166,9 +35145,9 @@ var RtmpJs; this._dragMode = 1; } else { this._dragMode = 2; - var g = this._getLocalMousePosition(); - this._dragDeltaX = this.x - g.x; - this._dragDeltaY = this.y - g.y; + var h = this._getLocalMousePosition(); + this._dragDeltaX = this.x - h.x; + this._dragDeltaY = this.y - h.y; } this._dragBounds = d; a.ui.Mouse.draggableObject = this; @@ -35188,24 +35167,24 @@ var RtmpJs; this._dropTarget = a; }; q.prototype.startTouchDrag = function(a, c, d) { - t("public flash.display.Sprite::startTouchDrag"); + v("public flash.display.Sprite::startTouchDrag"); }; q.prototype.stopTouchDrag = function(a) { - t("public flash.display.Sprite::stopTouchDrag"); + v("public flash.display.Sprite::stopTouchDrag"); }; q.prototype._containsPoint = function(a, c, d, f, b, e) { if (!(5 === b && 0 < this._dragMode)) { - var h = this._boundsAndMaskContainPoint(a, c, d, f, b); - !h && 3 === b && this._hitArea && this._mouseEnabled && (h = this._hitArea._getInvertedConcatenatedMatrix(), h = this._hitArea._boundsAndMaskContainPoint(a, c, h.transformX(a, c), h.transformY(a, c), b)); - return 0 === h || 2 > b ? h : this._containsPointImpl(a, c, d, f, b, e, !0); + var g = this._boundsAndMaskContainPoint(a, c, d, f, b); + !g && 3 === b && this._hitArea && this._mouseEnabled && (g = this._hitArea._getInvertedConcatenatedMatrix(), g = this._hitArea._boundsAndMaskContainPoint(a, c, g.transformX(a, c), g.transformY(a, c), b)); + return 0 === g || 2 > b ? g : this._containsPointImpl(a, c, d, f, b, e, !0); } }; q.prototype._containsPointDirectly = function(a, c, d, f) { if (this._hitArea) { - return!!this._hitArea._containsGlobalPoint(d, f, 2, null); + return !!this._hitArea._containsGlobalPoint(d, f, 2, null); } d = this._getGraphics(); - return!!d && d._containsPoint(a, c, !0, 0); + return !!d && d._containsPoint(a, c, !0, 0); }; q.classInitializer = null; q.initializer = function(a) { @@ -35232,22 +35211,22 @@ var RtmpJs; this.loaderInfo = m; } __extends(d, c); - d.FromData = function(c, h) { - var g = new d(c, h); - g.numFrames = c.frameCount; - h.actionScriptVersion === k.ActionScriptVersion.ACTIONSCRIPT2 && (g.isAVM1Object = !0, g.avm1Context = h._avm1Context); - g.frameScripts = []; + d.FromData = function(c, g) { + var h = new d(c, g); + h.numFrames = c.frameCount; + g.actionScriptVersion === k.ActionScriptVersion.ACTIONSCRIPT2 && (h.isAVM1Object = !0, h.avm1Context = g._avm1Context); + h.frameScripts = []; for (var f = c.frames, b = 0;b < f.length;b++) { - var e = h.getFrame(c, b), l = e.actionBlocks; + var e = g.getFrame(c, b), l = e.actionBlocks; if (l) { - for (var n = 0;n < l.length;n++) { - g.frameScripts.push(b), g.frameScripts.push(l[n]); + for (var p = 0;p < l.length;p++) { + h.frameScripts.push(b), h.frameScripts.push(l[p]); } } - e.labelName && g.labels.push(new a.display.FrameLabel(e.labelName, b + 1)); - g.frames.push(e); + e.labelName && h.labels.push(new a.display.FrameLabel(e.labelName, b + 1)); + h.frames.push(e); } - return g; + return h; }; return d; }(u.DisplaySymbol); @@ -35261,13 +35240,13 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = a.events; + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = a.events; (function(a) { a[a.SWF1 = 1] = "SWF1"; a[a.SWF9 = 9] = "SWF9"; a[a.SWF10 = 10] = "SWF10"; - })(v.FrameNavigationModel || (v.FrameNavigationModel = {})); + })(w.FrameNavigationModel || (w.FrameNavigationModel = {})); var c = function() { function a(c) { this._mc = c; @@ -35278,7 +35257,7 @@ var RtmpJs; this._startSoundRegistrations[a] = c; }; a.prototype.initSoundStream = function(a) { - this._soundStream = new v.MovieClipSoundStream(a, this._mc); + this._soundStream = new w.MovieClipSoundStream(a, this._mc); }; a.prototype.addSoundStreamBlock = function(a, c) { this._soundStream && this._soundStream.appendBlock(a, c); @@ -35286,19 +35265,19 @@ var RtmpJs; a.prototype._startSounds = function(a) { if (a = this._startSoundRegistrations[a]) { for (var c = this._soundClips || (this._soundClips = {}), d = this._mc.loaderInfo, f = 0;f < a.length;f++) { - var b = a[f], e = b.soundId, b = b.soundInfo, h = c[e]; - if (!h) { + var b = a[f], e = b.soundId, b = b.soundInfo, g = c[e]; + if (!g) { var l = d.getSymbolById(e); if (!l) { continue; } - h = l.symbolClass; - l = h.initializeFrom(l); - h.instanceConstructorNoInitialize.call(l); - c[e] = h = {object:l}; + g = l.symbolClass; + l = g.initializeFrom(l); + g.instanceConstructorNoInitialize.call(l); + c[e] = g = {object:l}; } - h.channel && (h.channel.stop(), h.channel = null); - b.stop || (h.channel = h.object.play(0, b.hasLoops ? b.loopCount : 0)); + g.channel && b.stop && (g.channel.stop(), g.channel = null); + b.stop || g.channel && g.channel.playing || (g.channel = g.object.play(0, b.hasLoops ? b.loopCount : 0)); } } }; @@ -35307,26 +35286,26 @@ var RtmpJs; this._soundStream && this._soundStream.playFrame(a); }; return a; - }(), h = function(h) { - function s() { - v.Sprite.instanceConstructorNoInitialize.call(this); + }(), g = function(g) { + function r() { + w.Sprite.instanceConstructorNoInitialize.call(this); } - __extends(s, h); - s.reset = function() { - s.frameNavigationModel = 10; - s._callQueue = []; + __extends(r, g); + r.reset = function() { + r.frameNavigationModel = 10; + r._callQueue = []; }; - s.runFrameScripts = function() { + r.runFrameScripts = function() { k.enterTimeline("MovieClip.executeFrame"); - var a = s._callQueue; - s._callQueue = []; + var a = r._callQueue; + r._callQueue = []; for (var c = 0;c < a.length;c++) { var f = a[c]; - f._hasFlags(1024) ? (f._removeFlags(1024), f.dispatchEvent(l.Event.getInstance(l.Event.AVM1_LOAD))) : (f._allowFrameNavigation = 1 === v.MovieClip.frameNavigationModel, f.callFrame(f._currentFrame), f._allowFrameNavigation = !0, f._nextFrame !== f._currentFrame && (9 === v.MovieClip.frameNavigationModel ? (f._advanceFrame(), f._constructFrame(), f._removeFlags(8192), f.callFrame(f._currentFrame)) : v.DisplayObject.performFrameNavigation(!1, !0))); + f._hasFlags(1024) ? (f._removeFlags(1024), f.dispatchEvent(l.Event.getInstance(l.Event.AVM1_LOAD))) : (f._allowFrameNavigation = 1 === w.MovieClip.frameNavigationModel, f.callFrame(f._currentFrame), f._allowFrameNavigation = !0, f._nextFrame !== f._currentFrame && (9 === w.MovieClip.frameNavigationModel ? (f._advanceFrame(), f._constructFrame(), f._removeFlags(8192), f.callFrame(f._currentFrame)) : w.DisplayObject.performFrameNavigation(!1, !0))); } k.leaveTimeline(); }; - s.prototype._addFrame = function(a) { + r.prototype._addFrame = function(a) { var c = this._symbol, f = c.frames; f.push(a); a.labelName && this.addFrameLabel(a.labelName, f.length); @@ -35341,7 +35320,7 @@ var RtmpJs; } 1 === f.length && this._initializeChildren(f[0]); }; - s.prototype._initFrame = function(a) { + r.prototype._initFrame = function(a) { if (a) { if (this.buttonMode && (a = null, this._mouseOver ? a = this._mouseDown ? "_down" : "_over" : null !== this._currentButtonState && (a = "_up"), a !== this._currentButtonState && this._buttonFrames[a])) { this.stop(); @@ -35354,67 +35333,67 @@ var RtmpJs; } this._advanceFrame(); }; - s.prototype._constructFrame = function() { + r.prototype._constructFrame = function() { this._constructChildren(); }; - s.prototype._enqueueFrameScripts = function() { - this._hasFlags(1024) && s._callQueue.push(this); - this._hasFlags(8192) && (this._removeFlags(8192), s._callQueue.push(this)); - h.prototype._enqueueFrameScripts.call(this); + r.prototype._enqueueFrameScripts = function() { + this._hasFlags(1024) && r._callQueue.push(this); + this._hasFlags(8192) && (this._removeFlags(8192), r._callQueue.push(this)); + g.prototype._enqueueFrameScripts.call(this); }; - Object.defineProperty(s.prototype, "currentFrame", {get:function() { + Object.defineProperty(r.prototype, "currentFrame", {get:function() { return this._currentFrame - this._sceneForFrameIndex(this._currentFrame).offset; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "framesLoaded", {get:function() { + Object.defineProperty(r.prototype, "framesLoaded", {get:function() { return this._frames.length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "totalFrames", {get:function() { + Object.defineProperty(r.prototype, "totalFrames", {get:function() { return this._totalFrames; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "trackAsMenu", {get:function() { + Object.defineProperty(r.prototype, "trackAsMenu", {get:function() { return this._trackAsMenu; }, set:function(a) { this._trackAsMenu = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "scenes", {get:function() { + Object.defineProperty(r.prototype, "scenes", {get:function() { return this._scenes.map(function(a) { return a.clone(); }); }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "currentScene", {get:function() { + Object.defineProperty(r.prototype, "currentScene", {get:function() { return this._sceneForFrameIndex(this._currentFrame).clone(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "currentLabel", {get:function() { + Object.defineProperty(r.prototype, "currentLabel", {get:function() { var a = this._labelForFrame(this._currentFrame); return a ? a.name : null; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "currentLabels", {get:function() { + Object.defineProperty(r.prototype, "currentLabels", {get:function() { return this._sceneForFrameIndex(this._currentFrame).labels; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "currentFrameLabel", {get:function() { + Object.defineProperty(r.prototype, "currentFrameLabel", {get:function() { var a = this._sceneForFrameIndex(this._currentFrame); - return(a = a.getLabelByFrame(this._currentFrame - a.offset)) && a.name; + return (a = a.getLabelByFrame(this._currentFrame - a.offset)) && a.name; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "enabled", {get:function() { + Object.defineProperty(r.prototype, "enabled", {get:function() { return this._enabled; }, set:function(a) { this._enabled = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "isPlaying", {get:function() { + Object.defineProperty(r.prototype, "isPlaying", {get:function() { return this._isPlaying; }, enumerable:!0, configurable:!0}); - s.prototype.play = function() { + r.prototype.play = function() { 1 < this._totalFrames && (this._isPlaying = !0); this._stopped = !1; }; - s.prototype.stop = function() { + r.prototype.stop = function() { this._isPlaying = !1; this._stopped = !0; }; - s.prototype._getAbsFrameNumber = function(a, c) { - var f = 10 !== v.MovieClip.frameNavigationModel, b; + r.prototype._getAbsFrameNumber = function(a, c) { + var f = 10 !== w.MovieClip.frameNavigationModel, b; if (null !== c) { - c = t(c); + c = v(c); for (var e = this._scenes, d = 0;d < e.length && (b = e[d], b.name !== c);d++) { } if (d === e.length) { @@ -35439,15 +35418,15 @@ var RtmpJs; } return b.offset + e; }; - s.prototype._gotoFrame = function(a, c) { + r.prototype._gotoFrame = function(a, c) { var f = this._getAbsFrameNumber(a, c); void 0 !== f && this._gotoFrameAbs(f); }; - s.prototype._gotoFrameAbs = function(a) { + r.prototype._gotoFrameAbs = function(a) { 1 > a ? a = 1 : a > this._totalFrames && (a = this._totalFrames); - a !== this._nextFrame && (this._nextFrame = a, this._allowFrameNavigation && (9 === v.MovieClip.frameNavigationModel ? (this._advanceFrame(), this._constructFrame()) : v.DisplayObject.performFrameNavigation(!1, !0))); + a !== this._nextFrame && (this._nextFrame = a, this._allowFrameNavigation && (9 === w.MovieClip.frameNavigationModel ? (this._advanceFrame(), this._constructFrame()) : w.DisplayObject.performFrameNavigation(!1, !0))); }; - s.prototype._advanceFrame = function() { + r.prototype._advanceFrame = function() { var a = this._currentFrame, c = this._nextFrame; c > this._totalFrames && (c = 1); if (a === c) { @@ -35471,42 +35450,42 @@ var RtmpJs; } } }; - s.prototype._seekToFrame = function(a) { + r.prototype._seekToFrame = function(a) { var c = this._currentFrame, f = this._frames; if (a === c + 1) { f = f[a - 1], f.controlTags && this._processControlTags(f.controlTags, !1); } else { - for (var b = f[c - 1], e = this._symbol.loaderInfo, d = a < c, h = [], l, c = d ? 0 : c;a-- > c;) { + for (var b = f[c - 1], e = this._symbol.loaderInfo, d = a < c, g = [], l, c = d ? 0 : c;a-- > c;) { var k = f[a]; if (k !== b && (b = k, k = k.controlTags)) { - for (var q = k.length;q--;) { - var s = k[q], s = void 0 === s.tagCode ? s : e._file.getParsedTag(s); - switch(s.code) { + for (var n = k.length;n--;) { + var q = k[n], q = void 0 === q.tagCode ? q : e._file.getParsedTag(q); + switch(q.code) { case 5: ; case 28: l || (l = Object.create(null)); - l[s.depth] = !0; - d || h.push(s); + l[q.depth] = !0; + d || g.push(q); break; case 4: ; case 26: ; case 70: - l && l[s.depth] || h.push(s); + l && l[q.depth] || g.push(q); break; default: - h.push(s); + g.push(q); } } } } - h.reverse(); - this._processControlTags(h, d); + g.reverse(); + this._processControlTags(g, d); } }; - s.prototype._sceneForFrameIndex = function(a) { + r.prototype._sceneForFrameIndex = function(a) { var c = this._scenes; if (0 === a) { return c[0]; @@ -35518,14 +35497,14 @@ var RtmpJs; } } }; - s.prototype._labelForFrame = function(a) { + r.prototype._labelForFrame = function(a) { for (var c = this._scenes, f = null, b = 0;b < c.length;b++) { var e = c[b]; if (e.offset > a) { break; } - for (var d = e.labels, h = 0;h < d.length;h++) { - var l = d[h]; + for (var d = e.labels, g = 0;g < d.length;g++) { + var l = d[g]; if (l.frame > a - e.offset) { return f; } @@ -35534,7 +35513,7 @@ var RtmpJs; } return f; }; - s.prototype.callFrame = function(a) { + r.prototype.callFrame = function(a) { if (a = this._frameScripts[a | 0]) { try { a.call(this); @@ -35543,83 +35522,83 @@ var RtmpJs; } } }; - s.prototype.nextFrame = function() { + r.prototype.nextFrame = function() { this.gotoAndStop(this._currentFrame + 1); }; - s.prototype.prevFrame = function() { + r.prototype.prevFrame = function() { this.gotoAndStop(this._currentFrame - 1); }; - s.prototype.gotoAndPlay = function(a, c) { + r.prototype.gotoAndPlay = function(a, c) { void 0 === c && (c = null); (0 === arguments.length || 2 < arguments.length) && u("ArgumentError", k.Errors.WrongArgumentCountError, "flash.display::MovieClip/gotoAndPlay()", 1, arguments.length); - c = t(c); - a = t(a) + ""; + c = v(c); + a = v(a) + ""; this.play(); this._gotoFrame(a, c); }; - s.prototype.gotoAndStop = function(a, c) { + r.prototype.gotoAndStop = function(a, c) { void 0 === c && (c = null); (0 === arguments.length || 2 < arguments.length) && u("ArgumentError", k.Errors.WrongArgumentCountError, "flash.display::MovieClip/gotoAndPlay()", 1, arguments.length); - c = t(c); - a = t(a) + ""; + c = v(c); + a = v(a) + ""; this.stop(); this._gotoFrame(a, c); }; - s.prototype.addFrameScript = function(a, c) { + r.prototype.addFrameScript = function(a, c) { if (this._currentFrame) { var f = arguments.length; f & 1 && u("ArgumentError", k.Errors.TooFewArgumentsError, f, f + 1); for (var b = this._frameScripts, e = this._totalFrames, d = 0;d < f;d += 2) { - var h = (arguments[d] | 0) + 1; - 1 > h || h > e || (b[h] = arguments[d + 1], h === this._currentFrame && (this._setFlags(8192), this._parent && this._propagateFlagsUp(16384))); + var g = (arguments[d] | 0) + 1; + 1 > g || g > e || (b[g] = arguments[d + 1], g === this._currentFrame && (this._setFlags(8192), this._parent && this._propagateFlagsUp(16384))); } } }; - Object.defineProperty(s.prototype, "_avm1SymbolClass", {get:function() { + Object.defineProperty(r.prototype, "_avm1SymbolClass", {get:function() { return this._symbol && this._symbol.avm1SymbolClass || null; }, enumerable:!0, configurable:!0}); - Object.defineProperty(s.prototype, "_isFullyLoaded", {get:function() { + Object.defineProperty(r.prototype, "_isFullyLoaded", {get:function() { return this.framesLoaded >= this.totalFrames; }, enumerable:!0, configurable:!0}); - s.prototype._registerStartSounds = function(a, d) { + r.prototype._registerStartSounds = function(a, d) { null === this._sounds && (this._sounds = new c(this)); this._sounds.registerStartSounds(a, d); }; - s.prototype._initSoundStream = function(a) { + r.prototype._initSoundStream = function(a) { null === this._sounds && (this._sounds = new c(this)); this._sounds.initSoundStream(a); }; - s.prototype._addSoundStreamBlock = function(a, c) { + r.prototype._addSoundStreamBlock = function(a, c) { this._sounds.addSoundStreamBlock(a, c); }; - s.prototype._syncSounds = function(a) { + r.prototype._syncSounds = function(a) { null !== this._sounds && this._sounds.syncSounds(a); }; - s.prototype.addScene = function(a, c, f, b) { - this._scenes.push(new v.Scene(a, c, f, b)); + r.prototype.addScene = function(a, c, f, b) { + this._scenes.push(new w.Scene(a, c, f, b)); }; - s.prototype.addFrameLabel = function(c, d) { + r.prototype.addFrameLabel = function(c, d) { var f = this._sceneForFrameIndex(d); f.getLabelByName(c, !1) || f.labels.push(new a.display.FrameLabel(c, d - f.offset)); }; - s.prototype.prevScene = function() { + r.prototype.prevScene = function() { var a = this._sceneForFrameIndex(this._currentFrame); 0 !== a.offset && this._gotoFrameAbs(this._sceneForFrameIndex(a.offset).offset + 1); }; - s.prototype.nextScene = function() { + r.prototype.nextScene = function() { var a = this._sceneForFrameIndex(this._currentFrame); a.offset + a.numFrames !== this._totalFrames && this._gotoFrameAbs(a.offset + a.numFrames + 1); }; - s.prototype._containsPointImpl = function(a, c, f, b, e, d, l) { - a = h.prototype._containsPointImpl.call(this, a, c, f, b, e, d, !0); + r.prototype._containsPointImpl = function(a, c, f, b, e, d, l) { + a = g.prototype._containsPointImpl.call(this, a, c, f, b, e, d, !0); 2 === a && 3 === e && "_as2Object" in this && !this.buttonMode && d[0] === this && (d.length = 0); return a; }; - s.classInitializer = function() { - s.reset(); + r.classInitializer = function() { + r.reset(); }; - s.initializer = function(a) { - v.DisplayObject._advancableInstances.push(this); + r.initializer = function(a) { + w.DisplayObject._advancableInstances.push(this); this._currentFrame = 0; this._totalFrames = 1; this._trackAsMenu = !1; @@ -35649,11 +35628,11 @@ var RtmpJs; this.addScene("", [], 0, this._totalFrames); } }; - s.classSymbols = null; - s.instanceSymbols = null; - return s; + r.classSymbols = null; + r.instanceSymbols = null; + return r; }(a.display.Sprite); - v.MovieClip = h; + w.MovieClip = g; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -35663,8 +35642,8 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - function t(a, c) { + (function(w) { + function v(a, c) { var f = !1, b; a.addEventListener("timeupdate", function(a) { f ? performance.now() : (b = performance.now(), f = !0); @@ -35681,7 +35660,7 @@ var RtmpJs; this._element = c; } Object.defineProperty(a.prototype, "isReady", {get:function() { - return!!this._channel; + return !!this._channel; }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "element", {get:function() { return this._element; @@ -35744,7 +35723,7 @@ var RtmpJs; this._appendSoundData(); }; return c; - }(l), h = function(a) { + }(l), g = function(a) { function c(f) { a.call(this, f); this._rawFrames = []; @@ -35770,11 +35749,11 @@ var RtmpJs; a.prototype.playFrom = function(a) { }; Object.defineProperty(a.prototype, "paused", {get:function() { - return!1; + return !1; }, set:function(a) { }, enumerable:!0, configurable:!0}); Object.defineProperty(a.prototype, "isReady", {get:function() { - return!!this._channel; + return !!this._channel; }, enumerable:!0, configurable:!0}); a.prototype.queueData = function(a) { this._data.pcm.set(a.pcm, this._position); @@ -35786,7 +35765,7 @@ var RtmpJs; this._channel = c; }; return a; - }(), s = function(a) { + }(), r = function(a) { function c(f) { a.call(this, f); this._decoderPosition = 0; @@ -35812,28 +35791,28 @@ var RtmpJs; }; return c; }(q), l = function() { - function d(g, f) { + function d(h, f) { this.movieClip = f; - this.decode = g.decode; - this.data = {sampleRate:g.sampleRate, channels:g.channels}; + this.decode = h.decode; + this.data = {sampleRate:h.sampleRate, channels:h.channels}; this.seekIndex = []; this.position = 0; this.wasFullyLoaded = !1; this.waitFor = this.expectedFrame = 0; - var b = "mp3" === g.format; + var b = "mp3" === h.format; if (b && !a.webAudioMP3Option.value) { var e = document.createElement("audio"); e.preload = "metadata"; e.loop = !1; - t(e, f); + v(e, f); if (e.canPlayType("audio/mpeg")) { this.element = e; - a.mediaSourceMP3Option.value ? "undefined" !== typeof MediaSource && MediaSource.isTypeSupported("audio/mpeg") ? this.soundStreamAdapter = new c(e) : (console.warn("MediaSource is not supported"), this.soundStreamAdapter = new h(e)) : this.soundStreamAdapter = new h(e); + a.mediaSourceMP3Option.value ? "undefined" !== typeof MediaSource && MediaSource.isTypeSupported("audio/mpeg") ? this.soundStreamAdapter = new c(e) : (console.warn("MediaSource is not supported"), this.soundStreamAdapter = new g(e)) : this.soundStreamAdapter = new g(e); return; } } - this.data.pcm = new Float32Array((g.samplesCount + 1) * this.movieClip.totalFrames * g.channels); - this.soundStreamAdapter = b ? new s(this.data) : new q(this.data); + this.data.pcm = new Float32Array((h.samplesCount + 1) * this.movieClip.totalFrames * h.channels); + this.soundStreamAdapter = b ? new r(this.data) : new q(this.data); } d.prototype.appendBlock = function(a, c) { var b = this.decode(c), e = this.position; @@ -35850,7 +35829,7 @@ var RtmpJs; }; return d; }(); - v.MovieClipSoundStream = l; + w.MovieClipSoundStream = l; })(k.display || (k.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -35859,23 +35838,23 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.AVM2.Runtime.throwError, h = function(d) { - function h() { - v.DisplayObjectContainer.instanceConstructorNoInitialize.call(this); + (function(n) { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.AVM2.Runtime.throwError, g = function(d) { + function g() { + w.DisplayObjectContainer.instanceConstructorNoInitialize.call(this); this._root = this; this._stage = this; this._frameRate = 24; - this._scaleMode = v.StageScaleMode.SHOW_ALL; + this._scaleMode = w.StageScaleMode.SHOW_ALL; this._align = ""; this._stageHeight = this._stageWidth = 0; this._showDefaultContextMenu = !0; this._focus = null; - this._colorCorrection = v.ColorCorrection.DEFAULT; - this._colorCorrectionSupport = v.ColorCorrectionSupport.DEFAULT_OFF; + this._colorCorrection = w.ColorCorrection.DEFAULT; + this._colorCorrectionSupport = w.ColorCorrectionSupport.DEFAULT_OFF; this._stageFocusRect = !0; - this._quality = v.StageQuality.HIGH; + this._quality = w.StageQuality.HIGH; this._fullScreenSourceRect = this._displayState = null; this._mouseLock = !1; this._stageVideos = new a.GenericVector(0, !0, a.ASObject); @@ -35883,359 +35862,359 @@ var RtmpJs; this._colorARGB = 4294967295; this._fullScreenHeight = this._fullScreenWidth = 0; this._wmodeGPU = !1; - this._softKeyboardRect = new p.geom.Rectangle; + this._softKeyboardRect = new n.geom.Rectangle; this._allowsFullScreenInteractive = this._allowsFullScreen = !1; this._contentsScaleFactor = 1; this._displayContextInfo = null; this._stageContainerHeight = this._stageContainerWidth = this._timeout = -1; this._invalidated = !1; } - __extends(h, d); - h.prototype.setRoot = function(a) { + __extends(g, d); + g.prototype.setRoot = function(a) { this.addTimelineObjectAtDepth(a, 0); }; - Object.defineProperty(h.prototype, "frameRate", {get:function() { + Object.defineProperty(g.prototype, "frameRate", {get:function() { return this._frameRate; }, set:function(a) { this._frameRate = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scaleMode", {get:function() { + Object.defineProperty(g.prototype, "scaleMode", {get:function() { return this._scaleMode; }, set:function(a) { a = l(a); - 0 > p.display.StageScaleMode.toNumber(a) && c("ArgumentError", k.Errors.InvalidEnumError, "scaleMode"); + 0 > n.display.StageScaleMode.toNumber(a) && c("ArgumentError", k.Errors.InvalidEnumError, "scaleMode"); this._scaleMode = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "align", {get:function() { + Object.defineProperty(g.prototype, "align", {get:function() { return this._align; }, set:function(a) { a = l(a); - a = p.display.StageAlign.toNumber(a); - this._align = p.display.StageAlign.fromNumber(a); + a = n.display.StageAlign.toNumber(a); + this._align = n.display.StageAlign.fromNumber(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageWidth", {get:function() { - return this.scaleMode !== v.StageScaleMode.NO_SCALE ? this._stageWidth / 20 | 0 : this._stageContainerWidth; + Object.defineProperty(g.prototype, "stageWidth", {get:function() { + return this.scaleMode !== w.StageScaleMode.NO_SCALE ? this._stageWidth / 20 | 0 : this._stageContainerWidth; }, set:function(a) { }, enumerable:!0, configurable:!0}); - h.prototype._setInitialName = function() { + g.prototype._setInitialName = function() { this._name = null; }; - h.prototype.setStageWidth = function(a) { + g.prototype.setStageWidth = function(a) { this._stageWidth = 20 * a | 0; }; - Object.defineProperty(h.prototype, "stageHeight", {get:function() { - return this.scaleMode !== v.StageScaleMode.NO_SCALE ? this._stageHeight / 20 | 0 : this._stageContainerHeight; + Object.defineProperty(g.prototype, "stageHeight", {get:function() { + return this.scaleMode !== w.StageScaleMode.NO_SCALE ? this._stageHeight / 20 | 0 : this._stageContainerHeight; }, set:function(a) { }, enumerable:!0, configurable:!0}); - h.prototype.setStageHeight = function(a) { + g.prototype.setStageHeight = function(a) { this._stageHeight = 20 * a | 0; }; - h.prototype.setStageColor = function(a) { + g.prototype.setStageColor = function(a) { this._colorARGB = a; }; - h.prototype.setStageContainerSize = function(a, c, f) { + g.prototype.setStageContainerSize = function(a, c, f) { this._contentsScaleFactor = f; if (this._stageContainerWidth !== a || this._stageContainerHeight !== c) { - this._stageContainerWidth = a, this._stageContainerHeight = c, this.scaleMode === v.StageScaleMode.NO_SCALE && this.dispatchEvent(p.events.Event.getInstance(p.events.Event.RESIZE)); + this._stageContainerWidth = a, this._stageContainerHeight = c, this.scaleMode === w.StageScaleMode.NO_SCALE && this.dispatchEvent(n.events.Event.getInstance(n.events.Event.RESIZE)); } }; - Object.defineProperty(h.prototype, "showDefaultContextMenu", {get:function() { + Object.defineProperty(g.prototype, "showDefaultContextMenu", {get:function() { return this._showDefaultContextMenu; }, set:function(a) { this._showDefaultContextMenu = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "focus", {get:function() { + Object.defineProperty(g.prototype, "focus", {get:function() { return this._focus; }, set:function(a) { this._focus = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "colorCorrection", {get:function() { + Object.defineProperty(g.prototype, "colorCorrection", {get:function() { return this._colorCorrection; }, set:function(a) { - t("public flash.display.Stage::set colorCorrection"); + v("public flash.display.Stage::set colorCorrection"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "colorCorrectionSupport", {get:function() { + Object.defineProperty(g.prototype, "colorCorrectionSupport", {get:function() { return this._colorCorrectionSupport; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageFocusRect", {get:function() { + Object.defineProperty(g.prototype, "stageFocusRect", {get:function() { return this._stageFocusRect; }, set:function(a) { this._stageFocusRect = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "quality", {get:function() { + Object.defineProperty(g.prototype, "quality", {get:function() { return this._quality.toUpperCase(); }, set:function(a) { a = (l(a) || "").toLowerCase(); - 0 > p.display.StageQuality.toNumber(a) && (a = p.display.StageQuality.HIGH); + 0 > n.display.StageQuality.toNumber(a) && (a = n.display.StageQuality.HIGH); this._quality = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "displayState", {get:function() { + Object.defineProperty(g.prototype, "displayState", {get:function() { return this._displayState; }, set:function(a) { a = l(a); - 0 > p.display.StageDisplayState.toNumber(a) && (a = p.display.StageDisplayState.NORMAL); + 0 > n.display.StageDisplayState.toNumber(a) && (a = n.display.StageDisplayState.NORMAL); this._displayState = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fullScreenSourceRect", {get:function() { + Object.defineProperty(g.prototype, "fullScreenSourceRect", {get:function() { return this._fullScreenSourceRect; }, set:function(a) { - t("public flash.display.Stage::set fullScreenSourceRect"); + v("public flash.display.Stage::set fullScreenSourceRect"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "mouseLock", {get:function() { + Object.defineProperty(g.prototype, "mouseLock", {get:function() { return this._mouseLock; }, set:function(a) { u("public flash.display.Stage::set mouseLock"); this._mouseLock = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stageVideos", {get:function() { + Object.defineProperty(g.prototype, "stageVideos", {get:function() { u("public flash.display.Stage::get stageVideos"); return this._stageVideos; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "stage3Ds", {get:function() { - t("public flash.display.Stage::get stage3Ds"); + Object.defineProperty(g.prototype, "stage3Ds", {get:function() { + v("public flash.display.Stage::get stage3Ds"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "color", {get:function() { + Object.defineProperty(g.prototype, "color", {get:function() { return this._colorARGB; }, set:function(a) { this._colorARGB = a | 4278190080; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "alpha", {get:function() { + Object.defineProperty(g.prototype, "alpha", {get:function() { return this._colorTransform.alphaMultiplier; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fullScreenWidth", {get:function() { + Object.defineProperty(g.prototype, "fullScreenWidth", {get:function() { return this._fullScreenWidth; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fullScreenHeight", {get:function() { + Object.defineProperty(g.prototype, "fullScreenHeight", {get:function() { return this._fullScreenHeight; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "wmodeGPU", {get:function() { + Object.defineProperty(g.prototype, "wmodeGPU", {get:function() { return this._wmodeGPU; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "softKeyboardRect", {get:function() { + Object.defineProperty(g.prototype, "softKeyboardRect", {get:function() { return this._softKeyboardRect; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "allowsFullScreen", {get:function() { + Object.defineProperty(g.prototype, "allowsFullScreen", {get:function() { return this._allowsFullScreen; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "allowsFullScreenInteractive", {get:function() { + Object.defineProperty(g.prototype, "allowsFullScreenInteractive", {get:function() { return this._allowsFullScreenInteractive; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "contentsScaleFactor", {get:function() { + Object.defineProperty(g.prototype, "contentsScaleFactor", {get:function() { return this._contentsScaleFactor; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "displayContextInfo", {get:function() { + Object.defineProperty(g.prototype, "displayContextInfo", {get:function() { return this._displayContextInfo; }, enumerable:!0, configurable:!0}); - h.prototype.removeChildAt = function(a) { + g.prototype.removeChildAt = function(a) { return d.prototype.removeChildAt.call(this, a); }; - h.prototype.swapChildrenAt = function(a, c) { + g.prototype.swapChildrenAt = function(a, c) { d.prototype.swapChildrenAt.call(this, a, c); }; - Object.defineProperty(h.prototype, "width", {get:function() { + Object.defineProperty(g.prototype, "width", {get:function() { return this._getWidth(); }, set:function(a) { this._setWidth(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "height", {get:function() { + Object.defineProperty(g.prototype, "height", {get:function() { return this._getHeight(); }, set:function(a) { this._setHeight(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "mouseChildren", {get:function() { + Object.defineProperty(g.prototype, "mouseChildren", {get:function() { return this._mouseChildren; }, set:function(a) { this._setMouseChildren(a); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "numChildren", {get:function() { + Object.defineProperty(g.prototype, "numChildren", {get:function() { return this._children.length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "tabChildren", {get:function() { + Object.defineProperty(g.prototype, "tabChildren", {get:function() { return this._tabChildren; }, set:function(a) { this._setTabChildren(a); }, enumerable:!0, configurable:!0}); - h.prototype.addChild = function(a) { + g.prototype.addChild = function(a) { return d.prototype.addChild.call(this, a); }; - h.prototype.addChildAt = function(a, c) { + g.prototype.addChildAt = function(a, c) { return d.prototype.addChildAt.call(this, a, c); }; - h.prototype.setChildIndex = function(a, c) { + g.prototype.setChildIndex = function(a, c) { d.prototype.setChildIndex.call(this, a, c); }; - h.prototype.addEventListener = function(a, c, f, b, e) { + g.prototype.addEventListener = function(a, c, f, b, e) { d.prototype.addEventListener.call(this, a, c, f, b, e); }; - h.prototype.hasEventListener = function(a) { + g.prototype.hasEventListener = function(a) { return d.prototype.hasEventListener.call(this, a); }; - h.prototype.willTrigger = function(a) { + g.prototype.willTrigger = function(a) { return d.prototype.willTrigger.call(this, a); }; - h.prototype.dispatchEvent = function(a) { + g.prototype.dispatchEvent = function(a) { return d.prototype.dispatchEvent.call(this, a); }; - h.prototype.invalidate = function() { + g.prototype.invalidate = function() { this._invalidated = !0; }; - h.prototype.isFocusInaccessible = function() { - t("public flash.display.Stage::isFocusInaccessible"); + g.prototype.isFocusInaccessible = function() { + v("public flash.display.Stage::isFocusInaccessible"); }; - h.prototype.requireOwnerPermissions = function() { + g.prototype.requireOwnerPermissions = function() { }; - h.prototype.render = function() { - this._invalidated && (v.DisplayObject._broadcastFrameEvent(p.events.Event.RENDER), this._invalidated = !1); + g.prototype.render = function() { + this._invalidated && (w.DisplayObject._broadcastFrameEvent(n.events.Event.RENDER), this._invalidated = !1); }; - Object.defineProperty(h.prototype, "name", {get:function() { + Object.defineProperty(g.prototype, "name", {get:function() { return this._name; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "mask", {get:function() { + Object.defineProperty(g.prototype, "mask", {get:function() { return this._mask; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "visible", {get:function() { + Object.defineProperty(g.prototype, "visible", {get:function() { return this._hasFlags(1); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "x", {get:function() { + Object.defineProperty(g.prototype, "x", {get:function() { return this._getX(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "y", {get:function() { + Object.defineProperty(g.prototype, "y", {get:function() { return this._getY(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "z", {get:function() { + Object.defineProperty(g.prototype, "z", {get:function() { return this._z; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scaleX", {get:function() { + Object.defineProperty(g.prototype, "scaleX", {get:function() { return Math.abs(this._scaleX); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scaleY", {get:function() { + Object.defineProperty(g.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scaleZ", {get:function() { + Object.defineProperty(g.prototype, "scaleZ", {get:function() { return this._scaleZ; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "rotation", {get:function() { + Object.defineProperty(g.prototype, "rotation", {get:function() { return this._rotation; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "rotationX", {get:function() { + Object.defineProperty(g.prototype, "rotationX", {get:function() { return this._rotationX; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "rotationY", {get:function() { + Object.defineProperty(g.prototype, "rotationY", {get:function() { return this._rotationX; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "rotationZ", {get:function() { + Object.defineProperty(g.prototype, "rotationZ", {get:function() { return this._rotationX; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "cacheAsBitmap", {get:function() { + Object.defineProperty(g.prototype, "cacheAsBitmap", {get:function() { return this._getCacheAsBitmap(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "opaqueBackground", {get:function() { + Object.defineProperty(g.prototype, "opaqueBackground", {get:function() { return this._opaqueBackground; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scrollRect", {get:function() { + Object.defineProperty(g.prototype, "scrollRect", {get:function() { return this._getScrollRect(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "filters", {get:function() { + Object.defineProperty(g.prototype, "filters", {get:function() { return this._getFilters(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "blendMode", {get:function() { + Object.defineProperty(g.prototype, "blendMode", {get:function() { return this._blendMode; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "transform", {get:function() { + Object.defineProperty(g.prototype, "transform", {get:function() { return this._getTransform(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "accessibilityProperties", {get:function() { + Object.defineProperty(g.prototype, "accessibilityProperties", {get:function() { return this._accessibilityProperties; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "scale9Grid", {get:function() { + Object.defineProperty(g.prototype, "scale9Grid", {get:function() { return this._getScale9Grid(); }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "tabEnabled", {get:function() { + Object.defineProperty(g.prototype, "tabEnabled", {get:function() { return this._tabEnabled; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "tabIndex", {get:function() { + Object.defineProperty(g.prototype, "tabIndex", {get:function() { return this._tabIndex; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "focusRect", {get:function() { + Object.defineProperty(g.prototype, "focusRect", {get:function() { return this._focusRect; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "mouseEnabled", {get:function() { + Object.defineProperty(g.prototype, "mouseEnabled", {get:function() { return this._mouseEnabled; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "accessibilityImplementation", {get:function() { + Object.defineProperty(g.prototype, "accessibilityImplementation", {get:function() { return this._accessibilityImplementation; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "textSnapshot", {get:function() { + Object.defineProperty(g.prototype, "textSnapshot", {get:function() { c("IllegalOperationError", k.Errors.InvalidStageMethodError); return null; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "contextMenu", {get:function() { + Object.defineProperty(g.prototype, "contextMenu", {get:function() { return this._contextMenu; }, set:function(a) { c("IllegalOperationError", k.Errors.InvalidStageMethodError); }, enumerable:!0, configurable:!0}); - h.classInitializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h.initializer = null; - return h; - }(p.display.DisplayObjectContainer); - v.Stage = h; - })(p.display || (p.display = {})); + g.classInitializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g.initializer = null; + return g; + }(n.display.DisplayObjectContainer); + w.Stage = g; + })(n.display || (n.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -36245,9 +36224,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.ActionScriptVersion"); + n("public flash.display.ActionScriptVersion"); } __extends(c, a); c.classInitializer = null; @@ -36269,9 +36248,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.BlendMode"); + n("public flash.display.BlendMode"); } __extends(c, a); c.fromNumber = function(a) { @@ -36341,7 +36320,7 @@ var RtmpJs; case c.HARDLIGHT: return 14; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -36376,9 +36355,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.ColorCorrection"); + n("public flash.display.ColorCorrection"); } __extends(c, a); c.fromNumber = function(a) { @@ -36402,7 +36381,7 @@ var RtmpJs; case c.OFF: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -36425,9 +36404,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.ColorCorrectionSupport"); + n("public flash.display.ColorCorrectionSupport"); } __extends(c, a); c.fromNumber = function(a) { @@ -36451,7 +36430,7 @@ var RtmpJs; case c.DEFAULT_OFF: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -36474,9 +36453,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.FocusDirection"); + n("public flash.display.FocusDirection"); } __extends(c, a); c.classInitializer = null; @@ -36499,9 +36478,9 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.AVM2.Runtime.asCoerceString, u = function(a) { + var v = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c) { - this._name = t(a); + this._name = v(a); this._frame = c | 0; } __extends(c, a); @@ -36529,10 +36508,10 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.ArrayUtilities.DataBuffer, c = d.AVM2.Runtime.asCoerceString, h = d.AVM2.Runtime.throwError, q = d.AVM2.Runtime.AVM2, s = d.IntegerUtilities.swap32, m = d.ColorUtilities.premultiplyARGB, g = d.ColorUtilities.unpremultiplyARGB, f = d.ColorUtilities.RGBAToARGB, b = d.ArrayUtilities.indexOf, e = p.geom.Rectangle, r = function(n) { - function r(a, b, c, f) { + (function(n) { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.ArrayUtilities.DataBuffer, c = d.AVM2.Runtime.asCoerceString, g = d.AVM2.Runtime.throwError, q = d.AVM2.Runtime.AVM2, r = d.IntegerUtilities.swap32, m = d.ColorUtilities.premultiplyARGB, h = d.ColorUtilities.unpremultiplyARGB, f = d.ColorUtilities.RGBAToARGB, b = d.ArrayUtilities.indexOf, e = n.geom.Rectangle, t = function(p) { + function t(a, b, c, f) { void 0 === c && (c = !0); void 0 === f && (f = 4294967295); a |= 0; @@ -36541,14 +36520,14 @@ var RtmpJs; f |= 0; var d = this._symbol; d && (a = d.width | 0, b = d.height | 0); - (a > r.MAXIMUM_WIDTH || 0 >= a || b > r.MAXIMUM_HEIGHT || 0 >= b || a * b > r.MAXIMUM_DIMENSION) && h("ArgumentError", k.Errors.InvalidBitmapData); + (a > t.MAXIMUM_WIDTH || 0 >= a || b > t.MAXIMUM_HEIGHT || 0 >= b || a * b > t.MAXIMUM_DIMENSION) && g("ArgumentError", k.Errors.InvalidBitmapData); this._rect = new e(0, 0, a, b); this._transparent = c; - d ? (this._id = d.syncId, 1 === d.type || 2 === d.type || 3 === d.type ? this._setData(d.data, d.type) : (this._isDirty = !1, this._isRemoteDirty = !0), this._solidFillColorPBGRA = null) : (this._id = p.display.DisplayObject.getNextSyncID(), this._setData(new Uint8Array(a * b * 4), 1), 0 === f >> 24 && c ? this._solidFillColorPBGRA = 0 : this.fillRect(this._rect, f)); + d ? (this._id = d.syncId, 1 === d.type || 2 === d.type || 3 === d.type ? this._setData(d.data, d.type) : (this._isDirty = !1, this._isRemoteDirty = !0), this._solidFillColorPBGRA = null) : (this._id = n.display.DisplayObject.getNextSyncID(), this._setData(new Uint8Array(a * b * 4), 1), 0 === f >> 24 && c ? this._solidFillColorPBGRA = 0 : this.fillRect(this._rect, f)); this._bitmapReferrers = []; } - __extends(r, n); - r.prototype._setData = function(a, b) { + __extends(t, p); + t.prototype._setData = function(a, b) { a instanceof Uint8ClampedArray && (a = new Uint8Array(a.buffer)); this._data = a; this._type = b; @@ -36557,15 +36536,15 @@ var RtmpJs; this._isDirty = !0; this._isRemoteDirty = !1; }; - r.prototype._addBitmapReferrer = function(a) { + t.prototype._addBitmapReferrer = function(a) { b(this._bitmapReferrers, a); this._bitmapReferrers.push(a); }; - r.prototype._removeBitmapReferrer = function(a) { + t.prototype._removeBitmapReferrer = function(a) { a = b(this._bitmapReferrers, a); this._bitmapReferrers[a] = null; }; - r.prototype._invalidate = function() { + t.prototype._invalidate = function() { if (!this._isDirty) { this._isDirty = !0; this._isRemoteDirty = !1; @@ -36575,66 +36554,66 @@ var RtmpJs; } } }; - r.prototype._getTemporaryRectangleFrom = function(a, b) { + t.prototype._getTemporaryRectangleFrom = function(a, b) { void 0 === b && (b = 0); - var e = r._temporaryRectangles[b]; + var e = t._temporaryRectangles[b]; a && e.copyFrom(a); return e; }; - r.prototype.getDataBuffer = function() { + t.prototype.getDataBuffer = function() { return this._dataBuffer; }; - r.prototype._getContentBounds = function() { + t.prototype._getContentBounds = function() { return d.Bounds.FromRectangle(this._rect); }; - r.prototype._getPixelData = function(a) { + t.prototype._getPixelData = function(a) { var b = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!b.isEmpty()) { a = b.x; - for (var e = b.x + b.width, c = b.y, f = b.y + b.height, d = this._view, g = this._rect.width, b = new Int32Array(b.area), h = 0;c < f;c++) { - for (var l = c * g, m = a;m < e;m++) { - var r = d[l + m], n = r & 255, r = 255 * (r >>> 8) / n << 8 | n; - b[h++] = r; + for (var e = b.x + b.width, c = b.y, f = b.y + b.height, d = this._view, h = this._rect.width, b = new Int32Array(b.area), g = 0;c < f;c++) { + for (var l = c * h, m = a;m < e;m++) { + var p = d[l + m], t = p & 255, p = 255 * (p >>> 8) / t << 8 | t; + b[g++] = p; } } return b; } }; - r.prototype._putPixelData = function(a, b) { + t.prototype._putPixelData = function(a, b) { var e = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!e.isEmpty()) { - for (var c = e.x, f = e.x + e.width, d = e.y + e.height, g = this._view, h = this._rect.width, l = a.width * a.height - e.height + (c - a.x), m = a.width - e.width, r = this._transparent ? 0 : 255, e = e.y;e < d;e++) { - for (var n = e * h, k = c;k < f;k++) { - var q = b[l++], p = q & r; - g[n + k] = (((q >>> 8) * p + 254) / 255 & 16777215) << 8 | p; + for (var c = e.x, f = e.x + e.width, d = e.y + e.height, h = this._view, g = this._rect.width, l = a.width * a.height - e.height + (c - a.x), m = a.width - e.width, p = this._transparent ? 0 : 255, e = e.y;e < d;e++) { + for (var t = e * g, k = c;k < f;k++) { + var n = b[l++], q = n & p; + h[t + k] = (((n >>> 8) * q + 254) / 255 & 16777215) << 8 | q; } l += m; } this._invalidate(); } }; - Object.defineProperty(r.prototype, "width", {get:function() { + Object.defineProperty(t.prototype, "width", {get:function() { return this._rect.width; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "height", {get:function() { + Object.defineProperty(t.prototype, "height", {get:function() { return this._rect.height; }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "rect", {get:function() { + Object.defineProperty(t.prototype, "rect", {get:function() { return this._rect.clone(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(r.prototype, "transparent", {get:function() { + Object.defineProperty(t.prototype, "transparent", {get:function() { return this._transparent; }, enumerable:!0, configurable:!0}); - r.prototype.clone = function() { + t.prototype.clone = function() { u("public flash.display.BitmapData::clone"); - var a = new r(this._rect.width, this._rect.height, this._transparent, this._solidFillColorPBGRA); + var a = new t(this._rect.width, this._rect.height, this._transparent, this._solidFillColorPBGRA); a._view.set(this._view); return a; }; - r.prototype.getPixel = function(a, b) { + t.prototype.getPixel = function(a, b) { return this.getPixel32(a | 0, b | 0) & 16777215; }; - r.prototype.getPixel32 = function(a, b) { + t.prototype.getPixel32 = function(a, b) { a |= 0; b |= 0; if (!this._rect.contains(a, b)) { @@ -36644,20 +36623,20 @@ var RtmpJs; var e = this._view[b * this._rect.width + a]; switch(this._type) { case 1: - return e = s(e), g(e) >>> 0; + return e = r(e), h(e) >>> 0; case 3: - return f(s(e)); + return f(r(e)); default: return d.Debug.notImplemented(d.ImageType[this._type]), 0; } }; - r.prototype.setPixel = function(a, b, e) { + t.prototype.setPixel = function(a, b, e) { a |= 0; b |= 0; e |= 0; - this._rect.contains(a, b) && (this._ensureBitmapData(), a = b * this._rect.width + a, e = e & 16777215 | (this._view[a] & 255) << 24, e = m(e), this._view[a] = s(e), this._invalidate(), this._solidFillColorPBGRA = null); + this._rect.contains(a, b) && (this._ensureBitmapData(), a = b * this._rect.width + a, e = e & 16777215 | (this._view[a] & 255) << 24, e = m(e), this._view[a] = r(e), this._invalidate(), this._solidFillColorPBGRA = null); }; - r.prototype.setPixel32 = function(a, b, e) { + t.prototype.setPixel32 = function(a, b, e) { a |= 0; b |= 0; if (this._rect.contains(a, b)) { @@ -36665,64 +36644,64 @@ var RtmpJs; var c = e >>> 24; e &= 16777215; c = this._transparent ? m(e | c << 24) : e | 4278190080; - this._view[b * this._rect.width + a] = s(c); + this._view[b * this._rect.width + a] = r(c); this._invalidate(); this._solidFillColorPBGRA = null; } }; - r.prototype.applyFilter = function(a, b, e, c) { + t.prototype.applyFilter = function(a, b, e, c) { u("public flash.display.BitmapData::applyFilter " + c); }; - r.prototype.colorTransform = function(a, b) { + t.prototype.colorTransform = function(a, b) { u("public flash.display.BitmapData::colorTransform"); }; - r.prototype.compare = function(a) { - t("public flash.display.BitmapData::compare"); + t.prototype.compare = function(a) { + v("public flash.display.BitmapData::compare"); }; - r.prototype.copyChannel = function(a, b, e, c, f) { - t("public flash.display.BitmapData::copyChannel"); + t.prototype.copyChannel = function(a, b, e, c, f) { + v("public flash.display.BitmapData::copyChannel"); }; - r.prototype.copyPixels = function(a, b, e, c, f, d) { + t.prototype.copyPixels = function(a, b, e, c, f, d) { void 0 === c && (c = null); void 0 === f && (f = null); void 0 === d && (d = !1); d = !!d; if (c || f) { - t("public flash.display.BitmapData::copyPixels - Alpha"); + v("public flash.display.BitmapData::copyPixels - Alpha"); } else { - var g = this._getTemporaryRectangleFrom(b, 0).roundInPlace(); + var h = this._getTemporaryRectangleFrom(b, 0).roundInPlace(); b = this._rect; f = a._rect; - var h = Math.max(g.x, 0); - c = Math.max(g.y, 0); - var l = Math.min(g.x + g.width, f.width), m = Math.min(g.y + g.height, f.height); - f = e.x | 0 + (h - g.x); - g = e.y | 0 + (c - g.y); - 0 > f && (h -= f, f = 0); - 0 > g && (c -= g, g = 0); - e = Math.min(l - h, b.width - f); - b = Math.min(m - c, b.height - g); + var g = Math.max(h.x, 0); + c = Math.max(h.y, 0); + var l = Math.min(h.x + h.width, f.width), m = Math.min(h.y + h.height, f.height); + f = e.x | 0 + (g - h.x); + h = e.y | 0 + (c - h.y); + 0 > f && (g -= f, f = 0); + 0 > h && (c -= h, h = 0); + e = Math.min(l - g, b.width - f); + b = Math.min(m - c, b.height - h); if (!(0 >= e || 0 >= b)) { - var l = h, m = c, r = f, n = g; + var l = g, m = c, p = f, t = h; c = a._rect.width; f = this._rect.width; this._ensureBitmapData(); a._ensureBitmapData(); - h = a._view; - g = this._view; + g = a._view; + h = this._view; a._type !== this._type && u("public flash.display.BitmapData::copyPixels - Color Format Conversion"); if (d && 1 !== this._type) { - t("public flash.display.BitmapData::copyPixels - Merge Alpha"); + v("public flash.display.BitmapData::copyPixels - Merge Alpha"); } else { if (null === this._solidFillColorPBGRA || this._solidFillColorPBGRA !== a._solidFillColorPBGRA) { null !== a._solidFillColorPBGRA && 255 === (a._solidFillColorPBGRA & 255) && (d = !1); if (d) { - this._copyPixelsAndMergeAlpha(h, l, m, c, g, r, n, f, e, b); + this._copyPixelsAndMergeAlpha(g, l, m, c, h, p, t, f, e, b); } else { - if (a = m * c + l | 0, d = n * f + r | 0, 0 === (e & 3)) { + if (a = m * c + l | 0, d = t * f + p | 0, 0 === (e & 3)) { for (l = 0;l < b;l = l + 1 | 0) { for (m = 0;m < e;m = m + 4 | 0) { - g[d + m + 0 | 0] = h[a + m + 0 | 0], g[d + m + 1 | 0] = h[a + m + 1 | 0], g[d + m + 2 | 0] = h[a + m + 2 | 0], g[d + m + 3 | 0] = h[a + m + 3 | 0]; + h[d + m + 0 | 0] = g[a + m + 0 | 0], h[d + m + 1 | 0] = g[a + m + 1 | 0], h[d + m + 2 | 0] = g[a + m + 2 | 0], h[d + m + 3 | 0] = g[a + m + 3 | 0]; } a = a + c | 0; d = d + f | 0; @@ -36730,7 +36709,7 @@ var RtmpJs; } else { for (l = 0;l < b;l = l + 1 | 0) { for (m = 0;m < e;m = m + 1 | 0) { - g[d + m | 0] = h[a + m | 0]; + h[d + m | 0] = g[a + m | 0]; } a = a + c | 0; d = d + f | 0; @@ -36744,70 +36723,70 @@ var RtmpJs; } } }; - r.prototype._copyPixelsAndMergeAlpha = function(a, b, e, c, f, d, g, h, l, m) { + t.prototype._copyPixelsAndMergeAlpha = function(a, b, e, c, f, d, h, g, l, m) { b = e * c + b | 0; - d = g * h + d | 0; - for (g = 0;g < m;g = g + 1 | 0) { + d = h * g + d | 0; + for (h = 0;h < m;h = h + 1 | 0) { for (e = 0;e < l;e = e + 1 | 0) { - var r = a[b + e | 0], n = r & 255; - if (255 === n) { - f[d + e | 0] = r; + var p = a[b + e | 0], t = p & 255; + if (255 === t) { + f[d + e | 0] = p; } else { - if (0 !== n) { - var k = r & 16711935, r = r >> 8 & 16711935, q = f[d + e | 0], p = q & 16711935, q = q >> 8 & 16711935, n = 256 - n, p = Math.imul(p, n) >> 8, q = Math.imul(q, n) >> 8; - f[d + e | 0] = (r + q & 16711935) << 8 | k + p & 16711935; + if (0 !== t) { + var k = p & 16711935, p = p >> 8 & 16711935, n = f[d + e | 0], q = n & 16711935, n = n >> 8 & 16711935, t = 256 - t, q = Math.imul(q, t) >> 8, n = Math.imul(n, t) >> 8; + f[d + e | 0] = (p + n & 16711935) << 8 | k + q & 16711935; } } } b = b + c | 0; - d = d + h | 0; + d = d + g | 0; } }; - r.prototype.dispose = function() { + t.prototype.dispose = function() { this._rect.setEmpty(); this._view = null; this._invalidate(); }; - r.prototype.draw = function(a, b, e, c, f, d) { + t.prototype.draw = function(a, b, e, c, f, d) { void 0 === b && (b = null); void 0 === e && (e = null); void 0 === c && (c = null); void 0 === f && (f = null); void 0 === d && (d = !1); u("public flash.display.BitmapData::draw"); - var g = q.instance.globals["Shumway.Player.Utils"]; + var h = q.instance.globals["Shumway.Player.Utils"]; b && (b = b.clone().toTwipsInPlace()); - g.drawToBitmap(this, a, b, e, c, f, d); + h.drawToBitmap(this, a, b, e, c, f, d); this._isRemoteDirty = !0; }; - r.prototype.drawWithQuality = function(a, b, e, f, d, g, h) { + t.prototype.drawWithQuality = function(a, b, e, f, d, h, g) { void 0 === f && (f = null); - void 0 === h && (h = null); + void 0 === g && (g = null); c(f); - c(h); - t("public flash.display.BitmapData::drawWithQuality"); + c(g); + v("public flash.display.BitmapData::drawWithQuality"); }; - r.prototype.fillRect = function(a, b) { + t.prototype.fillRect = function(a, b) { this._ensureBitmapData(); - var e = this._transparent ? m(b) : b | 4278190080, e = s(e), c = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); + var e = this._transparent ? m(b) : b | 4278190080, e = r(e), c = this._getTemporaryRectangleFrom(this._rect).intersectInPlace(a); if (!c.isEmpty() && this._solidFillColorPBGRA !== e) { var f = this._view; if (c.equals(this._rect)) { var d = f.length | 0; if (0 === (d & 3)) { - for (var g = 0;g < d;g += 4) { - f[g] = e, f[g + 1] = e, f[g + 2] = e, f[g + 3] = e; + for (var h = 0;h < d;h += 4) { + f[h] = e, f[h + 1] = e, f[h + 2] = e, f[h + 3] = e; } } else { - for (g = 0;g < d;g++) { - f[g] = e; + for (h = 0;h < d;h++) { + f[h] = e; } } this._solidFillColorPBGRA = e; } else { - for (var d = c.x | 0, g = c.x + c.width | 0, h = c.y + c.height | 0, l = this._rect.width | 0, c = c.y | 0;c < h;c++) { - for (var r = c * l | 0, n = d;n < g;n++) { - f[r + n] = e; + for (var d = c.x | 0, h = c.x + c.width | 0, g = c.y + c.height | 0, l = this._rect.width | 0, c = c.y | 0;c < g;c++) { + for (var p = c * l | 0, t = d;t < h;t++) { + f[p + t] = e; } } this._solidFillColorPBGRA = null; @@ -36815,25 +36794,25 @@ var RtmpJs; this._invalidate(); } }; - r.prototype.floodFill = function(a, b, e) { - t("public flash.display.BitmapData::floodFill"); + t.prototype.floodFill = function(a, b, e) { + v("public flash.display.BitmapData::floodFill"); }; - r.prototype.generateFilterRect = function(a, b) { - t("public flash.display.BitmapData::generateFilterRect"); + t.prototype.generateFilterRect = function(a, b) { + v("public flash.display.BitmapData::generateFilterRect"); }; - r.prototype.getColorBoundsRect = function(a, b, e) { - t("public flash.display.BitmapData::getColorBoundsRect"); + t.prototype.getColorBoundsRect = function(a, b, e) { + v("public flash.display.BitmapData::getColorBoundsRect"); }; - r.prototype.getPixels = function(a) { - var b = new p.utils.ByteArray; + t.prototype.getPixels = function(a) { + var b = new n.utils.ByteArray; this.copyPixelsToByteArray(a, b); return b; }; - r.prototype.copyPixelsToByteArray = function(a, b) { + t.prototype.copyPixelsToByteArray = function(a, b) { var e = this._getPixelData(a); e && b.writeRawBytes(new Uint8Array(e)); }; - r.prototype.getVector = function(b) { + t.prototype.getVector = function(b) { var e = new a.Uint32Vector(c.length), c = this._getPixelData(b); if (!c) { return e; @@ -36842,50 +36821,50 @@ var RtmpJs; e._view().set(c); return e; }; - r.prototype.hitTest = function(a, b, e, c, f) { - t("public flash.display.BitmapData::hitTest"); + t.prototype.hitTest = function(a, b, e, c, f) { + v("public flash.display.BitmapData::hitTest"); }; - r.prototype.merge = function(a, b, e, c, f, d, g) { + t.prototype.merge = function(a, b, e, c, f, d, h) { u("public flash.display.BitmapData::merge"); }; - r.prototype.noise = function(a, b, e, c, f) { + t.prototype.noise = function(a, b, e, c, f) { u("public flash.display.BitmapData::noise"); }; - r.prototype.paletteMap = function(a, b, e, c, f, d, g) { + t.prototype.paletteMap = function(a, b, e, c, f, d, h) { u("public flash.display.BitmapData::paletteMap"); }; - r.prototype.perlinNoise = function(a, b, e, c, f, d, g, h, l) { + t.prototype.perlinNoise = function(a, b, e, c, f, d, h, g, l) { u("public flash.display.BitmapData::perlinNoise"); }; - r.prototype.pixelDissolve = function(a, b, e, c, f, d) { - t("public flash.display.BitmapData::pixelDissolve"); + t.prototype.pixelDissolve = function(a, b, e, c, f, d) { + v("public flash.display.BitmapData::pixelDissolve"); }; - r.prototype.scroll = function(a, b) { - t("public flash.display.BitmapData::scroll"); + t.prototype.scroll = function(a, b) { + v("public flash.display.BitmapData::scroll"); }; - r.prototype.setPixels = function(a, b) { + t.prototype.setPixels = function(a, b) { this._putPixelData(a, new Int32Array(b.readRawBytes())); }; - r.prototype.setVector = function(a, b) { + t.prototype.setVector = function(a, b) { this._putPixelData(a, b._view()); }; - r.prototype.threshold = function(a, b, e, f, d, g, h, l) { + t.prototype.threshold = function(a, b, e, f, d, h, g, l) { c(f); - t("public flash.display.BitmapData::threshold"); + v("public flash.display.BitmapData::threshold"); }; - r.prototype.lock = function() { + t.prototype.lock = function() { this._locked = !0; }; - r.prototype.unlock = function(a) { + t.prototype.unlock = function(a) { this._locked = !1; }; - r.prototype.histogram = function(a) { - t("public flash.display.BitmapData::histogram"); + t.prototype.histogram = function(a) { + v("public flash.display.BitmapData::histogram"); }; - r.prototype.encode = function(a, b, e) { - t("public flash.display.BitmapData::encode"); + t.prototype.encode = function(a, b, e) { + v("public flash.display.BitmapData::encode"); }; - r.prototype._ensureBitmapData = function() { + t.prototype._ensureBitmapData = function() { if (this._isRemoteDirty) { var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"].requestBitmapData(this); this._setData(a.getBytes(), 3); @@ -36894,23 +36873,23 @@ var RtmpJs; } 1 !== this._type && (d.ColorUtilities.convertImage(this._type, 1, this._view, this._view), this._type = 1, this._solidFillColorPBGRA = null); }; - r.classInitializer = function() { + t.classInitializer = function() { }; - r.initializer = function(a) { + t.initializer = function(a) { this._symbol = a; }; - r.classSymbols = null; - r.instanceSymbols = null; - r.MAXIMUM_WIDTH = 8191; - r.MAXIMUM_HEIGHT = 8191; - r.MAXIMUM_DIMENSION = 16777215; - r._temporaryRectangles = [new p.geom.Rectangle, new p.geom.Rectangle, new p.geom.Rectangle]; - return r; + t.classSymbols = null; + t.instanceSymbols = null; + t.MAXIMUM_WIDTH = 8191; + t.MAXIMUM_HEIGHT = 8191; + t.MAXIMUM_DIMENSION = 16777215; + t._temporaryRectangles = [new n.geom.Rectangle, new n.geom.Rectangle, new n.geom.Rectangle]; + return t; }(a.ASNative); - v.BitmapData = r; - r = function(a) { + w.BitmapData = t; + t = function(a) { function b(e) { - a.call(this, e, p.display.BitmapData, !1); + a.call(this, e, n.display.BitmapData, !1); this.ready = !1; } __extends(b, a); @@ -36918,7 +36897,7 @@ var RtmpJs; var e = new b(a); e.width = a.width || -1; e.height = a.height || -1; - e.syncId = p.display.DisplayObject.getNextSyncID(); + e.syncId = n.display.DisplayObject.getNextSyncID(); e.data = a.data; switch(a.mimeType) { case "application/octet-stream": @@ -36935,7 +36914,7 @@ var RtmpJs; e.type = 6; break; default: - t(a.mimeType); + v(a.mimeType); } return e; }; @@ -36956,8 +36935,8 @@ var RtmpJs; }; return b; }(d.Timeline.DisplaySymbol); - v.BitmapSymbol = r; - })(p.display || (p.display = {})); + w.BitmapSymbol = t; + })(n.display || (n.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -36967,9 +36946,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.BitmapDataChannel"); + n("public flash.display.BitmapDataChannel"); } __extends(c, a); c.classInitializer = null; @@ -36993,9 +36972,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.BitmapEncodingColorSpace"); + n("public flash.display.BitmapEncodingColorSpace"); } __extends(c, a); c.classInitializer = null; @@ -37019,9 +36998,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c(a) { - p("public flash.display.JPEGEncoderOptions"); + n("public flash.display.JPEGEncoderOptions"); } __extends(c, a); c.classInitializer = null; @@ -37040,8 +37019,8 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.throwError, l = a.display.ActionScriptVersion, c = d.AVM2.Runtime.AVM2, h = a.events, q = d.FileLoader, s = d.AVM2.ABC.AbcFile, m = d.SWF.SWFFile, g = d.AVM2.enterTimeline, f = d.AVM2.leaveTimeline, b; + (function(w) { + var v = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.throwError, l = a.display.ActionScriptVersion, c = d.AVM2.Runtime.AVM2, g = a.events, q = d.FileLoader, r = d.AVM2.ABC.AbcFile, m = d.SWF.SWFFile, h = d.AVM2.enterTimeline, f = d.AVM2.leaveTimeline, b; (function(a) { a[a.Unloaded = 0] = "Unloaded"; a[a.Opened = 1] = "Opened"; @@ -37055,10 +37034,10 @@ var RtmpJs; })(e || (e = {})); b = function(b) { function e() { - v.DisplayObjectContainer.instanceConstructorNoInitialize.call(this); + w.DisplayObjectContainer.instanceConstructorNoInitialize.call(this); this._content = null; - e._rootLoader && (this._contentID = v.DisplayObject._instanceID++); - this._contentLoaderInfo = new v.LoaderInfo(v.LoaderInfo.CtorToken); + e._rootLoader && (this._contentID = w.DisplayObject._instanceID++); + this._contentLoaderInfo = new w.LoaderInfo(w.LoaderInfo.CtorToken); this._contentLoaderInfo._loader = this; var a = c.currentAbc(); a && (this._contentLoaderInfo._loaderUrl = a.env.loaderInfo.url); @@ -37095,18 +37074,18 @@ var RtmpJs; c._applyDecodedImage(m); } if (1 === c._loadStatus && c._content) { - g("Loader.INIT"); + h("Loader.INIT"); try { - l.dispatchEvent(h.Event.getInstance(h.Event.INIT)); - } catch (r) { - console.warn("caught error under loaderInfo INIT event:", r); + l.dispatchEvent(g.Event.getInstance(g.Event.INIT)); + } catch (t) { + console.warn("caught error under loaderInfo INIT event:", t); } f(); c._loadStatus = 2; if (c === e._rootLoader) { - g("Loader.Progress", "rootLoader"); + h("Loader.Progress", "rootLoader"); try { - l.dispatchEvent(new h.ProgressEvent(h.ProgressEvent.PROGRESS, !1, !1, l.bytesLoaded, l.bytesTotal)); + l.dispatchEvent(new g.ProgressEvent(g.ProgressEvent.PROGRESS, !1, !1, l.bytesLoaded, l.bytesTotal)); } catch (k) { console.warn("caught error under loaderInfo PROGRESS event:", k); } @@ -37116,11 +37095,11 @@ var RtmpJs; if (2 === c._loadStatus && l.bytesLoaded === l.bytesTotal) { a.splice(b--, 1); c._loadStatus = 3; - g("Loader.Complete"); + h("Loader.Complete"); try { - l.dispatchEvent(h.Event.getInstance(h.Event.COMPLETE)); - } catch (q) { - console.warn("caught error under loaderInfo COMPLETE event: ", q); + l.dispatchEvent(g.Event.getInstance(g.Event.COMPLETE)); + } catch (n) { + console.warn("caught error under loaderInfo COMPLETE event: ", n); } f(); } @@ -37133,17 +37112,17 @@ var RtmpJs; c._queuedLoadUpdate = null; if (0 === c._loadStatus) { if (0 === c._loadingType) { - g("Loader.Open"); + h("Loader.Open"); try { - d.dispatchEvent(h.Event.getInstance(h.Event.OPEN)); - } catch (r) { - console.warn("caught error under loaderInfo OPEN event: ", r); + d.dispatchEvent(g.Event.getInstance(g.Event.OPEN)); + } catch (t) { + console.warn("caught error under loaderInfo OPEN event: ", t); } f(); } - g("Loader.Progress"); + h("Loader.Progress"); try { - d.dispatchEvent(new h.ProgressEvent(h.ProgressEvent.PROGRESS, !1, !1, 0, m)); + d.dispatchEvent(new g.ProgressEvent(g.ProgressEvent.PROGRESS, !1, !1, 0, m)); } catch (k) { console.warn("caught error under loaderInfo PROGRESS event: ", k); } @@ -37152,11 +37131,11 @@ var RtmpJs; } if (l) { c._applyLoadUpdate(l); - g("Loader.Progress"); + h("Loader.Progress"); try { - d.dispatchEvent(new h.ProgressEvent(h.ProgressEvent.PROGRESS, !1, !1, l.bytesLoaded, m)); - } catch (q) { - console.warn("caught error under loaderInfo PROGRESS event: ", q); + d.dispatchEvent(new g.ProgressEvent(g.ProgressEvent.PROGRESS, !1, !1, l.bytesLoaded, m)); + } catch (n) { + console.warn("caught error under loaderInfo PROGRESS event: ", n); } f(); } @@ -37169,7 +37148,7 @@ var RtmpJs; e.prototype._initFrame = function(a) { }; e.prototype._constructFrame = function() { - this === e.getRootLoader() && this._content ? (v.DisplayObject._advancableInstances.remove(this), this._children[0] = this._content, this._constructChildren(), this._children.length = 0) : this._constructChildren(); + this === e.getRootLoader() && this._content ? (w.DisplayObject._advancableInstances.remove(this), this._children[0] = this._content, this._constructChildren(), this._children.length = 0) : this._constructChildren(); }; e.prototype.addChild = function(a) { u("IllegalOperationError", k.Errors.InvalidLoaderMethodError); @@ -37207,8 +37186,8 @@ var RtmpJs; return a.system.JPEGLoaderContext.isType(b) ? b.deblockingFilter : 0; }; Object.defineProperty(e.prototype, "uncaughtErrorEvents", {get:function() { - t("public flash.display.Loader::uncaughtErrorEvents"); - this._uncaughtErrorEvents || (this._uncaughtErrorEvents = new h.UncaughtErrorEvents); + v("public flash.display.Loader::uncaughtErrorEvents"); + this._uncaughtErrorEvents || (this._uncaughtErrorEvents = new g.UncaughtErrorEvents); return this._uncaughtErrorEvents; }, enumerable:!0, configurable:!0}); e.prototype._canLoadSWFFromDomain = function(a) { @@ -37244,7 +37223,7 @@ var RtmpJs; this._fileLoader && (this._fileLoader = null); }; e.prototype._unload = function(a, b) { - 2 > this._loadStatus ? this._loadStatus = 0 : (this.close(), this._content = null, this._contentLoaderInfo._loader = null, this._loadStatus = 0, this.dispatchEvent(h.Event.getInstance(h.Event.UNLOAD))); + 2 > this._loadStatus ? this._loadStatus = 0 : (this.close(), this._content = null, this._contentLoaderInfo._loader = null, this._loadStatus = 0, this.dispatchEvent(g.Event.getInstance(g.Event.UNLOAD))); }; e.prototype.unload = function() { this._unload(!1, !1); @@ -37257,9 +37236,9 @@ var RtmpJs; if (b && b.parameters) { var c = b.parameters, f; for (f in c) { - var g = c[f]; - d.isString(g) || u("IllegalOperationError", k.Errors.ObjectWithStringsParamError, "LoaderContext.parameters"); - e[f] = g; + var h = c[f]; + d.isString(h) || u("IllegalOperationError", k.Errors.ObjectWithStringsParamError, "LoaderContext.parameters"); + e[f] = h; } } b && b.applicationDomain && (b = new a.system.ApplicationDomain(a.system.ApplicationDomain.currentDomain), this._contentLoaderInfo._applicationDomain = b); @@ -37279,7 +37258,7 @@ var RtmpJs; return Promise.all(e); }; e.prototype.onImageBytesLoaded = function() { - var a = this._contentLoaderInfo._file, a = {id:-1, data:a.data, mimeType:a.mimeType, dataType:a.type, type:"image"}, b = v.BitmapSymbol.FromData(a); + var a = this._contentLoaderInfo._file, a = {id:-1, data:a.data, mimeType:a.mimeType, dataType:a.type, type:"image"}, b = w.BitmapSymbol.FromData(a); this._imageSymbol = b; c.instance.globals["Shumway.Player.Utils"].registerImage(b, a); }; @@ -37296,21 +37275,21 @@ var RtmpJs; var f = e._file; if (f instanceof m && 0 !== f.framesLoaded) { if (e._allowCodeExecution) { - var d = c.instance.applicationDomain, g = f.abcBlocks.length; - if (0 < g - e._abcBlocksLoaded) { - for (b = e._abcBlocksLoaded;b < g;b++) { - var h = f.abcBlocks[b], l = new s(h.data, h.name); + var d = c.instance.applicationDomain, h = f.abcBlocks.length; + if (0 < h - e._abcBlocksLoaded) { + for (b = e._abcBlocksLoaded;b < h;b++) { + var g = f.abcBlocks[b], l = new r(g.data, g.name); l.env.loaderInfo = e; - h.flags ? d.loadAbc(l) : d.executeAbc(l); + g.flags ? d.loadAbc(l) : d.executeAbc(l); } - e._abcBlocksLoaded = g; + e._abcBlocksLoaded = h; } - g = f.symbolClassesList.length; - if (0 < g - e._mappedSymbolsLoaded) { - for (b = e._mappedSymbolsLoaded;b < g;b++) { - h = f.symbolClassesList[b], l = d.getClass(h.className), Object.defineProperty(l, "defaultInitializerArgument", {get:e.getSymbolResolver(l, h.id), configurable:!0}); + h = f.symbolClassesList.length; + if (0 < h - e._mappedSymbolsLoaded) { + for (b = e._mappedSymbolsLoaded;b < h;b++) { + g = f.symbolClassesList[b], l = d.getClass(g.className), Object.defineProperty(l, "defaultInitializerArgument", {get:e.getSymbolResolver(l, g.id), configurable:!0}); } - e._mappedSymbolsLoaded = g; + e._mappedSymbolsLoaded = h; } } if (inFirefox && (d = f.fonts.length, 0 < d - e._fontsLoaded)) { @@ -37320,10 +37299,10 @@ var RtmpJs; e._fontsLoaded = d; } d = e.getRootSymbol(); - g = f.framesLoaded - d.frames.length; - if (0 !== g) { - for ((b = this._content) || (b = this.createContentRoot(d, f.sceneAndFrameLabelData)), f = b, b = 0;b < g;b++) { - h = e.getFrame(null, d.frames.length), f._addFrame(h); + h = f.framesLoaded - d.frames.length; + if (0 !== h) { + for ((b = this._content) || (b = this.createContentRoot(d, f.sceneAndFrameLabelData)), f = b, b = 0;b < h;b++) { + g = e.getFrame(null, d.frames.length), f._addFrame(g); } } } @@ -37337,16 +37316,16 @@ var RtmpJs; var f = b.symbolClass.initializeFrom(b); a.display.DisplayObject._instanceID--; f._name = this === e._rootLoader ? "root1" : "instance" + this._contentID; - if (v.MovieClip.isType(f)) { + if (w.MovieClip.isType(f)) { var d = f; if (c) { - for (var g = c.scenes, h = 0, m = g.length;h < m;h++) { - var r = g[h], k = r.offset; - d.addScene(r.name, [], k, (h < m - 1 ? g[h + 1].offset : b.numFrames) - k); + for (var h = c.scenes, g = 0, m = h.length;g < m;g++) { + var t = h[g], k = t.offset; + d.addScene(t.name, [], k, (g < m - 1 ? h[g + 1].offset : b.numFrames) - k); } - g = c.labels; - for (h = 0;h < g.length;h++) { - m = g[h], d.addFrameLabel(m.name, m.frame + 1); + h = c.labels; + for (g = 0;g < h.length;g++) { + m = h[g], d.addFrameLabel(m.name, m.frame + 1); } } else { d.addScene("Scene 1", [], 0, b.numFrames); @@ -37354,15 +37333,15 @@ var RtmpJs; } d = this._contentLoaderInfo; f._loaderInfo = d; - h = f; - d.actionScriptVersion === l.ACTIONSCRIPT2 ? f = this._initAvm1Root(f) : this === e.getRootLoader() && (v.MovieClip.frameNavigationModel = 10 > d.swfVersion ? 9 : 10); + g = f; + d.actionScriptVersion === l.ACTIONSCRIPT2 ? f = this._initAvm1Root(f) : this === e.getRootLoader() && (w.MovieClip.frameNavigationModel = 10 > d.swfVersion ? 9 : 10); this._content = f; this === e.getRootLoader() ? (e.runtimeStartTime = Date.now(), this._stage.setRoot(f)) : this.addTimelineObjectAtDepth(f, 0); - return h; + return g; }; e.prototype._initAvm1 = function(a) { var b = this._contentLoaderInfo, c; - this.loaderInfo && this.loaderInfo._avm1Context ? c = b._avm1Context = this.loaderInfo._avm1Context : (d.AVM1.Lib.installObjectMethods(), c = d.AVM1.AVM1Context.create(b), b._avm1Context = c, this === e.getRootLoader() && (c.globals.Key._bind(this._stage, c), c.globals.Mouse._bind(this._stage, c), v.MovieClip.frameNavigationModel = 1)); + this.loaderInfo && this.loaderInfo._avm1Context ? c = b._avm1Context = this.loaderInfo._avm1Context : (d.AVM1.Lib.installObjectMethods(), c = d.AVM1.AVM1Context.create(b), b._avm1Context = c, this === e.getRootLoader() && (c.globals.Key._bind(this._stage, c), c.globals.Mouse._bind(this._stage, c), w.MovieClip.frameNavigationModel = 1)); a.avm1Context = c; }; e.prototype._initAvm1Root = function(b) { @@ -37386,13 +37365,13 @@ var RtmpJs; e._embeddedContentLoadCount = 0; }; e.initializer = function() { - v.DisplayObject._advancableInstances.push(this); + w.DisplayObject._advancableInstances.push(this); }; e.classSymbols = null; e.instanceSymbols = null; return e; }(a.display.DisplayObjectContainer); - v.Loader = b; + w.Loader = b; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -37402,8 +37381,8 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.SWF.SWFFile, c = function(c) { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.SWF.SWFFile, c = function(c) { function q(c) { c !== q.CtorToken && throwError("ArgumentError", k.Errors.CantInstantiateError, "LoaderInfo$"); a.events.EventDispatcher.instanceConstructorNoInitialize.call(this); @@ -37430,7 +37409,7 @@ var RtmpJs; a instanceof l && (a = a.bounds, this._width = a.xMax - a.xMin, this._height = a.yMax - a.yMin); }; q.getLoaderInfoByDefinition = function(a) { - t("public flash.display.LoaderInfo::static getLoaderInfoByDefinition"); + v("public flash.display.LoaderInfo::static getLoaderInfoByDefinition"); }; Object.defineProperty(q.prototype, "loaderURL", {get:function() { if (!this._loader) { @@ -37464,7 +37443,7 @@ var RtmpJs; Object.defineProperty(q.prototype, "actionScriptVersion", {get:function() { this._file || throwError("Error", k.Errors.LoadingObjectNotInitializedError); this._file instanceof l || throwError("Error", k.Errors.LoadingObjectNotSWFError); - return this._file.useAVM1 ? v.ActionScriptVersion.ACTIONSCRIPT2 : v.ActionScriptVersion.ACTIONSCRIPT3; + return this._file.useAVM1 ? w.ActionScriptVersion.ACTIONSCRIPT2 : w.ActionScriptVersion.ACTIONSCRIPT3; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "frameRate", {get:function() { this._file || throwError("Error", k.Errors.LoadingObjectNotInitializedError); @@ -37504,17 +37483,17 @@ var RtmpJs; Object.defineProperty(q.prototype, "sameDomain", {get:function() { this._file || throwError("Error", k.Errors.LoadingObjectNotInitializedError); u("public flash.display.LoaderInfo::get sameDomain"); - return!0; + return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "childAllowsParent", {get:function() { this._file || throwError("Error", k.Errors.LoadingObjectNotInitializedError); u("public flash.display.LoaderInfo::get childAllowsParent"); - return!0; + return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "parentAllowsChild", {get:function() { this._file || throwError("Error", k.Errors.LoadingObjectNotInitializedError); u("public flash.display.LoaderInfo::get parentAllowsChild"); - return!0; + return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "loader", {get:function() { return this._loader; @@ -37526,7 +37505,7 @@ var RtmpJs; if (!this._file) { return new a.utils.ByteArray; } - t("public flash.display.LoaderInfo::get bytes"); + v("public flash.display.LoaderInfo::get bytes"); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(q.prototype, "parameters", {get:function() { @@ -37542,53 +37521,53 @@ var RtmpJs; return this.resolveClassSymbol.bind(this, a, c); }; q.prototype.getSymbolById = function(c) { - var h = this._dictionary[c]; - if (h) { - return!1 === h.ready ? null : h; + var g = this._dictionary[c]; + if (g) { + return !1 === g.ready ? null : g; } - var g = this._file.getSymbol(c); - if (!g) { + var h = this._file.getSymbol(c); + if (!h) { return null; } - switch(g.type) { + switch(h.type) { case "shape": - h = a.display.ShapeSymbol.FromData(g, this); + g = a.display.ShapeSymbol.FromData(h, this); break; case "morphshape": - h = a.display.MorphShapeSymbol.FromData(g, this); + g = a.display.MorphShapeSymbol.FromData(h, this); break; case "image": - g.definition && (g = g.definition); - h = a.display.BitmapSymbol.FromData(g); + h.definition && (h = h.definition); + g = a.display.BitmapSymbol.FromData(h); break; case "label": - h = a.text.TextSymbol.FromLabelData(g, this); + g = a.text.TextSymbol.FromLabelData(h, this); break; case "text": - h = a.text.TextSymbol.FromTextData(g, this); - this._syncAVM1Attributes(h); + g = a.text.TextSymbol.FromTextData(h, this); + this._syncAVM1Attributes(g); break; case "button": - h = a.display.ButtonSymbol.FromData(g, this); - this._syncAVM1Attributes(h); + g = a.display.ButtonSymbol.FromData(h, this); + this._syncAVM1Attributes(g); break; case "sprite": - h = a.display.SpriteSymbol.FromData(g, this); + g = a.display.SpriteSymbol.FromData(h, this); break; case "font": - g.definition && (g = g.definition); - var h = a.text.FontSymbol.FromData(g), f = a.text.Font.initializeFrom(h); + h.definition && (h = h.definition); + var g = a.text.FontSymbol.FromData(h), f = a.text.Font.initializeFrom(g); a.text.Font.instanceConstructorNoInitialize.call(f); break; case "sound": - h = a.media.SoundSymbol.FromData(g); + g = a.media.SoundSymbol.FromData(h); break; case "binary": - h = d.Timeline.BinarySymbol.FromData(g); + g = d.Timeline.BinarySymbol.FromData(h); } - this._dictionary[c] = h; - !1 === h.ready && this._registerFontOrImage(h, g); - return h; + this._dictionary[c] = g; + !1 === g.ready && this._registerFontOrImage(g, h); + return g; }; q.prototype._registerFontOrImage = function(a, c) { var d = k.Runtime.AVM2.instance.globals["Shumway.Player.Utils"]; @@ -37609,7 +37588,7 @@ var RtmpJs; return c; }; q.prototype._syncAVM1Attributes = function(a) { - this.actionScriptVersion === v.ActionScriptVersion.ACTIONSCRIPT2 && (a.isAVM1Object = !0, a.avm1Context = this._avm1Context); + this.actionScriptVersion === w.ActionScriptVersion.ACTIONSCRIPT2 && (a.isAVM1Object = !0, a.avm1Context = this._avm1Context); }; q.prototype.getFrame = function(a, c) { var d = this._file; @@ -37629,7 +37608,7 @@ var RtmpJs; q.CtorToken = {}; return q; }(a.events.EventDispatcher); - v.LoaderInfo = c; + w.LoaderInfo = c; })(a.display || (a.display = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -37646,7 +37625,7 @@ var RtmpJs; } __extends(l, a); l.prototype._canHaveGraphics = function() { - return!0; + return !0; }; l.prototype._getGraphics = function() { return this._graphics; @@ -37655,7 +37634,7 @@ var RtmpJs; return this._ensureGraphics(); }, enumerable:!0, configurable:!0}); l.prototype._containsPointDirectly = function(a, d, l, k) { - return(l = this._getGraphics()) && l._containsPoint(a, d, !0, this._ratio / 65535); + return (l = this._getGraphics()) && l._containsPoint(a, d, !0, this._ratio / 65535); }; l.classSymbols = null; l.instanceSymbols = null; @@ -37717,18 +37696,18 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.somewhatImplemented, u = function(d) { + var v = d.Debug.somewhatImplemented, u = function(d) { function c() { a.events.EventDispatcher.instanceConstructorNoInitialize.call(this); this._enabled = !0; } __extends(c, d); Object.defineProperty(c.prototype, "enabled", {get:function() { - t("public flash.display.NativeMenuItem::get enabled"); + v("public flash.display.NativeMenuItem::get enabled"); return this._enabled; }, set:function(a) { a = !!a; - t("public flash.display.NativeMenuItem::set enabled"); + v("public flash.display.NativeMenuItem::set enabled"); this._enabled = a; }, enumerable:!0, configurable:!0}); c.classInitializer = null; @@ -37748,9 +37727,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c(a) { - p("public flash.display.PNGEncoderOptions"); + n("public flash.display.PNGEncoderOptions"); } __extends(c, a); c.classInitializer = null; @@ -37770,9 +37749,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.PixelSnapping"); + n("public flash.display.PixelSnapping"); } __extends(c, a); c.fromNumber = function(a) { @@ -37796,7 +37775,7 @@ var RtmpJs; case c.AUTO: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -37819,9 +37798,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.SWFVersion"); + n("public flash.display.SWFVersion"); } __extends(c, a); c.classInitializer = null; @@ -37853,9 +37832,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { + var n = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c, d, l) { - this._name = p(a); + this._name = n(a); this._labels = c; this.offset = d; this._numFrames = l | 0; @@ -37879,9 +37858,9 @@ var RtmpJs; c.prototype.getLabelByName = function(a, c) { c && (a = a.toLowerCase()); for (var d = this._labels, l = 0;l < d.length;l++) { - var g = d[l]; - if (c ? g.name.toLowerCase() === a : g.name === a) { - return g; + var h = d[l]; + if (c ? h.name.toLowerCase() === a : h.name === a) { + return h; } } return null; @@ -37912,9 +37891,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.StageAlign"); + n("public flash.display.StageAlign"); } __extends(c, a); c.fromNumber = function(a) { @@ -37962,9 +37941,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.StageDisplayState"); + n("public flash.display.StageDisplayState"); } __extends(c, a); c.fromNumber = function(a) { @@ -37988,7 +37967,7 @@ var RtmpJs; case c.NORMAL: return 2; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -38011,9 +37990,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.StageQuality"); + n("public flash.display.StageQuality"); } __extends(c, a); c.fromNumber = function(a) { @@ -38057,7 +38036,7 @@ var RtmpJs; case c.HIGH_16X16_LINEAR: return 7; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -38085,9 +38064,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.StageScaleMode"); + n("public flash.display.StageScaleMode"); } __extends(c, a); c.fromNumber = function(a) { @@ -38115,7 +38094,7 @@ var RtmpJs; case c.NO_SCALE_LOWERCASE: return 4; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -38143,9 +38122,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.display.TriangleCulling"); + n("public flash.display.TriangleCulling"); } __extends(c, a); c.classInitializer = null; @@ -38168,7 +38147,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = function(d) { + var v = d.Debug.notImplemented, u = function(d) { function c(c) { a.display.DisplayObject.instanceConstructorNoInitialize.call(this); this._children = []; @@ -38181,10 +38160,13 @@ var RtmpJs; } __extends(c, d); c.prototype.call = function(a) { - t("AVM1Movie#call"); + v("AVM1Movie#call"); }; c.prototype.addCallback = function(a, c) { - t("AVM1Movie#call"); + v("AVM1Movie#call"); + }; + c.prototype._addFrame = function(a) { + this._content._addFrame(a); }; c.prototype._initFrame = function(a) { }; @@ -38199,8 +38181,8 @@ var RtmpJs; c.prototype._propagateFlagsDown = function(a) { this._hasFlags(a) || (this._setFlags(a), this._content._propagateFlagsDown(a)); }; - c.prototype._containsPoint = function(a, c, d, l, g, f) { - return 3 === g ? this._content._containsPoint(a, c, d, l, g, f) : 0 === g && this._getContentBounds().contains(d, l) ? 1 : 0; + c.prototype._containsPoint = function(a, c, d, l, h, f) { + return 3 === h ? this._content._containsPoint(a, c, d, l, h, f) : 0 === h && this._getContentBounds().contains(d, l) ? 1 : 0; }; c.prototype._getChildBounds = function(a, c) { var d = this._content._getContentBounds(c).clone(); @@ -38224,11 +38206,11 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { function d(a, c) { void 0 === a && (a = ""); u(a); - p("public flash.errors.IllegalOperationError"); + n("public flash.errors.IllegalOperationError"); } __extends(d, a); d.classInitializer = null; @@ -38248,59 +38230,59 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.forEachPublicProperty, c = d.ExternalInterfaceService, h = function(d) { - function h() { - p("public flash.external.ExternalInterface"); + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.forEachPublicProperty, c = d.ExternalInterfaceService, g = function(d) { + function g() { + n("public flash.external.ExternalInterface"); } - __extends(h, d); - h._getAvailable = function() { + __extends(g, d); + g._getAvailable = function() { return c.instance.enabled; }; - h._initJS = function() { - h.initialized || (h.initialized = !0, c.instance.initJS(h._callIn)); + g._initJS = function() { + g.initialized || (g.initialized = !0, c.instance.initJS(g._callIn)); }; - h._callIn = function(c, d) { - var f = h.registeredCallbacks[c]; + g._callIn = function(c, d) { + var f = g.registeredCallbacks[c]; if (f) { return f(c, a.ASJSON.transformJSValueToAS(d, !0)); } }; - h._getPropNames = function(a) { + g._getPropNames = function(a) { var c = []; l(a, function(a) { c.push(a); }, null); return c; }; - h._addCallback = function(a, d, f) { - f ? (c.instance.unregisterCallback(a), delete h.registeredCallbacks[a]) : (c.instance.registerCallback(a), h.registeredCallbacks[a] = d); + g._addCallback = function(a, d, f) { + f ? (c.instance.unregisterCallback(a), delete g.registeredCallbacks[a]) : (c.instance.registerCallback(a), g.registeredCallbacks[a] = d); }; - h._evalJS = function(a) { + g._evalJS = function(a) { a = u(a); return c.instance.eval(a); }; - h._callOut = function(a) { + g._callOut = function(a) { a = u(a); return c.instance.call(a); }; - Object.defineProperty(h, "available", {get:function() { - return h._getAvailable(); + Object.defineProperty(g, "available", {get:function() { + return g._getAvailable(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "objectID", {get:function() { + Object.defineProperty(g, "objectID", {get:function() { return c.instance.getId(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "activeX", {get:function() { - return!1; + Object.defineProperty(g, "activeX", {get:function() { + return !1; }, enumerable:!0, configurable:!0}); - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h.initialized = !1; - h.registeredCallbacks = Object.create(null); - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g.initialized = !1; + g.registeredCallbacks = Object.create(null); + return g; }(a.ASNative); - k.ExternalInterface = h; + k.ExternalInterface = g; })(k.external || (k.external = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38359,15 +38341,15 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = function(a) { + var n = function(a) { function d() { } __extends(d, a); - d._updateBlurBounds = function(a, h, k, p, m) { + d._updateBlurBounds = function(a, g, k, n, m) { void 0 === m && (m = !1); - p = d.blurFilterStepWidths[p - 1]; - m && (m = p / 4, h -= m, k -= m); - a.inflate(Math.ceil((1 > h ? 1 : h) * p), Math.ceil((1 > k ? 1 : k) * p)); + n = d.blurFilterStepWidths[n - 1]; + m && (m = n / 4, g -= m, k -= m); + a.inflate(Math.ceil((1 > g ? 1 : g) * n), Math.ceil((1 > k ? 1 : k) * n)); }; d.prototype._updateFilterBounds = function(a) { }; @@ -38385,52 +38367,52 @@ var RtmpJs; d.blurFilterStepWidths = [.5, 1.05, 1.35, 1.55, 1.75, 1.9, 2, 2.1, 2.2, 2.3, 2.5, 3, 3, 3.5, 3.5]; return d; }(a.ASNative); - k.BitmapFilter = p; - p = function() { + k.BitmapFilter = n; + n = function() { function a() { } - a.sanitize = function(a, c, h) { + a.sanitize = function(a, c, g) { if (d.isNullOrUndefined(a) || 0 === a.length) { this.colors = [], this.alphas = [], this.ratios = []; } else { var k; - d.isNullOrUndefined(h) ? (this.colors = this.sanitizeColors(a), k = this.colors.length, this.ratios = this.initArray(k), d.isNullOrUndefined(c) ? this.alphas = this.initArray(k) : this.alphas = this.sanitizeAlphas(c, k, k, 1)) : 0 === h.length ? (this.colors = [], this.alphas = [], this.ratios = []) : (k = Math.min(a.length, h.length, 16), this.colors = this.sanitizeColors(a, k), this.ratios = this.sanitizeRatios(h, k), d.isNullOrUndefined(c) ? this.alphas = this.initArray(k) : this.alphas = + d.isNullOrUndefined(g) ? (this.colors = this.sanitizeColors(a), k = this.colors.length, this.ratios = this.initArray(k), d.isNullOrUndefined(c) ? this.alphas = this.initArray(k) : this.alphas = this.sanitizeAlphas(c, k, k, 1)) : 0 === g.length ? (this.colors = [], this.alphas = [], this.ratios = []) : (k = Math.min(a.length, g.length, 16), this.colors = this.sanitizeColors(a, k), this.ratios = this.sanitizeRatios(g, k), d.isNullOrUndefined(c) ? this.alphas = this.initArray(k) : this.alphas = this.sanitizeAlphas(c, k, k, 1)); } }; a.sanitizeColors = function(a, c) { void 0 === c && (c = 16); - for (var d = [], k = 0, p = Math.min(a.length, c);k < p;k++) { + for (var d = [], k = 0, n = Math.min(a.length, c);k < n;k++) { d[k] = a[k] >>> 0 & 16777215; } return d; }; - a.sanitizeAlphas = function(a, c, h, k) { + a.sanitizeAlphas = function(a, c, g, k) { void 0 === c && (c = 16); - void 0 === h && (h = 0); + void 0 === g && (g = 0); void 0 === k && (k = 0); - var p = [], m = 0; + var n = [], m = 0; for (c = Math.min(a.length, c);m < c;m++) { - p[m] = d.NumberUtilities.clamp(+a[m], 0, 1); + n[m] = d.NumberUtilities.clamp(+a[m], 0, 1); } - for (;m < h;) { - p[m++] = k; + for (;m < g;) { + n[m++] = k; } - return p; + return n; }; - a.sanitizeRatios = function(a, c, h) { + a.sanitizeRatios = function(a, c, g) { var k; void 0 === c && (c = 16); - void 0 === h && (h = 0); + void 0 === g && (g = 0); void 0 === k && (k = 0); - var p = [], m = 0; + var n = [], m = 0; for (c = Math.min(a.length, c);m < c;m++) { - p[m] = d.NumberUtilities.clamp(+a[m], 0, 255); + n[m] = d.NumberUtilities.clamp(+a[m], 0, 255); } - for (;m < h;) { - p[m++] = k; + for (;m < g;) { + n[m++] = k; } - return p; + return n; }; a.initArray = function(a) { var c; @@ -38442,7 +38424,7 @@ var RtmpJs; }; return a; }(); - k.GradientArrays = p; + k.GradientArrays = n; })(k.filters || (k.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38452,42 +38434,42 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = function(l) { - function c(a, c, d, l, g, f, b, e, r, k, p, t) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = function(l) { + function c(a, c, d, l, h, f, b, e, t, p, k, n) { void 0 === a && (a = 4); void 0 === c && (c = 45); void 0 === d && (d = 16777215); void 0 === l && (l = 1); - void 0 === g && (g = 0); + void 0 === h && (h = 0); void 0 === f && (f = 1); void 0 === b && (b = 4); void 0 === e && (e = 4); - void 0 === r && (r = 1); - void 0 === k && (k = 1); - void 0 === p && (p = "inner"); - void 0 === t && (t = !1); + void 0 === t && (t = 1); + void 0 === p && (p = 1); + void 0 === k && (k = "inner"); + void 0 === n && (n = !1); this.distance = a; this.angle = c; this.highlightColor = d; this.highlightAlpha = l; - this.shadowColor = g; + this.shadowColor = h; this.shadowAlpha = f; this.blurX = b; this.blurY = e; - this.strength = r; - this.quality = k; - this.type = p; - this.knockout = t; + this.strength = t; + this.quality = p; + this.type = k; + this.knockout = n; } __extends(c, l); c.FromUntyped = function(d) { - var l = d.highlightColor >>> 8, k = (d.highlightColor & 255) / 255, m = d.colors[0] >>> 8, g = (d.colors[0] & 255) / 255, f = a.filters.BitmapFilterType.OUTER; + var l = d.highlightColor >>> 8, k = (d.highlightColor & 255) / 255, m = d.colors[0] >>> 8, h = (d.colors[0] & 255) / 255, f = a.filters.BitmapFilterType.OUTER; d.onTop ? f = a.filters.BitmapFilterType.FULL : d.inner && (f = a.filters.BitmapFilterType.INNER); - return new c(d.distance, 180 * d.angle / Math.PI, l, k, m, g, d.blurX, d.blurY, d.strength, d.quality, f, d.knockout); + return new c(d.distance, 180 * d.angle / Math.PI, l, k, m, h, d.blurX, d.blurY, d.strength, d.quality, f, d.knockout); }; c.prototype._updateFilterBounds = function(a) { - if (this.type !== v.BitmapFilterType.INNER && (v.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { + if (this.type !== w.BitmapFilterType.INNER && (w.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var c = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(c) * this._distance); a.y += Math.floor(Math.sin(c) * this._distance); @@ -38553,8 +38535,8 @@ var RtmpJs; Object.defineProperty(c.prototype, "type", {get:function() { return this._type; }, set:function(a) { - a = t(a); - null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === v.BitmapFilterType.INNER || a === v.BitmapFilterType.OUTER ? a : v.BitmapFilterType.FULL; + a = v(a); + null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === w.BitmapFilterType.INNER || a === w.BitmapFilterType.OUTER ? a : w.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); c.prototype.clone = function() { return new c(this._distance, this._angle, this._highlightColor, this._highlightAlpha, this._shadowColor, this._shadowAlpha, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); @@ -38565,7 +38547,7 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.filters.BitmapFilter); - v.BevelFilter = u; + w.BevelFilter = u; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38576,7 +38558,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = function(a) { + var v = function(a) { function l(a, d, l) { void 0 === a && (a = 4); void 0 === d && (d = 4); @@ -38623,7 +38605,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.filters.BitmapFilter); - k.BlurFilter = t; + k.BlurFilter = v; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38633,8 +38615,8 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = function(a) { + (function(w) { + var v = function(a) { function l(a) { void 0 === a && (a = null); a ? this.matrix = a : this._matrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; @@ -38657,10 +38639,10 @@ var RtmpJs; if (d.isNullOrUndefined(a)) { k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "matrix"); } else { - for (var h = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], l = 0, p = Math.min(a.length, 20);l < p;l++) { - h[l] = d.toNumber(a[l]); + for (var g = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], l = 0, n = Math.min(a.length, 20);l < n;l++) { + g[l] = d.toNumber(a[l]); } - this._matrix = h; + this._matrix = g; } }, enumerable:!0, configurable:!0}); l.prototype.clone = function() { @@ -38672,7 +38654,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.filters.BitmapFilter); - v.ColorMatrixFilter = t; + w.ColorMatrixFilter = v; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38682,15 +38664,15 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = function(a) { - function l(a, d, l, k, m, g, f, b, e) { + (function(w) { + var v = function(a) { + function l(a, d, l, k, m, h, f, b, e) { void 0 === a && (a = 0); void 0 === d && (d = 0); void 0 === l && (l = null); void 0 === k && (k = 1); void 0 === m && (m = 0); - void 0 === g && (g = !0); + void 0 === h && (h = !0); void 0 === f && (f = !0); void 0 === b && (b = 0); void 0 === e && (e = 0); @@ -38699,7 +38681,7 @@ var RtmpJs; l ? this.matrix = l : this._matrix = this._expandArray([], this._matrixX * this._matrixY); this.divisor = k; this.bias = m; - this.preserveAlpha = g; + this.preserveAlpha = h; this.clamp = f; this.color = b; this.alpha = e; @@ -38722,11 +38704,11 @@ var RtmpJs; if (d.isNullOrUndefined(a)) { k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "matrix"); } else { - for (var h = this._matrixX * this._matrixY, l = Math.min(a.length, h), p = Array(l), m = 0;m < l;m++) { - p[m] = d.toNumber(a[m]); + for (var g = this._matrixX * this._matrixY, l = Math.min(a.length, g), n = Array(l), m = 0;m < l;m++) { + n[m] = d.toNumber(a[m]); } - this._expandArray(p, h); - this._matrix = p; + this._expandArray(n, g); + this._matrix = n; } }, enumerable:!0, configurable:!0}); Object.defineProperty(l.prototype, "matrixX", {get:function() { @@ -38780,7 +38762,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.filters.BitmapFilter); - v.ConvolutionFilter = t; + w.ConvolutionFilter = v; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -38791,9 +38773,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.filters.DisplacementMapFilterMode"); + n("public flash.filters.DisplacementMapFilterMode"); } __extends(c, a); c.classInitializer = null; @@ -38817,85 +38799,85 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.asCoerceString, l = function(a) { - function d(a, c, h, g, f, b, e, l, k) { + var v = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + function d(a, c, g, h, f, b, e, l, p) { void 0 === a && (a = null); void 0 === c && (c = null); - void 0 === h && (h = 0); void 0 === g && (g = 0); + void 0 === h && (h = 0); void 0 === f && (f = 0); void 0 === b && (b = 0); void 0 === e && (e = "wrap"); void 0 === l && (l = 0); - void 0 === k && (k = 0); + void 0 === p && (p = 0); this.mapBitmap = a; this.mapPoint = c; - this.componentX = h; - this.componentY = g; + this.componentX = g; + this.componentY = h; this.scaleX = f; this.scaleY = b; this.mode = e; this.color = l; - this.alpha = k; + this.alpha = p; } __extends(d, a); d.FromUntyped = function(a) { return new d(a.mapBitmap, a.mapPoint, a.componentX, a.componentY, a.scaleX, a.scaleY, a.mode, a.color, a.alpha); }; Object.defineProperty(d.prototype, "mapBitmap", {get:function() { - t("public flash.filters.DisplacementMapFilter::get mapBitmap"); + v("public flash.filters.DisplacementMapFilter::get mapBitmap"); return this._mapBitmap; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set mapBitmap"); + v("public flash.filters.DisplacementMapFilter::set mapBitmap"); this._mapBitmap = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "mapPoint", {get:function() { - t("public flash.filters.DisplacementMapFilter::get mapPoint"); + v("public flash.filters.DisplacementMapFilter::get mapPoint"); return this._mapPoint; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set mapPoint"); + v("public flash.filters.DisplacementMapFilter::set mapPoint"); this._mapPoint = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "componentX", {get:function() { return this._componentX; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set componentX"); + v("public flash.filters.DisplacementMapFilter::set componentX"); this._componentX = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "componentY", {get:function() { return this._componentY; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set componentY"); + v("public flash.filters.DisplacementMapFilter::set componentY"); this._componentY = a >>> 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "scaleX", {get:function() { return this._scaleX; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set scaleX"); + v("public flash.filters.DisplacementMapFilter::set scaleX"); this._scaleX = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "scaleY", {get:function() { return this._scaleY; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set scaleY"); + v("public flash.filters.DisplacementMapFilter::set scaleY"); this._scaleY = +a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "mode", {get:function() { return this._mode; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set mode"); + v("public flash.filters.DisplacementMapFilter::set mode"); this._mode = u(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "color", {get:function() { return this._color; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set color"); + v("public flash.filters.DisplacementMapFilter::set color"); this._color = a >>> 0 & 16777215; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "alpha", {get:function() { return this._alpha; }, set:function(a) { - t("public flash.filters.DisplacementMapFilter::set alpha"); + v("public flash.filters.DisplacementMapFilter::set alpha"); this._alpha = +a; }, enumerable:!0, configurable:!0}); d.prototype.clone = function() { @@ -38918,30 +38900,30 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = function(a) { - function l(a, d, l, k, m, g, f, b, e, r, n) { + var v = function(a) { + function l(a, d, l, k, m, h, f, b, e, t, p) { void 0 === a && (a = 4); void 0 === d && (d = 45); void 0 === l && (l = 0); void 0 === k && (k = 1); void 0 === m && (m = 4); - void 0 === g && (g = 4); + void 0 === h && (h = 4); void 0 === f && (f = 1); void 0 === b && (b = 1); void 0 === e && (e = !1); - void 0 === r && (r = !1); - void 0 === n && (n = !1); + void 0 === t && (t = !1); + void 0 === p && (p = !1); this.distance = a; this.angle = d; this.color = l; this.alpha = k; this.blurX = m; - this.blurY = g; + this.blurY = h; this.strength = f; this.quality = b; this.inner = e; - this.knockout = r; - this.hideObject = n; + this.knockout = t; + this.hideObject = p; } __extends(l, a); l.FromUntyped = function(a) { @@ -39020,7 +39002,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.filters.BitmapFilter); - k.DropShadowFilter = t; + k.DropShadowFilter = v; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39031,14 +39013,14 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = function(a) { - function l(a, d, l, k, m, g, f, b) { + var v = function(a) { + function l(a, d, l, k, m, h, f, b) { void 0 === a && (a = 16711680); void 0 === d && (d = 1); void 0 === l && (l = 6); void 0 === k && (k = 6); void 0 === m && (m = 2); - void 0 === g && (g = 1); + void 0 === h && (h = 1); void 0 === f && (f = !1); void 0 === b && (b = !1); this.color = a; @@ -39046,7 +39028,7 @@ var RtmpJs; this.blurX = l; this.blurY = k; this.strength = m; - this.quality = g; + this.quality = h; this.inner = f; this.knockout = b; } @@ -39106,7 +39088,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.filters.BitmapFilter); - k.GlowFilter = t; + k.GlowFilter = v; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39116,46 +39098,46 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = function(l) { - function c(a, c, d, l, g, f, b, e, k, n, p) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = function(l) { + function c(a, c, d, l, h, f, b, e, k, p, n) { void 0 === a && (a = 4); void 0 === c && (c = 45); void 0 === d && (d = null); void 0 === l && (l = null); - void 0 === g && (g = null); + void 0 === h && (h = null); void 0 === f && (f = 4); void 0 === b && (b = 4); void 0 === e && (e = 1); void 0 === k && (k = 1); - void 0 === n && (n = "inner"); - void 0 === p && (p = !1); + void 0 === p && (p = "inner"); + void 0 === n && (n = !1); this.distance = a; this.angle = c; - v.GradientArrays.sanitize(d, l, g); - this._colors = v.GradientArrays.colors; - this._alphas = v.GradientArrays.alphas; - this._ratios = v.GradientArrays.ratios; + w.GradientArrays.sanitize(d, l, h); + this._colors = w.GradientArrays.colors; + this._alphas = w.GradientArrays.alphas; + this._ratios = w.GradientArrays.ratios; this.blurX = f; this.blurY = b; this.strength = e; this.quality = k; - this.type = n; - this.knockout = p; + this.type = p; + this.knockout = n; } __extends(c, l); c.FromUntyped = function(d) { for (var l = [], k = [], m = 0;m < d.colors.length;m++) { - var g = d.colors[m]; - l.push(g >>> 8); - k.push(g & 255) / 255; + var h = d.colors[m]; + l.push(h >>> 8); + k.push(h & 255) / 255; } m = a.filters.BitmapFilterType.OUTER; d.onTop ? m = a.filters.BitmapFilterType.FULL : d.inner && (m = a.filters.BitmapFilterType.INNER); return new c(d.distance, 180 * d.angle / Math.PI, l, k, d.ratios, d.blurX, d.blurY, d.strength, d.quality, m, d.knockout); }; c.prototype._updateFilterBounds = function(a) { - if (this.type !== v.BitmapFilterType.INNER && (v.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { + if (this.type !== w.BitmapFilterType.INNER && (w.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var c = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(c) * this._distance); a.y += Math.floor(Math.sin(c) * this._distance); @@ -39176,17 +39158,17 @@ var RtmpJs; Object.defineProperty(c.prototype, "colors", {get:function() { return this._colors.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "colors") : (this._colors = v.GradientArrays.sanitizeColors(a), a = this._colors.length, this._alphas = v.GradientArrays.sanitizeAlphas(this._alphas, a, a), this._ratios = v.GradientArrays.sanitizeRatios(this._ratios, a, a)); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "colors") : (this._colors = w.GradientArrays.sanitizeColors(a), a = this._colors.length, this._alphas = w.GradientArrays.sanitizeAlphas(this._alphas, a, a), this._ratios = w.GradientArrays.sanitizeRatios(this._ratios, a, a)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "alphas", {get:function() { return this._alphas.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "alphas") : (v.GradientArrays.sanitize(this._colors, a, this._ratios), this._colors = v.GradientArrays.colors, this._alphas = v.GradientArrays.alphas, this._ratios = v.GradientArrays.ratios); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "alphas") : (w.GradientArrays.sanitize(this._colors, a, this._ratios), this._colors = w.GradientArrays.colors, this._alphas = w.GradientArrays.alphas, this._ratios = w.GradientArrays.ratios); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ratios", {get:function() { return this._ratios.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "ratios") : (v.GradientArrays.sanitize(this._colors, this._alphas, a), this._colors = v.GradientArrays.colors, this._alphas = v.GradientArrays.alphas, this._ratios = v.GradientArrays.ratios); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "ratios") : (w.GradientArrays.sanitize(this._colors, this._alphas, a), this._colors = w.GradientArrays.colors, this._alphas = w.GradientArrays.alphas, this._ratios = w.GradientArrays.ratios); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "blurX", {get:function() { return this._blurX; @@ -39216,8 +39198,8 @@ var RtmpJs; Object.defineProperty(c.prototype, "type", {get:function() { return this._type; }, set:function(a) { - a = t(a); - null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === v.BitmapFilterType.INNER || a === v.BitmapFilterType.OUTER ? a : v.BitmapFilterType.FULL; + a = v(a); + null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === w.BitmapFilterType.INNER || a === w.BitmapFilterType.OUTER ? a : w.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); c.prototype.clone = function() { return new c(this._distance, this._angle, this._colors, this._alphas, this._ratios, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); @@ -39228,7 +39210,7 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.filters.BitmapFilter); - v.GradientBevelFilter = u; + w.GradientBevelFilter = u; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39238,46 +39220,46 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = function(l) { - function c(a, c, d, l, g, f, b, e, k, n, p) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = function(l) { + function c(a, c, d, l, h, f, b, e, k, p, n) { void 0 === a && (a = 4); void 0 === c && (c = 45); void 0 === d && (d = null); void 0 === l && (l = null); - void 0 === g && (g = null); + void 0 === h && (h = null); void 0 === f && (f = 4); void 0 === b && (b = 4); void 0 === e && (e = 1); void 0 === k && (k = 1); - void 0 === n && (n = "inner"); - void 0 === p && (p = !1); + void 0 === p && (p = "inner"); + void 0 === n && (n = !1); this.distance = a; this.angle = c; - v.GradientArrays.sanitize(d, l, g); - this._colors = v.GradientArrays.colors; - this._alphas = v.GradientArrays.alphas; - this._ratios = v.GradientArrays.ratios; + w.GradientArrays.sanitize(d, l, h); + this._colors = w.GradientArrays.colors; + this._alphas = w.GradientArrays.alphas; + this._ratios = w.GradientArrays.ratios; this.blurX = f; this.blurY = b; this.strength = e; this.quality = k; - this.type = n; - this.knockout = p; + this.type = p; + this.knockout = n; } __extends(c, l); c.FromUntyped = function(d) { for (var l = [], k = [], m = 0;m < d.colors.length;m++) { - var g = d.colors[m]; - l.push(g >>> 8); - k.push(g & 255) / 255; + var h = d.colors[m]; + l.push(h >>> 8); + k.push(h & 255) / 255; } m = a.filters.BitmapFilterType.OUTER; d.onTop ? m = a.filters.BitmapFilterType.FULL : d.inner && (m = a.filters.BitmapFilterType.INNER); return new c(d.distance, 180 * d.angle / Math.PI, l, k, d.ratios, d.blurX, d.blurY, d.strength, d.quality, m, d.knockout); }; c.prototype._updateFilterBounds = function(a) { - if (this.type !== v.BitmapFilterType.INNER && (v.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { + if (this.type !== w.BitmapFilterType.INNER && (w.BitmapFilter._updateBlurBounds(a, this._blurX, this._blurY, this._quality), 0 !== this._distance)) { var c = this._angle * Math.PI / 180; a.x += Math.floor(Math.cos(c) * this._distance); a.y += Math.floor(Math.sin(c) * this._distance); @@ -39298,17 +39280,17 @@ var RtmpJs; Object.defineProperty(c.prototype, "colors", {get:function() { return this._colors.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "colors") : (this._colors = v.GradientArrays.sanitizeColors(a), a = this._colors.length, this._alphas = v.GradientArrays.sanitizeAlphas(this._alphas, a, a), this._ratios = v.GradientArrays.sanitizeRatios(this._ratios, a, a)); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "colors") : (this._colors = w.GradientArrays.sanitizeColors(a), a = this._colors.length, this._alphas = w.GradientArrays.sanitizeAlphas(this._alphas, a, a), this._ratios = w.GradientArrays.sanitizeRatios(this._ratios, a, a)); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "alphas", {get:function() { return this._alphas.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "alphas") : (v.GradientArrays.sanitize(this._colors, a, this._ratios), this._colors = v.GradientArrays.colors, this._alphas = v.GradientArrays.alphas, this._ratios = v.GradientArrays.ratios); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "alphas") : (w.GradientArrays.sanitize(this._colors, a, this._ratios), this._colors = w.GradientArrays.colors, this._alphas = w.GradientArrays.alphas, this._ratios = w.GradientArrays.ratios); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "ratios", {get:function() { return this._ratios.concat(); }, set:function(a) { - d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "ratios") : (v.GradientArrays.sanitize(this._colors, this._alphas, a), this._colors = v.GradientArrays.colors, this._alphas = v.GradientArrays.alphas, this._ratios = v.GradientArrays.ratios); + d.isNullOrUndefined(a) ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "ratios") : (w.GradientArrays.sanitize(this._colors, this._alphas, a), this._colors = w.GradientArrays.colors, this._alphas = w.GradientArrays.alphas, this._ratios = w.GradientArrays.ratios); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "blurX", {get:function() { return this._blurX; @@ -39338,8 +39320,8 @@ var RtmpJs; Object.defineProperty(c.prototype, "type", {get:function() { return this._type; }, set:function(a) { - a = t(a); - null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === v.BitmapFilterType.INNER || a === v.BitmapFilterType.OUTER ? a : v.BitmapFilterType.FULL; + a = v(a); + null === a ? k.Runtime.throwError("TypeError", k.Errors.NullPointerError, "type") : this._type = a === w.BitmapFilterType.INNER || a === w.BitmapFilterType.OUTER ? a : w.BitmapFilterType.FULL; }, enumerable:!0, configurable:!0}); c.prototype.clone = function() { return new c(this._distance, this._angle, this._colors, this._alphas, this._ratios, this._blurX, this._blurY, this._strength, this._quality, this._type, this._knockout); @@ -39350,7 +39332,7 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.filters.BitmapFilter); - v.GradientGlowFilter = u; + w.GradientGlowFilter = u; })(a.filters || (a.filters = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39361,20 +39343,20 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.IntegerUtilities.toS16, u = d.IntegerUtilities.clampS8U8, l = function(a) { - function d(a, c, h, g, f, b, e, l) { + var n = d.IntegerUtilities.toS16, u = d.IntegerUtilities.clampS8U8, l = function(a) { + function d(a, c, g, h, f, b, e, l) { void 0 === a && (a = 1); void 0 === c && (c = 1); - void 0 === h && (h = 1); void 0 === g && (g = 1); + void 0 === h && (h = 1); void 0 === f && (f = 0); void 0 === b && (b = 0); void 0 === e && (e = 0); void 0 === l && (l = 0); this.redMultiplier = +a; this.greenMultiplier = +c; - this.blueMultiplier = +h; - this.alphaMultiplier = +g; + this.blueMultiplier = +g; + this.alphaMultiplier = +h; this.redOffset = +f; this.greenOffset = +b; this.blueOffset = +e; @@ -39421,23 +39403,23 @@ var RtmpJs; }, set:function(a) { this.alphaOffset = +a; }, enumerable:!0, configurable:!0}); - d.prototype.ColorTransform = function(a, c, d, g, f, b, e, h) { + d.prototype.ColorTransform = function(a, c, d, h, f, b, e, g) { void 0 === a && (a = 1); void 0 === c && (c = 1); void 0 === d && (d = 1); - void 0 === g && (g = 1); + void 0 === h && (h = 1); void 0 === f && (f = 0); void 0 === b && (b = 0); void 0 === e && (e = 0); - void 0 === h && (h = 0); + void 0 === g && (g = 0); this.redMultiplier = a; this.greenMultiplier = c; this.blueMultiplier = d; - this.alphaMultiplier = g; + this.alphaMultiplier = h; this.redOffset = f; this.greenOffset = b; this.blueOffset = e; - this.alphaOffset = h; + this.alphaOffset = g; }; Object.defineProperty(d.prototype, "color", {get:function() { return this.redOffset << 16 | this.greenOffset << 8 | this.blueOffset; @@ -39487,15 +39469,15 @@ var RtmpJs; this.blueOffset = a.blueOffset; this.alphaOffset = a.alphaOffset; }; - d.prototype.setTo = function(a, c, d, g, f, b, e, h) { + d.prototype.setTo = function(a, c, d, h, f, b, e, g) { this.redMultiplier = a; this.greenMultiplier = c; this.blueMultiplier = d; - this.alphaMultiplier = g; + this.alphaMultiplier = h; this.redOffset = f; this.greenOffset = b; this.blueOffset = e; - this.alphaOffset = h; + this.alphaOffset = g; }; d.prototype.clone = function() { return new d(this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset); @@ -39505,11 +39487,10 @@ var RtmpJs; this.greenMultiplier = u(this.greenMultiplier); this.blueMultiplier = u(this.blueMultiplier); this.alphaMultiplier = u(this.alphaMultiplier); - this.redOffset = p(this.redOffset); - this.greenOffset = p(this.greenOffset); - this.blueOffset = p(this.blueOffset); - this.alphaOffset = p(this.alphaOffset); - return this; + this.redOffset = n(this.redOffset); + this.greenOffset = n(this.greenOffset); + this.blueOffset = n(this.blueOffset); + this.alphaOffset = n(this.alphaOffset); }; d.prototype.toString = function() { return "(redMultiplier=" + this.redMultiplier + ", greenMultiplier=" + this.greenMultiplier + ", blueMultiplier=" + this.blueMultiplier + ", alphaMultiplier=" + this.alphaMultiplier + ", redOffset=" + this.redOffset + ", greenOffset=" + this.greenOffset + ", blueOffset=" + this.blueOffset + ", alphaOffset=" + this.alphaOffset + ")"; @@ -39533,96 +39514,96 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { function c() { u("public flash.media.Camera"); } __extends(c, a); Object.defineProperty(c.prototype, "names", {get:function() { - t("public flash.media.Camera::get names"); + v("public flash.media.Camera::get names"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "isSupported", {get:function() { - t("public flash.media.Camera::get isSupported"); + v("public flash.media.Camera::get isSupported"); }, enumerable:!0, configurable:!0}); c.getCamera = function(a) { void 0 === a && (a = null); l(a); - t("public flash.media.Camera::static getCamera"); + v("public flash.media.Camera::static getCamera"); }; c._scanHardware = function() { - t("public flash.media.Camera::static _scanHardware"); + v("public flash.media.Camera::static _scanHardware"); }; Object.defineProperty(c.prototype, "activityLevel", {get:function() { - t("public flash.media.Camera::get activityLevel"); + v("public flash.media.Camera::get activityLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "bandwidth", {get:function() { - t("public flash.media.Camera::get bandwidth"); + v("public flash.media.Camera::get bandwidth"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "currentFPS", {get:function() { - t("public flash.media.Camera::get currentFPS"); + v("public flash.media.Camera::get currentFPS"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "fps", {get:function() { - t("public flash.media.Camera::get fps"); + v("public flash.media.Camera::get fps"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "height", {get:function() { - t("public flash.media.Camera::get height"); + v("public flash.media.Camera::get height"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "index", {get:function() { - t("public flash.media.Camera::get index"); + v("public flash.media.Camera::get index"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "keyFrameInterval", {get:function() { - t("public flash.media.Camera::get keyFrameInterval"); + v("public flash.media.Camera::get keyFrameInterval"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "loopback", {get:function() { - t("public flash.media.Camera::get loopback"); + v("public flash.media.Camera::get loopback"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "motionLevel", {get:function() { - t("public flash.media.Camera::get motionLevel"); + v("public flash.media.Camera::get motionLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "motionTimeout", {get:function() { - t("public flash.media.Camera::get motionTimeout"); + v("public flash.media.Camera::get motionTimeout"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "muted", {get:function() { - t("public flash.media.Camera::get muted"); + v("public flash.media.Camera::get muted"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "name", {get:function() { - t("public flash.media.Camera::get name"); + v("public flash.media.Camera::get name"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "position", {get:function() { - t("public flash.media.Camera::get position"); + v("public flash.media.Camera::get position"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "quality", {get:function() { - t("public flash.media.Camera::get quality"); + v("public flash.media.Camera::get quality"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "width", {get:function() { - t("public flash.media.Camera::get width"); + v("public flash.media.Camera::get width"); }, enumerable:!0, configurable:!0}); c.prototype.setCursor = function(a) { - t("public flash.media.Camera::setCursor"); + v("public flash.media.Camera::setCursor"); }; c.prototype.setKeyFrameInterval = function(a) { - t("public flash.media.Camera::setKeyFrameInterval"); + v("public flash.media.Camera::setKeyFrameInterval"); }; c.prototype.setLoopback = function(a) { - t("public flash.media.Camera::setLoopback"); + v("public flash.media.Camera::setLoopback"); }; c.prototype.setMode = function(a, c, d, f) { - t("public flash.media.Camera::setMode"); + v("public flash.media.Camera::setMode"); }; c.prototype.setMotionLevel = function(a, c) { - t("public flash.media.Camera::setMotionLevel"); + v("public flash.media.Camera::setMotionLevel"); }; c.prototype.setQuality = function(a, c) { - t("public flash.media.Camera::setQuality"); + v("public flash.media.Camera::setQuality"); }; c.prototype.drawToBitmapData = function(a) { - t("public flash.media.Camera::drawToBitmapData"); + v("public flash.media.Camera::drawToBitmapData"); }; c.prototype.copyToByteArray = function(a, c) { - t("public flash.media.Camera::copyToByteArray"); + v("public flash.media.Camera::copyToByteArray"); }; c.prototype.copyToVector = function(a, c) { - t("public flash.media.Camera::copyToVector"); + v("public flash.media.Camera::copyToVector"); }; c.classInitializer = null; c.initializer = null; @@ -39641,9 +39622,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.media.ID3Info"); + n("public flash.media.ID3Info"); } __extends(c, a); c.classInitializer = null; @@ -39663,100 +39644,100 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.Debug.dummyConstructor, c = d.AVM2.Runtime.asCoerceString, h = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.Debug.dummyConstructor, c = d.AVM2.Runtime.asCoerceString, g = function(a) { function d() { l("public flash.media.Microphone"); } __extends(d, a); Object.defineProperty(d, "names", {get:function() { u("public flash.media.Microphone::get names"); - return[]; + return []; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "isSupported", {get:function() { u("public flash.media.Microphone::get isSupported"); - return!1; + return !1; }, enumerable:!0, configurable:!0}); d.getMicrophone = function(a) { - t("public flash.media.Microphone::static getMicrophone"); + v("public flash.media.Microphone::static getMicrophone"); }; d.getEnhancedMicrophone = function(a) { - t("public flash.media.Microphone::static getEnhancedMicrophone"); + v("public flash.media.Microphone::static getEnhancedMicrophone"); }; Object.defineProperty(d.prototype, "rate", {get:function() { - t("public flash.media.Microphone::get rate"); + v("public flash.media.Microphone::get rate"); }, set:function(a) { - t("public flash.media.Microphone::set rate"); + v("public flash.media.Microphone::set rate"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "codec", {get:function() { - t("public flash.media.Microphone::get codec"); + v("public flash.media.Microphone::get codec"); }, set:function(a) { c(a); - t("public flash.media.Microphone::set codec"); + v("public flash.media.Microphone::set codec"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "framesPerPacket", {get:function() { - t("public flash.media.Microphone::get framesPerPacket"); + v("public flash.media.Microphone::get framesPerPacket"); }, set:function(a) { - t("public flash.media.Microphone::set framesPerPacket"); + v("public flash.media.Microphone::set framesPerPacket"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "encodeQuality", {get:function() { - t("public flash.media.Microphone::get encodeQuality"); + v("public flash.media.Microphone::get encodeQuality"); }, set:function(a) { - t("public flash.media.Microphone::set encodeQuality"); + v("public flash.media.Microphone::set encodeQuality"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "noiseSuppressionLevel", {get:function() { - t("public flash.media.Microphone::get noiseSuppressionLevel"); + v("public flash.media.Microphone::get noiseSuppressionLevel"); }, set:function(a) { - t("public flash.media.Microphone::set noiseSuppressionLevel"); + v("public flash.media.Microphone::set noiseSuppressionLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "enableVAD", {get:function() { - t("public flash.media.Microphone::get enableVAD"); + v("public flash.media.Microphone::get enableVAD"); }, set:function(a) { - t("public flash.media.Microphone::set enableVAD"); + v("public flash.media.Microphone::set enableVAD"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "activityLevel", {get:function() { - t("public flash.media.Microphone::get activityLevel"); + v("public flash.media.Microphone::get activityLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "gain", {get:function() { - t("public flash.media.Microphone::get gain"); + v("public flash.media.Microphone::get gain"); }, set:function(a) { - t("public flash.media.Microphone::set gain"); + v("public flash.media.Microphone::set gain"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "index", {get:function() { - t("public flash.media.Microphone::get index"); + v("public flash.media.Microphone::get index"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "muted", {get:function() { - t("public flash.media.Microphone::get muted"); + v("public flash.media.Microphone::get muted"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "name", {get:function() { - t("public flash.media.Microphone::get name"); + v("public flash.media.Microphone::get name"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "silenceLevel", {get:function() { - t("public flash.media.Microphone::get silenceLevel"); + v("public flash.media.Microphone::get silenceLevel"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "silenceTimeout", {get:function() { - t("public flash.media.Microphone::get silenceTimeout"); + v("public flash.media.Microphone::get silenceTimeout"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "useEchoSuppression", {get:function() { - t("public flash.media.Microphone::get useEchoSuppression"); + v("public flash.media.Microphone::get useEchoSuppression"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "soundTransform", {get:function() { - t("public flash.media.Microphone::get soundTransform"); + v("public flash.media.Microphone::get soundTransform"); }, set:function(a) { - t("public flash.media.Microphone::set soundTransform"); + v("public flash.media.Microphone::set soundTransform"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "enhancedOptions", {get:function() { - t("public flash.media.Microphone::get enhancedOptions"); + v("public flash.media.Microphone::get enhancedOptions"); }, set:function(a) { - t("public flash.media.Microphone::set enhancedOptions"); + v("public flash.media.Microphone::set enhancedOptions"); }, enumerable:!0, configurable:!0}); d.prototype.setSilenceLevel = function(a, c) { - t("public flash.media.Microphone::setSilenceLevel"); + v("public flash.media.Microphone::setSilenceLevel"); }; d.prototype.setUseEchoSuppression = function(a) { - t("public flash.media.Microphone::setUseEchoSuppression"); + v("public flash.media.Microphone::setUseEchoSuppression"); }; d.prototype.setLoopBack = function(a) { - t("public flash.media.Microphone::setLoopBack"); + v("public flash.media.Microphone::setLoopBack"); }; d.classInitializer = null; d.initializer = null; @@ -39764,7 +39745,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.events.EventDispatcher); - k.Microphone = h; + k.Microphone = g; })(a.media || (a.media = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39774,118 +39755,118 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - function t(a, c) { + (function(w) { + function v(a, c) { var f = document.createElement("audio"); f.canPlayType(a.mimeType) ? (f.preload = "metadata", f.src = URL.createObjectURL(new Blob([a.data], {type:a.mimeType})), f.load(), f.addEventListener("loadedmetadata", function() { c({duration:1E3 * this.duration}); })) : c({duration:0}); } - var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.AVM2.ABC.Multiname, q = function() { + var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.AVM2.ABC.Multiname, q = function() { return function() { }; - }(), s = function(m) { - function g(a, b) { + }(), r = function(m) { + function h(a, b) { k.events.EventDispatcher.instanceConstructorNoInitialize.call(this); this._isBuffering = this._isURLInaccessible = !1; this.load(a, b); } - __extends(g, m); - Object.defineProperty(g.prototype, "url", {get:function() { + __extends(h, m); + Object.defineProperty(h.prototype, "url", {get:function() { return this._url; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "isURLInaccessible", {get:function() { + Object.defineProperty(h.prototype, "isURLInaccessible", {get:function() { c("public flash.media.Sound::get isURLInaccessible"); return this._isURLInaccessible; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "length", {get:function() { + Object.defineProperty(h.prototype, "length", {get:function() { return this._length; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "isBuffering", {get:function() { + Object.defineProperty(h.prototype, "isBuffering", {get:function() { c("public flash.media.Sound::get isBuffering"); return this._isBuffering; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "bytesLoaded", {get:function() { + Object.defineProperty(h.prototype, "bytesLoaded", {get:function() { return this._bytesLoaded; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "bytesTotal", {get:function() { + Object.defineProperty(h.prototype, "bytesTotal", {get:function() { return this._bytesTotal; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "id3", {get:function() { + Object.defineProperty(h.prototype, "id3", {get:function() { return this._id3; }, enumerable:!0, configurable:!0}); - g.prototype.loadCompressedDataFromByteArray = function(a, b) { + h.prototype.loadCompressedDataFromByteArray = function(a, b) { u("public flash.media.Sound::loadCompressedDataFromByteArray"); }; - g.prototype.loadPCMFromByteArray = function(a, b, e, c, d) { + h.prototype.loadPCMFromByteArray = function(a, b, e, c, d) { void 0 === e && (e = "float"); l(e); u("public flash.media.Sound::loadPCMFromByteArray"); }; - g.prototype.play = function(c, b, e) { + h.prototype.play = function(c, b, e) { void 0 === c && (c = 0); void 0 === b && (b = 0); void 0 === e && (e = null); c = +c; b |= 0; - var g = new k.media.SoundChannel; - g._sound = this; - g._soundTransform = d.isNullOrUndefined(e) ? new k.media.SoundTransform : e; - this._playQueue.push({channel:g, startTime:c}); + var h = new k.media.SoundChannel; + h._sound = this; + h._soundTransform = d.isNullOrUndefined(e) ? new k.media.SoundTransform : e; + this._playQueue.push({channel:h, startTime:c}); if (a.disableAudioOption.value) { - return g; + return h; } - this._soundData && (a.webAudioOption.value || a.webAudioMP3Option.value ? this._soundData.pcm ? g._playSoundDataViaChannel(this._soundData, c, b) : "audio/mpeg" === this._soundData.mimeType && a.webAudioMP3Option.value ? d.SWF.MP3DecoderSession.processAll(new Uint8Array(this._soundData.data)).then(function(a) { + this._soundData && (a.webAudioOption.value || a.webAudioMP3Option.value ? this._soundData.pcm ? h._playSoundDataViaChannel(this._soundData, c, b) : "audio/mpeg" === this._soundData.mimeType && a.webAudioMP3Option.value ? d.SWF.MP3DecoderSession.processAll(new Uint8Array(this._soundData.data)).then(function(a) { this._soundData.pcm = a.data; this._soundData.end = a.data.length; - g._playSoundDataViaChannel(this._soundData, c, b); + h._playSoundDataViaChannel(this._soundData, c, b); }.bind(this), function(a) { console.warn("Unable to decode MP3 data: " + a); - }) : console.warn("Unable to decode packaged sound data of type: " + this._soundData.mimeType) : g._playSoundDataViaAudio(this._soundData, c, b)); - return g; + }) : console.warn("Unable to decode packaged sound data of type: " + this._soundData.mimeType) : h._playSoundDataViaAudio(this._soundData, c, b)); + return h; }; - g.prototype.close = function() { + h.prototype.close = function() { c("public flash.media.Sound::close"); }; - g.prototype.extract = function(a, b, e) { + h.prototype.extract = function(a, b, e) { u("public flash.media.Sound::extract"); }; - g.prototype.load = function(c, b) { + h.prototype.load = function(c, b) { if (c) { - var e = this, d = this._stream = new k.net.URLStream, g = new k.utils.ByteArray, l = 0, m = a.webAudioOption.value, s = null, u = new q; + var e = this, d = this._stream = new k.net.URLStream, h = new k.utils.ByteArray, l = 0, m = a.webAudioOption.value, r = null, u = new q; u.completed = !1; d.addEventListener("progress", function(a) { - e._bytesLoaded = a[h.getPublicQualifiedName("bytesLoaded")]; - e._bytesTotal = a[h.getPublicQualifiedName("bytesTotal")]; - m && !s && (s = decodeMP3(u, function(a, b) { + e._bytesLoaded = a[g.getPublicQualifiedName("bytesLoaded")]; + e._bytesTotal = a[g.getPublicQualifiedName("bytesTotal")]; + m && !r && (r = decodeMP3(u, function(a, b) { 0 === e._length && (e._soundData = u, e._playQueue.forEach(function(a) { a.channel._playSoundDataViaChannel(u, a.startTime); })); - e._length = b ? 1E3 * a : 1E3 * Math.max(a, s.estimateDuration(e._bytesTotal)); + e._length = b ? 1E3 * a : 1E3 * Math.max(a, r.estimateDuration(e._bytesTotal)); })); var b = d.bytesAvailable; - d.readBytes(g, l, b); - s && s.pushData(new Uint8Array(g._buffer, l, b)); + d.readBytes(h, l, b); + r && r.pushData(new Uint8Array(h._buffer, l, b)); l += b; e.dispatchEvent(a); }); d.addEventListener("complete", function(a) { e.dispatchEvent(a); - u.data = g._buffer; + u.data = h._buffer; u.mimeType = "audio/mpeg"; u.completed = !0; - m || (e._soundData = u, t(u, function(a) { + m || (e._soundData = u, v(u, function(a) { e._length = a.duration; }), e._playQueue.forEach(function(a) { a.channel._playSoundDataViaAudio(u, a.startTime); })); - s && s.close(); + r && r.close(); }); d.load(c); } }; - g.classInitializer = null; - g.initializer = function(a) { + h.classInitializer = null; + h.initializer = function(a) { this._playQueue = []; this._url = null; this._bytesLoaded = this._bytesTotal = this._length = 0; @@ -39898,18 +39879,18 @@ var RtmpJs; a.pcm && (b.pcm = a.pcm, b.end = a.pcm.length); a.packaged && (b.data = a.packaged.data.buffer, b.mimeType = a.packaged.mimeType); var e = this; - t(b, function(a) { + v(b, function(a) { e._length = a.duration; }); this._soundData = b; } }; - g.classSymbols = null; - g.instanceSymbols = null; - return g; + h.classSymbols = null; + h.instanceSymbols = null; + return h; }(k.events.EventDispatcher); - v.Sound = s; - s = function(a) { + w.Sound = r; + r = function(a) { function c(f) { a.call(this, f, k.media.Sound); } @@ -39924,7 +39905,7 @@ var RtmpJs; }; return c; }(d.Timeline.Symbol); - v.SoundSymbol = s; + w.SoundSymbol = r; })(k.media || (k.media = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -39935,7 +39916,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = d.Debug.somewhatImplemented, l = d.Debug.error, c = function() { + var v = d.Debug.dummyConstructor, u = d.Debug.somewhatImplemented, l = d.Debug.error, c = function() { function a(c, d) { this._sourceRate = c; this._targetRate = d; @@ -39943,27 +39924,27 @@ var RtmpJs; this._sourceOffset = 0; } a.prototype.getData = function(a, c) { - for (var f = this._sourceRate / this._targetRate, b = this._sourceOffset, e = Math.ceil((c - 1) * f + b) + 1, d = [], h = 0;h < a.length;h++) { + for (var f = this._sourceRate / this._targetRate, b = this._sourceOffset, e = Math.ceil((c - 1) * f + b) + 1, d = [], g = 0;g < a.length;g++) { d.push(new Float32Array(e)); } this.ondatarequested({data:d, count:e}); - for (h = 0;h < a.length;h++) { - for (var l = a[h], k = d[h], q = 0;q < c;q++) { - var p = q * f + b, s = p | 0, t = Math.ceil(p) | 0, u = 0 > s ? this._tail[h] : k[s]; - s === t ? l[q] = u : (p -= s, l[q] = u * (1 - p) + k[t] * p); + for (g = 0;g < a.length;g++) { + for (var l = a[g], k = d[g], n = 0;n < c;n++) { + var q = n * f + b, r = q | 0, v = Math.ceil(q) | 0, u = 0 > r ? this._tail[g] : k[r]; + r === v ? l[n] = u : (q -= r, l[n] = u * (1 - q) + k[v] * q); } - this._tail[h] = k[e - 1]; + this._tail[g] = k[e - 1]; } this._sourceOffset = (c - 1) * f + b - (e - 1); }; return a; - }(), h = function() { - function a(d, g) { + }(), g = function() { + function a(d, h) { var f = a._cachedContext; f || (f = new AudioContext, a._cachedContext = f); this._context = f; this._contextSampleRate = f.sampleRate || 44100; - this._channels = g; + this._channels = h; this._sampleRate = d; this._contextSampleRate !== d && (this._resampler = new c(d, this._contextSampleRate), this._resampler.ondatarequested = function(a) { this.requestData(a.data, a.count); @@ -39990,8 +39971,8 @@ var RtmpJs; var f = this._channels, b = new Float32Array(c * f); this.ondatarequested({data:b, count:b.length}); for (var e = 0, d = 0;e < c;e++) { - for (var h = 0;h < f;h++) { - a[h][e] = b[d++]; + for (var g = 0;g < f;g++) { + a[g][e] = b[d++]; } } }; @@ -40001,7 +39982,7 @@ var RtmpJs; return a; }(), q = function(c) { function m() { - t("public flash.media.SoundChannel"); + v("public flash.media.SoundChannel"); } __extends(m, c); Object.defineProperty(m.prototype, "position", {get:function() { @@ -40020,49 +40001,53 @@ var RtmpJs; Object.defineProperty(m.prototype, "rightPeak", {get:function() { return this._rightPeak; }, enumerable:!0, configurable:!0}); + Object.defineProperty(m.prototype, "playing", {get:function() { + return this._playing; + }, enumerable:!0, configurable:!0}); m.prototype.stop = function() { - this._element && (k.SoundMixer._unregisterSoundSource(this), this._element.loop = !1, this._element.pause(), this._element.removeAttribute("src")); - this._audioChannel && (k.SoundMixer._unregisterSoundSource(this), this._audioChannel.stop()); + this._element && (k.SoundMixer._unregisterSoundSource(this), this._element.loop = !1, this._element.pause(), this._element.removeAttribute("src"), this._playing = !1); + this._audioChannel && (k.SoundMixer._unregisterSoundSource(this), this._audioChannel.stop(), this._playing = !1); }; m.prototype._playSoundDataViaAudio = function(c, f, b) { if (c.mimeType) { k.SoundMixer._registerSoundSource(this); this._position = f; - var e = this, d = 0, h = document.createElement("audio"); - h.canPlayType(c.mimeType) ? (h.preload = "metadata", h.loop = 0 < b, h.src = URL.createObjectURL(new Blob([c.data], {type:c.mimeType})), h.addEventListener("loadeddata", function() { - h.currentTime = f / 1E3; - h.play(); - }), h.addEventListener("timeupdate", function() { - var a = h.currentTime; - b && d > a && (--b, b || (h.loop = !1), a < f / 1E3 && (h.currentTime = f / 1E3)); + var e = this, d = 0, g = document.createElement("audio"); + g.canPlayType(c.mimeType) ? (g.preload = "metadata", g.loop = 0 < b, g.src = URL.createObjectURL(new Blob([c.data], {type:c.mimeType})), g.addEventListener("loadeddata", function() { + g.currentTime = f / 1E3; + g.play(); + }), g.addEventListener("timeupdate", function() { + var a = g.currentTime; + b && d > a && (--b, b || (g.loop = !1), a < f / 1E3 && (g.currentTime = f / 1E3)); e._position = 1E3 * (d = a); - }), h.addEventListener("ended", function() { + }), g.addEventListener("ended", function() { k.SoundMixer._unregisterSoundSource(e); - e.dispatchEvent(new a.events.Event("soundComplete", !1, !1)); e._element = null; - }), this._element = h, k.SoundMixer._updateSoundSource(this)) : console.error('ERROR: "' + c.mimeType + '" type playback is not supported by the browser'); + e._playing = !1; + e.dispatchEvent(new a.events.Event("soundComplete", !1, !1)); + }), this._element = g, this._playing = !0, k.SoundMixer._updateSoundSource(this)) : console.error('ERROR: "' + c.mimeType + '" type playback is not supported by the browser'); } }; m.prototype._playSoundDataViaChannel = function(c, f, b) { k.SoundMixer._registerSoundSource(this); var e = this, d = Math.round(f / 1E3 * c.sampleRate) * c.channels, m = d; this._position = f; - h.isSupported ? f = new h(c.sampleRate, c.channels) : (l("PCM data playback is not supported by the browser"), f = void 0); + g.isSupported ? f = new g(c.sampleRate, c.channels) : (l("PCM data playback is not supported by the browser"), f = void 0); this._audioChannel = f; this._audioChannel.ondatarequested = function(f) { - var h = c.end; - if (m >= h && c.completed) { - k.SoundMixer._unregisterSoundSource(this), e._audioChannel.stop(), e.dispatchEvent(new a.events.Event("soundComplete", !1, !1)); + var g = c.end; + if (m >= g && c.completed) { + k.SoundMixer._unregisterSoundSource(this), e._audioChannel.stop(), e._playing = !1, e.dispatchEvent(new a.events.Event("soundComplete", !1, !1)); } else { var l = f.count; f = f.data; var q = c.pcm; do { - for (var s = Math.min(h - m, l), t = 0;t < s;t++) { - f[t] = q[m++]; + for (var r = Math.min(g - m, l), v = 0;v < r;v++) { + f[v] = q[m++]; } - l -= s; - if (m >= h) { + l -= r; + if (m >= g) { if (!b) { break; } @@ -40074,6 +40059,7 @@ var RtmpJs; } }; this._audioChannel.start(); + this._playing = !0; k.SoundMixer._updateSoundSource(this); }; m.prototype.stopSound = function() { @@ -40089,6 +40075,7 @@ var RtmpJs; this._rightPeak = this._leftPeak = this._position = 0; this._pcmData = null; this._soundTransform = new a.media.SoundTransform; + this._playing = !1; }; m.classSymbols = null; m.instanceSymbols = null; @@ -40105,9 +40092,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c(a, c) { - p("public flash.media.SoundLoaderContext"); + n("public flash.media.SoundLoaderContext"); } __extends(c, a); c.classInitializer = null; @@ -40126,45 +40113,45 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = function(a) { - function h() { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = function(a) { + function g() { u("public flash.media.SoundMixer"); } - __extends(h, a); - Object.defineProperty(h, "bufferTime", {get:function() { - t("public flash.media.SoundMixer::get bufferTime"); - return h._bufferTime; + __extends(g, a); + Object.defineProperty(g, "bufferTime", {get:function() { + v("public flash.media.SoundMixer::get bufferTime"); + return g._bufferTime; }, set:function(a) { c("public flash.media.SoundMixer::set bufferTime"); - h._bufferTime = a | 0; + g._bufferTime = a | 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "soundTransform", {get:function() { + Object.defineProperty(g, "soundTransform", {get:function() { c("public flash.media.SoundMixer::get soundTransform"); - return d.isNullOrUndefined(h._soundTransform) ? new k.media.SoundTransform : new k.media.SoundTransform(h._soundTransform.volume, h._soundTransform.pan); + return d.isNullOrUndefined(g._soundTransform) ? new k.media.SoundTransform : new k.media.SoundTransform(g._soundTransform.volume, g._soundTransform.pan); }, set:function(a) { c("public flash.media.SoundMixer::set soundTransform"); - h._soundTransform = d.isNullOrUndefined(a) ? new k.media.SoundTransform : a; - h._updateAllSoundSources(); + g._soundTransform = d.isNullOrUndefined(a) ? new k.media.SoundTransform : a; + g._updateAllSoundSources(); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "audioPlaybackMode", {get:function() { - t("public flash.media.SoundMixer::get audioPlaybackMode"); + Object.defineProperty(g, "audioPlaybackMode", {get:function() { + v("public flash.media.SoundMixer::get audioPlaybackMode"); }, set:function(a) { l(a); - t("public flash.media.SoundMixer::set audioPlaybackMode"); + v("public flash.media.SoundMixer::set audioPlaybackMode"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "useSpeakerphoneForVoice", {get:function() { - t("public flash.media.SoundMixer::get useSpeakerphoneForVoice"); + Object.defineProperty(g, "useSpeakerphoneForVoice", {get:function() { + v("public flash.media.SoundMixer::get useSpeakerphoneForVoice"); }, set:function(a) { - t("public flash.media.SoundMixer::set useSpeakerphoneForVoice"); + v("public flash.media.SoundMixer::set useSpeakerphoneForVoice"); }, enumerable:!0, configurable:!0}); - h.stopAll = function() { - h._registeredSoundSources.forEach(function(a) { + g.stopAll = function() { + g._registeredSoundSources.forEach(function(a) { a.stopSound(); }); - h._registeredSoundSources = []; + g._registeredSoundSources = []; }; - h.computeSpectrum = function(a, d, f) { + g.computeSpectrum = function(a, d, f) { c("public flash.media.SoundMixer::static computeSpectrum"); d = new Float32Array(1024); for (f = 0;1024 > f;f++) { @@ -40173,42 +40160,42 @@ var RtmpJs; a.writeRawBytes(d); a.position = 0; }; - h.areSoundsInaccessible = function() { - t("public flash.media.SoundMixer::static areSoundsInaccessible"); + g.areSoundsInaccessible = function() { + v("public flash.media.SoundMixer::static areSoundsInaccessible"); }; - h._getMasterVolume = function() { - return h._masterVolume; + g._getMasterVolume = function() { + return g._masterVolume; }; - h._setMasterVolume = function(a) { - h._masterVolume = +a; - h._updateAllSoundSources(); + g._setMasterVolume = function(a) { + g._masterVolume = +a; + g._updateAllSoundSources(); }; - h._registerSoundSource = function(a) { - h._registeredSoundSources.push(a); + g._registerSoundSource = function(a) { + g._registeredSoundSources.push(a); }; - h._unregisterSoundSource = function(a) { - a = h._registeredSoundSources.indexOf(a); - 0 <= a && h._registeredSoundSources.splice(a, 1); + g._unregisterSoundSource = function(a) { + a = g._registeredSoundSources.indexOf(a); + 0 <= a && g._registeredSoundSources.splice(a, 1); }; - h._updateSoundSource = function(a) { + g._updateSoundSource = function(a) { var c = a.soundTransform.volume; - h._soundTransform && (c *= h._soundTransform.volume); - c *= h._getMasterVolume(); + g._soundTransform && (c *= g._soundTransform.volume); + c *= g._getMasterVolume(); a.updateSoundLevels(c); }; - h._updateAllSoundSources = function() { - h._registeredSoundSources.forEach(h._updateSoundSource); + g._updateAllSoundSources = function() { + g._registeredSoundSources.forEach(g._updateSoundSource); }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h._masterVolume = 1; - h._registeredSoundSources = []; - h._bufferTime = 0; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g._masterVolume = 1; + g._registeredSoundSources = []; + g._bufferTime = 0; + return g; }(a.ASNative); - v.SoundMixer = h; + w.SoundMixer = g; })(k.media || (k.media = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -40219,9 +40206,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.Debug.somewhatImplemented, l = function(a) { + var n = d.Debug.dummyConstructor, u = d.Debug.somewhatImplemented, l = function(a) { function d(a, c) { - p("public flash.media.SoundTransform"); + n("public flash.media.SoundTransform"); } __extends(d, a); Object.defineProperty(d.prototype, "volume", {get:function() { @@ -40282,45 +40269,45 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.media.StageVideo"); } __extends(d, a); Object.defineProperty(d.prototype, "viewPort", {get:function() { - t("public flash.media.StageVideo::get viewPort"); + v("public flash.media.StageVideo::get viewPort"); }, set:function(a) { - t("public flash.media.StageVideo::set viewPort"); + v("public flash.media.StageVideo::set viewPort"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "pan", {get:function() { - t("public flash.media.StageVideo::get pan"); + v("public flash.media.StageVideo::get pan"); }, set:function(a) { - t("public flash.media.StageVideo::set pan"); + v("public flash.media.StageVideo::set pan"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "zoom", {get:function() { - t("public flash.media.StageVideo::get zoom"); + v("public flash.media.StageVideo::get zoom"); }, set:function(a) { - t("public flash.media.StageVideo::set zoom"); + v("public flash.media.StageVideo::set zoom"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "depth", {get:function() { - t("public flash.media.StageVideo::get depth"); + v("public flash.media.StageVideo::get depth"); }, set:function(a) { - t("public flash.media.StageVideo::set depth"); + v("public flash.media.StageVideo::set depth"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "videoWidth", {get:function() { - t("public flash.media.StageVideo::get videoWidth"); + v("public flash.media.StageVideo::get videoWidth"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "videoHeight", {get:function() { - t("public flash.media.StageVideo::get videoHeight"); + v("public flash.media.StageVideo::get videoHeight"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "colorSpaces", {get:function() { - t("public flash.media.StageVideo::get colorSpaces"); + v("public flash.media.StageVideo::get colorSpaces"); }, enumerable:!0, configurable:!0}); d.prototype.attachNetStream = function(a) { - t("public flash.media.StageVideo::attachNetStream"); + v("public flash.media.StageVideo::attachNetStream"); }; d.prototype.attachCamera = function(a) { - t("public flash.media.StageVideo::attachCamera"); + v("public flash.media.StageVideo::attachCamera"); }; d.classInitializer = null; d.initializer = null; @@ -40339,9 +40326,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.media.StageVideoAvailability"); + n("public flash.media.StageVideoAvailability"); } __extends(c, a); c.classInitializer = null; @@ -40363,14 +40350,14 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = function(c) { - function d(c, h) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = function(c) { + function d(c, g) { void 0 === c && (c = 320); - void 0 === h && (h = 240); + void 0 === g && (g = 240); a.display.DisplayObject.instanceConstructorNoInitialize.call(this); c = c | 0 || 320; - h = h | 0 || 240; - this._setFillAndLineBoundsFromWidthAndHeight(20 * c, 20 * h); + g = g | 0 || 240; + this._setFillAndLineBoundsFromWidthAndHeight(20 * c, 20 * g); } __extends(d, c); Object.defineProperty(d.prototype, "deblocking", {get:function() { @@ -40389,8 +40376,8 @@ var RtmpJs; Object.defineProperty(d.prototype, "videoHeight", {get:function() { return this._videoHeight; }, enumerable:!0, configurable:!0}); - d.prototype._containsPointDirectly = function(a, c, d, g) { - return!0; + d.prototype._containsPointDirectly = function(a, c, d, h) { + return !0; }; d.prototype.clear = function() { u("public flash.media.Video::clear"); @@ -40405,7 +40392,7 @@ var RtmpJs; } }; d.prototype.attachCamera = function(a) { - t("public flash.media.Video::attachCamera"); + v("public flash.media.Video::attachCamera"); }; d.classInitializer = null; d.initializer = null; @@ -40424,9 +40411,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.media.VideoStreamSettings"); + n("public flash.media.VideoStreamSettings"); } __extends(c, a); c.classInitializer = null; @@ -40446,9 +40433,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { - function d(a, c, h) { - p("public flash.net.FileFilter"); + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + function d(a, c, g) { + n("public flash.net.FileFilter"); } __extends(d, a); Object.defineProperty(d.prototype, "description", {get:function() { @@ -40483,43 +40470,43 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.FileLoadingService, q = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.FileLoadingService, q = function(a) { function d() { u("public flash.net.LocalConnection"); } __extends(d, a); d.prototype.close = function() { - t("public flash.net.LocalConnection::close"); + v("public flash.net.LocalConnection::close"); }; d.prototype.connect = function(a) { l(a); - t("public flash.net.LocalConnection::connect"); + v("public flash.net.LocalConnection::connect"); }; Object.defineProperty(d.prototype, "domain", {get:function() { c("public flash.net.LocalConnection::get domain"); - var a = h.instance.resolveUrl("/"); - return(a = /:\/\/(.+?)[:?#\/]/.exec(a)) && a[1]; + var a = g.instance.resolveUrl("/"); + return (a = /:\/\/(.+?)[:?#\/]/.exec(a)) && a[1]; }, enumerable:!0, configurable:!0}); d.prototype.send = function(a, c) { l(a); l(c); - t("public flash.net.LocalConnection::send"); + v("public flash.net.LocalConnection::send"); }; Object.defineProperty(d.prototype, "client", {get:function() { - t("public flash.net.LocalConnection::get client"); + v("public flash.net.LocalConnection::get client"); }, set:function(a) { - t("public flash.net.LocalConnection::set client"); + v("public flash.net.LocalConnection::set client"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "isPerUser", {get:function() { - t("public flash.net.LocalConnection::get isPerUser"); + v("public flash.net.LocalConnection::get isPerUser"); }, set:function(a) { - t("public flash.net.LocalConnection::set isPerUser"); + v("public flash.net.LocalConnection::set isPerUser"); }, enumerable:!0, configurable:!0}); d.prototype.allowDomain = function() { - t("public flash.net.LocalConnection::allowDomain"); + v("public flash.net.LocalConnection::allowDomain"); }; d.prototype.allowInsecureDomain = function() { - t("public flash.net.LocalConnection::allowInsecureDomain"); + v("public flash.net.LocalConnection::allowInsecureDomain"); }; d.classInitializer = null; d.initializer = null; @@ -40538,32 +40525,32 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.AVM2.Runtime.wrapJSObject, q = d.AVM2.AS.flash.events, s = function(k) { - function g() { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.AVM2.Runtime.wrapJSObject, q = d.AVM2.AS.flash.events, r = function(m) { + function h() { u("public flash.net.NetConnection"); } - __extends(g, k); - Object.defineProperty(g, "defaultObjectEncoding", {get:function() { - return g._defaultObjectEncoding; + __extends(h, m); + Object.defineProperty(h, "defaultObjectEncoding", {get:function() { + return h._defaultObjectEncoding; }, set:function(a) { - g._defaultObjectEncoding = a >>> 0; + h._defaultObjectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "connected", {get:function() { + Object.defineProperty(h.prototype, "connected", {get:function() { return this._connected; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "uri", {get:function() { + Object.defineProperty(h.prototype, "uri", {get:function() { return this._uri; }, enumerable:!0, configurable:!0}); - g.prototype.connect = function(f) { + h.prototype.connect = function(f) { f = l(f); c("public flash.net.NetConnection::connect"); if (this._uri = f) { var b = RtmpJs.parseConnectionString(f); if (!b || !b.host || "rtmp" !== b.protocol && "rtmpt" !== b.protocol && "rtmps" !== b.protocol) { - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({level:"status", code:"NetConnection.Connect.Failed"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({level:"status", code:"NetConnection.Connect.Failed"}))); } else { var e = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"]; - f = h({app:b.app, flashver:a.system.Capabilities.version, swfUrl:e.swfUrl, tcUrl:f, fpad:!1, audioCodecs:4095, videoCodecs:255, videoFunction:1, pageUrl:e.pageUrl || e.swfUrl, objectEncoding:0}); + f = g({app:b.app, flashver:a.system.Capabilities.version, swfUrl:e.swfUrl, tcUrl:f, fpad:!1, audioCodecs:4095, videoCodecs:255, videoFunction:1, pageUrl:e.pageUrl || e.swfUrl, objectEncoding:0}); this._protocol = b.protocol; this._usingTLS = e = "rtmps" === b.protocol || "rtmpt" === b.protocol && (443 === b.port || 8443 === b.port); this._rtmpConnection = b = "rtmp" === b.protocol || "rtmps" === b.protocol ? new RtmpJs.Browser.RtmpTransport({host:b.host, port:b.port || 1935, ssl:e}) : new RtmpJs.Browser.RtmptTransport({host:b.host, port:b.port || 80, ssl:e}); @@ -40574,7 +40561,7 @@ var RtmpJs; }; b.onconnected = function(a) { this._connected = !0; - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({level:"status", code:"NetConnection.Connect.Success"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({level:"status", code:"NetConnection.Connect.Success"}))); }.bind(this); b.onstreamcreated = function(a) { console.log("#streamcreated: " + a.streamId); @@ -40585,93 +40572,93 @@ var RtmpJs; b.connect(f); } } else { - this._connected = !0, this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({level:"status", code:"NetConnection.Connect.Success"}))); + this._connected = !0, this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({level:"status", code:"NetConnection.Connect.Success"}))); } }; - g.prototype._createRtmpStream = function(a) { + h.prototype._createRtmpStream = function(a) { var b = this._rtmpCreateStreamCallbacks.length; this._rtmpCreateStreamCallbacks[b] = a; this._rtmpConnection.createStream(b); }; - Object.defineProperty(g.prototype, "client", {get:function() { + Object.defineProperty(h.prototype, "client", {get:function() { return this._client; }, set:function(a) { this._client = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "objectEncoding", {get:function() { + Object.defineProperty(h.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(a) { a >>>= 0; c("public flash.net.NetConnection::set objectEncoding"); this._objectEncoding = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "proxyType", {get:function() { + Object.defineProperty(h.prototype, "proxyType", {get:function() { return this._proxyType; }, set:function(a) { a = l(a); c("public flash.net.NetConnection::set proxyType"); this._proxyType = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "connectedProxyType", {get:function() { - t("public flash.net.NetConnection::get connectedProxyType"); + Object.defineProperty(h.prototype, "connectedProxyType", {get:function() { + v("public flash.net.NetConnection::get connectedProxyType"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "usingTLS", {get:function() { + Object.defineProperty(h.prototype, "usingTLS", {get:function() { return this._usingTLS; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "protocol", {get:function() { + Object.defineProperty(h.prototype, "protocol", {get:function() { return this._protocol; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "maxPeerConnections", {get:function() { - t("public flash.net.NetConnection::get maxPeerConnections"); + Object.defineProperty(h.prototype, "maxPeerConnections", {get:function() { + v("public flash.net.NetConnection::get maxPeerConnections"); }, set:function(a) { - t("public flash.net.NetConnection::set maxPeerConnections"); + v("public flash.net.NetConnection::set maxPeerConnections"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "nearID", {get:function() { - t("public flash.net.NetConnection::get nearID"); + Object.defineProperty(h.prototype, "nearID", {get:function() { + v("public flash.net.NetConnection::get nearID"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "farID", {get:function() { - t("public flash.net.NetConnection::get farID"); + Object.defineProperty(h.prototype, "farID", {get:function() { + v("public flash.net.NetConnection::get farID"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "nearNonce", {get:function() { - t("public flash.net.NetConnection::get nearNonce"); + Object.defineProperty(h.prototype, "nearNonce", {get:function() { + v("public flash.net.NetConnection::get nearNonce"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "farNonce", {get:function() { - t("public flash.net.NetConnection::get farNonce"); + Object.defineProperty(h.prototype, "farNonce", {get:function() { + v("public flash.net.NetConnection::get farNonce"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "unconnectedPeerStreams", {get:function() { - t("public flash.net.NetConnection::get unconnectedPeerStreams"); + Object.defineProperty(h.prototype, "unconnectedPeerStreams", {get:function() { + v("public flash.net.NetConnection::get unconnectedPeerStreams"); }, enumerable:!0, configurable:!0}); - g.prototype.ctor = function() { + h.prototype.ctor = function() { this._uri = null; this._connected = !1; this._client = null; this._proxyType = "none"; - this._objectEncoding = g.defaultObjectEncoding; + this._objectEncoding = h.defaultObjectEncoding; this._usingTLS = !1; this._protocol = null; }; - g.prototype.invoke = function(a) { + h.prototype.invoke = function(a) { return this._invoke(a >>> 0, Array.prototype.slice.call(arguments, 1)); }; - g.prototype.invokeWithArgsArray = function(a, b) { + h.prototype.invokeWithArgsArray = function(a, b) { return this._invoke.call(this, a >>> 0, b); }; - g.prototype._invoke = function(a, b) { + h.prototype._invoke = function(a, b) { var e = !1; switch(a) { case 2: e = !0; } - (e ? c : t)("private flash.net.NetConnection::_invoke (" + a + ")"); + (e ? c : v)("private flash.net.NetConnection::_invoke (" + a + ")"); }; - g.classInitializer = null; - g.initializer = null; - g.classSymbols = null; - g.instanceSymbols = ["close", "addHeader", "call"]; - g._defaultObjectEncoding = 3; - return g; + h.classInitializer = null; + h.initializer = null; + h.classSymbols = null; + h.instanceSymbols = ["close", "addHeader", "call"]; + h._defaultObjectEncoding = 3; + return h; }(a.events.EventDispatcher); - k.NetConnection = s; + k.NetConnection = r; })(a.net || (a.net = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -40681,13 +40668,13 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - function t(a) { + (function(w) { + function v(a) { var b = "video/mp4"; a && (b += ';codecs="' + a.join(",") + '"'); return b; } - var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.AVM2.Runtime.wrapJSObject, q = d.AVM2.AS.flash.events, s = d.AVM2.AS.flash.net, m = d.AVM2.AS.flash.utils, g = d.FileLoadingService, f = d.AVM2.Runtime.AVM2, b = function(a) { + var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.AVM2.Runtime.wrapJSObject, q = d.AVM2.AS.flash.events, r = d.AVM2.AS.flash.net, m = d.AVM2.AS.flash.utils, h = d.FileLoadingService, f = d.AVM2.Runtime.AVM2, b = function(a) { function b(a, e) { void 0 === e && (e = "connectToFMS"); q.EventDispatcher.instanceConstructorNoInitialize.call(this); @@ -40698,7 +40685,7 @@ var RtmpJs; this._soundTransform = new k.media.SoundTransform; this._contentTypeHint = null; this._checkPolicyFile = !0; - this._videoStream = new r(this); + this._videoStream = new t(this); this._videoStream._onEnsurePlay = function() { this._notifyVideoControl(9, null); }.bind(this); @@ -40724,7 +40711,7 @@ var RtmpJs; Object.defineProperty(b.prototype, "info", {get:function() { c("public flash.net.NetStream::get info"); var a = Math.ceil(this._invoke(304, null)); - return new v.NetStreamInfo(232, 233 * (1 + a), 232, 32, 32 * (1 + a), 200, 200 * (1 + a), 1, 1 * (1 + a), 233 * a, 0, 32, 200, 1, 1, 1, 1, 0, 0, 0, this._metaData, null, this._connection.uri, this._resourceName, !1); + return new w.NetStreamInfo(232, 233 * (1 + a), 232, 32, 32 * (1 + a), 200, 200 * (1 + a), 1, 1 * (1 + a), 233 * a, 0, 32, 200, 1, 1, 1, 1, 0, 0, 0, this._metaData, null, this._connection.uri, this._resourceName, !1); }, enumerable:!0, configurable:!0}); Object.defineProperty(b.prototype, "multicastInfo", {get:function() { u("public flash.net.NetStream::get multicastInfo"); @@ -40898,33 +40885,33 @@ var RtmpJs; k.media.SoundMixer._updateSoundSource(this); break; case 2: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Play.Start", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Play.Start", level:"status"}))); break; case 3: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Buffer.Flush", level:"status"}))); - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Play.Stop", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Buffer.Flush", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Play.Stop", level:"status"}))); k.media.SoundMixer._unregisterSoundSource(this); break; case 5: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Buffer.Full", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Buffer.Full", level:"status"}))); break; case 4: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Buffer.Empty", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Buffer.Empty", level:"status"}))); break; case 11: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:4 === b.code ? "NetStream.Play.NoSupportedTrackFound" : 3 === b.code ? "NetStream.Play.FileStructureInvalid" : "NetStream.Play.StreamNotFound", level:"error"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:4 === b.code ? "NetStream.Play.NoSupportedTrackFound" : 3 === b.code ? "NetStream.Play.FileStructureInvalid" : "NetStream.Play.StreamNotFound", level:"error"}))); break; case 6: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Pause.Notify", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Pause.Notify", level:"status"}))); break; case 7: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Unpause.Notify", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Unpause.Notify", level:"status"}))); break; case 8: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Seek.Notify", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Seek.Notify", level:"status"}))); break; case 9: - this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Seek.Complete", level:"status"}))); + this.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Seek.Complete", level:"status"}))); break; case 1: if (this._client) { @@ -40951,7 +40938,7 @@ var RtmpJs; b.CONNECT_TO_FMS = "connectToFMS"; return b; }(k.events.EventDispatcher); - v.NetStream = b; + w.NetStream = b; var e; (function(a) { a[a.CLOSED = 0] = "CLOSED"; @@ -40960,7 +40947,7 @@ var RtmpJs; a[a.OPENED_DATA_GENERATION = 3] = "OPENED_DATA_GENERATION"; a[a.ERROR = 4] = "ERROR"; })(e || (e = {})); - var r = function() { + var t = function() { function b(a) { this._domReady = new d.PromiseWrapper; this._metadataReady = new d.PromiseWrapper; @@ -40993,7 +40980,7 @@ var RtmpJs; b = "resource://shumway/web/noflv.mp4"; } else { setTimeout(function() { - f._netStream.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, h({code:"NetStream.Play.NoSupportedTrackFound", level:"error"}))); + f._netStream.dispatchEvent(new q.NetStatusEvent(q.NetStatusEvent.NET_STATUS, !1, !1, g({code:"NetStream.Play.NoSupportedTrackFound", level:"error"}))); }); return; } @@ -41001,27 +40988,27 @@ var RtmpJs; } if (l || d) { this.openInDataGenerationMode(); - d = new s.URLRequest(b); + d = new r.URLRequest(b); d._checkPolicyFile = e; - var k = new s.URLStream; - k.addEventListener("httpStatus", function(a) { + var p = new r.URLStream; + p.addEventListener("httpStatus", function(a) { (a = a.asGetPublicProperty("responseHeaders").filter(function(a) { return "Content-Type" === a.asGetPublicProperty("name"); })[0]) && a.asGetPublicProperty("value"); }.bind(this)); - k.addEventListener("progress", function(a) { - a = k.bytesAvailable; + p.addEventListener("progress", function(a) { + a = p.bytesAvailable; var b = new m.ByteArray; - k.readBytes(b, 0, a); + p.readBytes(b, 0, a); a = new Uint8Array(b._buffer, 0, b.length); this.appendBytes(a); }.bind(this)); - k.addEventListener("complete", function(a) { + p.addEventListener("complete", function(a) { this.appendBytesAction("endSequence"); }.bind(this)); - k.load(d); + p.load(d); } else { - c("public flash.net.NetStream::play"), this._state = 1, this._url = g.instance.resolveUrl(b); + c("public flash.net.NetStream::play"), this._state = 1, this._url = h.instance.resolveUrl(b); } }; b.prototype.playInConnection = function(a, b) { @@ -41029,7 +41016,7 @@ var RtmpJs; var e = this, c, f = {packets:0, init:function(a) { if (a.asGetPublicProperty("audiocodecid") || a.asGetPublicProperty("videocodecid")) { a = RtmpJs.MP4.parseFLVMetadata(a), c = new RtmpJs.MP4.MP4Mux(a), c.oncodecinfo = function(a) { - this._contentTypeHint = t(a); + this._contentTypeHint = v(a); }, c.ondata = function(a) { e.appendBytes(new Uint8Array(a)); }.bind(this); @@ -41074,7 +41061,7 @@ var RtmpJs; null !== this._head ? (b = this._head.length, e = new Uint8Array(b + a.length), e.set(a, b)) : (b = 0, e = a); if (!this._decoder) { var c = this._detectContentType(e); - "video/x-flv" === c ? (c = new n, c.onHeader = function(a) { + "video/x-flv" === c ? (c = new p, c.onHeader = function(a) { this._mediaSourceBuffer = this._mediaSource.addSourceBuffer(a); this._mediaSourceBufferLock = Promise.resolve(void 0); }.bind(this), c.onData = this._queueData.bind(this), this._decoder = c) : c && (this._decoder = {onData:this._queueData.bind(this), onError:function(a) { @@ -41091,8 +41078,8 @@ var RtmpJs; this._mediaSourceBufferLock = this._mediaSourceBufferLock.then(function() { b.appendBuffer(a); return new Promise(function(a) { - b.addEventListener("update", function F() { - b.removeEventListener("update", F); + b.addEventListener("update", function E() { + b.removeEventListener("update", E); a(); }); }); @@ -41149,7 +41136,7 @@ var RtmpJs; } }; return b; - }(), n = function() { + }(), p = function() { function a() { this._flvParser = new RtmpJs.FLV.FLVParser; this._flvParser.onHeader = this._onFlvHeader.bind(this); @@ -41168,7 +41155,7 @@ var RtmpJs; a = d.AVM2.AMF0.read(b); b = d.AVM2.AMF0.read(b); "onMetaData" === a && (b = RtmpJs.MP4.parseFLVMetadata(b), b = new RtmpJs.MP4.MP4Mux(b), b.oncodecinfo = function(a) { - this.onHeader(t(a)); + this.onHeader(v(a)); }.bind(this), b.ondata = function(a) { this.onData.call(null, a); }.bind(this), this._mp4Mux = b); @@ -41214,13 +41201,13 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { - function d(a, c, h, g, f, b, e, l, k, x, v, z, D, M, F, T, N, C, B, H, A, y, G, J, E) { + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + function d(a, c, g, h, f, b, e, l, p, k, w, B, D, M, E, J, P, y, K, H, A, z, G, L, F) { void 0 === G && (G = null); - void 0 === J && (J = null); + void 0 === L && (L = null); u(G); - u(J); - p("public flash.net.NetStreamInfo"); + u(L); + n("public flash.net.NetStreamInfo"); } __extends(d, a); d.classInitializer = null; @@ -41240,9 +41227,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { - function c(a, c, d, l, g, f, b, e, k, n, u, v, z, D, M, F, T, N, C) { - p("public flash.net.NetStreamMulticastInfo"); + var n = d.Debug.dummyConstructor, u = function(a) { + function c(a, c, d, l, h, f, b, e, k, p, u, w, B, D, M, E, J, P, y) { + n("public flash.net.NetStreamMulticastInfo"); } __extends(c, a); c.classInitializer = null; @@ -41262,9 +41249,9 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { + var v = d.Debug.dummyConstructor, u = function(a) { function c() { - t("public flash.net.NetStreamPlayOptions"); + v("public flash.net.NetStreamPlayOptions"); } __extends(c, a); c.classInitializer = null; @@ -41284,9 +41271,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c(a, c) { - p("public flash.net.Responder"); + n("public flash.net.Responder"); } __extends(c, a); c.prototype.ctor = function(a, c) { @@ -41310,78 +41297,78 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - function t() { - h || (h = "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialStorage ? ShumwayCom.createSpecialStorage() : window.sessionStorage); - return h; + function v() { + g || (g = "undefined" !== typeof ShumwayCom && ShumwayCom.createSpecialStorage ? ShumwayCom.createSpecialStorage() : window.sessionStorage); + return g; } - var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h, q = function(d) { - function h() { + var u = d.Debug.notImplemented, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g, q = function(d) { + function g() { a.events.EventDispatcher.instanceConstructorNoInitialize.call(this); this._data = Object.create(null); } - __extends(h, d); - h.deleteAll = function(a) { + __extends(g, d); + g.deleteAll = function(a) { l(a); u("public flash.net.SharedObject::static deleteAll"); }; - h.getDiskUsage = function(a) { + g.getDiskUsage = function(a) { l(a); u("public flash.net.SharedObject::static getDiskUsage"); }; - h._create = function(a, c) { - var b = new h; + g._create = function(a, c) { + var b = new g; b._path = a; b._data = c; - b._objectEncoding = h._defaultObjectEncoding; + b._objectEncoding = g._defaultObjectEncoding; return b; }; - h.getLocal = function(a, c, b) { + g.getLocal = function(a, c, b) { void 0 === c && (c = null); a = l(a); c = l(c); a = (c || "") + "/" + a; - if (h._sharedObjects[a]) { - return h._sharedObjects[a]; + if (g._sharedObjects[a]) { + return g._sharedObjects[a]; } - c = t().getItem(a); - c = h._create(a, c ? JSON.parse(c) : {}); - return h._sharedObjects[a] = c; + c = v().getItem(a); + c = g._create(a, c ? JSON.parse(c) : {}); + return g._sharedObjects[a] = c; }; - h.getRemote = function(a, c, b, e) { + g.getRemote = function(a, c, b, e) { void 0 === c && (c = null); l(a); l(c); u("public flash.net.SharedObject::static getRemote"); }; - Object.defineProperty(h, "defaultObjectEncoding", {get:function() { - return h._defaultObjectEncoding; + Object.defineProperty(g, "defaultObjectEncoding", {get:function() { + return g._defaultObjectEncoding; }, set:function(a) { - h._defaultObjectEncoding = a >>> 0; + g._defaultObjectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "data", {get:function() { + Object.defineProperty(g.prototype, "data", {get:function() { return this._data; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "objectEncoding", {get:function() { + Object.defineProperty(g.prototype, "objectEncoding", {get:function() { return this._objectEncoding; }, set:function(a) { this._objectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "client", {get:function() { + Object.defineProperty(g.prototype, "client", {get:function() { u("public flash.net.SharedObject::get client"); }, set:function(a) { u("public flash.net.SharedObject::set client"); }, enumerable:!0, configurable:!0}); - h.prototype.setDirty = function(a) { + g.prototype.setDirty = function(a) { l(a); c("public flash.net.SharedObject::setDirty"); }; - h.prototype.invoke = function(a) { + g.prototype.invoke = function(a) { return this._invoke(a >>> 0, Array.prototype.slice.call(arguments, 1)); }; - h.prototype.invokeWithArgsArray = function(a, c) { + g.prototype.invokeWithArgsArray = function(a, c) { return this._invoke(a >>> 0, c); }; - h.prototype._invoke = function(a, f) { + g.prototype._invoke = function(a, f) { var b = !1, e; switch(a) { case 4: @@ -41390,11 +41377,11 @@ var RtmpJs; break; case 6: this._data = {}; - t().removeItem(this._path); + v().removeItem(this._path); b = !0; break; case 2: - t().setItem(this._path, JSON.stringify(this._data)); + v().setItem(this._path, JSON.stringify(this._data)); e = b = !0; break; case 3: @@ -41403,13 +41390,13 @@ var RtmpJs; (b ? c : u)("private flash.net.SharedObject::_invoke (" + a + ")"); return e; }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h._sharedObjects = Object.create(null); - h._defaultObjectEncoding = 3; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g._sharedObjects = Object.create(null); + g._defaultObjectEncoding = 3; + return g; }(a.events.EventDispatcher); k.SharedObject = q; })(a.net || (a.net = {})); @@ -41422,7 +41409,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.AVM2.Errors, q = d.AVM2.Runtime.throwError, s = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.AVM2.Errors, q = d.AVM2.Runtime.throwError, r = function(a) { function d(a, b) { void 0 === a && (a = null); l(a); @@ -41430,110 +41417,110 @@ var RtmpJs; } __extends(d, a); Object.defineProperty(d.prototype, "bytesAvailable", {get:function() { - t("public flash.net.Socket::get bytesAvailable"); + v("public flash.net.Socket::get bytesAvailable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "connected", {get:function() { - t("public flash.net.Socket::get connected"); + v("public flash.net.Socket::get connected"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "objectEncoding", {get:function() { - t("public flash.net.Socket::get objectEncoding"); + v("public flash.net.Socket::get objectEncoding"); }, set:function(a) { - t("public flash.net.Socket::set objectEncoding"); + v("public flash.net.Socket::set objectEncoding"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "endian", {get:function() { - t("public flash.net.Socket::get endian"); + v("public flash.net.Socket::get endian"); }, set:function(a) { l(a); - t("public flash.net.Socket::set endian"); + v("public flash.net.Socket::set endian"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "bytesPending", {get:function() { - t("public flash.net.Socket::get bytesPending"); + v("public flash.net.Socket::get bytesPending"); }, enumerable:!0, configurable:!0}); d.prototype.readBytes = function(a, b, e) { - t("public flash.net.Socket::readBytes"); + v("public flash.net.Socket::readBytes"); }; d.prototype.writeBytes = function(a, b, e) { - t("public flash.net.Socket::writeBytes"); + v("public flash.net.Socket::writeBytes"); }; d.prototype.writeBoolean = function(a) { - t("public flash.net.Socket::writeBoolean"); + v("public flash.net.Socket::writeBoolean"); }; d.prototype.writeByte = function(a) { - t("public flash.net.Socket::writeByte"); + v("public flash.net.Socket::writeByte"); }; d.prototype.writeShort = function(a) { - t("public flash.net.Socket::writeShort"); + v("public flash.net.Socket::writeShort"); }; d.prototype.writeInt = function(a) { - t("public flash.net.Socket::writeInt"); + v("public flash.net.Socket::writeInt"); }; d.prototype.writeUnsignedInt = function(a) { - t("public flash.net.Socket::writeUnsignedInt"); + v("public flash.net.Socket::writeUnsignedInt"); }; d.prototype.writeFloat = function(a) { - t("public flash.net.Socket::writeFloat"); + v("public flash.net.Socket::writeFloat"); }; d.prototype.writeDouble = function(a) { - t("public flash.net.Socket::writeDouble"); + v("public flash.net.Socket::writeDouble"); }; d.prototype.writeMultiByte = function(a, b) { l(a); l(b); - t("public flash.net.Socket::writeMultiByte"); + v("public flash.net.Socket::writeMultiByte"); }; d.prototype.writeUTF = function(a) { l(a); - t("public flash.net.Socket::writeUTF"); + v("public flash.net.Socket::writeUTF"); }; d.prototype.writeUTFBytes = function(a) { l(a); - t("public flash.net.Socket::writeUTFBytes"); + v("public flash.net.Socket::writeUTFBytes"); }; d.prototype.readBoolean = function() { - t("public flash.net.Socket::readBoolean"); + v("public flash.net.Socket::readBoolean"); }; d.prototype.readByte = function() { - t("public flash.net.Socket::readByte"); + v("public flash.net.Socket::readByte"); }; d.prototype.readUnsignedByte = function() { - t("public flash.net.Socket::readUnsignedByte"); + v("public flash.net.Socket::readUnsignedByte"); }; d.prototype.readShort = function() { - t("public flash.net.Socket::readShort"); + v("public flash.net.Socket::readShort"); }; d.prototype.readUnsignedShort = function() { - t("public flash.net.Socket::readUnsignedShort"); + v("public flash.net.Socket::readUnsignedShort"); }; d.prototype.readInt = function() { - t("public flash.net.Socket::readInt"); + v("public flash.net.Socket::readInt"); }; d.prototype.readUnsignedInt = function() { - t("public flash.net.Socket::readUnsignedInt"); + v("public flash.net.Socket::readUnsignedInt"); }; d.prototype.readFloat = function() { - t("public flash.net.Socket::readFloat"); + v("public flash.net.Socket::readFloat"); }; d.prototype.readDouble = function() { - t("public flash.net.Socket::readDouble"); + v("public flash.net.Socket::readDouble"); }; d.prototype.readMultiByte = function(a, b) { l(b); - t("public flash.net.Socket::readMultiByte"); + v("public flash.net.Socket::readMultiByte"); }; d.prototype.readUTF = function() { - t("public flash.net.Socket::readUTF"); + v("public flash.net.Socket::readUTF"); }; d.prototype.readUTFBytes = function(a) { - t("public flash.net.Socket::readUTFBytes"); + v("public flash.net.Socket::readUTFBytes"); }; d.prototype.flush = function() { - t("public flash.net.Socket::flush"); + v("public flash.net.Socket::flush"); }; d.prototype.writeObject = function(a) { - t("public flash.net.Socket::writeObject"); + v("public flash.net.Socket::writeObject"); }; d.prototype.readObject = function() { - t("public flash.net.Socket::readObject"); + v("public flash.net.Socket::readObject"); }; d.prototype.internalGetSecurityErrorMessage = function(a, b) { l(a); @@ -41544,11 +41531,11 @@ var RtmpJs; a = l(a); b |= 0; c("flash.net.Socket::internalConnect"); - q("SecurityError", h.SocketConnectError, a, b); + q("SecurityError", g.SocketConnectError, a, b); }; d.prototype.didFailureOccur = function() { c("flash.net.Socket::didFailureOccur"); - return!0; + return !0; }; d.classInitializer = null; d.initializer = null; @@ -41556,7 +41543,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.events.EventDispatcher); - k.Socket = s; + k.Socket = r; })(a.net || (a.net = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -41567,8 +41554,8 @@ var RtmpJs; (function(a) { (function(a) { (function(d) { - var k = a.events.Event, u = a.events.IOErrorEvent, l = a.events.ProgressEvent, c = a.events.HTTPStatusEvent, h = a.events.SecurityErrorEvent, q = function(q) { - function m(g) { + var k = a.events.Event, u = a.events.IOErrorEvent, l = a.events.ProgressEvent, c = a.events.HTTPStatusEvent, g = a.events.SecurityErrorEvent, q = function(q) { + function m(h) { a.events.EventDispatcher.instanceConstructorNoInitialize.call(this); var f = this._stream = new d.URLStream; f.addEventListener(k.OPEN, this.onStreamOpen.bind(this)); @@ -41577,9 +41564,9 @@ var RtmpJs; f.addEventListener(u.IO_ERROR, this.onStreamIOError.bind(this)); f.addEventListener(c.HTTP_STATUS, this.onStreamHTTPStatus.bind(this)); f.addEventListener(c.HTTP_RESPONSE_STATUS, this.onStreamHTTPResponseStatus.bind(this)); - f.addEventListener(h.SECURITY_ERROR, this.onStreamSecurityError.bind(this)); + f.addEventListener(g.SECURITY_ERROR, this.onStreamSecurityError.bind(this)); this.$BgdataFormat = "text"; - g && this.load(g); + h && this.load(h); } __extends(m, q); Object.defineProperty(m.prototype, "data", {get:function() { @@ -41656,18 +41643,18 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = function(a) { + (function(n) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = d.AVM2.Runtime.throwError, l = function(a) { function d(a) { void 0 === a && (a = null); - this._url = t(a); + this._url = v(a); } __extends(d, a); Object.defineProperty(d.prototype, "url", {get:function() { return this._url; }, set:function(a) { - this._url = a = t(a); + this._url = a = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "data", {get:function() { return this._data; @@ -41677,14 +41664,14 @@ var RtmpJs; Object.defineProperty(d.prototype, "method", {get:function() { return this._method; }, set:function(a) { - a = t(a); + a = v(a); "get" !== a && "GET" !== a && "post" !== a && "POST" !== a && u("ArgumentError", k.Errors.InvalidArgumentError); this._method = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "contentType", {get:function() { return this._contentType; }, set:function(a) { - this._contentType = a = t(a); + this._contentType = a = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "requestHeaders", {get:function() { return this._requestHeaders; @@ -41695,7 +41682,7 @@ var RtmpJs; Object.defineProperty(d.prototype, "digest", {get:function() { return this._digest; }, set:function(a) { - this._digest = a = t(a); + this._digest = a = v(a); }, enumerable:!0, configurable:!0}); d.prototype._toFileRequest = function() { var a = {}; @@ -41703,7 +41690,7 @@ var RtmpJs; a.method = this._method; a.checkPolicyFile = this._checkPolicyFile; if (this._data) { - if (a.mimeType = this._contentType, p.utils.ByteArray.isType(this._data)) { + if (a.mimeType = this._contentType, n.utils.ByteArray.isType(this._data)) { a.data = new Uint8Array(this._data._buffer, 0, this._data.length); } else { var c = this._data.asGetPublicProperty("toString").call(this._data); @@ -41730,8 +41717,8 @@ var RtmpJs; d.bindings = null; return d; }(a.ASNative); - v.URLRequest = l; - })(p.net || (p.net = {})); + w.URLRequest = l; + })(n.net || (n.net = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -41741,12 +41728,12 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.AVM2.Runtime.asCoerceString, u = function(a) { + var n = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c) { void 0 === a && (a = ""); void 0 === c && (c = ""); - p(a); - p(c); + n(a); + n(c); } __extends(c, a); c.classInitializer = null; @@ -41765,43 +41752,43 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.FileLoadingService, h = d.AVM2.Runtime.throwError, q = d.AVM2.AS.flash.utils, s = function(d) { - function g() { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.FileLoadingService, g = d.AVM2.Runtime.throwError, q = d.AVM2.AS.flash.utils, r = function(d) { + function h() { u("public flash.net.URLStream"); } - __extends(g, d); - Object.defineProperty(g.prototype, "connected", {get:function() { + __extends(h, d); + Object.defineProperty(h.prototype, "connected", {get:function() { return this._connected; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "bytesAvailable", {get:function() { + Object.defineProperty(h.prototype, "bytesAvailable", {get:function() { return this._buffer.length - this._buffer.position; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "objectEncoding", {get:function() { + Object.defineProperty(h.prototype, "objectEncoding", {get:function() { return this._buffer.objectEncoding; }, set:function(a) { this._buffer.objectEncoding = a >>> 0; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "endian", {get:function() { + Object.defineProperty(h.prototype, "endian", {get:function() { return this._buffer.endian; }, set:function(a) { a = l(a); this._buffer.endian = a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "diskCacheEnabled", {get:function() { - t("public flash.net.URLStream::get diskCacheEnabled"); + Object.defineProperty(h.prototype, "diskCacheEnabled", {get:function() { + v("public flash.net.URLStream::get diskCacheEnabled"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "position", {get:function() { + Object.defineProperty(h.prototype, "position", {get:function() { return this._buffer.position; }, set:function(a) { this._buffer.position = +a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(g.prototype, "length", {get:function() { + Object.defineProperty(h.prototype, "length", {get:function() { return this._buffer.length; }, enumerable:!0, configurable:!0}); - g.prototype.load = function(f) { - var b = a.events.Event, e = a.events.IOErrorEvent, d = a.events.ProgressEvent, g = a.events.HTTPStatusEvent, h = c.instance.createSession(), l = this; - h.onprogress = function(a, b) { + h.prototype.load = function(f) { + var b = a.events.Event, e = a.events.IOErrorEvent, d = a.events.ProgressEvent, h = a.events.HTTPStatusEvent, g = c.instance.createSession(), l = this; + g.onprogress = function(a, b) { var e = l._buffer.position; l._buffer.position = l._writePosition; l._buffer.writeRawBytes(a); @@ -41809,16 +41796,16 @@ var RtmpJs; l._buffer.position = e; l.dispatchEvent(new d(d.PROGRESS, !1, !1, b.bytesLoaded, b.bytesTotal)); }; - h.onerror = function(a) { + g.onerror = function(a) { l._connected = !1; l.dispatchEvent(new e(e.IO_ERROR, !1, !1, a)); }; - h.onopen = function() { + g.onopen = function() { l._connected = !0; l.dispatchEvent(new b(b.OPEN, !1, !1)); }; - h.onhttpstatus = function(b, e, c) { - e = new g(g.HTTP_STATUS, !1, !1, e); + g.onhttpstatus = function(b, e, c) { + e = new h(h.HTTP_STATUS, !1, !1, e); var f = []; c.split(/(?:\n|\r?\n)/g).forEach(function(e) { if (e = /^([^:]+): (.*)$/.exec(e)) { @@ -41829,78 +41816,78 @@ var RtmpJs; e.asSetPublicProperty("responseURL", b); l.dispatchEvent(e); }; - h.onclose = function() { + g.onclose = function() { l._connected = !1; l.dispatchEvent(new b(b.COMPLETE, !1, !1)); }; - h.open(f._toFileRequest()); - this._session = h; + g.open(f._toFileRequest()); + this._session = g; }; - g.prototype.readBytes = function(a, b, e) { + h.prototype.readBytes = function(a, b, e) { void 0 === b && (b = 0); void 0 === e && (e = 0); b >>>= 0; e >>>= 0; - 0 > e && h("ArgumentError", k.Errors.InvalidArgumentError, "length"); + 0 > e && g("ArgumentError", k.Errors.InvalidArgumentError, "length"); this._buffer.readBytes(a, b, e); }; - g.prototype.readBoolean = function() { - t("public flash.net.URLStream::readBoolean"); + h.prototype.readBoolean = function() { + v("public flash.net.URLStream::readBoolean"); }; - g.prototype.readByte = function() { + h.prototype.readByte = function() { return this._buffer.readByte(); }; - g.prototype.readUnsignedByte = function() { - t("public flash.net.URLStream::readUnsignedByte"); + h.prototype.readUnsignedByte = function() { + v("public flash.net.URLStream::readUnsignedByte"); }; - g.prototype.readShort = function() { - t("public flash.net.URLStream::readShort"); + h.prototype.readShort = function() { + v("public flash.net.URLStream::readShort"); }; - g.prototype.readUnsignedShort = function() { + h.prototype.readUnsignedShort = function() { return this._buffer.readUnsignedShort(); }; - g.prototype.readUnsignedInt = function() { - t("public flash.net.URLStream::readUnsignedInt"); + h.prototype.readUnsignedInt = function() { + v("public flash.net.URLStream::readUnsignedInt"); }; - g.prototype.readInt = function() { - t("public flash.net.URLStream::readInt"); + h.prototype.readInt = function() { + v("public flash.net.URLStream::readInt"); }; - g.prototype.readFloat = function() { - t("public flash.net.URLStream::readFloat"); + h.prototype.readFloat = function() { + v("public flash.net.URLStream::readFloat"); }; - g.prototype.readDouble = function() { - t("public flash.net.URLStream::readDouble"); + h.prototype.readDouble = function() { + v("public flash.net.URLStream::readDouble"); }; - g.prototype.readMultiByte = function(a, b) { + h.prototype.readMultiByte = function(a, b) { l(b); - t("public flash.net.URLStream::readMultiByte"); + v("public flash.net.URLStream::readMultiByte"); }; - g.prototype.readUTF = function() { + h.prototype.readUTF = function() { return this._buffer.readUTF(); }; - g.prototype.readUTFBytes = function(a) { + h.prototype.readUTFBytes = function(a) { return this._buffer.readUTFBytes(a); }; - g.prototype.close = function() { + h.prototype.close = function() { this._session.close(); }; - g.prototype.readObject = function() { - t("public flash.net.URLStream::readObject"); + h.prototype.readObject = function() { + v("public flash.net.URLStream::readObject"); }; - g.prototype.stop = function() { - t("public flash.net.URLStream::stop"); + h.prototype.stop = function() { + v("public flash.net.URLStream::stop"); }; - g.classInitializer = null; - g.initializer = function() { + h.classInitializer = null; + h.initializer = function() { this._buffer = new q.ByteArray; this._writePosition = 0; this._connected = !1; }; - g.classSymbols = null; - g.instanceSymbols = null; - return g; + h.classSymbols = null; + h.instanceSymbols = null; + return h; }(a.events.EventDispatcher); - v.URLStream = s; + w.URLStream = r; })(a.net || (a.net = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -41909,9 +41896,9 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(p) { - var t = d.AVM2.Runtime.asCoerceString, u = function(a) { + (function(n) { + (function(n) { + var v = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a) { void 0 === a && (a = null); this._ignoreDecodingErrors = !1; @@ -41919,24 +41906,24 @@ var RtmpJs; } __extends(c, a); c.prototype.decode = function(a) { - a = t(a); + a = v(a); a = a.split("&"); for (var c = 0;c < a.length;c++) { var d = a[c], l = d.indexOf("="); 0 > l && (this._ignoreDecodingErrors ? l = d.length : throwError("Error", k.Errors.DecodeParamError)); - var g = unescape(d.substring(0, l).split("+").join(" ")), d = unescape(d.substring(l + 1).split("+").join(" ")), l = this.asGetPublicProperty(g); - "undefined" === typeof l ? this.asSetPublicProperty(g, d) : Array.isArray(l) ? l.push(d) : this.asSetPublicProperty(g, [l, d]); + var h = unescape(d.substring(0, l).split("+").join(" ")), d = unescape(d.substring(l + 1).split("+").join(" ")), l = this.asGetPublicProperty(h); + "undefined" === typeof l ? this.asSetPublicProperty(h, d) : Array.isArray(l) ? l.push(d) : this.asSetPublicProperty(h, [l, d]); } }; c.prototype.toString = function() { for (var a = [], c = this.asGetEnumerableKeys(), d = 0;d < c.length;d++) { - var l = c[d].split(" ").join("+"), g = this.asGetPublicProperty(l), l = escape(l).split(" ").join("+"); - if (Array.isArray(g)) { - for (var f = 0;f < g.length;f++) { - a.push(l + "=" + escape(g[f])); + var l = c[d].split(" ").join("+"), h = this.asGetPublicProperty(l), l = escape(l).split(" ").join("+"); + if (Array.isArray(h)) { + for (var f = 0;f < h.length;f++) { + a.push(l + "=" + escape(h[f])); } } else { - a.push(l + "=" + escape(g)); + a.push(l + "=" + escape(h)); } } return a.join("&"); @@ -41947,8 +41934,8 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.ASNative); - p.URLVariables = u; - })(p.net || (p.net = {})); + n.URLVariables = u; + })(n.net || (n.net = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -41958,19 +41945,19 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.sensors.Accelerometer"); } __extends(d, a); Object.defineProperty(d.prototype, "isSupported", {get:function() { - t("public flash.sensors.Accelerometer::get isSupported"); + v("public flash.sensors.Accelerometer::get isSupported"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "muted", {get:function() { - t("public flash.sensors.Accelerometer::get muted"); + v("public flash.sensors.Accelerometer::get muted"); }, enumerable:!0, configurable:!0}); d.prototype.setRequestedUpdateInterval = function(a) { - t("public flash.sensors.Accelerometer::setRequestedUpdateInterval"); + v("public flash.sensors.Accelerometer::setRequestedUpdateInterval"); }; d.classInitializer = null; d.initializer = null; @@ -41989,19 +41976,19 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.sensors.Geolocation"); } __extends(d, a); Object.defineProperty(d.prototype, "isSupported", {get:function() { - t("public flash.sensors.Geolocation::get isSupported"); + v("public flash.sensors.Geolocation::get isSupported"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "muted", {get:function() { - t("public flash.sensors.Geolocation::get muted"); + v("public flash.sensors.Geolocation::get muted"); }, enumerable:!0, configurable:!0}); d.prototype.setRequestedUpdateInterval = function(a) { - t("public flash.sensors.Geolocation::setRequestedUpdateInterval"); + v("public flash.sensors.Geolocation::setRequestedUpdateInterval"); }; d.classInitializer = null; d.initializer = null; @@ -42020,7 +42007,7 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.AVM2, c = d.AVM2.Runtime.ApplicationDomain, h = d.AVM2.ABC.Multiname, q = function(a) { + var n = d.Debug.notImplemented, u = d.AVM2.Runtime.asCoerceString, l = d.AVM2.Runtime.AVM2, c = d.AVM2.Runtime.ApplicationDomain, g = d.AVM2.ABC.Multiname, q = function(a) { function d(a) { void 0 === a && (a = null); a instanceof c ? this._runtimeDomain = a : (a = a ? a._runtimeDomain : l.currentDomain().system, this._runtimeDomain = new c(a.vm, a, 2, !1)); @@ -42030,24 +42017,24 @@ var RtmpJs; return new d(l.currentDomain()); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "MIN_DOMAIN_MEMORY_LENGTH", {get:function() { - p("public flash.system.ApplicationDomain::get MIN_DOMAIN_MEMORY_LENGTH"); + n("public flash.system.ApplicationDomain::get MIN_DOMAIN_MEMORY_LENGTH"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "parentDomain", {get:function() { return this._runtimeDomain.base ? new d(this._runtimeDomain.base) : null; }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "domainMemory", {get:function() { - p("public flash.system.ApplicationDomain::get domainMemory"); + n("public flash.system.ApplicationDomain::get domainMemory"); }, set:function(a) { - p("public flash.system.ApplicationDomain::set domainMemory"); + n("public flash.system.ApplicationDomain::set domainMemory"); }, enumerable:!0, configurable:!0}); d.prototype.getDefinition = function(a) { - return(a = u(a)) ? (a = a.replace("::", "."), this._runtimeDomain.getProperty(h.fromSimpleName(a), !0, !0)) : null; + return (a = u(a)) ? (a = a.replace("::", "."), this._runtimeDomain.getProperty(g.fromSimpleName(a), !0, !0)) : null; }; d.prototype.hasDefinition = function(a) { - return(a = u(a)) ? (a = a.replace("::", "."), !!this._runtimeDomain.findDomainProperty(h.fromSimpleName(a), !1, !1)) : !1; + return (a = u(a)) ? (a = a.replace("::", "."), !!this._runtimeDomain.findDomainProperty(g.fromSimpleName(a), !1, !1)) : !1; }; d.prototype.getQualifiedDefinitionNames = function() { - p("public flash.system.ApplicationDomain::getQualifiedDefinitionNames"); + n("public flash.system.ApplicationDomain::getQualifiedDefinitionNames"); }; d.classInitializer = null; d.initializer = null; @@ -42066,57 +42053,57 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = d.ObjectUtilities.toKeyValueArray, q = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = d.ObjectUtilities.toKeyValueArray, q = function(a) { function d() { u("public flash.system.Capabilities"); } __extends(d, a); Object.defineProperty(d, "isEmbeddedInAcrobat", {get:function() { - p("public flash.system.Capabilities::get isEmbeddedInAcrobat"); + n("public flash.system.Capabilities::get isEmbeddedInAcrobat"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasEmbeddedVideo", {get:function() { - p("public flash.system.Capabilities::get hasEmbeddedVideo"); + n("public flash.system.Capabilities::get hasEmbeddedVideo"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasAudio", {get:function() { - p("public flash.system.Capabilities::get hasAudio"); + n("public flash.system.Capabilities::get hasAudio"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "avHardwareDisable", {get:function() { - p("public flash.system.Capabilities::get avHardwareDisable"); + n("public flash.system.Capabilities::get avHardwareDisable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasAccessibility", {get:function() { c("public flash.system.Capabilities::get hasAccessibility"); return d._hasAccessibility; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasAudioEncoder", {get:function() { - p("public flash.system.Capabilities::get hasAudioEncoder"); + n("public flash.system.Capabilities::get hasAudioEncoder"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasMP3", {get:function() { - p("public flash.system.Capabilities::get hasMP3"); + n("public flash.system.Capabilities::get hasMP3"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasPrinting", {get:function() { - p("public flash.system.Capabilities::get hasPrinting"); + n("public flash.system.Capabilities::get hasPrinting"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasScreenBroadcast", {get:function() { - p("public flash.system.Capabilities::get hasScreenBroadcast"); + n("public flash.system.Capabilities::get hasScreenBroadcast"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasScreenPlayback", {get:function() { - p("public flash.system.Capabilities::get hasScreenPlayback"); + n("public flash.system.Capabilities::get hasScreenPlayback"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasStreamingAudio", {get:function() { - p("public flash.system.Capabilities::get hasStreamingAudio"); + n("public flash.system.Capabilities::get hasStreamingAudio"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasStreamingVideo", {get:function() { - p("public flash.system.Capabilities::get hasStreamingVideo"); + n("public flash.system.Capabilities::get hasStreamingVideo"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasVideoEncoder", {get:function() { - p("public flash.system.Capabilities::get hasVideoEncoder"); + n("public flash.system.Capabilities::get hasVideoEncoder"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "isDebugger", {get:function() { c("public flash.system.Capabilities::get isDebugger"); return d._isDebugger; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "localFileReadDisable", {get:function() { - p("public flash.system.Capabilities::get localFileReadDisable"); + n("public flash.system.Capabilities::get localFileReadDisable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "language", {get:function() { c("public flash.system.Capabilities::get language"); @@ -42129,20 +42116,20 @@ var RtmpJs; Object.defineProperty(d, "os", {get:function() { if (null === d._os) { var a, c = window.navigator.userAgent; - 0 < c.indexOf("Macintosh") ? a = "Mac OS 10.5.2" : 0 < c.indexOf("Windows") ? a = "Windows XP" : 0 < c.indexOf("Linux") ? a = "Linux" : /(iPad|iPhone|iPod|Android)/.test(c) ? a = "iPhone3,1" : p("public flash.system.Capabilities::get os"); + 0 < c.indexOf("Macintosh") ? a = "Mac OS 10.5.2" : 0 < c.indexOf("Windows") ? a = "Windows XP" : 0 < c.indexOf("Linux") ? a = "Linux" : /(iPad|iPhone|iPod|Android)/.test(c) ? a = "iPhone3,1" : n("public flash.system.Capabilities::get os"); d._os = a; } return d._os; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "cpuArchitecture", {get:function() { - p("public flash.system.Capabilities::get cpuArchitecture"); + n("public flash.system.Capabilities::get cpuArchitecture"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "playerType", {get:function() { c("public flash.system.Capabilities::get playerType"); return d._playerType; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "serverString", {get:function() { - var a = h({OS:d.os}).map(function(a) { + var a = g({OS:d.os}).map(function(a) { return a[0] + "=" + encodeURIComponent(a[1]); }).join("&"); c("Capabilities.serverString: " + a); @@ -42155,7 +42142,7 @@ var RtmpJs; return "color"; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "pixelAspectRatio", {get:function() { - p("public flash.system.Capabilities::get pixelAspectRatio"); + n("public flash.system.Capabilities::get pixelAspectRatio"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "screenDPI", {get:function() { c("public flash.system.Capabilities::get screenDPI"); @@ -42170,29 +42157,29 @@ var RtmpJs; return window.screen.height; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "touchscreenType", {get:function() { - p("public flash.system.Capabilities::get touchscreenType"); + n("public flash.system.Capabilities::get touchscreenType"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasIME", {get:function() { - p("public flash.system.Capabilities::get hasIME"); + n("public flash.system.Capabilities::get hasIME"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasTLS", {get:function() { - p("public flash.system.Capabilities::get hasTLS"); + n("public flash.system.Capabilities::get hasTLS"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "maxLevelIDC", {get:function() { - p("public flash.system.Capabilities::get maxLevelIDC"); + n("public flash.system.Capabilities::get maxLevelIDC"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "supports32BitProcesses", {get:function() { - p("public flash.system.Capabilities::get supports32BitProcesses"); + n("public flash.system.Capabilities::get supports32BitProcesses"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "supports64BitProcesses", {get:function() { - p("public flash.system.Capabilities::get supports64BitProcesses"); + n("public flash.system.Capabilities::get supports64BitProcesses"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "_internal", {get:function() { - p("public flash.system.Capabilities::get _internal"); + n("public flash.system.Capabilities::get _internal"); }, enumerable:!0, configurable:!0}); d.hasMultiChannelAudio = function(a) { l(a); - p("public flash.system.Capabilities::static hasMultiChannelAudio"); + n("public flash.system.Capabilities::static hasMultiChannelAudio"); }; d.classInitializer = null; d.initializer = null; @@ -42219,12 +42206,12 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { - function h() { - p("packageInternal flash.system.FSCommand"); + var n = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + function g() { + n("packageInternal flash.system.FSCommand"); } - __extends(h, a); - h._fscommand = function(a, c) { + __extends(g, a); + g._fscommand = function(a, c) { a = u(a); c = u(c); console.log("FSCommand: " + a + "; " + c); @@ -42235,11 +42222,11 @@ var RtmpJs; d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"].executeFSCommand(a, c); } }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + return g; }(a.ASNative); k.FSCommand = l; })(k.system || (k.system = {})); @@ -42252,9 +42239,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.system.ImageDecodingPolicy"); + n("public flash.system.ImageDecodingPolicy"); } __extends(c, a); c.classInitializer = null; @@ -42276,13 +42263,13 @@ var RtmpJs; (function(a) { (function(d) { (function(k) { - var t = function(a) { - function l(a, h, l) { + var v = function(a) { + function l(a, g, l) { void 0 === a && (a = !1); - void 0 === h && (h = null); + void 0 === g && (g = null); void 0 === l && (l = null); this.checkPolicyFile = a; - this.applicationDomain = h; + this.applicationDomain = g; this.securityDomain = l; this.imageDecodingPolicy = d.system.ImageDecodingPolicy.ON_DEMAND; } @@ -42293,7 +42280,7 @@ var RtmpJs; l.instanceSymbols = "checkPolicyFile! applicationDomain! securityDomain! allowCodeImport! requestedContentParent! parameters! imageDecodingPolicy!".split(" "); return l; }(a.ASNative); - k.LoaderContext = t; + k.LoaderContext = v; })(d.system || (d.system = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -42304,9 +42291,9 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { + var v = d.Debug.dummyConstructor, u = function(a) { function c(a, c, d, l) { - t("public flash.system.JPEGLoaderContext"); + v("public flash.system.JPEGLoaderContext"); } __extends(c, a); c.classInitializer = null; @@ -42326,25 +42313,25 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.system.MessageChannel"); } __extends(d, a); Object.defineProperty(d.prototype, "messageAvailable", {get:function() { - t("public flash.system.MessageChannel::get messageAvailable"); + v("public flash.system.MessageChannel::get messageAvailable"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "state", {get:function() { - t("public flash.system.MessageChannel::get state"); + v("public flash.system.MessageChannel::get state"); }, enumerable:!0, configurable:!0}); d.prototype.send = function(a, c) { - t("public flash.system.MessageChannel::send"); + v("public flash.system.MessageChannel::send"); }; d.prototype.receive = function(a) { - t("public flash.system.MessageChannel::receive"); + v("public flash.system.MessageChannel::receive"); }; d.prototype.close = function() { - t("public flash.system.MessageChannel::close"); + v("public flash.system.MessageChannel::close"); }; d.classInitializer = null; d.initializer = null; @@ -42363,9 +42350,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.system.MessageChannelState"); + n("public flash.system.MessageChannelState"); } __extends(c, a); c.classInitializer = null; @@ -42388,72 +42375,72 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, h = function(a) { - function h() { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = d.Debug.somewhatImplemented, g = function(a) { + function g() { u("public flash.system.Security"); } - __extends(h, a); - Object.defineProperty(h, "exactSettings", {get:function() { - return h._exactSettings; + __extends(g, a); + Object.defineProperty(g, "exactSettings", {get:function() { + return g._exactSettings; }, set:function(a) { - h._exactSettings = !!a; + g._exactSettings = !!a; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "disableAVM1Loading", {get:function() { - p("public flash.system.Security::get disableAVM1Loading"); + Object.defineProperty(g, "disableAVM1Loading", {get:function() { + n("public flash.system.Security::get disableAVM1Loading"); }, set:function(a) { - p("public flash.system.Security::set disableAVM1Loading"); + n("public flash.system.Security::set disableAVM1Loading"); }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "sandboxType", {get:function() { + Object.defineProperty(g, "sandboxType", {get:function() { c("public flash.system.Security::get sandboxType"); - return h._sandboxType; + return g._sandboxType; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h, "pageDomain", {get:function() { + Object.defineProperty(g, "pageDomain", {get:function() { c("public flash.system.Security::get pageDomain"); var a = d.FileLoadingService.instance.resolveUrl("/").split("/"); a.pop(); return a.pop(); }, enumerable:!0, configurable:!0}); - h.allowDomain = function() { + g.allowDomain = function() { c('public flash.system.Security::static allowDomain ["' + Array.prototype.join.call(arguments, '", "') + '"]'); - for (var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"], g = 0;g < arguments.length;g++) { - a.addToSWFLoadingWhitelist(l(arguments[g]), !1); + for (var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"], h = 0;h < arguments.length;h++) { + a.addToSWFLoadingWhitelist(l(arguments[h]), !1); } }; - h.allowInsecureDomain = function() { + g.allowInsecureDomain = function() { c("public flash.system.Security::static allowInsecureDomain"); - for (var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"], g = 0;g < arguments.length;g++) { - a.addToSWFLoadingWhitelist(l(arguments[g]), !0); + for (var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"], h = 0;h < arguments.length;h++) { + a.addToSWFLoadingWhitelist(l(arguments[h]), !0); } }; - h.loadPolicyFile = function(a) { + g.loadPolicyFile = function(a) { l(a); c("public flash.system.Security::static loadPolicyFile"); }; - h.showSettings = function(a) { + g.showSettings = function(a) { void 0 === a && (a = "default"); l(a); - p("public flash.system.Security::static showSettings"); + n("public flash.system.Security::static showSettings"); }; - h.duplicateSandboxBridgeInputArguments = function(a, c) { - p("public flash.system.Security::static duplicateSandboxBridgeInputArguments"); + g.duplicateSandboxBridgeInputArguments = function(a, c) { + n("public flash.system.Security::static duplicateSandboxBridgeInputArguments"); }; - h.duplicateSandboxBridgeOutputArgument = function(a, c) { - p("public flash.system.Security::static duplicateSandboxBridgeOutputArgument"); + g.duplicateSandboxBridgeOutputArgument = function(a, c) { + n("public flash.system.Security::static duplicateSandboxBridgeOutputArgument"); }; - h.classInitializer = null; - h.initializer = null; - h.classSymbols = null; - h.instanceSymbols = null; - h.REMOTE = "remote"; - h.LOCAL_WITH_FILE = "localWithFile"; - h.LOCAL_WITH_NETWORK = "localWithNetwork"; - h.LOCAL_TRUSTED = "localTrusted"; - h.APPLICATION = "application"; - h._exactSettings = !1; - h._sandboxType = "remote"; - return h; + g.classInitializer = null; + g.initializer = null; + g.classSymbols = null; + g.instanceSymbols = null; + g.REMOTE = "remote"; + g.LOCAL_WITH_FILE = "localWithFile"; + g.LOCAL_WITH_NETWORK = "localWithNetwork"; + g.LOCAL_TRUSTED = "localTrusted"; + g.APPLICATION = "application"; + g._exactSettings = !1; + g._sandboxType = "remote"; + return g; }(a.ASNative); - k.Security = h; + k.Security = g; })(k.system || (k.system = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -42464,13 +42451,13 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.somewhatImplemented, u = function(a) { + var n = d.Debug.somewhatImplemented, u = function(a) { function c() { } __extends(c, a); Object.defineProperty(c, "currentDomain", {get:function() { this._currentDomain || (this._currentDomain = new k.SecurityDomain); - p("public flash.system.SecurityDomain::get currentDomain"); + n("public flash.system.SecurityDomain::get currentDomain"); return this._currentDomain; }, enumerable:!0, configurable:!0}); c.classInitializer = null; @@ -42490,9 +42477,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.system.SecurityPanel"); + n("public flash.system.SecurityPanel"); } __extends(c, a); c.classInitializer = null; @@ -42519,9 +42506,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.system.TouchscreenType"); + n("public flash.system.TouchscreenType"); } __extends(c, a); c.classInitializer = null; @@ -42566,7 +42553,7 @@ var RtmpJs; case d.ADVANCED: return 2; default: - return-1; + return -1; } }; d.classInitializer = null; @@ -42638,73 +42625,73 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - var t = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.asCoerceString, l = k.text.FontStyle, c = k.text.FontType, h = function(a) { - function h() { + (function(w) { + var v = d.Debug.somewhatImplemented, u = d.AVM2.Runtime.asCoerceString, l = k.text.FontStyle, c = k.text.FontType, g = function(a) { + function g() { } - __extends(h, a); - h._getFontMetrics = function(a, c) { + __extends(g, a); + g._getFontMetrics = function(a, c) { return this._deviceFontMetrics[a + c] || this._deviceFontMetrics[a]; }; - h.resolveFontName = function(a) { - return "_sans" === a ? h.DEFAULT_FONT_SANS : "_serif" === a ? h.DEFAULT_FONT_SERIF : "_typewriter" === a ? h.DEFAULT_FONT_TYPEWRITER : a; + g.resolveFontName = function(a) { + return "_sans" === a ? g.DEFAULT_FONT_SANS : "_serif" === a ? g.DEFAULT_FONT_SERIF : "_typewriter" === a ? g.DEFAULT_FONT_TYPEWRITER : a; }; - h.getBySymbolId = function(a) { + g.getBySymbolId = function(a) { return this._fontsBySymbolId[a]; }; - h.getByNameAndStyle = function(a, f) { + g.getByNameAndStyle = function(a, f) { for (var b, e, d = a.split(","), l = 0;l < d.length && !e;l++) { b = d[l].toLowerCase() + f, e = this._fontsByName[b]; } - e || (e = new h, e._fontName = d[0], e._fontFamily = h.resolveFontName(d[0].toLowerCase()), e._fontStyle = f, e._fontType = c.DEVICE, this._fontsByName[b] = e); - e._fontType === c.DEVICE && (b = h._getFontMetrics(e._fontName, e._fontStyle), b || (b = h._getFontMetrics(h.DEFAULT_FONT_SANS, e._fontStyle), e._fontFamily = h.DEFAULT_FONT_SANS), e.ascent = b[0], e.descent = b[1], e.leading = b[2]); + e || (e = new g, e._fontName = d[0], e._fontFamily = g.resolveFontName(d[0].toLowerCase()), e._fontStyle = f, e._fontType = c.DEVICE, this._fontsByName[b] = e); + e._fontType === c.DEVICE && (b = g._getFontMetrics(e._fontName, e._fontStyle), b || (b = g._getFontMetrics(g.DEFAULT_FONT_SANS, e._fontStyle), e._fontFamily = g.DEFAULT_FONT_SANS), e.ascent = b[0], e.descent = b[1], e.leading = b[2]); return e; }; - h.getDefaultFont = function() { - return h.getByNameAndStyle(h.DEFAULT_FONT_SANS, l.REGULAR); + g.getDefaultFont = function() { + return g.getByNameAndStyle(g.DEFAULT_FONT_SANS, l.REGULAR); }; - h.enumerateFonts = function(a) { - t("public flash.text.Font::static enumerateFonts"); - return h._fonts.slice(); + g.enumerateFonts = function(a) { + v("public flash.text.Font::static enumerateFonts"); + return g._fonts.slice(); }; - h.registerFont = function(a) { - t("Font.registerFont"); + g.registerFont = function(a) { + v("Font.registerFont"); }; - h.registerEmbeddedFont = function(a, c) { - var b = k.display.DisplayObject.getNextSyncID(), e = {get:h.resolveEmbeddedFont.bind(h, c, a.id, b), configurable:!0}; - Object.defineProperty(h._fontsByName, a.name.toLowerCase() + a.style, e); - Object.defineProperty(h._fontsByName, "swffont" + b + a.style, e); - Object.defineProperty(h._fontsBySymbolId, b + "", e); + g.registerEmbeddedFont = function(a, c) { + var b = k.display.DisplayObject.getNextSyncID(), e = {get:g.resolveEmbeddedFont.bind(g, c, a.id, b), configurable:!0}; + Object.defineProperty(g._fontsByName, a.name.toLowerCase() + a.style, e); + Object.defineProperty(g._fontsByName, "swffont" + b + a.style, e); + Object.defineProperty(g._fontsBySymbolId, b + "", e); }; - h.resolveEmbeddedFont = function(a, c, b) { + g.resolveEmbeddedFont = function(a, c, b) { a.getSymbolById(c).syncId = b; - return h._fontsBySymbolId[c]; + return g._fontsBySymbolId[c]; }; - Object.defineProperty(h.prototype, "fontName", {get:function() { + Object.defineProperty(g.prototype, "fontName", {get:function() { return this._fontName; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fontStyle", {get:function() { + Object.defineProperty(g.prototype, "fontStyle", {get:function() { return this._fontStyle; }, enumerable:!0, configurable:!0}); - Object.defineProperty(h.prototype, "fontType", {get:function() { + Object.defineProperty(g.prototype, "fontType", {get:function() { return this._fontType; }, enumerable:!0, configurable:!0}); - h.prototype.hasGlyphs = function(a) { + g.prototype.hasGlyphs = function(a) { u(a); - t("Font#hasGlyphs"); - return!0; + v("Font#hasGlyphs"); + return !0; }; - h.DEFAULT_FONT_SANS = "Arial"; - h.DEFAULT_FONT_SERIF = "Times New Roman"; - h.DEFAULT_FONT_TYPEWRITER = "Courier New"; - h.classInitializer = function() { - h._fonts = []; - h._fontsBySymbolId = d.ObjectUtilities.createMap(); - h._fontsByName = d.ObjectUtilities.createMap(); - h.DEVICE_FONT_METRICS_WIN = {Arial:[1, .25, 0], "Arial Baltic":[1, .25, 0], "Arial Black":[1.0833, .3333, 0], "Arial CE":[1, .25, 0], "Arial CYR":[1, .25, 0], "Arial Greek":[1, .25, 0], "Arial TUR":[1, .25, 0], "Comic Sans MS":[1.0833, .3333, 0], "Courier New":[1, .25, 0], "Courier New Baltic":[1, .25, 0], "Courier New CE":[1, .25, 0], "Courier New CYR":[1, .25, 0], "Courier New Greek":[1, .25, 0], "Courier New TUR":[1, .25, 0], "Estrangelo Edessa":[.75, .3333, 0], "Franklin Gothic Medium":[1, + g.DEFAULT_FONT_SANS = "Arial"; + g.DEFAULT_FONT_SERIF = "Times New Roman"; + g.DEFAULT_FONT_TYPEWRITER = "Courier New"; + g.classInitializer = function() { + g._fonts = []; + g._fontsBySymbolId = d.ObjectUtilities.createMap(); + g._fontsByName = d.ObjectUtilities.createMap(); + g.DEVICE_FONT_METRICS_WIN = {Arial:[1, .25, 0], "Arial Baltic":[1, .25, 0], "Arial Black":[1.0833, .3333, 0], "Arial CE":[1, .25, 0], "Arial CYR":[1, .25, 0], "Arial Greek":[1, .25, 0], "Arial TUR":[1, .25, 0], "Comic Sans MS":[1.0833, .3333, 0], "Courier New":[1, .25, 0], "Courier New Baltic":[1, .25, 0], "Courier New CE":[1, .25, 0], "Courier New CYR":[1, .25, 0], "Courier New Greek":[1, .25, 0], "Courier New TUR":[1, .25, 0], "Estrangelo Edessa":[.75, .3333, 0], "Franklin Gothic Medium":[1, .3333, 0], Gautami:[.9167, .8333, 0], Georgia:[1, .25, 0], Impact:[1.0833, .25, 0], Latha:[1.0833, .25, 0], "Lucida Console":[.75, .25, 0], "Lucida Sans Unicode":[1.0833, .25, 0], Mangal:[1.0833, .25, 0], Marlett:[1, 0, 0], "Microsoft Sans Serif":[1.0833, .1667, 0], "MV Boli":[.9167, .25, 0], "Palatino Linotype":[1.0833, .3333, 0], Raavi:[1.0833, .6667, 0], Shruti:[1, .5, 0], Sylfaen:[1, .3333, 0], Symbol:[1, .25, 0], Tahoma:[1, .1667, 0], "Times New Roman":[1, .25, 0], "Times New Roman Baltic":[1, .25, 0], "Times New Roman CE":[1, .25, 0], "Times New Roman CYR":[1, .25, 0], "Times New Roman Greek":[1, .25, 0], "Times New Roman TUR":[1, .25, 0], "Trebuchet MS":[1.0833, .4167, 0], Tunga:[1, .75, 0], Verdana:[1, .1667, 0], Webdings:[1.0833, .5, 0], Wingdings:[.9167, .25, 0]}; - h.DEVICE_FONT_METRICS_MAC = {"Al Bayan Bold":[1, .5833, 0], "Al Bayan Plain":[1, .5, 0], "Al Nile":[.8333, .5, 0], "Al Nile Bold":[.8333, .5, 0], "Al Tarikh Regular":[.5833, .4167, 0], "American Typewriter":[.9167, .25, 0], "American Typewriter Bold":[.9167, .25, 0], "American Typewriter Condensed":[.9167, .25, 0], "American Typewriter Condensed Bold":[.9167, .25, 0], "American Typewriter Condensed Light":[.8333, .25, 0], "American Typewriter Light":[.9167, .25, 0], "Andale Mono":[.9167, + g.DEVICE_FONT_METRICS_MAC = {"Al Bayan Bold":[1, .5833, 0], "Al Bayan Plain":[1, .5, 0], "Al Nile":[.8333, .5, 0], "Al Nile Bold":[.8333, .5, 0], "Al Tarikh Regular":[.5833, .4167, 0], "American Typewriter":[.9167, .25, 0], "American Typewriter Bold":[.9167, .25, 0], "American Typewriter Condensed":[.9167, .25, 0], "American Typewriter Condensed Bold":[.9167, .25, 0], "American Typewriter Condensed Light":[.8333, .25, 0], "American Typewriter Light":[.9167, .25, 0], "Andale Mono":[.9167, .25, 0], "Apple Braille":[.75, .25, 0], "Apple Braille Outline 6 Dot":[.75, .25, 0], "Apple Braille Outline 8 Dot":[.75, .25, 0], "Apple Braille Pinpoint 6 Dot":[.75, .25, 0], "Apple Braille Pinpoint 8 Dot":[.75, .25, 0], "Apple Chancery":[1.0833, .5, 0], "Apple Color Emoji":[1.25, .4167, 0], "Apple SD Gothic Neo Bold":[.9167, .3333, 0], "Apple SD Gothic Neo Heavy":[.9167, .3333, 0], "Apple SD Gothic Neo Light":[.9167, .3333, 0], "Apple SD Gothic Neo Medium":[.9167, .3333, 0], "Apple SD Gothic Neo Regular":[.9167, .3333, 0], "Apple SD Gothic Neo SemiBold":[.9167, .3333, 0], "Apple SD Gothic Neo Thin":[.9167, .3333, 0], "Apple SD Gothic Neo UltraLight":[.9167, .3333, 0], "Apple SD GothicNeo ExtraBold":[.9167, .3333, 0], "Apple Symbols":[.6667, .25, 0], "AppleGothic Regular":[.9167, .3333, 0], "AppleMyungjo Regular":[.8333, .3333, 0], Arial:[.9167, .25, 0], "Arial Black":[1.0833, .3333, 0], "Arial Bold":[.9167, .25, 0], "Arial Bold Italic":[.9167, .25, 0], "Arial Hebrew":[.75, .3333, 0], "Arial Hebrew Bold":[.75, .3333, 0], "Arial Hebrew Light":[.75, .3333, 0], "Arial Hebrew Scholar":[.75, .3333, 0], "Arial Hebrew Scholar Bold":[.75, .3333, 0], "Arial Hebrew Scholar Light":[.75, .3333, 0], "Arial Italic":[.9167, .25, 0], "Arial Narrow":[.9167, .25, 0], "Arial Narrow Bold":[.9167, .25, 0], "Arial Narrow Bold Italic":[.9167, .25, 0], "Arial Narrow Italic":[.9167, .25, 0], "Arial Rounded MT Bold":[.9167, .25, 0], "Arial Unicode MS":[1.0833, .25, 0], "Athelas Bold":[.9167, .25, 0], "Athelas Bold Italic":[.9167, @@ -42745,26 +42732,26 @@ var RtmpJs; "Times New Roman":[.9167, .25, 0], "Times New Roman Bold":[.9167, .25, 0], "Times New Roman Bold Italic":[.9167, .25, 0], "Times New Roman Italic":[.9167, .25, 0], "Times Roman":[.75, .25, 0], Trattatello:[1.1667, .6667, 0], "Trebuchet MS":[.9167, .25, 0], "Trebuchet MS Bold":[.9167, .25, 0], "Trebuchet MS Bold Italic":[.9167, .25, 0], "Trebuchet MS Italic":[.9167, .25, 0], Verdana:[1, .25, 0], "Verdana Bold":[1, .25, 0], "Verdana Bold Italic":[1, .25, 0], "Verdana Italic":[1, .25, 0], "Waseem Light":[.9167, .5833, 0], "Waseem Regular":[.9167, .5833, 0], "Wawati SC Regular":[1.0833, .3333, 0], "Wawati TC Regular":[1.0833, .3333, 0], Webdings:[.8333, .1667, 0], "Weibei SC Bold":[1.0833, .3333, 0], "Weibei TC Bold":[1.0833, .3333, 0], Wingdings:[.9167, .25, 0], "Wingdings 2":[.8333, .25, 0], "Wingdings 3":[.9167, .25, 0], "Xingkai SC Bold":[1.0833, .3333, 0], "Xingkai SC Light":[1.0833, .3333, 0], "Yuanti SC Bold":[1.0833, .3333, 0], "Yuanti SC Light":[1.0833, .3333, 0], "Yuanti SC Regular":[1.0833, .3333, 0], "YuGothic Bold":[.9167, .0833, 0], "YuGothic Medium":[.9167, .0833, 0], "YuMincho Demibold":[.9167, .0833, 0], "YuMincho Medium":[.9167, .0833, 0], "Yuppy SC Regular":[1.0833, .3333, 0], "Yuppy TC Regular":[1.0833, .3333, 0], "Zapf Dingbats":[.8333, .1667, 0], Zapfino:[1.9167, 1.5, 0]}; - h.DEVICE_FONT_METRICS_LINUX = {KacstFarsi:[1.0417, .5208, 0], Meera:[.651, .4557, 0], FreeMono:[.7812, .1953, 0], Loma:[1.1719, .4557, 0], "Century Schoolbook L":[.9766, .3255, 0], KacstTitleL:[1.0417, .5208, 0], Garuda:[1.3021, .5859, 0], Rekha:[1.1068, .2604, 0], Purisa:[1.1068, .5208, 0], "DejaVu Sans Mono":[.9115, .2604, 0], Vemana2000:[.9115, .8464, 0], KacstOffice:[1.0417, .5208, 0], Umpush:[1.237, .651, 0], OpenSymbol:[.7812, .1953, 0], Sawasdee:[1.1068, .4557, 0], "URW Palladio L":[.9766, + g.DEVICE_FONT_METRICS_LINUX = {KacstFarsi:[1.0417, .5208, 0], Meera:[.651, .4557, 0], FreeMono:[.7812, .1953, 0], Loma:[1.1719, .4557, 0], "Century Schoolbook L":[.9766, .3255, 0], KacstTitleL:[1.0417, .5208, 0], Garuda:[1.3021, .5859, 0], Rekha:[1.1068, .2604, 0], Purisa:[1.1068, .5208, 0], "DejaVu Sans Mono":[.9115, .2604, 0], Vemana2000:[.9115, .8464, 0], KacstOffice:[1.0417, .5208, 0], Umpush:[1.237, .651, 0], OpenSymbol:[.7812, .1953, 0], Sawasdee:[1.1068, .4557, 0], "URW Palladio L":[.9766, .3255, 0], FreeSerif:[.9115, .3255, 0], KacstDigital:[1.0417, .5208, 0], "Ubuntu Condensed":[.9115, .1953, 0], mry_KacstQurn:[1.4323, .7161, 0], "URW Gothic L":[.9766, .2604, 0], Dingbats:[.8464, .1953, 0], "URW Chancery L":[.9766, .3255, 0], "Phetsarath OT":[1.1068, .5208, 0], "Tlwg Typist":[.9115, .3906, 0], KacstLetter:[1.0417, .5208, 0], utkal:[1.1719, .651, 0], Norasi:[1.237, .5208, 0], KacstOne:[1.237, .651, 0], "Liberation Sans Narrow":[.9115, .2604, 0], Symbol:[1.0417, .3255, 0], NanumMyeongjo:[.9115, .2604, 0], Untitled1:[.651, .5859, 0], "Lohit Gujarati":[.9115, .3906, 0], "Liberation Mono":[.8464, .3255, 0], KacstArt:[1.0417, .5208, 0], Mallige:[.9766, .651, 0], "Bitstream Charter":[.9766, .2604, 0], NanumGothic:[.9115, .2604, 0], "Liberation Serif":[.9115, .2604, 0], Ubuntu:[.9115, .1953, 0], "Courier 10 Pitch":[.8464, .3255, 0], "Nimbus Sans L":[.9766, .3255, 0], TakaoPGothic:[.9115, .1953, 0], "WenQuanYi Micro Hei Mono":[.9766, .2604, 0], "DejaVu Sans":[.9115, .2604, 0], Kedage:[.9766, .651, 0], Kinnari:[1.3021, .5208, 0], TlwgMono:[.8464, .3906, 0], "Standard Symbols L":[1.0417, .3255, 0], "Lohit Punjabi":[1.1719, .651, 0], "Nimbus Mono L":[.8464, .3255, 0], Rachana:[.651, .5859, 0], Waree:[1.237, .4557, 0], KacstPoster:[1.0417, .5208, 0], "Khmer OS":[1.3021, .7161, 0], FreeSans:[.9766, .3255, 0], gargi:[.9115, .3255, 0], "Nimbus Roman No9 L":[.9115, .3255, 0], "DejaVu Serif":[.9115, .2604, 0], "WenQuanYi Micro Hei":[.9766, .2604, 0], "Ubuntu Light":[.9115, .1953, 0], TlwgTypewriter:[.9115, .3906, 0], KacstPen:[1.0417, .5208, 0], "Tlwg Typo":[.9115, .3906, 0], "Mukti Narrow":[1.237, .4557, 0], "Ubuntu Mono":[.8464, .1953, 0], "Lohit Bengali":[.9766, .4557, 0], "Liberation Sans":[.9115, .2604, 0], KacstDecorative:[1.1068, .5208, 0], "Khmer OS System":[1.237, .5859, 0], Saab:[.9766, .651, 0], KacstTitle:[1.0417, .5208, 0], "Mukti Narrow Bold":[1.237, .4557, 0], "Lohit Hindi":[.9766, .5208, 0], KacstQurn:[1.0417, .5208, 0], "URW Bookman L":[.9766, .3255, 0], KacstNaskh:[1.0417, .5208, 0], KacstScreen:[1.0417, .5208, 0], Pothana2000:[.9115, .8464, 0], "Lohit Tamil":[.8464, .3906, 0], KacstBook:[1.0417, .5208, 0], Sans:[.9115, .2604, 0], Times:[.9115, .3255, 0], Monospace:[.9115, .2604, 0]}; - h.DEVICE_FONT_METRICS_BUILTIN = {_sans:[.9, .22, .08], _serif:[.88, .26, .08], _typewriter:[.86, .24, .08]}; - h.DEVICE_FONT_METRICS_WIN.__proto__ = h.DEVICE_FONT_METRICS_BUILTIN; - h.DEVICE_FONT_METRICS_MAC.__proto__ = h.DEVICE_FONT_METRICS_BUILTIN; - h.DEVICE_FONT_METRICS_LINUX.__proto__ = h.DEVICE_FONT_METRICS_BUILTIN; + g.DEVICE_FONT_METRICS_BUILTIN = {_sans:[.9, .22, .08], _serif:[.88, .26, .08], _typewriter:[.86, .24, .08]}; + g.DEVICE_FONT_METRICS_WIN.__proto__ = g.DEVICE_FONT_METRICS_BUILTIN; + g.DEVICE_FONT_METRICS_MAC.__proto__ = g.DEVICE_FONT_METRICS_BUILTIN; + g.DEVICE_FONT_METRICS_LINUX.__proto__ = g.DEVICE_FONT_METRICS_BUILTIN; var a = self.navigator.userAgent; - -1 < a.indexOf("Windows") ? h._deviceFontMetrics = h.DEVICE_FONT_METRICS_WIN : /(Macintosh|iPad|iPhone|iPod|Android)/.test(a) ? (h._deviceFontMetrics = this.DEVICE_FONT_METRICS_MAC, h.DEFAULT_FONT_SANS = "Helvetica", h.DEFAULT_FONT_SERIF = "Times Roman", h.DEFAULT_FONT_TYPEWRITER = "Courier") : (h._deviceFontMetrics = this.DEVICE_FONT_METRICS_LINUX, h.DEFAULT_FONT_SANS = "Sans", h.DEFAULT_FONT_SERIF = "Times", h.DEFAULT_FONT_TYPEWRITER = "Monospace"); - var a = h._deviceFontMetrics, c; + -1 < a.indexOf("Windows") ? g._deviceFontMetrics = g.DEVICE_FONT_METRICS_WIN : /(Macintosh|iPad|iPhone|iPod|Android)/.test(a) ? (g._deviceFontMetrics = this.DEVICE_FONT_METRICS_MAC, g.DEFAULT_FONT_SANS = "Helvetica", g.DEFAULT_FONT_SERIF = "Times Roman", g.DEFAULT_FONT_TYPEWRITER = "Courier") : (g._deviceFontMetrics = this.DEVICE_FONT_METRICS_LINUX, g.DEFAULT_FONT_SANS = "Sans", g.DEFAULT_FONT_SERIF = "Times", g.DEFAULT_FONT_TYPEWRITER = "Monospace"); + var a = g._deviceFontMetrics, c; for (c in a) { a[c.toLowerCase()] = a[c]; } }; - h.classSymbols = null; - h.instanceSymbols = null; - h.initializer = function(a) { + g.classSymbols = null; + g.instanceSymbols = null; + g.initializer = function(a) { this._fontType = this._fontStyle = this._fontFamily = this._fontName = null; this.leading = this.descent = this.ascent = 0; this.advances = null; @@ -42772,23 +42759,23 @@ var RtmpJs; this._symbol = a; this._id = a.syncId; this._fontName = a.name; - this._fontFamily = h.resolveFontName(a.name); + this._fontFamily = g.resolveFontName(a.name); this._fontStyle = a.bold ? a.italic ? l.BOLD_ITALIC : l.BOLD : a.italic ? l.ITALIC : l.REGULAR; var f = a.metrics; f && (this.ascent = f.ascent, this.descent = f.descent, this.leading = f.leading, this.advances = f.advances); this._fontType = f ? c.EMBEDDED : c.DEVICE; - f = Object.getOwnPropertyDescriptor(h._fontsBySymbolId, a.syncId + ""); - f && f.value || (f = {value:this, configurable:!0}, Object.defineProperty(h._fontsBySymbolId, a.syncId + "", f), Object.defineProperty(h._fontsByName, a.name.toLowerCase() + this._fontStyle, f), this._fontType === c.EMBEDDED && Object.defineProperty(h._fontsByName, "swffont" + a.syncId + this._fontStyle, f)); + f = Object.getOwnPropertyDescriptor(g._fontsBySymbolId, a.syncId + ""); + f && f.value || (f = {value:this, configurable:!0}, Object.defineProperty(g._fontsBySymbolId, a.syncId + "", f), Object.defineProperty(g._fontsByName, a.name.toLowerCase() + this._fontStyle, f), this._fontType === c.EMBEDDED && Object.defineProperty(g._fontsByName, "swffont" + a.syncId + this._fontStyle, f)); } else { this._id = k.display.DisplayObject.getNextSyncID(); } }; - return h; + return g; }(a.ASNative); - v.Font = h; + w.Font = g; var q = function(a) { function c(d) { - a.call(this, d, h); + a.call(this, d, g); } __extends(c, a); c.FromData = function(a) { @@ -42812,7 +42799,7 @@ var RtmpJs; }; return c; }(d.Timeline.Symbol); - v.FontSymbol = q; + w.FontSymbol = q; })(k.text || (k.text = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -42849,7 +42836,7 @@ var RtmpJs; case d.SUBPIXEL: return 2; default: - return-1; + return -1; } }; d.classInitializer = null; @@ -42878,7 +42865,7 @@ var RtmpJs; } __extends(l, d); l.prototype._canHaveTextContent = function() { - return!0; + return !0; }; l.prototype._getTextContent = function() { return this._textContent; @@ -42905,8 +42892,8 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - function t(a, d, l) { + (function(w) { + function v(a, d, l) { for (;d < l;) { switch(a[d]) { case " ": @@ -42939,18 +42926,18 @@ var RtmpJs; }, enumerable:!0, configurable:!0}); d.prototype.getStyle = function(c) { c = u(c); - return(c = this._rules[c.toLowerCase()]) ? a.ASJSON.transformJSValueToAS(c, !1) : {}; + return (c = this._rules[c.toLowerCase()]) ? a.ASJSON.transformJSValueToAS(c, !1) : {}; }; d.prototype.applyStyle = function(a, c) { c = u(c); var d = this._rules[c.toLowerCase()]; - return d ? a.transform(d) : a; + d && a.transform(d); }; d.prototype.setStyle = function(c, d) { "object" === typeof d && (c = u(c), this._rules[c.toLowerCase()] = a.ASJSON.transformASValueToJS(d, !1)); }; d.prototype.hasStyle = function(a) { - return!!this._rules[a.toLowerCase()]; + return !!this._rules[a.toLowerCase()]; }; d.prototype.clear = function() { this._rules = Object.create(null); @@ -42960,50 +42947,50 @@ var RtmpJs; return null; } c = a.ASJSON.transformASValueToJS(c, !1); - var d = new v.TextFormat; + var d = new w.TextFormat; d.transform(c); return d; }; d.prototype.parseCSS = function(a) { a = u(a) + ""; - for (var c = a.length, d = t(a, 0, c), g = {}, f = [], b = !1, e = "";d < c;) { - var h = a[d++]; - switch(h) { + for (var c = a.length, d = v(a, 0, c), g = {}, f = [], b = !1, e = "";d < c;) { + var l = a[d++]; + switch(l) { case "{": b = !1; f.push(e); a: { - var e = a, h = c, l = g, k = {}, p = "", v = !1, D = !1, d = t(e, d, h); - b: for (;d < h;) { + var e = a, l = c, k = g, n = {}, w = "", B = !1, D = !1, d = v(e, d, l); + b: for (;d < l;) { var M = e[d++]; switch(M) { case "}": - if (0 < p.length) { + if (0 < w.length) { d = -1; break a; } break b; case ":": - var F = "", T = p, p = "", D = v = !1; - for (;d < h;) { + var E = "", J = w, w = "", D = B = !1; + for (;d < l;) { switch(M = e[d], M) { case ";": ; case "\r": ; case "\n": - d++, d = t(e, d, h); + d++, d = v(e, d, l); case "}": - k[T] = F; + n[J] = E; continue b; default: - d++, F += M; + d++, E += M; } } d = -1; break a; case "-": - ":" === e[d] ? p += M : D = !0; + ":" === e[d] ? w += M : D = !0; break; case " ": ; @@ -43012,24 +42999,24 @@ var RtmpJs; case "\r": ; case "\t": - v = !0; - p += M; + B = !0; + w += M; D = !1; break; default: - if (v) { + if (B) { d = -1; break a; } D && (M = M.toUpperCase(), D = !1); - p += M; + w += M; } } if ("}" !== e[d - 1]) { d = -1; } else { for (e = 0;e < f.length;e++) { - l[f[e]] = k; + k[f[e]] = n; } } } @@ -43038,13 +43025,13 @@ var RtmpJs; } f = []; e = ""; - d = t(a, d, c); + d = v(a, d, c); break; case ",": b = !1; f.push(e); e = ""; - d = t(a, d, c); + d = v(a, d, c); break; case " ": ; @@ -43054,13 +43041,13 @@ var RtmpJs; ; case "\t": b = !0; - d = t(a, d, c); + d = v(a, d, c); break; default: if (b) { return; } - e += h; + e += l; } } a = this._rules; @@ -43074,7 +43061,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(k.events.EventDispatcher); - v.StyleSheet = l; + w.StyleSheet = l; })(k.text || (k.text = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -43109,24 +43096,24 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.warning, l = d.Debug.somewhatImplemented, c = d.AVM2.Runtime.throwError, h = d.AVM2.Runtime.asCoerceString, q = d.NumberUtilities.clamp, s = function(g) { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.warning, l = d.Debug.somewhatImplemented, c = d.AVM2.Runtime.throwError, g = d.AVM2.Runtime.asCoerceString, q = d.NumberUtilities.clamp, r = function(h) { function f() { a.display.InteractiveObject.instanceConstructorNoInitialize.call(this); } - __extends(f, g); + __extends(f, h); f.prototype._setFillAndLineBoundsFromSymbol = function(a) { - g.prototype._setFillAndLineBoundsFromSymbol.call(this, a); + h.prototype._setFillAndLineBoundsFromSymbol.call(this, a); this._textContent.bounds = this._lineBounds; this._invalidateContent(); }; f.prototype._setFillAndLineBoundsFromWidthAndHeight = function(a, e) { - g.prototype._setFillAndLineBoundsFromWidthAndHeight.call(this, a, e); + h.prototype._setFillAndLineBoundsFromWidthAndHeight.call(this, a, e); this._textContent.bounds = this._lineBounds; this._invalidateContent(); }; f.prototype._canHaveTextContent = function() { - return!0; + return !0; }; f.prototype._getTextContent = function() { return this._textContent; @@ -43134,18 +43121,18 @@ var RtmpJs; f.prototype._getContentBounds = function(a) { void 0 === a && (a = !0); this._ensureLineMetrics(); - return g.prototype._getContentBounds.call(this, a); + return h.prototype._getContentBounds.call(this, a); }; f.prototype._containsPointDirectly = function(a, e, c, f) { - return!0; + return !0; }; f.prototype._invalidateContent = function() { this._textContent.flags & d.TextContentFlags.Dirty && this._setFlags(8388608); }; f.isFontCompatible = function(a, e) { - a = h(a); - e = h(e); - var c = v.Font.getByNameAndStyle(a, e); + a = g(a); + e = g(e); + var c = w.Font.getByNameAndStyle(a, e); return c ? c.fontStyle === e : !1; }; Object.defineProperty(f.prototype, "alwaysShowSelection", {get:function() { @@ -43156,15 +43143,15 @@ var RtmpJs; Object.defineProperty(f.prototype, "antiAliasType", {get:function() { return this._antiAliasType; }, set:function(a) { - a = h(a); - 0 > v.AntiAliasType.toNumber(a) && c("ArgumentError", k.Errors.InvalidParamError, "antiAliasType"); + a = g(a); + 0 > w.AntiAliasType.toNumber(a) && c("ArgumentError", k.Errors.InvalidParamError, "antiAliasType"); this._antiAliasType = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "autoSize", {get:function() { return this._autoSize; }, set:function(a) { - a = h(a); - a !== this._autoSize && (0 > v.TextFieldAutoSize.toNumber(a) && c("ArgumentError", k.Errors.InvalidParamError, "autoSize"), this._autoSize = a, this._textContent.autoSize = v.TextFieldAutoSize.toNumber(a), this._invalidateContent(), this._ensureLineMetrics()); + a = g(a); + a !== this._autoSize && (0 > w.TextFieldAutoSize.toNumber(a) && c("ArgumentError", k.Errors.InvalidParamError, "autoSize"), this._autoSize = a, this._textContent.autoSize = w.TextFieldAutoSize.toNumber(a), this._invalidateContent(), this._ensureLineMetrics()); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "background", {get:function() { return this._background; @@ -43194,7 +43181,7 @@ var RtmpJs; return this._bottomScrollV; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "caretIndex", {get:function() { - t("public flash.text.TextField::get caretIndex"); + v("public flash.text.TextField::get caretIndex"); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "condenseWhite", {get:function() { return this._condenseWhite; @@ -43216,12 +43203,12 @@ var RtmpJs; Object.defineProperty(f.prototype, "gridFitType", {get:function() { return this._gridFitType; }, set:function(a) { - this._gridFitType = a = h(a); + this._gridFitType = a = g(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "htmlText", {get:function() { return this._htmlText; }, set:function(a) { - a = h(a); + a = g(a); this._symbol && (this._textContent.defaultTextFormat.bold = !1, this._textContent.defaultTextFormat.italic = !1); this._textContent.parseHtml(a, this._styleSheet, this._multiline); this._htmlText = a; @@ -43232,7 +43219,7 @@ var RtmpJs; return this._length; }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "textInteractionMode", {get:function() { - t("public flash.text.TextField::get textInteractionMode"); + v("public flash.text.TextField::get textInteractionMode"); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "maxChars", {get:function() { return this._maxChars; @@ -43271,7 +43258,7 @@ var RtmpJs; return this._restrict; }, set:function(a) { l("public flash.text.TextField::set restrict"); - this._restrict = h(a); + this._restrict = g(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "scrollH", {get:function() { return this._textContent.scrollH; @@ -43316,7 +43303,7 @@ var RtmpJs; Object.defineProperty(f.prototype, "text", {get:function() { return this._textContent.plainText; }, set:function(a) { - a = h(a); + a = g(a); a !== this._textContent.plainText && (this._textContent.plainText = a, this._invalidateContent(), this._ensureLineMetrics()); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "textColor", {get:function() { @@ -43340,7 +43327,7 @@ var RtmpJs; Object.defineProperty(f.prototype, "type", {get:function() { return this._type; }, set:function(a) { - this._type = h(a); + this._type = g(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "wordWrap", {get:function() { return this._textContent.wordWrap; @@ -43349,29 +43336,29 @@ var RtmpJs; a !== this._textContent.wordWrap && (this._textContent.wordWrap = !!a, this._invalidateContent()); }, enumerable:!0, configurable:!0}); Object.defineProperty(f.prototype, "useRichTextClipboard", {get:function() { - t("public flash.text.TextField::get useRichTextClipboard"); + v("public flash.text.TextField::get useRichTextClipboard"); }, set:function(a) { - t("public flash.text.TextField::set useRichTextClipboard"); + v("public flash.text.TextField::set useRichTextClipboard"); }, enumerable:!0, configurable:!0}); f.prototype.copyRichText = function() { - t("public flash.text.TextField::copyRichText"); + v("public flash.text.TextField::copyRichText"); }; f.prototype.pasteRichText = function(a) { - h(a); - t("public flash.text.TextField::pasteRichText"); + g(a); + v("public flash.text.TextField::pasteRichText"); }; f.prototype.getXMLText = function(a, e) { - t("public flash.text.TextField::getXMLText"); + v("public flash.text.TextField::getXMLText"); return ""; }; f.prototype.insertXMLText = function(a, e, c, f) { - h(c); - t("public flash.text.TextField::insertXMLText"); + g(c); + v("public flash.text.TextField::insertXMLText"); }; f.prototype._ensureLineMetrics = function() { if (this._hasFlags(8388608)) { var a = d.AVM2.Runtime.AVM2.instance.globals["Shumway.Player.Utils"].syncDisplayObject(this, !1), e = a.readInt(), c = a.readInt(), f = a.readInt(), g = this._lineBounds; - this._autoSize !== v.TextFieldAutoSize.NONE && (g.xMin = g.xMin = f, g.xMax = g.xMax = f + e + 80, g.yMax = g.yMax = g.yMin + c + 80); + this._autoSize !== w.TextFieldAutoSize.NONE && (g.xMin = g.xMin = f, g.xMax = g.xMax = f + e + 80, g.yMax = g.yMax = g.yMin + c + 80); this._textWidth = e; this._textHeight = c; this._numLines = a.readInt(); @@ -43392,7 +43379,7 @@ var RtmpJs; } }; f.prototype.appendText = function(a) { - this._textContent.appendText(h(a)); + this._textContent.appendText(g(a)); }; f.prototype.getCharBoundaries = function(b) { b |= 0; @@ -43401,19 +43388,19 @@ var RtmpJs; return new a.geom.Rectangle(b * c, 0, c, e); }; f.prototype.getCharIndexAtPoint = function(a, e) { - t("public flash.text.TextField::getCharIndexAtPoint"); + v("public flash.text.TextField::getCharIndexAtPoint"); }; f.prototype.getFirstCharInParagraph = function(a) { - t("public flash.text.TextField::getFirstCharInParagraph"); + v("public flash.text.TextField::getFirstCharInParagraph"); }; f.prototype.getLineIndexAtPoint = function(a, e) { - t("public flash.text.TextField::getLineIndexAtPoint"); + v("public flash.text.TextField::getLineIndexAtPoint"); }; f.prototype.getLineIndexOfChar = function(a) { - t("public flash.text.TextField::getLineIndexOfChar"); + v("public flash.text.TextField::getLineIndexOfChar"); }; f.prototype.getLineLength = function(a) { - t("public flash.text.TextField::getLineLength"); + v("public flash.text.TextField::getLineLength"); }; f.prototype.getLineMetrics = function() { var a; @@ -43424,16 +43411,16 @@ var RtmpJs; e.position = 16 + 20 * a; a = e.readInt() + this._lineBounds.xMin + 2; var f = e.readInt(), d = e.readInt(), g = e.readInt(), e = e.readInt(); - return new v.TextLineMetrics(a, f, d + g + e, d, g, e); + return new w.TextLineMetrics(a, f, d + g + e, d, g, e); }; f.prototype.getLineOffset = function(a) { - t("public flash.text.TextField::getLineOffset"); + v("public flash.text.TextField::getLineOffset"); }; f.prototype.getLineText = function(a) { - t("public flash.text.TextField::getLineText"); + v("public flash.text.TextField::getLineText"); }; f.prototype.getParagraphLength = function(a) { - t("public flash.text.TextField::getParagraphLength"); + v("public flash.text.TextField::getParagraphLength"); }; f.prototype.getTextFormat = function(a, e) { void 0 === a && (a = -1); @@ -43459,7 +43446,7 @@ var RtmpJs; return f; }; f.prototype.getRawText = function() { - t("public flash.text.TextField::getRawText"); + v("public flash.text.TextField::getRawText"); }; f.prototype.replaceSelectedText = function(a) { this.replaceText(this._selectionBeginIndex, this._selectionEndIndex, "" + a); @@ -43484,15 +43471,15 @@ var RtmpJs; f <= e || (this._textContent.replaceText(e, f, d.substring(e, f), a), this._invalidateContent(), this._ensureLineMetrics()); }; f.prototype.getImageReference = function(a) { - t("public flash.text.TextField::getImageReference"); + v("public flash.text.TextField::getImageReference"); }; f.classSymbols = null; f.instanceSymbols = null; f.classInitializer = null; f.initializer = function(b) { this._alwaysShowSelection = !1; - this._antiAliasType = v.AntiAliasType.NORMAL; - this._autoSize = v.TextFieldAutoSize.NONE; + this._antiAliasType = w.AntiAliasType.NORMAL; + this._autoSize = w.TextFieldAutoSize.NONE; this._background = !1; this._backgroundColor = 4294967295; this._border = !1; @@ -43500,10 +43487,10 @@ var RtmpJs; this._bottomScrollV = 1; this._caretIndex = 0; this._embedFonts = this._condenseWhite = !1; - this._gridFitType = v.GridFitType.PIXEL; + this._gridFitType = w.GridFitType.PIXEL; this._htmlText = ""; this._length = 0; - this._textInteractionMode = v.TextInteractionMode.NORMAL; + this._textInteractionMode = w.TextInteractionMode.NORMAL; this._maxScrollH = this._maxChars = 0; this._maxScrollV = 1; this._multiline = this._mouseWheelEnabled = !1; @@ -43515,9 +43502,9 @@ var RtmpJs; this._sharpness = this._selectionEndIndex = this._selectionBeginIndex = 0; this._textColor = this._styleSheet = null; this._thickness = this._textWidth = this._textHeight = 0; - this._type = v.TextFieldType.DYNAMIC; + this._type = w.TextFieldType.DYNAMIC; this._useRichTextClipboard = !1; - var e = new a.text.TextFormat(v.Font.DEFAULT_FONT_SERIF, 12, 0, !1, !1, !1, "", "", v.TextFormatAlign.LEFT); + var e = new a.text.TextFormat(w.Font.DEFAULT_FONT_SERIF, 12, 0, !1, !1, !1, "", "", w.TextFormatAlign.LEFT); this._textContent = new d.TextContent(e); this._lineMetricsData = null; b ? (this._setFillAndLineBoundsFromSymbol(b), e.color = b.color, e.size = b.size / 20 | 0, e.font = b.face, e.bold = b.bold, e.italic = b.italic, e.align = b.align, e.leftMargin = b.leftMargin / 20 | 0, e.rightMargin = b.rightMargin / 20 | 0, e.indent = b.indent / 20 | 0, e.leading = b.leading / 20 | 0, this._multiline = b.multiline, this._embedFonts = b.embedFonts, this._selectable = b.selectable, this._displayAsPassword = b.displayAsPassword, this._type = b.type, this._maxChars = @@ -43525,8 +43512,8 @@ var RtmpJs; }; return f; }(a.display.InteractiveObject); - v.TextField = s; - s = function(c) { + w.TextField = r; + r = function(c) { function f(b) { c.call(this, b, a.text.TextField, !0); this.size = this.color = 0; @@ -43577,33 +43564,33 @@ var RtmpJs; return c; }; f.FromLabelData = function(a, e) { - for (var c = a.fillBounds, d = a.records, g = a.coords = [], h = "", l = 12, k = "Times Roman", q = !1, p = !1, s = 0, t = 0, u = 0, v, H = 0;H < d.length;H++) { + for (var c = a.fillBounds, d = a.records, g = a.coords = [], h = "", l = 12, k = "Times Roman", n = !1, q = !1, r = 0, u = 0, v = 0, w, H = 0;H < d.length;H++) { var A = d[H]; if (A.eot) { break; } if (A.hasFont) { - var y = e.getSymbolById(A.fontId); - y && (v = y.codes, l = A.fontHeight, y.originalSize || (l /= 20), k = y.metrics ? "swffont" + y.syncId : y.name, q = y.bold, p = y.italic); + var z = e.getSymbolById(A.fontId); + z && (w = z.codes, l = A.fontHeight, z.originalSize || (l /= 20), k = z.metrics ? "swffont" + z.syncId : z.name, n = z.bold, q = z.italic); } - A.hasColor && (s = A.color >>> 8); - A.hasMoveX && (t = A.moveX, t < c.xMin && (c.xMin = t)); - A.hasMoveY && (u = A.moveY, u < c.yMin && (c.yMin = u)); - for (var y = "", A = A.entries, G = 0, J;J = A[G++];) { - var E = String.fromCharCode(v[J.glyphIndex]), y = y + (m[E] || E); - g.push(t, u); - t += J.advance; + A.hasColor && (r = A.color >>> 8); + A.hasMoveX && (u = A.moveX, u < c.xMin && (c.xMin = u)); + A.hasMoveY && (v = A.moveY, v < c.yMin && (c.yMin = v)); + for (var z = "", A = A.entries, G = 0, L;L = A[G++];) { + var F = String.fromCharCode(w[L.glyphIndex]), z = z + (m[F] || F); + g.push(u, v); + u += L.advance; } - p && (y = "" + y + ""); - q && (y = "" + y + ""); - h += '' + y + ""; + q && (z = "" + z + ""); + n && (z = "" + z + ""); + h += '' + z + ""; } a.tag.initialText = h; return f.FromTextData(a, e); }; return f; }(d.Timeline.DisplaySymbol); - v.TextSymbol = s; + w.TextSymbol = r; var m = {"<":"<", ">":">", "&":"&"}; })(a.text || (a.text = {})); })(a.flash || (a.flash = {})); @@ -43645,7 +43632,7 @@ var RtmpJs; case d.RIGHT: return 3; default: - return-1; + return -1; } }; d.classInitializer = null; @@ -43691,42 +43678,42 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.AVM2.Runtime.asCoerceString, u = d.NumberUtilities.roundHalfEven, l = d.AVM2.Runtime.throwError, c = function(a) { - function c(a, d, g, f, b, e, h, l, k, p, q, t, u) { + (function(n) { + (function(w) { + var v = d.AVM2.Runtime.asCoerceString, u = d.NumberUtilities.roundHalfEven, l = d.AVM2.Runtime.throwError, c = function(a) { + function c(a, d, g, f, b, e, l, k, n, q, u, v, w) { void 0 === a && (a = null); void 0 === d && (d = null); void 0 === g && (g = null); void 0 === f && (f = null); void 0 === b && (b = null); void 0 === e && (e = null); - void 0 === h && (h = null); void 0 === l && (l = null); void 0 === k && (k = null); - void 0 === p && (p = null); + void 0 === n && (n = null); void 0 === q && (q = null); - void 0 === t && (t = null); void 0 === u && (u = null); + void 0 === v && (v = null); + void 0 === w && (w = null); this.font = a; this.size = d; this.color = g; this.bold = f; this.italic = b; this.underline = e; - this.url = h; - this.target = l; - this.align = k; - this.leftMargin = p; - this.rightMargin = q; - this.indent = t; - this.leading = u; + this.url = l; + this.target = k; + this.align = n; + this.leftMargin = q; + this.rightMargin = u; + this.indent = v; + this.leading = w; } __extends(c, a); Object.defineProperty(c.prototype, "align", {get:function() { return this._align; }, set:function(a) { - this._align = a = t(a); + this._align = a = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "blockIndent", {get:function() { return this._blockIndent; @@ -43751,15 +43738,15 @@ var RtmpJs; Object.defineProperty(c.prototype, "display", {get:function() { return this._display; }, set:function(a) { - this._display = t(a); + this._display = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "font", {get:function() { return this._font; }, set:function(a) { - this._font = t(a); + this._font = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "style", {get:function() { - return this._bold && this._italic ? v.FontStyle.BOLD_ITALIC : this._bold ? v.FontStyle.BOLD : this._italic ? v.FontStyle.ITALIC : v.FontStyle.REGULAR; + return this._bold && this._italic ? w.FontStyle.BOLD_ITALIC : this._bold ? w.FontStyle.BOLD : this._italic ? w.FontStyle.ITALIC : w.FontStyle.REGULAR; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "indent", {get:function() { return this._indent; @@ -43810,7 +43797,7 @@ var RtmpJs; Object.defineProperty(c.prototype, "target", {get:function() { return this._target; }, set:function(a) { - this._target = t(a); + this._target = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "underline", {get:function() { return this._underline; @@ -43820,7 +43807,7 @@ var RtmpJs; Object.defineProperty(c.prototype, "url", {get:function() { return this._url; }, set:function(a) { - this._url = t(a); + this._url = v(a); }, enumerable:!0, configurable:!0}); c.coerceNumber = function(a) { return void 0 == a ? null : isNaN(a) || 268435455 < a ? -2147483648 : u(a); @@ -43829,7 +43816,7 @@ var RtmpJs; return void 0 == a ? null : !!a; }; c.prototype.clone = function() { - return new p.text.TextFormat(this.font, this.size, this.color, this.bold, this.italic, this.underline, this.url, this.target, this.align, this.leftMargin, this.rightMargin, this.indent, this.leading); + return new n.text.TextFormat(this.font, this.size, this.color, this.bold, this.italic, this.underline, this.url, this.target, this.align, this.leftMargin, this.rightMargin, this.indent, this.leading); }; c.prototype.equals = function(a) { return this._align === a._align && this._blockIndent === a._blockIndent && this._bold === a._bold && this._bullet === a._bullet && this._color === a._color && this._display === a._display && this._font === a._font && this._indent === a._indent && this._italic === a._italic && this._kerning === a._kerning && this._leading === a._leading && this._leftMargin === a._leftMargin && this._letterSpacing === a._letterSpacing && this._rightMargin === a._rightMargin && this._size === a._size && @@ -43883,7 +43870,7 @@ var RtmpJs; c = a.fontWeight; "bold" === c ? this.bold = !0 : "normal" === c && (this.bold = !1); if (c = a.color) { - if (c = t(c).trim().toLowerCase(), "#" === c[0]) { + if (c = v(c).trim().toLowerCase(), "#" === c[0]) { for (c = c.substr(1);"0" === c[0];) { c = c.substr(1); } @@ -43929,8 +43916,8 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.ASNative); - v.TextFormat = c; - })(p.text || (p.text = {})); + w.TextFormat = c; + })(n.text || (n.text = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -43978,7 +43965,7 @@ var RtmpJs; case d.END: return 5; default: - return-1; + return -1; } }; d.classInitializer = null; @@ -44052,9 +44039,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { - function c(a, c, d, l, g, f) { - p("public flash.text.TextLineMetrics"); + var n = d.Debug.dummyConstructor, u = function(a) { + function c(a, c, d, l, h, f) { + n("public flash.text.TextLineMetrics"); } __extends(c, a); c.classInitializer = null; @@ -44074,7 +44061,7 @@ var RtmpJs; (function(a) { (function(d) { (function(k) { - var t = function(a) { + var v = function(a) { function l(a, d, l) { this._beginIndex = a | 0; this._endIndex = d | 0; @@ -44111,7 +44098,7 @@ var RtmpJs; l.instanceSymbols = null; return l; }(a.ASNative); - k.TextRun = t; + k.TextRun = v; })(d.text || (d.text = {})); })(a.flash || (a.flash = {})); })(d.AS || (d.AS = {})); @@ -44122,38 +44109,38 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { function c() { u("public flash.text.TextSnapshot"); } __extends(c, a); Object.defineProperty(c.prototype, "charCount", {get:function() { - p("public flash.text.TextSnapshot::get charCount"); + n("public flash.text.TextSnapshot::get charCount"); }, enumerable:!0, configurable:!0}); c.prototype.findText = function(a, c, d) { l(c); - p("public flash.text.TextSnapshot::findText"); + n("public flash.text.TextSnapshot::findText"); }; c.prototype.getSelected = function(a, c) { - p("public flash.text.TextSnapshot::getSelected"); + n("public flash.text.TextSnapshot::getSelected"); }; c.prototype.getSelectedText = function(a) { - p("public flash.text.TextSnapshot::getSelectedText"); + n("public flash.text.TextSnapshot::getSelectedText"); }; c.prototype.getText = function(a, c, d) { - p("public flash.text.TextSnapshot::getText"); + n("public flash.text.TextSnapshot::getText"); }; c.prototype.getTextRunInfo = function(a, c) { - p("public flash.text.TextSnapshot::getTextRunInfo"); + n("public flash.text.TextSnapshot::getTextRunInfo"); }; c.prototype.hitTestTextNearPos = function(a, c, d) { - p("public flash.text.TextSnapshot::hitTestTextNearPos"); + n("public flash.text.TextSnapshot::hitTestTextNearPos"); }; c.prototype.setSelectColor = function(a) { - p("public flash.text.TextSnapshot::setSelectColor"); + n("public flash.text.TextSnapshot::setSelectColor"); }; c.prototype.setSelected = function(a, c, d) { - p("public flash.text.TextSnapshot::setSelected"); + n("public flash.text.TextSnapshot::setSelected"); }; c.classInitializer = null; c.initializer = null; @@ -44172,22 +44159,22 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.trace.Trace"); } __extends(d, a); d.setLevel = function(a, c) { - p("public flash.trace.Trace::static setLevel"); + n("public flash.trace.Trace::static setLevel"); }; d.getLevel = function(a) { - p("public flash.trace.Trace::static getLevel"); + n("public flash.trace.Trace::static getLevel"); }; d.setListener = function(a) { - p("public flash.trace.Trace::static setListener"); + n("public flash.trace.Trace::static setListener"); }; d.getListener = function() { - p("public flash.trace.Trace::static getListener"); + n("public flash.trace.Trace::static getListener"); }; d.classInitializer = null; d.initializer = null; @@ -44213,7 +44200,7 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.somewhatImplemented, u = function(d) { + var v = d.Debug.somewhatImplemented, u = function(d) { function c() { a.display.NativeMenu.instanceConstructorNoInitialize.call(this); this.builtInItems = new k.ContextMenuBuiltInItems; @@ -44221,43 +44208,43 @@ var RtmpJs; } __extends(c, d); Object.defineProperty(c, "isSupported", {get:function() { - t("ContextMenu::isSupported"); - return!1; + v("ContextMenu::isSupported"); + return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "builtInItems", {get:function() { - t("public flash.ui.ContextMenu::get builtInItems"); + v("public flash.ui.ContextMenu::get builtInItems"); return this._builtInItems; }, set:function(a) { - t("public flash.ui.ContextMenu::set builtInItems"); + v("public flash.ui.ContextMenu::set builtInItems"); this._builtInItems = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "customItems", {get:function() { - t("public flash.ui.ContextMenu::get customItems"); + v("public flash.ui.ContextMenu::get customItems"); return this._customItems; }, set:function(a) { - t("public flash.ui.ContextMenu::set customItems"); + v("public flash.ui.ContextMenu::set customItems"); this._customItems = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "link", {get:function() { - t("public flash.ui.ContextMenu::get link"); + v("public flash.ui.ContextMenu::get link"); return this._link; }, set:function(a) { - t("public flash.ui.ContextMenu::set link"); + v("public flash.ui.ContextMenu::set link"); this._link = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "clipboardMenu", {get:function() { - t("public flash.ui.ContextMenu::get clipboardMenu"); + v("public flash.ui.ContextMenu::get clipboardMenu"); return this._clipboardMenu; }, set:function(a) { a = !!a; - t("public flash.ui.ContextMenu::set clipboardMenu"); + v("public flash.ui.ContextMenu::set clipboardMenu"); this._clipboardMenu = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "clipboardItems", {get:function() { - t("public flash.ui.ContextMenu::get clipboardItems"); + v("public flash.ui.ContextMenu::get clipboardItems"); return this._clipboardItems; }, set:function(a) { - t("public flash.ui.ContextMenu::set clipboardItems"); + v("public flash.ui.ContextMenu::set clipboardItems"); this._clipboardItems = a; }, enumerable:!0, configurable:!0}); c.prototype.hideBuiltInItems = function() { @@ -44274,7 +44261,7 @@ var RtmpJs; return a; }; c.prototype.cloneLinkAndClipboardProperties = function(a) { - t("public flash.ui.ContextMenu::cloneLinkAndClipboardProperties"); + v("public flash.ui.ContextMenu::cloneLinkAndClipboardProperties"); }; c.classInitializer = null; c.initializer = null; @@ -44367,44 +44354,44 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.somewhatImplemented, u = function(a) { + var n = d.Debug.somewhatImplemented, u = function(a) { function c() { this._selectAll = this._clear = this._paste = this._copy = this._cut = !0; } __extends(c, a); Object.defineProperty(c.prototype, "cut", {get:function() { - p("cut"); + n("cut"); return this._cut; }, set:function(a) { - p("cut"); + n("cut"); this._cut = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "copy", {get:function() { - p("copy"); + n("copy"); return this._copy; }, set:function(a) { - p("copy"); + n("copy"); this._copy = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "paste", {get:function() { - p("paste"); + n("paste"); return this._paste; }, set:function(a) { - p("paste"); + n("paste"); this._paste = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "clear", {get:function() { - p("clear"); + n("clear"); return this._clear; }, set:function(a) { - p("clear"); + n("clear"); this._clear = !!a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "selectAll", {get:function() { - p("selectAll"); + n("selectAll"); return this._selectAll; }, set:function(a) { - p("selectAll"); + n("selectAll"); this._selectAll = !!a; }, enumerable:!0, configurable:!0}); c.prototype.clone = function() { @@ -44433,12 +44420,12 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.AVM2.Runtime.asCoerceString, u = function(a) { + var v = d.AVM2.Runtime.asCoerceString, u = function(a) { function c(a, c, d, l) { void 0 === c && (c = !1); void 0 === d && (d = !0); void 0 === l && (l = !0); - this._caption = (a = t(a)) ? a : ""; + this._caption = (a = v(a)) ? a : ""; this._separatorBefore = !!c; this._enabled = !!d; this._visible = !!l; @@ -44447,7 +44434,7 @@ var RtmpJs; Object.defineProperty(c.prototype, "caption", {get:function() { return this._caption; }, set:function(a) { - this._caption = a = t(a); + this._caption = a = v(a); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "separatorBefore", {get:function() { return this._separatorBefore; @@ -44475,22 +44462,22 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.Debug.somewhatImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.throwError, c = function(a) { + (function(w) { + var v = d.Debug.somewhatImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.throwError, c = function(a) { function c() { u("public flash.ui.GameInput"); } __extends(c, a); Object.defineProperty(c.prototype, "numDevices", {get:function() { - t("public flash.ui.GameInput::get numDevices"); + v("public flash.ui.GameInput::get numDevices"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "isSupported", {get:function() { - t("public flash.ui.GameInput::get isSupported"); - return!1; + v("public flash.ui.GameInput::get isSupported"); + return !1; }, enumerable:!0, configurable:!0}); c.getDeviceAt = function(a) { - t("public flash.ui.GameInput::static getDeviceAt"); + v("public flash.ui.GameInput::static getDeviceAt"); l("RangeError", k.Errors.ParamRangeError, "index"); return null; }; @@ -44500,7 +44487,7 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.events.EventDispatcher); - v.GameInput = c; + w.GameInput = c; })(a.ui || (a.ui = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -44511,34 +44498,34 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.ui.GameInputControl"); } __extends(d, a); Object.defineProperty(d.prototype, "numValues", {get:function() { - t("public flash.ui.GameInputControl::get numValues"); + v("public flash.ui.GameInputControl::get numValues"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "index", {get:function() { - t("public flash.ui.GameInputControl::get index"); + v("public flash.ui.GameInputControl::get index"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "relative", {get:function() { - t("public flash.ui.GameInputControl::get relative"); + v("public flash.ui.GameInputControl::get relative"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "type", {get:function() { - t("public flash.ui.GameInputControl::get type"); + v("public flash.ui.GameInputControl::get type"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "hand", {get:function() { - t("public flash.ui.GameInputControl::get hand"); + v("public flash.ui.GameInputControl::get hand"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "finger", {get:function() { - t("public flash.ui.GameInputControl::get finger"); + v("public flash.ui.GameInputControl::get finger"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "device", {get:function() { - t("public flash.ui.GameInputControl::get device"); + v("public flash.ui.GameInputControl::get device"); }, enumerable:!0, configurable:!0}); d.prototype.getValueAt = function(a) { - t("public flash.ui.GameInputControl::getValueAt"); + v("public flash.ui.GameInputControl::getValueAt"); }; d.classInitializer = null; d.initializer = null; @@ -44557,9 +44544,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.ui.GameInputControlType"); + n("public flash.ui.GameInputControlType"); } __extends(c, a); c.classInitializer = null; @@ -44585,41 +44572,41 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.ui.GameInputDevice"); } __extends(d, a); Object.defineProperty(d.prototype, "numControls", {get:function() { - t("public flash.ui.GameInputDevice::get numControls"); + v("public flash.ui.GameInputDevice::get numControls"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "sampleInterval", {get:function() { - t("public flash.ui.GameInputDevice::get sampleInterval"); + v("public flash.ui.GameInputDevice::get sampleInterval"); }, set:function(a) { - t("public flash.ui.GameInputDevice::set sampleInterval"); + v("public flash.ui.GameInputDevice::set sampleInterval"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "enabled", {get:function() { - t("public flash.ui.GameInputDevice::get enabled"); + v("public flash.ui.GameInputDevice::get enabled"); }, set:function(a) { - t("public flash.ui.GameInputDevice::set enabled"); + v("public flash.ui.GameInputDevice::set enabled"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "id", {get:function() { - t("public flash.ui.GameInputDevice::get id"); + v("public flash.ui.GameInputDevice::get id"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "name", {get:function() { - t("public flash.ui.GameInputDevice::get name"); + v("public flash.ui.GameInputDevice::get name"); }, enumerable:!0, configurable:!0}); d.prototype.getControlAt = function(a) { - t("public flash.ui.GameInputDevice::getControlAt"); + v("public flash.ui.GameInputDevice::getControlAt"); }; d.prototype.startCachingSamples = function(a, c) { - t("public flash.ui.GameInputDevice::startCachingSamples"); + v("public flash.ui.GameInputDevice::startCachingSamples"); }; d.prototype.stopCachingSamples = function() { - t("public flash.ui.GameInputDevice::stopCachingSamples"); + v("public flash.ui.GameInputDevice::stopCachingSamples"); }; d.prototype.getCachedSamples = function(a, c) { - t("public flash.ui.GameInputDevice::getCachedSamples"); + v("public flash.ui.GameInputDevice::getCachedSamples"); }; d.classInitializer = null; d.initializer = null; @@ -44639,9 +44626,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.ui.GameInputFinger"); + n("public flash.ui.GameInputFinger"); } __extends(c, a); c.classInitializer = null; @@ -44665,9 +44652,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.ui.GameInputHand"); + n("public flash.ui.GameInputHand"); } __extends(c, a); c.classInitializer = null; @@ -44689,8 +44676,8 @@ var RtmpJs; (function(k) { (function(a) { (function(k) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function() { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function() { function a() { this._lastKeyCode = 0; this._captureKeyPress = !1; @@ -44720,26 +44707,26 @@ var RtmpJs; }; return a; }(); - v.KeyboardEventDispatcher = l; + w.KeyboardEventDispatcher = l; l = function(a) { function d() { u("public flash.ui.Keyboard"); } __extends(d, a); Object.defineProperty(d, "capsLock", {get:function() { - t("public flash.ui.Keyboard::get capsLock"); + v("public flash.ui.Keyboard::get capsLock"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "numLock", {get:function() { - t("public flash.ui.Keyboard::get numLock"); + v("public flash.ui.Keyboard::get numLock"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "hasVirtualKeyboard", {get:function() { - t("public flash.ui.Keyboard::get hasVirtualKeyboard"); + v("public flash.ui.Keyboard::get hasVirtualKeyboard"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "physicalKeyboardType", {get:function() { - t("public flash.ui.Keyboard::get physicalKeyboardType"); + v("public flash.ui.Keyboard::get physicalKeyboardType"); }, enumerable:!0, configurable:!0}); d.isAccessible = function() { - t("public flash.ui.Keyboard::static isAccessible"); + v("public flash.ui.Keyboard::static isAccessible"); }; d.classInitializer = null; d.initializer = null; @@ -45023,7 +45010,7 @@ var RtmpJs; d.SEARCH = 16777247; return d; }(a.ASNative); - v.Keyboard = l; + w.Keyboard = l; })(k.ui || (k.ui = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -45032,9 +45019,9 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - (function(p) { - (function(v) { - var t = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.asCoerceString, c = p.events, h = function() { + (function(n) { + (function(w) { + var v = d.Debug.notImplemented, u = d.Debug.somewhatImplemented, l = d.AVM2.Runtime.asCoerceString, c = n.events, g = function() { function a() { this.currentTarget = this.stage = null; } @@ -45043,10 +45030,10 @@ var RtmpJs; this.stage._containsGlobalPoint(20 * a.x | 0, 20 * a.y | 0, c, d); return d.length ? d[0] : d.length ? d[0] : null; }; - a.prototype._dispatchMouseEvent = function(a, d, g, f) { + a.prototype._dispatchMouseEvent = function(a, d, h, f) { void 0 === f && (f = null); - var b = a.globalToLocal(g.point); - d = new c.MouseEvent(d, d !== c.MouseEvent.ROLL_OVER && d !== c.MouseEvent.ROLL_OUT && d !== c.MouseEvent.MOUSE_LEAVE, !1, b.x, b.y, f, g.ctrlKey, g.altKey, g.shiftKey, !!g.buttons); + var b = a.globalToLocal(h.point); + d = new c.MouseEvent(d, d !== c.MouseEvent.ROLL_OVER && d !== c.MouseEvent.ROLL_OUT && d !== c.MouseEvent.MOUSE_LEAVE, !1, b.x, b.y, f, h.ctrlKey, h.altKey, h.shiftKey, !!h.buttons); a.dispatchEvent(d); }; a.prototype.handleMouseEvent = function(a) { @@ -45054,11 +45041,11 @@ var RtmpJs; if (!d) { return d; } - var g = a.point; - p.ui.Mouse.updateCurrentPosition(g); - var f = this.currentTarget, b = null, e = p.events.MouseEvent.typeFromDOMType(a.type); - if (0 <= g.x && g.x < d.stageWidth && 0 <= g.y && g.y < d.stageHeight) { - b = this._findTarget(g, 3) || this.stage; + var h = a.point; + n.ui.Mouse.updateCurrentPosition(h); + var f = this.currentTarget, b = null, e = n.events.MouseEvent.typeFromDOMType(a.type); + if (0 <= h.x && h.x < d.stageWidth && 0 <= h.y && h.y < d.stageHeight) { + b = this._findTarget(h, 3) || this.stage; } else { if (!f) { return d; @@ -45068,7 +45055,7 @@ var RtmpJs; return d; } } - p.ui.Mouse.draggableObject && (g = this._findTarget(g, 5), p.ui.Mouse.draggableObject._updateDragState(g)); + n.ui.Mouse.draggableObject && (h = this._findTarget(h, 5), n.ui.Mouse.draggableObject._updateDragState(h)); switch(e) { case c.MouseEvent.MOUSE_DOWN: a.buttons & 1 ? a.buttons = 1 : a.buttons & 2 ? (e = c.MouseEvent.MIDDLE_MOUSE_DOWN, a.buttons = 2) : a.buttons & 4 && (e = c.MouseEvent.RIGHT_MOUSE_DOWN, a.buttons = 4); @@ -45094,13 +45081,13 @@ var RtmpJs; if (b === f) { break; } - g = b ? b.findNearestCommonAncestor(f) : d; + h = b ? b.findNearestCommonAncestor(f) : d; if (f && f !== d) { f._mouseOver = !1; f._mouseDown = !1; this._dispatchMouseEvent(f, c.MouseEvent.MOUSE_OUT, a, b); - for (var h = f;h && h !== g;) { - this._dispatchMouseEvent(h, c.MouseEvent.ROLL_OUT, a, b), h = h.parent; + for (var g = f;g && g !== h;) { + this._dispatchMouseEvent(g, c.MouseEvent.ROLL_OUT, a, b), g = g.parent; } } if (!b) { @@ -45109,7 +45096,7 @@ var RtmpJs; if (b === d) { break; } - for (d = b;d !== g;) { + for (d = b;d !== h;) { this._dispatchMouseEvent(d, c.MouseEvent.ROLL_OVER, a, f), d = d.parent; } b._mouseOver = !0; @@ -45121,28 +45108,28 @@ var RtmpJs; }; return a; }(); - v.MouseEventDispatcher = h; + w.MouseEventDispatcher = g; (function(a) { a[a.Left = 1] = "Left"; a[a.Middle = 2] = "Middle"; a[a.Right = 4] = "Right"; - })(v.MouseButtonFlags || (v.MouseButtonFlags = {})); - h = function(a) { + })(w.MouseButtonFlags || (w.MouseButtonFlags = {})); + g = function(a) { function c() { } __extends(c, a); Object.defineProperty(c, "supportsCursor", {get:function() { - return!0; + return !0; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "cursor", {get:function() { return this._cursor; }, set:function(a) { a = l(a); - 0 > v.MouseCursor.toNumber(a) && throwError("ArgumentError", k.Errors.InvalidParamError, "cursor"); + 0 > w.MouseCursor.toNumber(a) && throwError("ArgumentError", k.Errors.InvalidParamError, "cursor"); this._cursor = a; }, enumerable:!0, configurable:!0}); Object.defineProperty(c, "supportsNativeCursor", {get:function() { - return!0; + return !0; }, enumerable:!0, configurable:!0}); c.hide = function() { u("public flash.ui.Mouse::static hide"); @@ -45152,18 +45139,18 @@ var RtmpJs; }; c.registerCursor = function(a, c) { l(a); - t("public flash.ui.Mouse::static registerCursor"); + v("public flash.ui.Mouse::static registerCursor"); }; c.unregisterCursor = function(a) { l(a); - t("public flash.ui.Mouse::static unregisterCursor"); + v("public flash.ui.Mouse::static unregisterCursor"); }; c.updateCurrentPosition = function(a) { this._currentPosition.copyFrom(a); }; c.classInitializer = function() { - this._currentPosition = new p.geom.Point; - this._cursor = v.MouseCursor.AUTO; + this._currentPosition = new n.geom.Point; + this._cursor = w.MouseCursor.AUTO; this.draggableObject = null; }; c.initializer = null; @@ -45171,8 +45158,8 @@ var RtmpJs; c.instanceSymbols = null; return c; }(a.ASNative); - v.Mouse = h; - })(p.ui || (p.ui = {})); + w.Mouse = g; + })(n.ui || (n.ui = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -45182,9 +45169,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.ui.MouseCursor"); + n("public flash.ui.MouseCursor"); } __extends(c, a); c.fromNumber = function(a) { @@ -45216,7 +45203,7 @@ var RtmpJs; case c.IBEAM: return 4; default: - return-1; + return -1; } }; c.classInitializer = null; @@ -45241,25 +45228,25 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = function(a) { function d() { u("public flash.ui.MouseCursorData"); } __extends(d, a); Object.defineProperty(d.prototype, "data", {get:function() { - p("public flash.ui.MouseCursorData::get data"); + n("public flash.ui.MouseCursorData::get data"); }, set:function(a) { - p("public flash.ui.MouseCursorData::set data"); + n("public flash.ui.MouseCursorData::set data"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "hotSpot", {get:function() { - p("public flash.ui.MouseCursorData::get hotSpot"); + n("public flash.ui.MouseCursorData::get hotSpot"); }, set:function(a) { - p("public flash.ui.MouseCursorData::set hotSpot"); + n("public flash.ui.MouseCursorData::set hotSpot"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d.prototype, "frameRate", {get:function() { - p("public flash.ui.MouseCursorData::get frameRate"); + n("public flash.ui.MouseCursorData::get frameRate"); }, set:function(a) { - p("public flash.ui.MouseCursorData::set frameRate"); + n("public flash.ui.MouseCursorData::set frameRate"); }, enumerable:!0, configurable:!0}); d.classInitializer = null; d.initializer = null; @@ -45278,7 +45265,7 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.somewhatImplemented, u = d.Debug.notImplemented, l = d.Debug.dummyConstructor, c = d.AVM2.Runtime.asCoerceString, h = function(a) { + var n = d.Debug.somewhatImplemented, u = d.Debug.notImplemented, l = d.Debug.dummyConstructor, c = d.AVM2.Runtime.asCoerceString, g = function(a) { function d() { l("public flash.ui.Multitouch"); } @@ -45290,24 +45277,24 @@ var RtmpJs; u("public flash.ui.Multitouch::set inputMode"); }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "supportsTouchEvents", {get:function() { - p("public flash.ui.Multitouch::get supportsTouchEvents"); - return!1; + n("public flash.ui.Multitouch::get supportsTouchEvents"); + return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "supportsGestureEvents", {get:function() { - p("public flash.ui.Multitouch::get supportsGestureEvents"); - return!1; + n("public flash.ui.Multitouch::get supportsGestureEvents"); + return !1; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "supportedGestures", {get:function() { - p("public flash.ui.Multitouch::get supportedGestures"); + n("public flash.ui.Multitouch::get supportedGestures"); return null; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "maxTouchPoints", {get:function() { - p("public flash.ui.Multitouch::get maxTouchPoints"); + n("public flash.ui.Multitouch::get maxTouchPoints"); return 0; }, enumerable:!0, configurable:!0}); Object.defineProperty(d, "mapTouchToMouse", {get:function() { - p("public flash.ui.Multitouch::get mapTouchToMouse"); - return!0; + n("public flash.ui.Multitouch::get mapTouchToMouse"); + return !0; }, set:function(a) { u("public flash.ui.Multitouch::set mapTouchToMouse"); }, enumerable:!0, configurable:!0}); @@ -45317,7 +45304,7 @@ var RtmpJs; d.instanceSymbols = null; return d; }(a.ASNative); - k.Multitouch = h; + k.Multitouch = g; })(k.ui || (k.ui = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -45328,9 +45315,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.ui.MultitouchInputMode"); + n("public flash.ui.MultitouchInputMode"); } __extends(c, a); c.classInitializer = null; @@ -45353,9 +45340,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.utils.Endian"); + n("public flash.utils.Endian"); } __extends(c, a); c.classInitializer = null; @@ -45376,12 +45363,12 @@ var RtmpJs; (function(k) { (function(a) { (function(a) { - (function(v) { - var t = d.AVM2.enterTimeline, u = d.AVM2.leaveTimeline, l = function(c) { - function d(c, h) { + (function(w) { + var v = d.AVM2.enterTimeline, u = d.AVM2.leaveTimeline, l = function(c) { + function d(c, g) { a.events.EventDispatcher.instanceConstructorNoInitialize.call(this); this._delay = +c; - this._repeatCount = h | 0; + this._repeatCount = g | 0; this._iteration = 0; } __extends(d, c); @@ -45419,7 +45406,7 @@ var RtmpJs; this._iteration++; if (this._running) { if (a.utils.Timer.dispatchingEnabled) { - t("Timer.Timer"); + v("Timer.Timer"); try { this.dispatchEvent(new a.events.TimerEvent("timer", !0, !1)); } catch (c) { @@ -45429,7 +45416,7 @@ var RtmpJs; } if (0 !== this._repeatCount && this._iteration >= this._repeatCount) { this.stop(); - t("Timer.TimerComplete"); + v("Timer.TimerComplete"); try { this.dispatchEvent(new a.events.TimerEvent(a.events.TimerEvent.TIMER_COMPLETE, !1, !1)); } catch (d) { @@ -45446,7 +45433,7 @@ var RtmpJs; d.dispatchingEnabled = !0; return d; }(a.events.EventDispatcher); - v.Timer = l; + w.Timer = l; })(a.utils || (a.utils = {})); })(a.flash || (a.flash = {})); })(k.AS || (k.AS = {})); @@ -45457,9 +45444,9 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = function(a) { - function c(a, c, d, k) { - t("packageInternal flash.utils.SetIntervalTimer"); + var v = d.Debug.dummyConstructor, u = function(a) { + function c(a, c, d, l) { + v("packageInternal flash.utils.SetIntervalTimer"); } __extends(c, a); c.classInitializer = null; @@ -45479,7 +45466,7 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { function c(a, d) { l(d); u("public flash.xml.XMLNode"); @@ -45487,7 +45474,7 @@ var RtmpJs; __extends(c, a); c.escapeXML = function(a) { l(a); - p("public flash.xml.XMLNode::static escapeXML"); + n("public flash.xml.XMLNode::static escapeXML"); }; c.initializer = null; return c; @@ -45503,11 +45490,11 @@ var RtmpJs; (function(a) { (function(a) { (function(k) { - var t = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { + var v = d.Debug.dummyConstructor, u = d.AVM2.Runtime.asCoerceString, l = function(a) { function d(a) { void 0 === a && (a = null); u(a); - t("public flash.xml.XMLDocument"); + v("public flash.xml.XMLDocument"); } __extends(d, a); d.initializer = null; @@ -45524,9 +45511,9 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.dummyConstructor, u = function(a) { + var n = d.Debug.dummyConstructor, u = function(a) { function c() { - p("public flash.xml.XMLNodeType"); + n("public flash.xml.XMLNodeType"); } __extends(c, a); c.initializer = null; @@ -45543,17 +45530,17 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { function c() { u("packageInternal flash.xml.XMLParser"); } __extends(c, a); c.prototype.startParse = function(a, c) { l(a); - p("packageInternal flash.xml.XMLParser::startParse"); + n("packageInternal flash.xml.XMLParser::startParse"); }; c.prototype.getNext = function(a) { - p("packageInternal flash.xml.XMLParser::getNext"); + n("packageInternal flash.xml.XMLParser::getNext"); }; c.initializer = null; return c; @@ -45569,31 +45556,31 @@ var RtmpJs; (function(a) { (function(k) { (function(k) { - var p = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { + var n = d.Debug.notImplemented, u = d.Debug.dummyConstructor, l = d.AVM2.Runtime.asCoerceString, c = function(a) { function c() { u("packageInternal flash.xml.XMLTag"); } __extends(c, a); Object.defineProperty(c.prototype, "type", {get:function() { - p("packageInternal flash.xml.XMLTag::get type"); + n("packageInternal flash.xml.XMLTag::get type"); }, set:function(a) { - p("packageInternal flash.xml.XMLTag::set type"); + n("packageInternal flash.xml.XMLTag::set type"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "empty", {get:function() { - p("packageInternal flash.xml.XMLTag::get empty"); + n("packageInternal flash.xml.XMLTag::get empty"); }, set:function(a) { - p("packageInternal flash.xml.XMLTag::set empty"); + n("packageInternal flash.xml.XMLTag::set empty"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "value", {get:function() { - p("packageInternal flash.xml.XMLTag::get value"); + n("packageInternal flash.xml.XMLTag::get value"); }, set:function(a) { l(a); - p("packageInternal flash.xml.XMLTag::set value"); + n("packageInternal flash.xml.XMLTag::set value"); }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "attrs", {get:function() { - p("packageInternal flash.xml.XMLTag::get attrs"); + n("packageInternal flash.xml.XMLTag::get attrs"); }, set:function(a) { - p("packageInternal flash.xml.XMLTag::set attrs"); + n("packageInternal flash.xml.XMLTag::set attrs"); }, enumerable:!0, configurable:!0}); c.initializer = null; return c; @@ -45607,18 +45594,18 @@ var RtmpJs; (function(d) { (function(k) { (function(a) { - function p(a, c, b) { - return{classSimpleName:a, nativeName:c, cls:b}; + function n(a, c, b) { + return {classSimpleName:a, nativeName:c, cls:b}; } - function v(a, c, b) { + function w(a, c, b) { Object.defineProperty(a, b, {get:function() { var e = d.AVM2.Runtime.AVM2.instance.systemDomain.getClass(c); Object.defineProperty(a, b, {value:e.instanceConstructor, writable:!1}); return a[b]; }, configurable:!0}); } - function t() { - return Date.now() - s.display.Loader.runtimeStartTime; + function v() { + return Date.now() - r.display.Loader.runtimeStartTime; } function u(a, c) { null !== a && void 0 !== a || q("TypeError", k.Errors.NullPointerError, "request"); @@ -45641,46 +45628,46 @@ var RtmpJs; k.aliasesCache.classes.set(c, a); k.aliasesCache.names[a] = c; } - function h(a) { + function g(a) { a || q("TypeError", k.Errors.NullPointerError, "aliasName"); var c = k.aliasesCache.names[a]; c || q("ReferenceError", k.Errors.ClassNotFoundError, a); return c; } - var q = d.AVM2.Runtime.throwError, s = d.AVM2.AS.flash, m = d.AVM2.ABC.Multiname; + var q = d.AVM2.Runtime.throwError, r = d.AVM2.AS.flash, m = d.AVM2.ABC.Multiname; jsGlobal.flash = d.AVM2.AS.flash; - a.linkNatives = function(g) { - [p("flash.display.DisplayObject", "DisplayObjectClass", s.display.DisplayObject), p("flash.display.InteractiveObject", "InteractiveObjectClass", s.display.InteractiveObject), p("flash.display.DisplayObjectContainer", "ContainerClass", s.display.DisplayObjectContainer), p("flash.display.Sprite", "SpriteClass", s.display.Sprite), p("flash.display.MovieClip", "MovieClipClass", s.display.MovieClip), p("flash.display.Shape", "ShapeClass", s.display.Shape), p("flash.display.Bitmap", "BitmapClass", - s.display.Bitmap), p("flash.display.BitmapData", "BitmapDataClass", s.display.BitmapData), p("flash.display.Stage", "StageClass", s.display.Stage), p("flash.display.Loader", "LoaderClass", s.display.Loader), p("flash.display.LoaderInfo", "LoaderInfoClass", s.display.LoaderInfo), p("flash.display.Graphics", "GraphicsClass", s.display.Graphics), p("flash.display.SimpleButton", "SimpleButtonClass", s.display.SimpleButton), p("flash.display.MorphShape", "MorphShapeClass", s.display.MorphShape), - p("flash.display.NativeMenu", "NativeMenuClass", s.display.NativeMenu), p("flash.display.NativeMenuItem", "NativeMenuItemClass", s.display.NativeMenuItem), p("flash.display.FrameLabel", "FrameLabelClass", s.display.FrameLabel), p("flash.display.Scene", "SceneClass", s.display.Scene), p("flash.display.AVM1Movie", "AVM1MovieClass", s.display.AVM1Movie), p("flash.filters.BevelFilter", "BevelFilterClass", s.filters.BevelFilter), p("flash.filters.BitmapFilter", "BitmapFilterClass", s.filters.BitmapFilter), - p("flash.filters.BlurFilter", "BlurFilterClass", s.filters.BlurFilter), p("flash.filters.ColorMatrixFilter", "ColorMatrixFilterClass", s.filters.ColorMatrixFilter), p("flash.filters.ConvolutionFilter", "ConvolutionFilterClass", s.filters.ConvolutionFilter), p("flash.filters.DisplacementMapFilter", "DisplacementMapFilterClass", s.filters.DisplacementMapFilter), p("flash.filters.DropShadowFilter", "DropShadowFilterClass", s.filters.DropShadowFilter), p("flash.filters.GlowFilter", "GlowFilterClass", - s.filters.GlowFilter), p("flash.filters.GradientBevelFilter", "GradientBevelFilterClass", s.filters.GradientBevelFilter), p("flash.filters.GradientGlowFilter", "GradientGlowFilterClass", s.filters.GradientGlowFilter), p("flash.geom.Point", "PointClass", s.geom.Point), p("flash.geom.Rectangle", "RectangleClass", s.geom.Rectangle), p("flash.geom.Matrix", "MatrixClass", s.geom.Matrix), p("flash.geom.Matrix3D", "Matrix3DClass", s.geom.Matrix3D), p("flash.geom.Vector3D", "Vector3DClass", s.geom.Vector3D), - p("flash.geom.Transform", "TransformClass", s.geom.Transform), p("flash.geom.ColorTransform", "ColorTransformClass", s.geom.ColorTransform), p("flash.events.EventDispatcher", "EventDispatcherClass", s.events.EventDispatcher), p("flash.events.Event", "EventClass", s.events.Event), p("flash.events.ErrorEvent", "ErrorEventClass", s.events.ErrorEvent), p("flash.events.IOErrorEvent", "IOErrorEventClass", s.events.IOErrorEvent), p("flash.events.KeyboardEvent", "KeyboardEventClass", s.events.KeyboardEvent), - p("flash.events.MouseEvent", "MouseEventClass", s.events.MouseEvent), p("flash.events.GestureEvent", "GestureEventClass", s.events.GestureEvent), p("flash.events.TextEvent", "TextEventClass", s.events.TextEvent), p("flash.events.TimerEvent", "TimerEventClass", s.events.TimerEvent), p("flash.events.ProgressEvent", "ProgressEventClass", s.events.ProgressEvent), p("flash.events.NetStatusEvent", "NetStatusEventClass", s.events.NetStatusEvent), p("flash.events.HTTPStatusEvent", "HTTPStatusEventClass", - s.events.HTTPStatusEvent), p("flash.events.UncaughtErrorEvents", "UncaughtErrorEventsClass", s.events.UncaughtErrorEvents), p("flash.external.ExternalInterface", "ExternalInterfaceClass", s.external.ExternalInterface), p("flash.ui.ContextMenu", "ContextMenuClass", s.ui.ContextMenu), p("flash.ui.ContextMenuItem", "ContextMenuItemClass", s.ui.ContextMenuItem), p("flash.ui.ContextMenuBuiltInItems", "ContextMenuBuiltInItemsClass", s.ui.ContextMenuBuiltInItems), p("flash.ui.ContextMenuClipboardItems", - "ContextMenuClipboardItemsClass", s.ui.ContextMenuClipboardItems), p("flash.ui.Keyboard", "KeyboardClass", s.ui.Keyboard), p("flash.ui.Mouse", "MouseClass", s.ui.Mouse), p("flash.ui.MouseCursorData", "MouseCursorDataClass", s.ui.MouseCursorData), p("flash.ui.GameInput", "GameInputClass", s.ui.GameInput), p("flash.events.GameInputEvent", "GameInputEventClass", s.events.GameInputEvent), p("flash.ui.GameInputControl", "GameInputControlClass", s.ui.GameInputControl), p("flash.ui.GameInputControlType", - "GameInputControlTypeClass", s.ui.GameInputControlType), p("flash.ui.GameInputDevice", "GameInputDeviceClass", s.ui.GameInputDevice), p("flash.ui.GameInputFinger", "GameInputFingerClass", s.ui.GameInputFinger), p("flash.ui.GameInputHand", "GameInputHandClass", s.ui.GameInputHand), p("flash.ui.Multitouch", "MultitouchClass", s.ui.Multitouch), p("flash.ui.MultitouchInputMode", "MultitouchInputModeClass", s.ui.MultitouchInputMode), p("flash.events.TouchEvent", "TouchEventClass", s.events.TouchEvent), - p("flash.text.Font", "FontClass", s.text.Font), p("flash.text.TextField", "TextFieldClass", s.text.TextField), p("flash.text.StaticText", "StaticTextClass", s.text.StaticText), p("flash.text.StyleSheet", "StyleSheetClass", s.text.StyleSheet), p("flash.text.TextFormat", "TextFormatClass", s.text.TextFormat), p("flash.text.TextRun", "TextRunClass", s.text.TextRun), p("flash.text.TextLineMetrics"), p("flash.media.Sound", "SoundClass", s.media.Sound), p("flash.media.SoundChannel", "SoundChannelClass", - s.media.SoundChannel), p("flash.media.SoundMixer", "SoundMixerClass", s.media.SoundMixer), p("flash.media.SoundTransform", "SoundTransformClass", s.media.SoundTransform), p("flash.media.Video", "VideoClass", s.media.Video), p("flash.media.StageVideo", "StageVideoClass", s.media.StageVideo), p("flash.media.ID3Info", "ID3InfoClass", s.media.ID3Info), p("flash.media.Microphone", "MicrophoneClass", s.media.Microphone), p("flash.net.FileFilter", "FileFilterClass", s.net.FileFilter), p("flash.net.NetConnection", - "NetConnectionClass", s.net.NetConnection), p("flash.net.NetStream", "NetStreamClass", s.net.NetStream), p("flash.net.Responder", "ResponderClass", s.net.Responder), p("flash.net.URLRequest", "URLRequestClass", s.net.URLRequest), p("flash.net.URLRequestHeader"), p("flash.net.URLStream", "URLStreamClass", s.net.URLStream), p("flash.net.URLLoader", "URLLoaderClass", s.net.URLLoader), p("flash.net.SharedObject", "SharedObjectClass", s.net.SharedObject), p("flash.net.ObjectEncoding", "ObjectEncodingClass", - s.net.ObjectEncoding), p("flash.net.LocalConnection", "LocalConnectionClass", s.net.LocalConnection), p("flash.net.Socket", "SocketClass", s.net.Socket), p("flash.net.URLVariables", "URLVariablesClass", s.net.URLVariables), p("packageInternal flash.system.FSCommand", "FSCommandClass", s.system.FSCommand), p("flash.system.Capabilities", "CapabilitiesClass", s.system.Capabilities), p("flash.system.Security", "SecurityClass", s.system.Security), p("flash.system.SecurityDomain", "SecurityDomainClass", - s.system.SecurityDomain), p("flash.system.ApplicationDomain", "ApplicationDomainClass", s.system.ApplicationDomain), p("flash.system.JPEGLoaderContext", "JPEGLoaderContextClass", s.system.JPEGLoaderContext), p("flash.system.LoaderContext", "LoaderContextClass", s.system.LoaderContext), p("flash.accessibility.Accessibility", "AccessibilityClass", s.accessibility.Accessibility), p("flash.utils.Timer", "TimerClass", s.utils.Timer), p("flash.utils.ByteArray", "ByteArrayClass", s.utils.ByteArray)].forEach(function(c) { - for (var b = m.fromSimpleName(c.classSimpleName).getOriginalName().split("."), e = d.AVM2.AS, g = 0, h = b.length - 1;g < h;g++) { - e[b[g]] || (e[b[g]] = {}), e = e[b[g]]; + a.linkNatives = function(h) { + [n("flash.display.DisplayObject", "DisplayObjectClass", r.display.DisplayObject), n("flash.display.InteractiveObject", "InteractiveObjectClass", r.display.InteractiveObject), n("flash.display.DisplayObjectContainer", "ContainerClass", r.display.DisplayObjectContainer), n("flash.display.Sprite", "SpriteClass", r.display.Sprite), n("flash.display.MovieClip", "MovieClipClass", r.display.MovieClip), n("flash.display.Shape", "ShapeClass", r.display.Shape), n("flash.display.Bitmap", "BitmapClass", + r.display.Bitmap), n("flash.display.BitmapData", "BitmapDataClass", r.display.BitmapData), n("flash.display.Stage", "StageClass", r.display.Stage), n("flash.display.Loader", "LoaderClass", r.display.Loader), n("flash.display.LoaderInfo", "LoaderInfoClass", r.display.LoaderInfo), n("flash.display.Graphics", "GraphicsClass", r.display.Graphics), n("flash.display.SimpleButton", "SimpleButtonClass", r.display.SimpleButton), n("flash.display.MorphShape", "MorphShapeClass", r.display.MorphShape), + n("flash.display.NativeMenu", "NativeMenuClass", r.display.NativeMenu), n("flash.display.NativeMenuItem", "NativeMenuItemClass", r.display.NativeMenuItem), n("flash.display.FrameLabel", "FrameLabelClass", r.display.FrameLabel), n("flash.display.Scene", "SceneClass", r.display.Scene), n("flash.display.AVM1Movie", "AVM1MovieClass", r.display.AVM1Movie), n("flash.filters.BevelFilter", "BevelFilterClass", r.filters.BevelFilter), n("flash.filters.BitmapFilter", "BitmapFilterClass", r.filters.BitmapFilter), + n("flash.filters.BlurFilter", "BlurFilterClass", r.filters.BlurFilter), n("flash.filters.ColorMatrixFilter", "ColorMatrixFilterClass", r.filters.ColorMatrixFilter), n("flash.filters.ConvolutionFilter", "ConvolutionFilterClass", r.filters.ConvolutionFilter), n("flash.filters.DisplacementMapFilter", "DisplacementMapFilterClass", r.filters.DisplacementMapFilter), n("flash.filters.DropShadowFilter", "DropShadowFilterClass", r.filters.DropShadowFilter), n("flash.filters.GlowFilter", "GlowFilterClass", + r.filters.GlowFilter), n("flash.filters.GradientBevelFilter", "GradientBevelFilterClass", r.filters.GradientBevelFilter), n("flash.filters.GradientGlowFilter", "GradientGlowFilterClass", r.filters.GradientGlowFilter), n("flash.geom.Point", "PointClass", r.geom.Point), n("flash.geom.Rectangle", "RectangleClass", r.geom.Rectangle), n("flash.geom.Matrix", "MatrixClass", r.geom.Matrix), n("flash.geom.Matrix3D", "Matrix3DClass", r.geom.Matrix3D), n("flash.geom.Vector3D", "Vector3DClass", r.geom.Vector3D), + n("flash.geom.Transform", "TransformClass", r.geom.Transform), n("flash.geom.ColorTransform", "ColorTransformClass", r.geom.ColorTransform), n("flash.events.EventDispatcher", "EventDispatcherClass", r.events.EventDispatcher), n("flash.events.Event", "EventClass", r.events.Event), n("flash.events.ErrorEvent", "ErrorEventClass", r.events.ErrorEvent), n("flash.events.IOErrorEvent", "IOErrorEventClass", r.events.IOErrorEvent), n("flash.events.KeyboardEvent", "KeyboardEventClass", r.events.KeyboardEvent), + n("flash.events.MouseEvent", "MouseEventClass", r.events.MouseEvent), n("flash.events.GestureEvent", "GestureEventClass", r.events.GestureEvent), n("flash.events.TextEvent", "TextEventClass", r.events.TextEvent), n("flash.events.TimerEvent", "TimerEventClass", r.events.TimerEvent), n("flash.events.ProgressEvent", "ProgressEventClass", r.events.ProgressEvent), n("flash.events.NetStatusEvent", "NetStatusEventClass", r.events.NetStatusEvent), n("flash.events.HTTPStatusEvent", "HTTPStatusEventClass", + r.events.HTTPStatusEvent), n("flash.events.UncaughtErrorEvents", "UncaughtErrorEventsClass", r.events.UncaughtErrorEvents), n("flash.external.ExternalInterface", "ExternalInterfaceClass", r.external.ExternalInterface), n("flash.ui.ContextMenu", "ContextMenuClass", r.ui.ContextMenu), n("flash.ui.ContextMenuItem", "ContextMenuItemClass", r.ui.ContextMenuItem), n("flash.ui.ContextMenuBuiltInItems", "ContextMenuBuiltInItemsClass", r.ui.ContextMenuBuiltInItems), n("flash.ui.ContextMenuClipboardItems", + "ContextMenuClipboardItemsClass", r.ui.ContextMenuClipboardItems), n("flash.ui.Keyboard", "KeyboardClass", r.ui.Keyboard), n("flash.ui.Mouse", "MouseClass", r.ui.Mouse), n("flash.ui.MouseCursorData", "MouseCursorDataClass", r.ui.MouseCursorData), n("flash.ui.GameInput", "GameInputClass", r.ui.GameInput), n("flash.events.GameInputEvent", "GameInputEventClass", r.events.GameInputEvent), n("flash.ui.GameInputControl", "GameInputControlClass", r.ui.GameInputControl), n("flash.ui.GameInputControlType", + "GameInputControlTypeClass", r.ui.GameInputControlType), n("flash.ui.GameInputDevice", "GameInputDeviceClass", r.ui.GameInputDevice), n("flash.ui.GameInputFinger", "GameInputFingerClass", r.ui.GameInputFinger), n("flash.ui.GameInputHand", "GameInputHandClass", r.ui.GameInputHand), n("flash.ui.Multitouch", "MultitouchClass", r.ui.Multitouch), n("flash.ui.MultitouchInputMode", "MultitouchInputModeClass", r.ui.MultitouchInputMode), n("flash.events.TouchEvent", "TouchEventClass", r.events.TouchEvent), + n("flash.text.Font", "FontClass", r.text.Font), n("flash.text.TextField", "TextFieldClass", r.text.TextField), n("flash.text.StaticText", "StaticTextClass", r.text.StaticText), n("flash.text.StyleSheet", "StyleSheetClass", r.text.StyleSheet), n("flash.text.TextFormat", "TextFormatClass", r.text.TextFormat), n("flash.text.TextRun", "TextRunClass", r.text.TextRun), n("flash.text.TextLineMetrics"), n("flash.media.Sound", "SoundClass", r.media.Sound), n("flash.media.SoundChannel", "SoundChannelClass", + r.media.SoundChannel), n("flash.media.SoundMixer", "SoundMixerClass", r.media.SoundMixer), n("flash.media.SoundTransform", "SoundTransformClass", r.media.SoundTransform), n("flash.media.Video", "VideoClass", r.media.Video), n("flash.media.StageVideo", "StageVideoClass", r.media.StageVideo), n("flash.media.ID3Info", "ID3InfoClass", r.media.ID3Info), n("flash.media.Microphone", "MicrophoneClass", r.media.Microphone), n("flash.net.FileFilter", "FileFilterClass", r.net.FileFilter), n("flash.net.NetConnection", + "NetConnectionClass", r.net.NetConnection), n("flash.net.NetStream", "NetStreamClass", r.net.NetStream), n("flash.net.Responder", "ResponderClass", r.net.Responder), n("flash.net.URLRequest", "URLRequestClass", r.net.URLRequest), n("flash.net.URLRequestHeader"), n("flash.net.URLStream", "URLStreamClass", r.net.URLStream), n("flash.net.URLLoader", "URLLoaderClass", r.net.URLLoader), n("flash.net.SharedObject", "SharedObjectClass", r.net.SharedObject), n("flash.net.ObjectEncoding", "ObjectEncodingClass", + r.net.ObjectEncoding), n("flash.net.LocalConnection", "LocalConnectionClass", r.net.LocalConnection), n("flash.net.Socket", "SocketClass", r.net.Socket), n("flash.net.URLVariables", "URLVariablesClass", r.net.URLVariables), n("packageInternal flash.system.FSCommand", "FSCommandClass", r.system.FSCommand), n("flash.system.Capabilities", "CapabilitiesClass", r.system.Capabilities), n("flash.system.Security", "SecurityClass", r.system.Security), n("flash.system.SecurityDomain", "SecurityDomainClass", + r.system.SecurityDomain), n("flash.system.ApplicationDomain", "ApplicationDomainClass", r.system.ApplicationDomain), n("flash.system.JPEGLoaderContext", "JPEGLoaderContextClass", r.system.JPEGLoaderContext), n("flash.system.LoaderContext", "LoaderContextClass", r.system.LoaderContext), n("flash.accessibility.Accessibility", "AccessibilityClass", r.accessibility.Accessibility), n("flash.utils.Timer", "TimerClass", r.utils.Timer), n("flash.utils.ByteArray", "ByteArrayClass", r.utils.ByteArray)].forEach(function(c) { + for (var b = m.fromSimpleName(c.classSimpleName).getOriginalName().split("."), e = d.AVM2.AS, h = 0, g = b.length - 1;h < g;h++) { + e[b[h]] || (e[b[h]] = {}), e = e[b[h]]; } - v(e, c.classSimpleName, b[b.length - 1]); + w(e, c.classSimpleName, b[b.length - 1]); a.registerNativeClass(c.nativeName, c.cls); }); a.registerNativeFunction("FlashUtilScript::getDefinitionByName", d.AVM2.AS.Natives.getDefinitionByName); - a.registerNativeFunction("FlashUtilScript::getTimer", t); + a.registerNativeFunction("FlashUtilScript::getTimer", v); a.registerNativeFunction("FlashUtilScript::escapeMultiByte", escape); a.registerNativeFunction("FlashUtilScript::unescapeMultiByte", unescape); a.registerNativeFunction("FlashNetScript::navigateToURL", u); a.registerNativeFunction("FlashNetScript::sendToURL", l); a.registerNativeFunction("Toplevel::registerClassAlias", c); - a.registerNativeFunction("Toplevel::getClassByAlias", h); + a.registerNativeFunction("Toplevel::getClassByAlias", g); }; - a.FlashUtilScript_getTimer = t; + a.FlashUtilScript_getTimer = v; a.FlashNetScript_navigateToURL = u; })(k.AS || (k.AS = {})); })(d.AVM2 || (d.AVM2 = {})); @@ -45695,9 +45682,9 @@ console.time("Load AVM1 Dependencies"); this.position = 0; this.end = d.length; this.readANSI = 6 > k; - var p = new ArrayBuffer(4); - (new Int32Array(p))[0] = 1; - if (!(new Uint8Array(p))[0]) { + var n = new ArrayBuffer(4); + (new Int32Array(n))[0] = 1; + if (!(new Uint8Array(n))[0]) { throw Error("big-endian platform"); } } @@ -45726,7 +45713,7 @@ console.time("Load AVM1 Dependencies"); l[2] = d[a + 2]; l[3] = d[a + 3]; this.position = a + 4; - return(new Float32Array(k))[0]; + return (new Float32Array(k))[0]; }; a.prototype.readDouble = function() { var a = this.position, d = this.array, k = new ArrayBuffer(8), l = new Uint8Array(k); @@ -45739,10 +45726,10 @@ console.time("Load AVM1 Dependencies"); l[2] = d[a + 6]; l[3] = d[a + 7]; this.position = a + 8; - return(new Float64Array(k))[0]; + return (new Float64Array(k))[0]; }; a.prototype.readBoolean = function() { - return!!this.readUI8(); + return !!this.readUI8(); }; a.prototype.readANSIString = function() { for (var a = "", d;d = this.readUI8();) { @@ -45760,15 +45747,15 @@ console.time("Load AVM1 Dependencies"); } else { var k = this.position - 1, l = 192, c = 5; do { - var h = l >> 1 | 128; - if ((d & h) === l) { + var g = l >> 1 | 128; + if ((d & g) === l) { break; } - l = h; + l = g; --c; } while (0 <= c); l = d & (1 << c) - 1; - for (h = 5;h >= c;--h) { + for (g = 5;g >= c;--g) { if (d = this.readUI8(), 128 !== (d & 192)) { for (d = this.position - 1, this.position = k;this.position < d;) { a += String.fromCharCode(this.readUI8()); @@ -45905,18 +45892,18 @@ console.time("Load AVM1 Dependencies"); a[a.ActionFSCommand2 = 45] = "ActionFSCommand2"; a[a.ActionStrictMode = 137] = "ActionStrictMode"; })(k.ActionCode || (k.ActionCode = {})); - var p = function() { + var n = function() { return function(a) { this.registerNumber = a; }; }(); - k.ParsedPushRegisterAction = p; - var v = function() { + k.ParsedPushRegisterAction = n; + var w = function() { return function(a) { this.constantIndex = a; }; }(); - k.ParsedPushConstantAction = v; + k.ParsedPushConstantAction = w; (function(a) { a[a.None = 0] = "None"; a[a.Argument = 1] = "Argument"; @@ -45927,11 +45914,11 @@ console.time("Load AVM1 Dependencies"); a[a.Parent = 32] = "Parent"; a[a.Root = 64] = "Root"; })(k.ArgumentAssignmentType || (k.ArgumentAssignmentType = {})); - var t = function() { - function d(c, h) { + var v = function() { + function d(c, g) { this._actionsData = c; this.dataId = c.id; - this._stream = new a(c.bytes, h); + this._stream = new a(c.bytes, g); } Object.defineProperty(d.prototype, "position", {get:function() { return this._stream.position; @@ -45945,99 +45932,99 @@ console.time("Load AVM1 Dependencies"); return this._stream.end; }, enumerable:!0, configurable:!0}); d.prototype.readNext = function() { - var a = this._stream, d = a.position, l = a.readUI8(), s = 128 <= l ? a.readUI16() : 0, s = a.position + s, m = null; + var a = this._stream, d = a.position, l = a.readUI8(), r = 128 <= l ? a.readUI16() : 0, r = a.position + r, m = null; switch(l | 0) { case 129: - var g = a.readUI16(), m = a.readUI8(), f = !1; - 6 !== m && 7 !== m ? a.position-- : (s++, f = 6 === m); - m = [g, f]; + var h = a.readUI16(), m = a.readUI8(), f = !1; + 6 !== m && 7 !== m ? a.position-- : (r++, f = 6 === m); + m = [h, f]; break; case 131: - g = a.readString(); + h = a.readString(); m = a.readString(); - m = [g, m]; + m = [h, m]; break; case 138: - var g = a.readUI16(), b = a.readUI8(), m = [g, b]; + var h = a.readUI16(), b = a.readUI8(), m = [h, b]; break; case 139: m = [a.readString()]; break; case 140: - g = a.readString(); + h = a.readString(); m = a.readUI8(); f = !1; - 6 !== m && 7 !== m ? a.position-- : (s++, f = 6 === m); - m = [g, f]; + 6 !== m && 7 !== m ? a.position-- : (r++, f = 6 === m); + m = [h, f]; break; case 150: - for (m = [];a.position < s;) { - g = a.readUI8(); - switch(g | 0) { + for (m = [];a.position < r;) { + h = a.readUI8(); + switch(h | 0) { case 0: - g = a.readString(); + h = a.readString(); break; case 1: - g = a.readFloat(); + h = a.readFloat(); break; case 2: - g = null; + h = null; break; case 3: - g = void 0; + h = void 0; break; case 4: - g = new p(a.readUI8()); + h = new n(a.readUI8()); break; case 5: - g = a.readBoolean(); + h = a.readBoolean(); break; case 6: - g = a.readDouble(); + h = a.readDouble(); break; case 7: - g = a.readInteger(); + h = a.readInteger(); break; case 8: - g = new v(a.readUI8()); + h = new w(a.readUI8()); break; case 9: - g = new v(a.readUI16()); + h = new w(a.readUI16()); break; default: - console.error("Unknown value type: " + g); - a.position = s; + console.error("Unknown value type: " + h); + a.position = r; continue; } - m.push(g); + m.push(h); } break; case 153: - g = a.readSI16(); - m = [g]; + h = a.readSI16(); + m = [h]; break; case 157: - g = a.readSI16(); - m = [g]; + h = a.readSI16(); + m = [h]; break; case 154: - g = a.readUI8(); - m = [g]; + h = a.readUI8(); + m = [h]; break; case 159: - g = a.readUI8(); - m = [g]; - g & 2 && m.push(a.readUI16()); + h = a.readUI8(); + m = [h]; + h & 2 && m.push(a.readUI16()); break; case 141: b = a.readUI8(); m = [b]; break; case 136: - for (var b = a.readUI16(), g = [], e = 0;e < b;e++) { - g.push(a.readString()); + for (var b = a.readUI16(), h = [], e = 0;e < b;e++) { + h.push(a.readString()); } - m = [g]; + m = [h]; break; case 155: m = a.readString(); @@ -46046,61 +46033,61 @@ console.time("Load AVM1 Dependencies"); for (e = 0;e < b;e++) { f.push(a.readString()); } - g = a.readUI16(); - s += g; - g = new k.AVM1ActionsData(a.readBytes(g), this.dataId + "_f" + a.position, this._actionsData); - m = [g, m, f]; + h = a.readUI16(); + r += h; + h = new k.AVM1ActionsData(a.readBytes(h), this.dataId + "_f" + a.position, this._actionsData); + m = [h, m, f]; break; case 148: - g = a.readUI16(); - s += g; - m = [new k.AVM1ActionsData(a.readBytes(g), this.dataId + "_w" + a.position, this._actionsData)]; + h = a.readUI16(); + r += h; + m = [new k.AVM1ActionsData(a.readBytes(h), this.dataId + "_w" + a.position, this._actionsData)]; break; case 135: - var r = a.readUI8(), m = [r]; + var t = a.readUI8(), m = [t]; break; case 142: - for (var m = a.readString(), b = a.readUI16(), n = a.readUI8(), g = a.readUI16(), t = [], f = [], e = 0;e < b;e++) { - var r = a.readUI8(), I = a.readString(); + for (var m = a.readString(), b = a.readUI16(), p = a.readUI8(), h = a.readUI16(), v = [], f = [], e = 0;e < b;e++) { + var t = a.readUI8(), I = a.readString(); f.push(I); - r && (t[r] = {type:1, name:I, index:e}); + t && (v[t] = {type:1, name:I, index:e}); } b = 1; - g & 1 && (t[b++] = {type:2}); - g & 4 && (t[b++] = {type:4}); - g & 16 && (t[b++] = {type:8}); - g & 64 && (t[b++] = {type:64}); - g & 128 && (t[b++] = {type:32}); - g & 256 && (t[b++] = {type:16}); + h & 1 && (v[b++] = {type:2}); + h & 4 && (v[b++] = {type:4}); + h & 16 && (v[b++] = {type:8}); + h & 64 && (v[b++] = {type:64}); + h & 128 && (v[b++] = {type:32}); + h & 256 && (v[b++] = {type:16}); b = 0; - g & 2 && (b |= 2); - g & 8 && (b |= 4); - g & 32 && (b |= 8); - g = a.readUI16(); - s += g; - g = new k.AVM1ActionsData(a.readBytes(g), this.dataId + "_f" + a.position, this._actionsData); - m = [g, m, f, n, t, b]; + h & 2 && (b |= 2); + h & 8 && (b |= 4); + h & 32 && (b |= 8); + h = a.readUI16(); + r += h; + h = new k.AVM1ActionsData(a.readBytes(h), this.dataId + "_f" + a.position, this._actionsData); + m = [h, m, f, p, v, b]; break; case 143: - g = a.readUI8(); - m = !!(g & 4); - f = !!(g & 2); - g = !!(g & 1); + h = a.readUI8(); + m = !!(h & 4); + f = !!(h & 2); + h = !!(h & 1); b = a.readUI16(); e = a.readUI16(); - t = a.readUI16(); - n = m ? a.readUI8() : a.readString(); - s += b + e + t; + v = a.readUI16(); + p = m ? a.readUI8() : a.readString(); + r += b + e + v; b = new k.AVM1ActionsData(a.readBytes(b), this.dataId + "_t" + a.position, this._actionsData); e = new k.AVM1ActionsData(a.readBytes(e), this.dataId + "_c" + a.position, this._actionsData); - t = new k.AVM1ActionsData(a.readBytes(t), this.dataId + "_z" + a.position, this._actionsData); - m = [m, n, b, g, e, f, t]; + v = new k.AVM1ActionsData(a.readBytes(v), this.dataId + "_z" + a.position, this._actionsData); + m = [m, p, b, h, e, f, v]; break; case 137: m = [a.readUI8()]; } - a.position = s; - return{position:d, actionCode:l, actionName:u[l], args:m}; + a.position = r; + return {position:d, actionCode:l, actionName:u[l], args:m}; }; d.prototype.skip = function(a) { for (var d = this._stream;0 < a && d.position < d.end;) { @@ -46111,7 +46098,7 @@ console.time("Load AVM1 Dependencies"); }; return d; }(); - k.ActionsDataParser = t; + k.ActionsDataParser = v; var u = {0:"EOA", 4:"ActionNextFrame", 5:"ActionPreviousFrame", 6:"ActionPlay", 7:"ActionStop", 8:"ActionToggleQuality", 9:"ActionStopSounds", 10:"ActionAdd", 11:"ActionSubtract", 12:"ActionMultiply", 13:"ActionDivide", 14:"ActionEquals", 15:"ActionLess", 16:"ActionAnd", 17:"ActionOr", 18:"ActionNot", 19:"ActionStringEquals", 20:"ActionStringLength", 21:"ActionStringExtract", 23:"ActionPop", 24:"ActionToInteger", 28:"ActionGetVariable", 29:"ActionSetVariable", 32:"ActionSetTarget2", 33:"ActionStringAdd", 34:"ActionGetProperty", 35:"ActionSetProperty", 36:"ActionCloneSprite", 37:"ActionRemoveSprite", 38:"ActionTrace", 39:"ActionStartDrag", 40:"ActionEndDrag", 41:"ActionStringLess", 42:"ActionThrow", 43:"ActionCastOp", 44:"ActionImplementsOp", 45:"ActionFSCommand2", 48:"ActionRandomNumber", 49:"ActionMBStringLength", 50:"ActionCharToAscii", 51:"ActionAsciiToChar", 52:"ActionGetTime", 53:"ActionMBStringExtract", 54:"ActionMBCharToAscii", 55:"ActionMBAsciiToChar", 58:"ActionDelete", 59:"ActionDelete2", 60:"ActionDefineLocal", 61:"ActionCallFunction", 62:"ActionReturn", 63:"ActionModulo", 64:"ActionNewObject", 65:"ActionDefineLocal2", 66:"ActionInitArray", 67:"ActionInitObject", 68:"ActionTypeOf", 69:"ActionTargetPath", 70:"ActionEnumerate", 71:"ActionAdd2", 72:"ActionLess2", 73:"ActionEquals2", 74:"ActionToNumber", 75:"ActionToString", 76:"ActionPushDuplicate", 77:"ActionStackSwap", 78:"ActionGetMember", 79:"ActionSetMember", 80:"ActionIncrement", 81:"ActionDecrement", 82:"ActionCallMethod", @@ -46127,15 +46114,15 @@ console.time("Load AVM1 Dependencies"); this.registersLimit = 0; } a.prototype.analyze = function(a) { - for (var d = [], k = [0], l = [!0], c = !1, h = null, p = [0];0 < p.length;) { - var s = p.shift(); - if (!d[s]) { - for (a.position = s;!a.eof && !d[s];) { + for (var d = [], k = [0], l = [!0], c = !1, g = null, n = [0];0 < n.length;) { + var r = n.shift(); + if (!d[r]) { + for (a.position = r;!a.eof && !d[r];) { var m = a.readNext(); if (0 === m.actionCode) { break; } - var g = a.position, f = {action:m, next:g, conditionalJumpTo:-1}, b = 0, e = !1, r = !1; + var h = a.position, f = {action:m, next:h, conditionalJumpTo:-1}, b = 0, e = !1, t = !1; switch(m.actionCode) { case 138: ; @@ -46143,60 +46130,60 @@ console.time("Load AVM1 Dependencies"); e = !0; a.skip(138 === m.actionCode ? m.args[1] : m.args[0]); b = a.position; - a.position = g; + a.position = h; break; case 153: - e = r = !0; - b = g + m.args[0]; + e = t = !0; + b = h + m.args[0]; break; case 157: e = !0; - b = g + m.args[0]; + b = h + m.args[0]; break; case 42: ; case 62: ; case 0: - e = r = !0; + e = t = !0; b = a.length; break; case 136: if (c) { - h = null; + g = null; break; } c = !0; - 0 === s && (h = m.args[0]); + 0 === r && (g = m.args[0]); } if (e) { if (0 > b || b > a.length) { console.error("jump outside the action block;"), b = a.length; } - r ? f.next = b : f.conditionalJumpTo = b; - l[b] || (k.push(b), p.push(b), l[b] = !0); + t ? f.next = b : f.conditionalJumpTo = b; + l[b] || (k.push(b), n.push(b), l[b] = !0); } - d[s] = f; - if (r) { + d[r] = f; + if (t) { break; } - s = g; + r = h; } } } - var n = []; + var p = []; k.forEach(function(a) { if (d[a]) { var b = [], e = a; do { e = d[e], b.push(e), e = e.next; } while (!l[e] && d[e]); - n.push({label:a, items:b, jump:e}); + p.push({label:a, items:b, jump:e}); } }); k = null; - c ? k = h : this.parentResults && (k = this.parentResults.singleConstantPool); - return{actions:d, blocks:n, dataId:a.dataId, singleConstantPool:k, registersLimit:this.registersLimit}; + c ? k = g : this.parentResults && (k = this.parentResults.singleConstantPool); + return {actions:d, blocks:p, dataId:a.dataId, singleConstantPool:k, registersLimit:this.registersLimit}; }; return a; }(); @@ -46205,7 +46192,7 @@ console.time("Load AVM1 Dependencies"); })(Shumway || (Shumway = {})); (function(d) { (function(d) { - d.AVM1ActionsData = function() { + var a = function() { return function(a, d, k) { void 0 === k && (k = null); this.bytes = a; @@ -46213,13 +46200,29 @@ console.time("Load AVM1 Dependencies"); this.parent = k; }; }(); - var a = function() { + d.AVM1ActionsData = a; + var n = function() { + function d() { + this._cache = new WeakMap; + } + d.prototype.createActionsData = function(d, k) { + var c; + void 0 === c && (c = null); + var g = this._cache.get(d); + g || (g = new a(d, k, c), this._cache.set(d, g)); + return g; + }; + return d; + }(); + d.ActionsDataFactory = n; + var w = function() { function a() { this.globals = this.root = null; + this.actionsDataFactory = new n; } a.prototype.flushPendingScripts = function() { }; - a.prototype.addAsset = function(a, d, k) { + a.prototype.addAsset = function(a, d, c) { }; a.prototype.registerClass = function(a, d) { }; @@ -46242,15 +46245,15 @@ console.time("Load AVM1 Dependencies"); a.instance = null; return a; }(); - d.AVM1Context = a; + d.AVM1Context = w; })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -46266,30 +46269,30 @@ __extends = this.__extends || function(d, k) { } console.warn.apply(console, arguments); } - function p(a) { + function n(a) { if (null === a) { return "null"; } var b = typeof a; return "function" === b ? "object" : "object" === b && "object" === typeof a && a && a instanceof k.Lib.AVM1MovieClip ? "movieclip" : b; } - function v(a) { - return "object" !== p(a) ? a : a.valueOf(); + function w(a) { + return "object" !== n(a) ? a : a.valueOf(); } - function t() { + function v() { return k.AVM1Context.instance.loaderInfo.swfVersion; } function u(a) { - return "object" !== p(a) ? a : a instanceof Date && 6 <= t() ? a.toString() : a.valueOf(); + return "object" !== n(a) ? a : a instanceof Date && 6 <= v() ? a.toString() : a.valueOf(); } function l(a) { - switch(p(a)) { + switch(n(a)) { default: ; case "undefined": ; case "null": - return!1; + return !1; case "boolean": return a; case "number": @@ -46299,34 +46302,34 @@ __extends = this.__extends || function(d, k) { case "movieclip": ; case "object": - return!0; + return !0; } } function c(a) { - a = v(a); - switch(p(a)) { + a = w(a); + switch(n(a)) { case "undefined": ; case "null": - return 7 <= t() ? NaN : 0; + return 7 <= v() ? NaN : 0; case "boolean": return a ? 1 : 0; case "number": return a; case "string": - return "" === a && 5 > t() ? 0 : +a; + return "" === a && 5 > v() ? 0 : +a; default: - return 5 <= t() ? NaN : 0; + return 5 <= v() ? NaN : 0; } } - function h(a) { + function g(a) { a = c(a); return isNaN(a) || !isFinite(a) || 0 === a ? 0 : a | 0; } function q(a) { - switch(p(a)) { + switch(n(a)) { case "undefined": - return 7 <= t() ? "undefined" : ""; + return 7 <= v() ? "undefined" : ""; case "null": return "null"; case "boolean": @@ -46345,15 +46348,15 @@ __extends = this.__extends || function(d, k) { return "string" === typeof b ? b : "function" === typeof a ? "[type Function]" : "[type Object]"; } } - function s(a, b) { - var e = v(a), d = v(b); + function r(a, b) { + var e = w(a), d = w(b); if ("string" !== typeof e || "string" !== typeof d) { return e = c(e), d = c(d), isNaN(e) || isNaN(d) ? void 0 : e < d; } } function m(a, b) { if (d.isNullOrUndefined(a) || d.isNullOrUndefined(b)) { - return!1; + return !1; } if (b === d.AVM2.AS.ASString) { return "string" === typeof a; @@ -46375,20 +46378,20 @@ __extends = this.__extends || function(d, k) { } var e = b.asGetPublicProperty("prototype"); if (!e) { - return!1; + return !1; } for (var c = a;c;) { if (c === e) { - return!0; + return !0; } c = c.asGetPublicProperty("__proto__"); } - return!1; + return !1; } - function g(a, b, e) { + function h(a, b, e) { var c = Object.create(null); do { - Wb(a, function(d) { + Yb(a, function(d) { c[d] || (b.call(e, a, d), c[d] = !0); }), a = a.asGetPublicProperty("__proto__"); } while (a); @@ -46396,7 +46399,7 @@ __extends = this.__extends || function(d, k) { function f(a, b) { do { if (a.asHasProperty(void 0, b, 0)) { - return oa.link = a, oa.name = b, oa; + return qa.link = a, qa.name = b, qa; } a = a.asGetPublicProperty("__proto__"); } while (a); @@ -46406,58 +46409,58 @@ __extends = this.__extends || function(d, k) { if (d.isNullOrUndefined(b)) { return a("AVM1 warning: cannot look up member '" + e + "' on undefined object"), null; } - var h; + var g; b = Object(b); - if (null !== (h = f(b, e))) { - return h; + if (null !== (g = f(b, e))) { + return g; } - if (Xb(e) || 6 < t()) { - return c ? (oa.link = b, oa.name = e, oa) : null; + if (Zb(e) || 6 < v()) { + return c ? (qa.link = b, qa.name = e, qa) : null; } var k = e.toLowerCase(); - if (null !== (h = f(b, k))) { - return h; + if (null !== (g = f(b, k))) { + return g; } - null === Fa && (Fa = Object.create(null), Yb.forEach(function(a) { - Fa[a.toLowerCase()] = a; + null === Ha && (Ha = Object.create(null), $b.forEach(function(a) { + Ha[a.toLowerCase()] = a; })); - var l = Fa[k] || null; - if (l && null !== (h = f(b, l))) { - return h; + var l = Ha[k] || null; + if (l && null !== (g = f(b, l))) { + return g; } - var r = null, n = null; - g(b, function(a, b) { - null === r && b.toLowerCase() === k && (n = a, r = b); + var p = null, m = null; + h(b, function(a, b) { + null === p && b.toLowerCase() === k && (m = a, p = b); }, null); - return r ? (oa.link = n, oa.name = r, oa) : c ? (oa.link = b, oa.name = l || e, oa) : null; + return p ? (qa.link = m, qa.name = p, qa) : c ? (qa.link = b, qa.name = l || e, qa) : null; } function e(a, e) { var c = b(a, e, !1); return c ? c.link.asGetPublicProperty(c.name) : void 0; } - function r(a, e, c) { + function t(a, e, c) { if (e = b(a, e, !0)) { var d = e.link.asGetPropertyDescriptor(void 0, e.name, 0); !d || "value" in d ? a.asSetPublicProperty(e.name, c) : e.link.asSetPublicProperty(e.name, c); - n(e.name); + p(e.name); } } - function n(a) { + function p(a) { "o" === a[0] && "n" === a[1] && k.AVM1Context.instance.broadcastEventPropertyChange(a); } - function x(a) { - return "undefined" !== typeof InternalError && a instanceof InternalError && "too much recursion" === a.message ? new qa("long running script -- AVM1 recursion limit is reached") : a; + function C(a) { + return "undefined" !== typeof InternalError && a instanceof InternalError && "too much recursion" === a.message ? new sa("long running script -- AVM1 recursion limit is reached") : a; } function I(a, b, e) { a.asSetPublicProperty("__proto__", b); a.asDefinePublicProperty("__constructor__", {value:e, writable:!0, enumerable:!1, configurable:!1}); } - function z(a, b) { + function B(a, b) { var e; if (a instanceof d.AVM2.AS.ASClass) { - e = Zb(a, b), I(e, a.asGetPublicProperty("prototype"), a); + e = ac(a, b), I(e, a.asGetPublicProperty("prototype"), a); } else { - if (Ia(a)) { + if (Ka(a)) { for (var c = a.asGetPublicProperty("prototype");c && !c.initAVM1ObjectInstance;) { c = c.asGetPublicProperty("__proto__"); } @@ -46472,12 +46475,12 @@ __extends = this.__extends || function(d, k) { return e; } function D(a, b) { - g(a, function(a, e) { + h(a, function(a, e) { return b.call(null, e); }); } function M(a, e) { - if (6 > t()) { + if (6 > v()) { return null; } var c; @@ -46492,31 +46495,31 @@ __extends = this.__extends || function(d, k) { c = c.asGetPublicProperty("__proto__"); return c ? (c = b(c, e, !1)) ? {target:c.link, name:c.name, obj:c.link.asGetPublicProperty(c.name)} : null : null; } - function F(a, b, e) { + function E(a, b, e) { if (!b.executionProhibited) { - var c = Ua.get(), d = []; + var c = Wa.get(), d = []; d.length = 4; - var f = b.initialScope.create(e), g; + var f = b.initialScope.create(e), h; b.pushCallFrame(e, null, null); c.message("ActionScript Execution Starts"); c.indent(); b.enterContext(function() { try { - ua(a, f, [], d); + wa(a, f, [], d); } catch (b) { - g = x(b); + h = C(b); } }, e); - g instanceof qa && (b.executionProhibited = !0, console.error("Disabling AVM1 execution")); + h instanceof sa && (b.executionProhibited = !0, console.error("Disabling AVM1 execution")); b.popCallFrame(); c.unindent(); c.message("ActionScript Execution Stops"); - if (g) { - throw g; + if (h) { + throw h; } } } - function T(b, e, c) { + function J(b, e, c) { var d = b.split(/[\/.]/g); "" === d[d.length - 1] && d.pop(); if ("" === d[0] || "_level0" === d[0] || "_root" === d[0]) { @@ -46532,7 +46535,7 @@ __extends = this.__extends || function(d, k) { } return e; } - function N(a, b) { + function P(a, b) { if (a === Array) { var e = b; 1 == b.length && "number" === typeof b[0] && (e = [], e.length = b[0]); @@ -46552,18 +46555,18 @@ __extends = this.__extends || function(d, k) { } } if (a === Object) { - return new Va; + return new Xa; } } - function C(b, e) { + function y(b, e) { if (isNaN(b) || 0 > b) { return a("Invalid amount of arguments: " + b), 0; } b |= 0; return b > e ? (a("Truncating amount of arguments: from " + b + " to " + e), e) : b; } - function B(a) { - for (var b = +a.pop(), b = C(b, a.length), e = [], c = 0;c < b;c++) { + function K(a) { + for (var b = +a.pop(), b = y(b, a.length), e = [], c = 0;c < b;c++) { e.push(a.pop()); } return e; @@ -46572,7 +46575,7 @@ __extends = this.__extends || function(d, k) { var e = a.context; if (b) { try { - var c = T(b, e.currentTarget || e.defaultTarget, e.resolveLevel(0)); + var c = J(b, e.currentTarget || e.defaultTarget, e.resolveLevel(0)); e.currentTarget = c; } catch (d) { throw e.currentTarget = null, d; @@ -46584,67 +46587,67 @@ __extends = this.__extends || function(d, k) { function A(a) { return a === this; } - function y(a, b, e, c, d, f, g) { - function h() { + function z(a, b, e, c, d, f, h) { + function g() { if (!l.executionProhibited) { - var a, e = new $b, d = A(this) ? m : this, x, v, Ta = l.pushCallFrame(d, h, arguments); - g & 4 || (x = Wa(arguments, 0), e.asSetPublicProperty("arguments", x)); - g & 2 || e.asSetPublicProperty("this", d); - g & 8 || (v = new va(Ta), e.asSetPublicProperty("super", v)); - a = n.create(e); - var z, w = k(); - for (z = 0;z < t;z++) { - var D = f[z]; + var a, e = new bc, d = A(this) ? t : this, C, w, Va = l.pushCallFrame(d, g, arguments); + h & 4 || (C = Ya(arguments, 0), e.asSetPublicProperty("arguments", C)); + h & 2 || e.asSetPublicProperty("this", d); + h & 8 || (w = new xa(Va), e.asSetPublicProperty("super", w)); + a = m.create(e); + var B, x = k(); + for (B = 0;B < v;B++) { + var D = f[B]; if (D) { switch(D.type) { case 1: - w[z] = arguments[D.index]; + x[B] = arguments[D.index]; break; case 2: - w[z] = d; + x[B] = d; break; case 4: - x = x || Wa(arguments, 0); - w[z] = x; + C = C || Ya(arguments, 0); + x[B] = C; break; case 8: - v = v || new va(Ta); - w[z] = v; + w = w || new xa(Va); + x[B] = w; break; case 16: - w[z] = r; + x[B] = p; break; case 32: - w[z] = m.asGetPublicProperty("_parent"); + x[B] = t.asGetPublicProperty("_parent"); break; case 64: - w[z] = l.resolveLevel(0); + x[B] = l.resolveLevel(0); } } } - for (z = 0;z < arguments.length || z < c.length;z++) { - s && s[z] || e.asSetPublicProperty(c[z], arguments[z]); + for (B = 0;B < arguments.length || B < c.length;B++) { + r && r[B] || e.asSetPublicProperty(c[B], arguments[B]); } - var F, M; - p.indent(); + var E, M; + n.indent(); if (256 <= ++l.stackDepth) { - throw new qa("long running script -- AVM1 recursion limit is reached"); + throw new sa("long running script -- AVM1 recursion limit is reached"); } l.enterContext(function() { try { - F = ua(b, a, u, w); + E = wa(b, a, u, x); } catch (e) { M = e; } }, q); l.stackDepth--; l.popCallFrame(); - p.unindent(); - 10 < I.length || I.push(w); + n.unindent(); + 10 < I.length || I.push(x); if (M) { throw M; } - return F; + return E; } } function k() { @@ -46652,309 +46655,309 @@ __extends = this.__extends || function(d, k) { return I.pop(); } var a = []; - a.length = v; + a.length = w; return a; } - var l = a.context, r = a.global, n = a.scopeContainer, m = a.scope, p = a.actionTracer, q = l.defaultTarget, u = a.constantPool, s = null, t = f ? f.length : 0; - for (a = 0;a < t;a++) { - var x = f[a]; - x && 1 === x.type && (s || (s = []), s[f[a].index] = !0); + var l = a.context, p = a.global, m = a.scopeContainer, t = a.scope, n = a.actionTracer, q = l.defaultTarget, u = a.constantPool, r = null, v = f ? f.length : 0; + for (a = 0;a < v;a++) { + var C = f[a]; + C && 1 === C.type && (r || (r = []), r[f[a].index] = !0); } - var v = Math.min(d, 255), v = Math.max(v, t + 1), I = []; - d = h; - d.instanceConstructor = h; + var w = Math.min(d, 255), w = Math.max(w, v + 1), I = []; + d = g; + d.instanceConstructor = g; d.debugName = "avm1 " + (e || ""); e && (d.name = e); - return h; + return g; } function G(a) { return a && (0 <= a.indexOf(".") || 0 <= a.indexOf(":")); } - function J(e, c, d) { + function L(e, c, d) { var f = e.global; e = e.context; - var g, h; + var h, g; if (0 <= c.indexOf(":")) { - g = e.currentTarget || e.defaultTarget; - h = c.split(":"); - g = T(h[0], g, e.resolveLevel(0)); - if (!g) { - return a(h[0] + " is undefined"), null; + h = e.currentTarget || e.defaultTarget; + g = c.split(":"); + h = J(g[0], h, e.resolveLevel(0)); + if (!h) { + return a(g[0] + " is undefined"), null; } - h = h[1]; + g = g[1]; } else { if (0 <= c.indexOf(".")) { - for (c = c.split("."), h = c.pop(), g = f, f = 0;f < c.length;f++) { - if (g = (e = b(g, c[f], !1)) && e.link.asGetPublicProperty(e.name), !g) { + for (c = c.split("."), g = c.pop(), h = f, f = 0;f < c.length;f++) { + if (h = (e = b(h, c[f], !1)) && e.link.asGetPublicProperty(e.name), !h) { return a(c.slice(0, f + 1) + " is undefined"), null; } } } } - return(e = b(g, h, d)) ? (ia.obj = g, ia.link = e.link, ia.name = e.name, ia) : null; + return (e = b(h, g, d)) ? (ka.obj = h, ka.link = e.link, ka.name = e.name, ka) : null; } - function E(a, e) { + function F(a, e) { if (G(e)) { - return J(a, e, !1); + return L(a, e, !1); } - var c = a.scopeContainer, d = a.context, d = d.currentTarget || d.defaultTarget, f = a.scope, g; - if (g = b(f, e, !1)) { - return ia.obj = f, ia.link = g.link, ia.name = g.name, ia; + var c = a.scopeContainer, d = a.context, d = d.currentTarget || d.defaultTarget, f = a.scope, h; + if (h = b(f, e, !1)) { + return ka.obj = f, ka.link = h.link, ka.name = h.name, ka; } for (;c;c = c.next) { - if (g = b(c.scope, e, !1)) { - return ia.obj = c.scope, ia.link = g.link, ia.name = g.name, ia; + if (h = b(c.scope, e, !1)) { + return ka.obj = c.scope, ka.link = h.link, ka.name = h.name, ka; } } - return(g = b(d, e, !1)) ? (ia.obj = d, ia.link = g.link, ia.name = g.name, ia) : "this" === e ? (f.asDefinePublicProperty("this", {value:d, configurable:!0}), ia.obj = f, ia.link = f, ia.name = "this", ia) : null; + return (h = b(d, e, !1)) ? (ka.obj = d, ka.link = h.link, ka.name = h.name, ka) : "this" === e ? (f.asDefinePublicProperty("this", {value:d, configurable:!0}), ka.obj = f, ka.link = f, ka.name = "this", ka) : null; } - function Q(a, e) { + function S(a, e) { if (G(e)) { - return J(a, e, !0); + return L(a, e, !0); } - var c = a.scopeContainer, d = a.context, f = d.currentTarget || d.defaultTarget, g = a.scope; + var c = a.scopeContainer, d = a.context, f = d.currentTarget || d.defaultTarget, h = a.scope; if (d.currentTarget) { - return ia.obj = f, ia.link = f, ia.name = e, ia; + return ka.obj = f, ka.link = f, ka.name = e, ka; } - if (d = b(g, e, !1)) { - return ia.obj = g, ia.link = d.link, ia.name = d.name, ia; + if (d = b(h, e, !1)) { + return ka.obj = h, ka.link = d.link, ka.name = d.name, ka; } for (;c.next;c = c.next) { if (d = b(c.scope, e, !1)) { - return ia.obj = c.scope, ia.link = d.link, ia.name = d.name, ia; + return ka.obj = c.scope, ka.link = d.link, ka.name = d.name, ka; } } - ia.obj = f; - ia.link = f; - ia.name = e; - return ia; + ka.obj = f; + ka.link = f; + ka.name = e; + return ka; } - function S(a, b) { + function U(a, b) { var e = a.global, c = b[0]; b[1] ? e.gotoAndPlay(c + 1) : e.gotoAndStop(c + 1); } - function K(a, b) { + function N(a, b) { a.global.getURL(b[0], b[1]); } - function P(a) { + function R(a) { a.global.nextFrame(); } - function R(a) { + function T(a) { a.global.prevFrame(); } - function W(a) { + function X(a) { a.global.play(); } - function ba(a) { + function da(a) { a.global.stop(); } - function w(a) { + function x(a) { a.global.toggleHighQuality(); } - function X(a) { + function Y(a) { a.global.stopAllSounds(); } - function U(a, b) { - return!a.global.ifFrameLoaded(b[0]); + function V(a, b) { + return !a.global.ifFrameLoaded(b[0]); } - function $(a, b) { + function ba(a, b) { H(a, b[0]); } - function Y(a, b) { + function Z(a, b) { var e = a.global, c = b[0]; b[1] ? e.gotoAndPlay(c) : e.gotoAndStop(c); } - function L(a, b) { + function O(a, b) { var e = a.registers, c = a.constantPool, d = a.stack; b.forEach(function(a) { a instanceof k.ParsedPushConstantAction ? d.push(c[a.constantIndex]) : a instanceof k.ParsedPushRegisterAction ? (a = a.registerNumber, 0 > a || a >= e.length ? d.push(void 0) : d.push(e[a])) : d.push(a); }); } - function Z(a) { + function aa(a) { a.stack.pop(); } - function ca(a) { + function ea(a) { a = a.stack; var b = c(a.pop()), e = c(a.pop()); a.push(b + e); } - function ga(a) { + function ia(a) { a = a.stack; var b = c(a.pop()), e = c(a.pop()); a.push(e - b); } - function ha(a) { + function ja(a) { a = a.stack; var b = c(a.pop()), e = c(a.pop()); a.push(b * e); } - function ea(a) { + function ga(a) { var b = a.stack; a = a.isSwfVersion5; var e = c(b.pop()), e = c(b.pop()) / e; b.push(a ? e : isFinite(e) ? e : "#ERROR#"); } - function aa(a) { + function ca(a) { var b = a.stack; a = a.isSwfVersion5; var e = c(b.pop()), d = c(b.pop()), e = e == d; b.push(a ? e : e ? 1 : 0); } - function da(a) { + function fa(a) { var b = a.stack; a = a.isSwfVersion5; var e = c(b.pop()), e = c(b.pop()) < e; b.push(a ? e : e ? 1 : 0); } - function O(a) { + function Q(a) { var b = a.stack; a = a.isSwfVersion5; var e = l(b.pop()), c = l(b.pop()), e = e && c; b.push(a ? e : e ? 1 : 0); } - function ka(a) { + function ma(a) { var b = a.stack; a = a.isSwfVersion5; var e = l(b.pop()), c = l(b.pop()), e = e || c; b.push(a ? e : e ? 1 : 0); } - function V(a) { + function W(a) { var b = a.stack; a = a.isSwfVersion5; var e = !l(b.pop()); b.push(a ? e : e ? 1 : 0); } - function ja(a) { + function la(a) { var b = a.stack; a = a.isSwfVersion5; var e = q(b.pop()), c = q(b.pop()), e = e == c; b.push(a ? e : e ? 1 : 0); } - function la(a) { + function na(a) { var b = a.stack; a = a.global; var e = q(b.pop()); b.push(a.length_(e)); } - function ma(a) { + function oa(a) { var b = a.stack; a = a.global; var e = q(b.pop()); b.push(a.length_(e)); } - function ra(a) { + function ta(a) { a = a.stack; var b = q(a.pop()), e = q(a.pop()); a.push(e + b); } - function na(a) { + function pa(a) { var b = a.stack; a = a.global; var e = b.pop(), c = b.pop(), d = q(b.pop()); b.push(a.substring(d, c, e)); } - function Ca(a) { + function Ea(a) { var b = a.stack; a = a.global; var e = b.pop(), c = b.pop(), d = q(b.pop()); b.push(a.mbsubstring(d, c, e)); } - function sa(a) { + function ua(a) { var b = a.stack; a = a.isSwfVersion5; var e = q(b.pop()), e = q(b.pop()) < e; b.push(a ? e : e ? 1 : 0); } - function wa(a) { + function ya(a) { var b = a.stack; b.push(a.global.int(b.pop())); } - function ta(a) { + function va(a) { var b = a.stack; a = a.global; var e = b.pop(); b.push(a.ord(e)); } - function fa(a) { + function ha(a) { var b = a.stack; a = a.global; var e = b.pop(); b.push(a.mbord(e)); } - function Da(a) { + function Fa(a) { var b = a.stack; a = a.global; var e = +b.pop(); b.push(a.chr(e)); } - function Ea(a) { + function Ga(a) { var b = a.stack; a = a.global; var e = +b.pop(); b.push(a.mbchr(e)); } - function Ha(a, b) { + function Ja(a, b) { } - function Ba(a, b) { - return!!a.stack.pop(); + function Da(a, b) { + return !!a.stack.pop(); } - function xa(a) { + function za(a) { var b = a.global; a = a.stack.pop(); b.call(a); } - function pa(a) { + function ra(a) { var b = a.stack, e = "" + b.pop(), c = b.length; b.push(void 0); - a = E(a, e); + a = F(a, e); b[c] = a ? a.link.asGetPublicProperty(a.name) : void 0; } - function ya(a) { + function Aa(a) { var b = a.stack, e = b.pop(), b = "" + b.pop(); - if (a = Q(a, b)) { - a.link.asSetPublicProperty(a.name, e), n(a.name); + if (a = S(a, b)) { + a.link.asSetPublicProperty(a.name, e), p(a.name); } } - function Ja(a, b) { - var e = a.global, c = a.stack, d = b[0], f = c.pop(), c = c.pop(), g; - d & 1 ? g = "GET" : d & 2 && (g = "POST"); - var h = d & 64; - d & 128 ? e.loadVariables(c, f, g) : h ? e.loadMovie(c, f, g) : e.getURL(c, f, g); + function La(a, b) { + var e = a.global, c = a.stack, d = b[0], f = c.pop(), c = c.pop(), h; + d & 1 ? h = "GET" : d & 2 && (h = "POST"); + var g = d & 64; + d & 128 ? e.loadVariables(c, f, h) : g ? e.loadMovie(c, f, h) : e.getURL(c, f, h); } - function Ka(a, b) { + function Ma(a, b) { var e = a.global, c = b[0], d = [a.stack.pop()]; c & 2 && d.push(b[1]); (c & 1 ? e.gotoAndPlay : e.gotoAndStop).apply(e, d); } - function La(a) { + function Na(a) { var b = a.stack.pop(); H(a, b); } - function Ma(a) { + function Oa(a) { var b = a.global; a = a.stack; var e = a.pop(), c = a.pop(), d = a.length; a.push(void 0); a[d] = b.getAVM1Property(c, e); } - function Na(a) { + function Pa(a) { var b = a.global, e = a.stack; a = e.pop(); var c = e.pop(), e = e.pop(); b.setAVM1Property(e, c, a); } - function Oa(a) { + function Qa(a) { var b = a.global, e = a.stack; a = e.pop(); var c = e.pop(), e = e.pop(); b.duplicateMovieClip(e, c, a); } - function Pa(a) { + function Ra(a) { var b = a.global; a = a.stack.pop(); b.removeMovieClip(a); } - function Qa(a) { + function Sa(a) { var b = a.global, e = a.stack; a = e.pop(); var c = e.pop(), e = e.pop() ? {y2:e.pop(), x2:e.pop(), y1:e.pop(), x1:e.pop()} : null; @@ -46962,84 +46965,84 @@ __extends = this.__extends || function(d, k) { e && (a = a.concat(e.x1, e.y1, e.x2, e.y2)); b.startDrag.apply(b, a); } - function Ra(a) { + function Ta(a) { a.global.stopDrag(); } - function Sa(a, b) { + function Ua(a, b) { var e = a.global, c = a.stack.pop(); - return!e.ifFrameLoaded(c); + return !e.ifFrameLoaded(c); } - function Xa(a) { + function Za(a) { var b = a.global; a = a.stack.pop(); b.trace(void 0 === a ? "undefined" : q(a)); } - function Ya(a) { + function $a(a) { a.stack.push(a.global.getTimer()); } - function Za(a) { + function ab(a) { var b = a.stack; b.push(a.global.random(b.pop())); } - function $a(b) { - var e = b.stack, c = e.pop(), d = B(e), f = e.length; + function bb(b) { + var e = b.stack, c = e.pop(), d = K(e), f = e.length; e.push(void 0); - var g = (b = E(b, c)) ? b.link.asGetPublicProperty(b.name) : void 0; - g instanceof Function ? e[f] = g.apply(b.obj || null, d) : a("AVM1 warning: function '" + c + (g ? "' is not callable" : "' is undefined")); + var h = (b = F(b, c)) ? b.link.asGetPublicProperty(b.name) : void 0; + h instanceof Function ? e[f] = h.apply(b.obj || null, d) : a("AVM1 warning: function '" + c + (h ? "' is not callable" : "' is undefined")); } - function ab(b) { - var c = b.stack, f = c.pop(), g = c.pop(), h = B(c), k, l = c.length; + function cb(b) { + var c = b.stack, f = c.pop(), h = c.pop(), g = K(c), k, l = c.length; c.push(void 0); - if (d.isNullOrUndefined(g)) { + if (d.isNullOrUndefined(h)) { a("AVM1 warning: method '" + f + "' can't be called on undefined object"); } else { b = b.context.frame; - var r, n; + var p, m; if (d.isNullOrUndefined(f) || "" === f) { - if (g instanceof va) { - var m = g.callFrame, p = M(m, "__constructor__"); - p && (r = p.target, n = p.obj, k = m.currentThis); + if (h instanceof xa) { + var t = h.callFrame, n = M(t, "__constructor__"); + n && (p = n.target, m = n.obj, k = t.currentThis); } else { - k = n = g; + k = m = h; } - Ia(n) ? (b.setCallee(k, r, n, h), c[l] = n.apply(k, h), b.resetCallee()) : a("AVM1 warning: obj '" + g + (g ? "' is not callable" : "' is undefined")); + Ka(m) ? (b.setCallee(k, p, m, g), c[l] = m.apply(k, g), b.resetCallee()) : a("AVM1 warning: obj '" + h + (h ? "' is not callable" : "' is undefined")); } else { - if (g instanceof va) { - if (m = g.callFrame, p = M(m, f)) { - r = p.target, n = p.obj, k = m.currentThis; + if (h instanceof xa) { + if (t = h.callFrame, n = M(t, f)) { + p = n.target, m = n.obj, k = t.currentThis; } } else { - n = e(g, f), k = g; + m = e(h, f), k = h; } - Ia(n) ? (b.setCallee(k, r, n, h), c[l] = n.apply(k, h), b.resetCallee()) : a("AVM1 warning: method '" + f + "' on object", g, d.isNullOrUndefined(n) ? "is undefined" : "is not callable"); + Ka(m) ? (b.setCallee(k, p, m, g), c[l] = m.apply(k, g), b.resetCallee()) : a("AVM1 warning: method '" + f + "' on object", h, d.isNullOrUndefined(m) ? "is undefined" : "is not callable"); } } } - function bb(a, b) { + function db(a, b) { a.constantPool = b[0]; } - function cb(a, b) { - var e = a.stack, c = a.scope, d = b[1], f = y(a, b[0], d, b[2], 4, null, 0); + function eb(a, b) { + var e = a.stack, c = a.scope, d = b[1], f = z(a, b[0], d, b[2], 4, null, 0); d ? c.asSetPublicProperty(d, f) : e.push(f); } - function db(a) { + function fb(a) { var b = a.stack; a = a.scope; var e = b.pop(), b = b.pop(); a.asSetPublicProperty(b, e); } - function eb(a) { + function gb(a) { var b = a.scope; a = a.stack.pop(); b.asSetPublicProperty(a, void 0); } - function fb(a) { + function hb(a) { a = a.stack; var b = a.pop(), e = a.pop(); a.push(e.asDeleteProperty(void 0, b, 0)); - n(b); + p(b); } - function gb(a) { + function ib(a) { var e = a.stack, c = e.pop(); a: { for (a = a.scopeContainer;a;a = a.next) { @@ -47053,29 +47056,29 @@ __extends = this.__extends || function(d, k) { a = !1; } e.push(a); - n(c); + p(c); } - function hb(a) { + function jb(a) { var b = a.stack, e = b.pop(); b.push(null); - a = (a = E(a, e)) ? a.link.asGetPublicProperty(a.name) : void 0; + a = (a = F(a, e)) ? a.link.asGetPublicProperty(a.name) : void 0; d.isNullOrUndefined(a) || D(a, function(a) { b.push(a); }); } - function ib(a) { + function kb(a) { a = a.stack; var b = a.pop(), e = a.pop(); a.push(b == e); } - function jb(b) { + function lb(b) { b = b.stack; var c = b.pop(), f = b.pop(); b.push(void 0); if (d.isNullOrUndefined(f)) { a("AVM1 warning: cannot get member '" + c + "' on undefined object"); } else { - if (f instanceof va) { + if (f instanceof xa) { if (c = M(f.callFrame, c)) { b[b.length - 1] = c.obj; } @@ -47084,149 +47087,149 @@ __extends = this.__extends || function(d, k) { } } } - function kb(a) { + function mb(a) { a = a.stack; - var b = B(a); + var b = K(a); a.push(b); } - function lb(a) { + function nb(a) { a = a.stack; - var b = +a.pop(), b = C(b, a.length >> 1), e = {}; - I(e, null, Va); + var b = +a.pop(), b = y(b, a.length >> 1), e = {}; + I(e, null, Xa); for (var c = 0;c < b;c++) { var d = a.pop(), f = a.pop(); e.asSetPublicProperty(f, d); } a.push(e); } - function mb(e) { + function ob(e) { e = e.stack; - var c = e.pop(), f = e.pop(), g = B(e), h = e.length; + var c = e.pop(), f = e.pop(), h = K(e), g = e.length; e.push(void 0); if (d.isNullOrUndefined(f)) { a("AVM1 warning: method '" + c + "' can't be constructed on undefined object"); } else { var k; d.isNullOrUndefined(c) || "" === c ? k = f : (k = b(f, c, !1), k = f.asGetPublicProperty(k ? k.name : null)); - g = z(k, g); - void 0 === g && a("AVM1 warning: method '" + c + "' on object", f, "is not constructible"); - e[h] = g; + h = B(k, h); + void 0 === h && a("AVM1 warning: method '" + c + "' on object", f, "is not constructible"); + e[g] = h; } } - function nb(b) { - var e = b.stack, c = e.pop(), d = B(e), f = e.length; + function pb(b) { + var e = b.stack, c = e.pop(), d = K(e), f = e.length; e.push(void 0); - b = (b = E(b, c)) ? b.link.asGetPublicProperty(b.name) : void 0; - var g = N(b, d); - void 0 === g && (g = z(b, d), void 0 === g && a("AVM1 warning: object '" + c + (b ? "' is not constructible" : "' is undefined"))); - e[f] = g; + b = (b = F(b, c)) ? b.link.asGetPublicProperty(b.name) : void 0; + var h = P(b, d); + void 0 === h && (h = B(b, d), void 0 === h && a("AVM1 warning: object '" + c + (b ? "' is not constructible" : "' is undefined"))); + e[f] = h; } - function ob(b) { + function qb(b) { var e = b.stack; b = e.pop(); var c = e.pop(), e = e.pop(); - d.isNullOrUndefined(e) ? a("AVM1 warning: cannot set member '" + c + "' on undefined object") : e instanceof va ? a("AVM1 warning: cannot set member '" + c + "' on super") : r(e, c, b); - } - function pb(a) { - a = a.stack; - var b = a.pop(); - a.push("movieclip" === p(b) ? b._target : void 0); - } - function qb(a, b) { - var e = b[0], c = a.stack.pop(), d = a.constantPool, f = a.registers, c = a.scopeContainer.create(Object(c)); - ua(e, c, d, f); + d.isNullOrUndefined(e) ? a("AVM1 warning: cannot set member '" + c + "' on undefined object") : e instanceof xa ? a("AVM1 warning: cannot set member '" + c + "' on super") : t(e, c, b); } function rb(a) { a = a.stack; - a.push(c(a.pop())); + var b = a.pop(); + a.push("movieclip" === n(b) ? b._target : void 0); } - function sb(a) { - a = a.stack; - a.push(q(a.pop())); + function sb(a, b) { + var e = b[0], c = a.stack.pop(), d = a.constantPool, f = a.registers, c = a.scopeContainer.create(Object(c)); + wa(e, c, d, f); } function tb(a) { a = a.stack; - var b = a.pop(); - a.push(p(b)); + a.push(c(a.pop())); } function ub(a) { + a = a.stack; + a.push(q(a.pop())); + } + function vb(a) { + a = a.stack; + var b = a.pop(); + a.push(n(b)); + } + function wb(a) { a = a.stack; var b = u(a.pop()), e = u(a.pop()); "string" === typeof b || "string" === typeof e ? a.push(q(e) + q(b)) : a.push(c(e) + c(b)); } - function vb(a) { + function xb(a) { a = a.stack; var b = a.pop(), e = a.pop(); - a.push(s(e, b)); + a.push(r(e, b)); } - function wb(a) { + function yb(a) { a = a.stack; var b = c(a.pop()), e = c(a.pop()); a.push(e % b); } - function xb(a) { - a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e & b); - } - function yb(a) { - a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e << b); - } function zb(a) { a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e | b); + var b = g(a.pop()), e = g(a.pop()); + a.push(e & b); } function Ab(a) { a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e >> b); + var b = g(a.pop()), e = g(a.pop()); + a.push(e << b); } function Bb(a) { a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e >>> b); + var b = g(a.pop()), e = g(a.pop()); + a.push(e | b); } function Cb(a) { a = a.stack; - var b = h(a.pop()), e = h(a.pop()); - a.push(e ^ b); + var b = g(a.pop()), e = g(a.pop()); + a.push(e >> b); } function Db(a) { + a = a.stack; + var b = g(a.pop()), e = g(a.pop()); + a.push(e >>> b); + } + function Eb(a) { + a = a.stack; + var b = g(a.pop()), e = g(a.pop()); + a.push(e ^ b); + } + function Fb(a) { a = a.stack; var b = c(a.pop()); b--; a.push(b); } - function Eb(a) { + function Gb(a) { a = a.stack; var b = c(a.pop()); b++; a.push(b); } - function Fb(a) { + function Hb(a) { a = a.stack; a.push(a[a.length - 1]); } - function Gb(a) { + function Ib(a) { a.isEndOfActions = !0; } - function Hb(a) { + function Jb(a) { a = a.stack; a.push(a.pop(), a.pop()); } - function Ib(a, b) { + function Kb(a, b) { var e = a.stack, c = a.registers, d = b[0]; 0 > d || d >= c.length || (c[d] = e[e.length - 1]); } - function Jb(a) { + function Lb(a) { a = a.stack; var b = a.pop(), e = a.pop(); a.push(m(e, b)); } - function Kb(b) { + function Mb(b) { var e = b.stack; b = e.pop(); e.push(null); @@ -47234,90 +47237,90 @@ __extends = this.__extends || function(d, k) { e.push(a); }); } - function Lb(a) { + function Nb(a) { a = a.stack; var b = a.pop(), e = a.pop(); a.push(e === b); } - function Mb(a) { + function Ob(a) { a = a.stack; var b = a.pop(), e = a.pop(); - a.push(s(b, e)); + a.push(r(b, e)); } - function Nb(a) { + function Pb(a) { var b = a.stack; a = a.isSwfVersion5; var e = q(b.pop()), e = q(b.pop()) > e; b.push(a ? e : e ? 1 : 0); } - function Ob(a, b) { - var e = a.stack, c = a.scope, d = b[1], f = y(a, b[0], d, b[2], b[3], b[4], b[5]); + function Qb(a, b) { + var e = a.stack, c = a.scope, d = b[1], f = z(a, b[0], d, b[2], b[3], b[4], b[5]); d ? c.asSetPublicProperty(d, f) : e.push(f); } - function Pb(a) { + function Rb(a) { var b = a.stack; a = b.pop(); var b = b.pop().asGetPublicProperty("prototype"), e = a.asGetPublicProperty("prototype"); b.asSetPublicProperty("__proto__", e); b.asSetPublicProperty("__constructor__", a); } - function Qb(a) { + function Sb(a) { a = a.stack; var b = a.pop(), e = a.pop(); a.push(m(b, e) ? b : null); } - function Rb(a) { + function Tb(a) { a = a.stack; var b = a.pop(), e = +a.pop(); - C(e, a.length); + y(e, a.length); for (var c = [], d = 0;d < e;d++) { c.push(a.pop()); } b._as2Interfaces = c; } - function Sb(a, b) { - var e = b[5], c = b[3], d = b[1], f = b[2], g = b[4], h = b[6], k = a.context, l = a.scopeContainer, r = a.scope, n = a.constantPool, m = a.registers, p = k.isTryCatchListening, q; + function Ub(a, b) { + var e = b[5], c = b[3], d = b[1], f = b[2], h = b[4], g = b[6], k = a.context, l = a.scopeContainer, p = a.scope, m = a.constantPool, t = a.registers, n = k.isTryCatchListening, q; try { - k.isTryCatchListening = !0, ua(f, l, n, m); - } catch (s) { - k.isTryCatchListening = p, c && s instanceof Ga ? ("string" === typeof d ? r.asSetPublicProperty(d, s.error) : m[d] = s.error, ua(g, l, n, m)) : q = s; + k.isTryCatchListening = !0, wa(f, l, m, t); + } catch (u) { + k.isTryCatchListening = n, c && u instanceof Ia ? ("string" === typeof d ? p.asSetPublicProperty(d, u.error) : t[d] = u.error, wa(h, l, m, t)) : q = u; } - k.isTryCatchListening = p; - e && ua(h, l, n, m); + k.isTryCatchListening = n; + e && wa(g, l, m, t); if (q) { throw q; } } - function Tb(a) { + function Vb(a) { a = a.stack.pop(); - throw new Ga(a); + throw new Ia(a); } - function Ub(a) { - var b = a.stack, e = a.global, c = B(b); + function Wb(a) { + var b = a.stack, e = a.global, c = K(b); a = b.length; b.push(void 0); e = e.fscommand.apply(null, c); b[a] = e; } - function ac(a, b) { + function cc(a, b) { } - function bc(a) { + function dc(a) { return function(b, e) { var c; try { a(b, e), b.recoveringFromError = !1; } catch (f) { c = b.context; - f = x(f); - if (f instanceof qa) { + f = C(f); + if (f instanceof sa) { throw f; } - if (f instanceof Ga) { + if (f instanceof Ia) { throw f; } if (!b.recoveringFromError) { if (1E3 <= c.errorsIgnored++) { - throw new qa("long running script -- AVM1 errors limit is reached"); + throw new sa("long running script -- AVM1 errors limit is reached"); } console.log(typeof f); console.log(Object.getPrototypeOf(f)); @@ -47329,39 +47332,39 @@ __extends = this.__extends || function(d, k) { } }; } - function cc() { + function ec() { var a; a = k.avm1ErrorsEnabled.value ? function(a) { return a; - } : bc; - return{ActionGotoFrame:a(S), ActionGetURL:a(K), ActionNextFrame:a(P), ActionPreviousFrame:a(R), ActionPlay:a(W), ActionStop:a(ba), ActionToggleQuality:a(w), ActionStopSounds:a(X), ActionWaitForFrame:a(U), ActionSetTarget:a($), ActionGoToLabel:a(Y), ActionPush:a(L), ActionPop:a(Z), ActionAdd:a(ca), ActionSubtract:a(ga), ActionMultiply:a(ha), ActionDivide:a(ea), ActionEquals:a(aa), ActionLess:a(da), ActionAnd:a(O), ActionOr:a(ka), ActionNot:a(V), ActionStringEquals:a(ja), ActionStringLength:a(la), - ActionMBStringLength:a(ma), ActionStringAdd:a(ra), ActionStringExtract:a(na), ActionMBStringExtract:a(Ca), ActionStringLess:a(sa), ActionToInteger:a(wa), ActionCharToAscii:a(ta), ActionMBCharToAscii:a(fa), ActionAsciiToChar:a(Da), ActionMBAsciiToChar:a(Ea), ActionJump:a(Ha), ActionIf:a(Ba), ActionCall:a(xa), ActionGetVariable:a(pa), ActionSetVariable:a(ya), ActionGetURL2:a(Ja), ActionGotoFrame2:a(Ka), ActionSetTarget2:a(La), ActionGetProperty:a(Ma), ActionSetProperty:a(Na), ActionCloneSprite:a(Oa), - ActionRemoveSprite:a(Pa), ActionStartDrag:a(Qa), ActionEndDrag:a(Ra), ActionWaitForFrame2:a(Sa), ActionTrace:a(Xa), ActionGetTime:a(Ya), ActionRandomNumber:a(Za), ActionCallFunction:a($a), ActionCallMethod:a(ab), ActionConstantPool:a(bb), ActionDefineFunction:a(cb), ActionDefineLocal:a(db), ActionDefineLocal2:a(eb), ActionDelete:a(fb), ActionDelete2:a(gb), ActionEnumerate:a(hb), ActionEquals2:a(ib), ActionGetMember:a(jb), ActionInitArray:a(kb), ActionInitObject:a(lb), ActionNewMethod:a(mb), - ActionNewObject:a(nb), ActionSetMember:a(ob), ActionTargetPath:a(pb), ActionWith:a(qb), ActionToNumber:a(rb), ActionToString:a(sb), ActionTypeOf:a(tb), ActionAdd2:a(ub), ActionLess2:a(vb), ActionModulo:a(wb), ActionBitAnd:a(xb), ActionBitLShift:a(yb), ActionBitOr:a(zb), ActionBitRShift:a(Ab), ActionBitURShift:a(Bb), ActionBitXor:a(Cb), ActionDecrement:a(Db), ActionIncrement:a(Eb), ActionPushDuplicate:a(Fb), ActionReturn:a(Gb), ActionStackSwap:a(Hb), ActionStoreRegister:a(Ib), ActionInstanceOf:a(Jb), - ActionEnumerate2:a(Kb), ActionStrictEquals:a(Lb), ActionGreater:a(Mb), ActionStringGreater:a(Nb), ActionDefineFunction2:a(Ob), ActionExtends:a(Pb), ActionCastOp:a(Qb), ActionImplementsOp:a(Rb), ActionTry:a(Sb), ActionThrow:a(Tb), ActionFSCommand2:a(Ub), ActionStrictMode:a(ac)}; + } : dc; + return {ActionGotoFrame:a(U), ActionGetURL:a(N), ActionNextFrame:a(R), ActionPreviousFrame:a(T), ActionPlay:a(X), ActionStop:a(da), ActionToggleQuality:a(x), ActionStopSounds:a(Y), ActionWaitForFrame:a(V), ActionSetTarget:a(ba), ActionGoToLabel:a(Z), ActionPush:a(O), ActionPop:a(aa), ActionAdd:a(ea), ActionSubtract:a(ia), ActionMultiply:a(ja), ActionDivide:a(ga), ActionEquals:a(ca), ActionLess:a(fa), ActionAnd:a(Q), ActionOr:a(ma), ActionNot:a(W), ActionStringEquals:a(la), ActionStringLength:a(na), + ActionMBStringLength:a(oa), ActionStringAdd:a(ta), ActionStringExtract:a(pa), ActionMBStringExtract:a(Ea), ActionStringLess:a(ua), ActionToInteger:a(ya), ActionCharToAscii:a(va), ActionMBCharToAscii:a(ha), ActionAsciiToChar:a(Fa), ActionMBAsciiToChar:a(Ga), ActionJump:a(Ja), ActionIf:a(Da), ActionCall:a(za), ActionGetVariable:a(ra), ActionSetVariable:a(Aa), ActionGetURL2:a(La), ActionGotoFrame2:a(Ma), ActionSetTarget2:a(Na), ActionGetProperty:a(Oa), ActionSetProperty:a(Pa), ActionCloneSprite:a(Qa), + ActionRemoveSprite:a(Ra), ActionStartDrag:a(Sa), ActionEndDrag:a(Ta), ActionWaitForFrame2:a(Ua), ActionTrace:a(Za), ActionGetTime:a($a), ActionRandomNumber:a(ab), ActionCallFunction:a(bb), ActionCallMethod:a(cb), ActionConstantPool:a(db), ActionDefineFunction:a(eb), ActionDefineLocal:a(fb), ActionDefineLocal2:a(gb), ActionDelete:a(hb), ActionDelete2:a(ib), ActionEnumerate:a(jb), ActionEquals2:a(kb), ActionGetMember:a(lb), ActionInitArray:a(mb), ActionInitObject:a(nb), ActionNewMethod:a(ob), + ActionNewObject:a(pb), ActionSetMember:a(qb), ActionTargetPath:a(rb), ActionWith:a(sb), ActionToNumber:a(tb), ActionToString:a(ub), ActionTypeOf:a(vb), ActionAdd2:a(wb), ActionLess2:a(xb), ActionModulo:a(yb), ActionBitAnd:a(zb), ActionBitLShift:a(Ab), ActionBitOr:a(Bb), ActionBitRShift:a(Cb), ActionBitURShift:a(Db), ActionBitXor:a(Eb), ActionDecrement:a(Fb), ActionIncrement:a(Gb), ActionPushDuplicate:a(Hb), ActionReturn:a(Ib), ActionStackSwap:a(Jb), ActionStoreRegister:a(Kb), ActionInstanceOf:a(Lb), + ActionEnumerate2:a(Mb), ActionStrictEquals:a(Nb), ActionGreater:a(Ob), ActionStringGreater:a(Pb), ActionDefineFunction2:a(Qb), ActionExtends:a(Rb), ActionCastOp:a(Sb), ActionImplementsOp:a(Tb), ActionTry:a(Ub), ActionThrow:a(Vb), ActionFSCommand2:a(Wb), ActionStrictMode:a(cc)}; } - function ua(a, b, e, c) { + function wa(a, b, e, c) { var f = k.AVM1Context.instance; if (!a.ir) { - var g = new k.ActionsDataParser(a, f.loaderInfo.swfVersion), h = new k.ActionsDataAnalyzer; - h.registersLimit = c.length; - h.parentResults = a.parent && a.parent.ir; - a.ir = h.analyze(g); + var h = new k.ActionsDataParser(a, f.loaderInfo.swfVersion), g = new k.ActionsDataAnalyzer; + g.registersLimit = c.length; + g.parentResults = a.parent && a.parent.ir; + a.ir = g.analyze(h); if (k.avm1CompilerEnabled.value) { try { - var l = new dc; + var l = new fc; a.ir.compiled = l.generate(a.ir); - } catch (r) { - console.error("Unable to compile AVM1 function: " + r); + } catch (p) { + console.error("Unable to compile AVM1 function: " + p); } } } a = a.ir; - var h = a.compiled, g = [], n = 5 <= f.loaderInfo.swfVersion, m = Ua.get(), l = b.scope; - b = {context:f, global:f.globals, scopeContainer:b, scope:l, actionTracer:m, constantPool:e, registers:c, stack:g, frame:null, isSwfVersion5:n, recoveringFromError:!1, isEndOfActions:!1}; + var g = a.compiled, h = [], m = 5 <= f.loaderInfo.swfVersion, t = Wa.get(), l = b.scope; + b = {context:f, global:f.globals, scopeContainer:b, scope:l, actionTracer:t, constantPool:e, registers:c, stack:h, frame:null, isSwfVersion5:m, recoveringFromError:!1, isEndOfActions:!1}; l._as3Object && l._as3Object._deferScriptExecution && (f.deferScriptExecution = !0); - if (h) { - return h(b); + if (g) { + return g(b); } e = 0; f = f.abortExecutionAt; @@ -47370,356 +47373,356 @@ __extends = this.__extends || function(d, k) { } for (c = a.actions[0];c && !b.isEndOfActions;) { if (0 === e++ % 1E3 && Date.now() >= f) { - throw new qa("long running script -- AVM1 instruction hang timeout"); + throw new sa("long running script -- AVM1 instruction hang timeout"); } - h = b; - l = n = void 0; + g = b; + l = m = void 0; try { - var n = h, p = c.action, q = p.actionCode, s = p.args; - n.actionTracer.print(p, n.stack); - m = !1; + var m = g, n = c.action, q = n.actionCode, u = n.args; + m.actionTracer.print(n, m.stack); + t = !1; switch(q | 0) { case 129: - S(n, s); + U(m, u); break; case 131: - K(n, s); + N(m, u); break; case 4: - P(n); + R(m); break; case 5: - R(n); + T(m); break; case 6: - W(n); + X(m); break; case 7: - ba(n); + da(m); break; case 8: - w(n); + x(m); break; case 9: - X(n); + Y(m); break; case 138: - m = U(n, s); + t = V(m, u); break; case 139: - $(n, s); + ba(m, u); break; case 140: - Y(n, s); + Z(m, u); break; case 150: - L(n, s); + O(m, u); break; case 23: - Z(n); + aa(m); break; case 10: - ca(n); + ea(m); break; case 11: - ga(n); + ia(m); break; case 12: - ha(n); + ja(m); break; case 13: - ea(n); + ga(m); break; case 14: - aa(n); + ca(m); break; case 15: - da(n); + fa(m); break; case 16: - O(n); + Q(m); break; case 17: - ka(n); + ma(m); break; case 18: - V(n); + W(m); break; case 19: - ja(n); + la(m); break; case 20: - la(n); + na(m); break; case 49: - ma(n); + oa(m); break; case 33: - ra(n); + ta(m); break; case 21: - na(n); + pa(m); break; case 53: - Ca(n); + Ea(m); break; case 41: - sa(n); + ua(m); break; case 24: - wa(n); + ya(m); break; case 50: - ta(n); + va(m); break; case 54: - fa(n); + ha(m); break; case 51: - Da(n); + Fa(m); break; case 55: - Ea(n); + Ga(m); break; case 153: break; case 157: - m = Ba(n, s); + t = Da(m, u); break; case 158: - xa(n); + za(m); break; case 28: - pa(n); + ra(m); break; case 29: - ya(n); + Aa(m); break; case 154: - Ja(n, s); + La(m, u); break; case 159: - Ka(n, s); + Ma(m, u); break; case 32: - La(n); + Na(m); break; case 34: - Ma(n); + Oa(m); break; case 35: - Na(n); + Pa(m); break; case 36: - Oa(n); + Qa(m); break; case 37: - Pa(n); + Ra(m); break; case 39: - Qa(n); + Sa(m); break; case 40: - Ra(n); + Ta(m); break; case 141: - m = Sa(n, s); + t = Ua(m, u); break; case 38: - Xa(n); + Za(m); break; case 52: - Ya(n); + $a(m); break; case 48: - Za(n); + ab(m); break; case 61: - $a(n); + bb(m); break; case 82: - ab(n); + cb(m); break; case 136: - bb(n, s); + db(m, u); break; case 155: - cb(n, s); + eb(m, u); break; case 60: - db(n); + fb(m); break; case 65: - eb(n); + gb(m); break; case 58: - fb(n); + hb(m); break; case 59: - gb(n); + ib(m); break; case 70: - hb(n); + jb(m); break; case 73: - ib(n); + kb(m); break; case 78: - jb(n); + lb(m); break; case 66: - kb(n); + mb(m); break; case 67: - lb(n); + nb(m); break; case 83: - mb(n); + ob(m); break; case 64: - nb(n); + pb(m); break; case 79: - ob(n); + qb(m); break; case 69: - pb(n); + rb(m); break; case 148: - qb(n, s); + sb(m, u); break; case 74: - rb(n); + tb(m); break; case 75: - sb(n); + ub(m); break; case 68: - tb(n); + vb(m); break; case 71: - ub(n); + wb(m); break; case 72: - vb(n); + xb(m); break; case 63: - wb(n); + yb(m); break; case 96: - xb(n); + zb(m); break; case 99: - yb(n); + Ab(m); break; case 97: - zb(n); + Bb(m); break; case 100: - Ab(n); + Cb(m); break; case 101: - Bb(n); + Db(m); break; case 98: - Cb(n); + Eb(m); break; case 81: - Db(n); + Fb(m); break; case 80: - Eb(n); + Gb(m); break; case 76: - Fb(n); + Hb(m); break; case 62: - Gb(n); + Ib(m); break; case 77: - Hb(n); + Jb(m); break; case 135: - Ib(n, s); + Kb(m, u); break; case 84: - Jb(n); + Lb(m); break; case 85: - Kb(n); + Mb(m); break; case 102: - Lb(n); + Nb(m); break; case 103: - Mb(n); + Ob(m); break; case 104: - Nb(n); + Pb(m); break; case 142: - Ob(n, s); + Qb(m, u); break; case 105: - Pb(n); + Rb(m); break; case 43: - Qb(n); + Sb(m); break; case 44: - Rb(n); + Tb(m); break; case 143: - Sb(n, s); + Ub(m, u); break; case 42: - Tb(n); + Vb(m); break; case 45: - Ub(n); + Wb(m); break; case 137: break; case 0: - n.isEndOfActions = !0; + m.isEndOfActions = !0; break; default: throw Error("Unknown action code: " + q);; } - l = m; - h.recoveringFromError = !1; - } catch (u) { - n = h.context; - u = x(u); - if (k.avm1ErrorsEnabled.value && !n.isTryCatchListening || u instanceof qa) { - throw u; + l = t; + g.recoveringFromError = !1; + } catch (r) { + m = g.context; + r = C(r); + if (k.avm1ErrorsEnabled.value && !m.isTryCatchListening || r instanceof sa) { + throw r; } - if (u instanceof Ga) { - throw u; + if (r instanceof Ia) { + throw r; } - if (!h.recoveringFromError) { - if (1E3 <= n.errorsIgnored++) { - throw new qa("long running script -- AVM1 errors limit is reached"); + if (!g.recoveringFromError) { + if (1E3 <= m.errorsIgnored++) { + throw new sa("long running script -- AVM1 errors limit is reached"); } - console.error("AVM1 error: " + u); - d.AVM2.Runtime.AVM2.instance.exceptions.push({source:"avm1", message:u.message, stack:u.stack}); - h.recoveringFromError = !0; + console.error("AVM1 error: " + r); + d.AVM2.Runtime.AVM2.instance.exceptions.push({source:"avm1", message:r.message, stack:r.stack}); + g.recoveringFromError = !0; } } c = l ? c.conditionalJumpTo : c.next; c = a.actions[c]; } - return g.pop(); + return h.pop(); } - var Wb = d.AVM2.Runtime.forEachPublicProperty, Zb = d.AVM2.Runtime.construct, Xb = d.isNumeric, Ia = d.isFunction, ec = d.Debug.notImplemented, Vb = d.AVM2.Runtime.asCoerceString, Wa = d.AVM2.Runtime.sliceArguments, za = d.Options.Option, Aa = d.Settings.shumwayOptions.register(new d.Options.OptionSet("AVM1")); - k.avm1TraceEnabled = Aa.register(new za("t1", "traceAvm1", "boolean", !1, "trace AVM1 execution")); - k.avm1ErrorsEnabled = Aa.register(new za("e1", "errorsAvm1", "boolean", !1, "fail on AVM1 warnings and errors")); - k.avm1TimeoutDisabled = Aa.register(new za("ha1", "nohangAvm1", "boolean", !1, "disable fail on AVM1 hang")); - k.avm1CompilerEnabled = Aa.register(new za("ca1", "compileAvm1", "boolean", !0, "compiles AVM1 code")); - k.avm1DebuggerEnabled = Aa.register(new za("da1", "debugAvm1", "boolean", !1, "allows AVM1 code debugging")); + var Yb = d.AVM2.Runtime.forEachPublicProperty, ac = d.AVM2.Runtime.construct, Zb = d.isNumeric, Ka = d.isFunction, gc = d.Debug.notImplemented, Xb = d.AVM2.Runtime.asCoerceString, Ya = d.AVM2.Runtime.sliceArguments, Ba = d.Options.Option, Ca = d.Settings.shumwayOptions.register(new d.Options.OptionSet("AVM1")); + k.avm1TraceEnabled = Ca.register(new Ba("t1", "traceAvm1", "boolean", !1, "trace AVM1 execution")); + k.avm1ErrorsEnabled = Ca.register(new Ba("e1", "errorsAvm1", "boolean", !1, "fail on AVM1 warnings and errors")); + k.avm1TimeoutDisabled = Ca.register(new Ba("ha1", "nohangAvm1", "boolean", !1, "disable fail on AVM1 hang")); + k.avm1CompilerEnabled = Ca.register(new Ba("ca1", "compileAvm1", "boolean", !0, "compiles AVM1 code")); + k.avm1DebuggerEnabled = Ca.register(new Ba("da1", "debugAvm1", "boolean", !1, "allows AVM1 code debugging")); k.Debugger = {pause:!1, breakpoints:{}}; - var Yb = "addCallback addListener addProperty addRequestHeader AsBroadcaster attachAudio attachMovie attachSound attachVideo beginFill beginGradientFill blendMode blockIndent broadcastMessage cacheAsBitmap CASEINSENSITIVE charAt charCodeAt checkPolicyFile clearInterval clearRequestHeaders concat createEmptyMovieClip curveTo DESCENDING displayState duplicateMovieClip E endFill exactSettings fromCharCode fullScreenSourceRect getBounds getBytesLoaded getBytesTotal getDate getDay getDepth getDepth getDuration getFullYear getHours getLocal getMilliseconds getMinutes getMonth getNewTextFormat getPan getPosition getRGB getSeconds getSize getTextFormat getTime getTimezoneOffset getTransform getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getUTCYear getVolume getYear globalToLocal gotoAndPlay gotoAndStop hasAccessibility hasAudio hasAudioEncoder hasEmbeddedVideo hasIME hasMP3 hasOwnProperty hasPrinting hasScreenBroadcast hasScreenPlayback hasStreamingAudio hasStreamingVideo hasVideoEncoder hitTest indexOf isActive isDebugger isFinite isNaN isPropertyEnumerable isPrototypeOf lastIndexOf leftMargin letterSpacing lineStyle lineTo LN10 LN10E LN2 LN2E loadSound localFileReadDisable localToGlobal MAX_VALUE MIN_VALUE moveTo NaN NEGATIVE_INFINITY nextFrame NUMERIC onChanged onData onDragOut onDragOver onEnterFrame onFullScreen onKeyDown onKeyUp onKillFocus onLoad onMouseDown onMouseMove onMouseUp onPress onRelease onReleaseOutside onResize onResize onRollOut onRollOver onScroller onSetFocus onStatus onSync onUnload parseFloat parseInt PI pixelAspectRatio playerType POSITIVE_INFINITY prevFrame registerClass removeListener removeMovieClip removeTextField replaceSel RETURNINDEXEDARRAY rightMargin scale9Grid scaleMode screenColor screenDPI screenResolutionX screenResolutionY serverString setClipboard setDate setDuration setFps setFullYear setHours setInterval setMask setMilliseconds setMinutes setMonth setNewTextFormat setPan setPosition setRGB setSeconds setTextFormat setTime setTimeout setTransform setTransform setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setVolume setYear showMenu showRedrawRegions sortOn SQRT1_2 SQRT2 startDrag stopDrag swapDepths tabEnabled tabIndex tabIndex tabStops toLowerCase toString toUpperCase trackAsMenu UNIQUESORT updateAfterEvent updateProperties useCodepage useHandCursor UTC valueOf".split(" "), - Fa = null, fc = function() { + var $b = "addCallback addListener addProperty addRequestHeader AsBroadcaster attachAudio attachMovie attachSound attachVideo beginFill beginGradientFill blendMode blockIndent broadcastMessage cacheAsBitmap CASEINSENSITIVE charAt charCodeAt checkPolicyFile clearInterval clearRequestHeaders concat createEmptyMovieClip curveTo DESCENDING displayState duplicateMovieClip E endFill exactSettings fromCharCode fullScreenSourceRect getBounds getBytesLoaded getBytesTotal getDate getDay getDepth getDepth getDuration getFullYear getHours getLocal getMilliseconds getMinutes getMonth getNewTextFormat getPan getPosition getRGB getSeconds getSize getTextFormat getTime getTimezoneOffset getTransform getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getUTCYear getVolume getYear globalToLocal gotoAndPlay gotoAndStop hasAccessibility hasAudio hasAudioEncoder hasEmbeddedVideo hasIME hasMP3 hasOwnProperty hasPrinting hasScreenBroadcast hasScreenPlayback hasStreamingAudio hasStreamingVideo hasVideoEncoder hitTest indexOf isActive isDebugger isFinite isNaN isPropertyEnumerable isPrototypeOf lastIndexOf leftMargin letterSpacing lineStyle lineTo LN10 LN10E LN2 LN2E loadSound localFileReadDisable localToGlobal MAX_VALUE MIN_VALUE moveTo NaN NEGATIVE_INFINITY nextFrame NUMERIC onChanged onData onDragOut onDragOver onEnterFrame onFullScreen onKeyDown onKeyUp onKillFocus onLoad onMouseDown onMouseMove onMouseUp onPress onRelease onReleaseOutside onResize onResize onRollOut onRollOver onScroller onSetFocus onStatus onSync onUnload parseFloat parseInt PI pixelAspectRatio playerType POSITIVE_INFINITY prevFrame registerClass removeListener removeMovieClip removeTextField replaceSel RETURNINDEXEDARRAY rightMargin scale9Grid scaleMode screenColor screenDPI screenResolutionX screenResolutionY serverString setClipboard setDate setDuration setFps setFullYear setHours setInterval setMask setMilliseconds setMinutes setMonth setNewTextFormat setPan setPosition setRGB setSeconds setTextFormat setTime setTimeout setTransform setTransform setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setVolume setYear showMenu showRedrawRegions sortOn SQRT1_2 SQRT2 startDrag stopDrag swapDepths tabEnabled tabIndex tabIndex tabStops toLowerCase toString toUpperCase trackAsMenu UNIQUESORT updateAfterEvent updateProperties useCodepage useHandCursor UTC valueOf".split(" "), + Ha = null, hc = function() { function a(b, e) { this.scope = b; this.next = e; @@ -47728,7 +47731,7 @@ __extends = this.__extends || function(d, k) { return new a(b, this); }; return a; - }(), $b = function(a) { + }(), bc = function(a) { function b() { a.call(this); this.asSetPublicProperty("toString", this.toString); @@ -47738,7 +47741,7 @@ __extends = this.__extends || function(d, k) { return this; }; return b; - }(d.AVM2.AS.ASObject), gc = function() { + }(d.AVM2.AS.ASObject), ic = function() { function a(b, e, c, d) { this.previousFrame = b; this.currentThis = e; @@ -47757,12 +47760,12 @@ __extends = this.__extends || function(d, k) { this.calleeFn = this.calleeSuper = this.calleeThis = null; }; return a; - }(), hc = function(c) { + }(), jc = function(c) { function d(a) { c.call(this); this.loaderInfo = a; this.globals = new (k.Lib.AVM1Globals.createAVM1Class())(this); - this.initialScope = new fc(this.globals, null); + this.initialScope = new hc(this.globals, null); this.assets = {}; this.assetsSymbols = []; this.assetsClasses = []; @@ -47789,7 +47792,7 @@ __extends = this.__extends || function(d, k) { return c; }, setProperty:function(a, b, e) { f.enterContext(function() { - r(a, b, e); + t(a, b, e); }, a); }}; } @@ -47799,7 +47802,7 @@ __extends = this.__extends || function(d, k) { this.assetsSymbols[b] = e; }; d.prototype.registerClass = function(b, e) { - b = Vb(b); + b = Xb(b); if (null === b) { return a("Cannot register class for symbol: className is missing"), null; } @@ -47807,7 +47810,7 @@ __extends = this.__extends || function(d, k) { void 0 === c ? a("Cannot register " + b + " class for symbol") : this.assetsClasses[c] = e; }; d.prototype.getAsset = function(a) { - a = Vb(a); + a = Xb(a); if (null !== a && (a = this.assets[a.toLowerCase()], void 0 !== a)) { var b = this.assetsSymbols[a]; if (!b) { @@ -47817,12 +47820,12 @@ __extends = this.__extends || function(d, k) { } this.assetsSymbols[a] = b; } - return{symbolId:a, symbolProps:b, theClass:this.assetsClasses[a]}; + return {symbolId:a, symbolProps:b, theClass:this.assetsClasses[a]}; } }; d.prototype.resolveTarget = function(a) { var b = this.currentTarget || this.defaultTarget; - a ? "string" === typeof a && (a = T(a, b, this.resolveLevel(0))) : a = b; + a ? "string" === typeof a && (a = J(a, b, this.resolveLevel(0))) : a = b; if ("object" !== typeof a || null === a || !("_as3Object" in a)) { throw Error("Invalid AVM1 target object: " + Object.prototype.toString.call(a)); } @@ -47843,33 +47846,32 @@ __extends = this.__extends || function(d, k) { this.deferScriptExecution = !1; }; d.prototype.pushCallFrame = function(a, b, e) { - return this.frame = a = new gc(this.frame, a, b, e); + return this.frame = a = new ic(this.frame, a, b, e); }; d.prototype.popCallFrame = function() { - var a = this.frame.previousFrame; - return this.frame = a; + this.frame = this.frame.previousFrame; }; d.prototype.enterContext = function(a, b) { if (this === k.AVM1Context.instance && this.isActive && this.defaultTarget === b && null === this.currentTarget) { a(), this.currentTarget = null; } else { - var e = k.AVM1Context.instance, c = this.isActive, d = this.defaultTarget, f = this.currentTarget, g; + var e = k.AVM1Context.instance, c = this.isActive, d = this.defaultTarget, f = this.currentTarget, h; try { k.AVM1Context.instance = this, c || (this.abortExecutionAt = k.avm1TimeoutDisabled.value ? Number.MAX_VALUE : Date.now() + 1E3, this.errorsIgnored = 0, this.isActive = !0), this.defaultTarget = b, this.currentTarget = null, a(); - } catch (h) { - g = h; + } catch (g) { + h = g; } this.defaultTarget = d; this.currentTarget = f; this.isActive = c; k.AVM1Context.instance = e; - if (g) { - throw g; + if (h) { + throw h; } } }; d.prototype.executeActions = function(a, b) { - F(a, this, b); + E(a, this, b); }; d.prototype.registerEventPropertyObserver = function(a, b) { var e = this.eventObservers[a]; @@ -47892,52 +47894,52 @@ __extends = this.__extends || function(d, k) { return d; }(k.AVM1Context); k.AVM1Context.create = function(a) { - return new hc(a); + return new jc(a); }; - var Ga = function() { + var Ia = function() { return function(a) { this.error = a; }; - }(), qa = function(a) { + }(), sa = function(a) { function b(e, c) { a.call(this, e); this.error = c; } __extends(b, a); return b; - }(Error), oa = {link:void 0, name:null}; - k.executeActions = F; - var Va = function(a) { + }(Error), qa = {link:void 0, name:null}; + k.executeActions = E; + var Xa = function(a) { function b() { a.apply(this, arguments); } __extends(b, a); return b; - }(d.AVM2.AS.ASObject), va = function() { + }(d.AVM2.AS.ASObject), xa = function() { return function(a) { this.callFrame = a; }; - }(), ia = {obj:null, link:null, name:null}, dc = function() { + }(), ka = {obj:null, link:null, name:null}, fc = function() { function a() { - a.cachedCalls || (a.cachedCalls = cc()); + a.cachedCalls || (a.cachedCalls = ec()); } a.prototype.convertArgs = function(a, b, e, c) { for (var d = [], f = 0;f < a.length;f++) { - var g = a[f]; - if ("object" !== typeof g || null === g || Array.isArray(g)) { - void 0 === g ? d.push("undefined") : d.push(JSON.stringify(g)); + var h = a[f]; + if ("object" !== typeof h || null === h || Array.isArray(h)) { + void 0 === h ? d.push("undefined") : d.push(JSON.stringify(h)); } else { - if (g instanceof k.ParsedPushConstantAction) { + if (h instanceof k.ParsedPushConstantAction) { if (c.singleConstantPool) { - var h = c.singleConstantPool[g.constantIndex]; - d.push(void 0 === h ? "undefined" : JSON.stringify(h)); + var g = c.singleConstantPool[h.constantIndex]; + d.push(void 0 === g ? "undefined" : JSON.stringify(g)); } else { - var h = "", l = e.constantPool; - l && (h = l[g.constantIndex], h = void 0 === h ? "undefined" : JSON.stringify(h), h = 0 <= h.indexOf("*/") ? "" : " /* " + h + " */"); - d.push("constantPool[" + g.constantIndex + "]" + h); + var g = "", l = e.constantPool; + l && (g = l[h.constantIndex], g = void 0 === g ? "undefined" : JSON.stringify(g), g = 0 <= g.indexOf("*/") ? "" : " /* " + g + " */"); + d.push("constantPool[" + h.constantIndex + "]" + g); } } else { - g instanceof k.ParsedPushRegisterAction ? (g = g.registerNumber, 0 > g || g >= c.registersLimit ? d.push("undefined") : d.push("registers[" + g + "]")) : g instanceof k.AVM1ActionsData ? (h = "code_" + b + "_" + f, e[h] = g, d.push("res." + h)) : ec("Unknown AVM1 action argument type"); + h instanceof k.ParsedPushRegisterAction ? (h = h.registerNumber, 0 > h || h >= c.registersLimit ? d.push("undefined") : d.push("registers[" + h + "]")) : h instanceof k.AVM1ActionsData ? (g = "code_" + b + "_" + f, e[g] = h, d.push("res." + g)) : gc("Unknown AVM1 action argument type"); } } } @@ -47967,26 +47969,26 @@ __extends = this.__extends || function(d, k) { }; a.prototype.checkAvm1Timeout = function(a) { if (Date.now() >= a.context.abortExecutionAt) { - throw new qa("long running script -- AVM1 instruction hang timeout"); + throw new sa("long running script -- AVM1 instruction hang timeout"); } }; a.prototype.generate = function(b) { - var e = this, c = b.blocks, d = {}, f = 0, g = b.dataId, h = "return function avm1gen_" + g + "(ectx) {\nvar position = 0;\nvar checkTimeAfter = 0;\nvar constantPool = ectx.constantPool, registers = ectx.registers, stack = ectx.stack;\n"; - k.avm1DebuggerEnabled.value && (h += "/* Running " + g + " */ if (Shumway.AVM1.Debugger.pause || Shumway.AVM1.Debugger.breakpoints." + g + ") { debugger; }\n"); - h += "while (!ectx.isEndOfActions) {\nif (checkTimeAfter <= 0) { checkTimeAfter = 1000; checkTimeout(ectx); }\nswitch(position) {\n"; + var e = this, c = b.blocks, d = {}, f = 0, h = b.dataId, g = "return function avm1gen_" + h + "(ectx) {\nvar position = 0;\nvar checkTimeAfter = 0;\nvar constantPool = ectx.constantPool, registers = ectx.registers, stack = ectx.stack;\n"; + k.avm1DebuggerEnabled.value && (g += "/* Running " + h + " */ if (Shumway.AVM1.Debugger.pause || Shumway.AVM1.Debugger.breakpoints." + h + ") { debugger; }\n"); + g += "while (!ectx.isEndOfActions) {\nif (checkTimeAfter <= 0) { checkTimeAfter = 1000; checkTimeout(ectx); }\nswitch(position) {\n"; c.forEach(function(a) { - h += " case " + a.label + ":\n"; + g += " case " + a.label + ":\n"; a.items.forEach(function(a, c) { - h += e.convertAction(a, f++, d, c, b); + g += e.convertAction(a, f++, d, c, b); }); - h += " position = " + a.jump + ";\n checkTimeAfter -= " + a.items.length + ";\n break;\n"; + g += " position = " + a.jump + ";\n checkTimeAfter -= " + a.items.length + ";\n break;\n"; }); - h += " default: ectx.isEndOfActions = true; break;\n}\n}\nreturn stack.pop();};"; - h += "//# sourceURL=avm1gen-" + g; - return(new Function("calls", "res", "checkTimeout", h))(a.cachedCalls, d, this.checkAvm1Timeout); + g += " default: ectx.isEndOfActions = true; break;\n}\n}\nreturn stack.pop();};"; + g += "//# sourceURL=avm1gen-" + h; + return (new Function("calls", "res", "checkTimeout", g))(a.cachedCalls, d, this.checkAvm1Timeout); }; return a; - }(), Ua = function() { + }(), Wa = function() { function a() { } a.get = function() { @@ -47994,12 +47996,12 @@ __extends = this.__extends || function(d, k) { }; a.tracer = function() { var a = 0; - return{print:function(b, e) { - for (var c = b.position, d = b.actionCode, f = b.actionName, g = [], h = 0;h < e.length;h++) { - var k = e[h]; - k && "object" === typeof k ? (k = k.asGetPublicProperty("__constructor__"), g.push("[" + (k ? k.name : "Object") + "]")) : g.push(k); + return {print:function(b, e) { + for (var c = b.position, d = b.actionCode, f = b.actionName, h = [], g = 0;g < e.length;g++) { + var k = e[g]; + k && "object" === typeof k ? (k = k.asGetPublicProperty("__constructor__"), h.push("[" + (k ? k.name : "Object") + "]")) : h.push(k); } - console.log("AVM1 trace: " + Array(a + 1).join("..") + c + ": " + f + "(" + d.toString(16) + "), stack=" + g); + console.log("AVM1 trace: " + Array(a + 1).join("..") + c + ": " + f + "(" + d.toString(16) + "), stack=" + h); }, indent:function() { a++; }, unindent:function() { @@ -48020,22 +48022,22 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - function p(a, c, b) { + function n(a, c, b) { return a.utils.hasProperty(c, b) ? !0 : (c = a.utils.getProperty(c, "_listeners")) ? c.some(function(e) { return a.utils.hasProperty(e, b); }) : !1; } - function v(a, c, b, e) { + function w(a, c, b, e) { void 0 === e && (e = null); - var h = a.utils.getProperty(c, b); - d.isFunction(h) && h.apply(c, e); - h = a.utils.getProperty(this, "_listeners"); - Array.isArray(h) && h.forEach(function(h) { - h = a.utils.getProperty(h, b); - d.isFunction(h) && h.apply(c, e); + var g = a.utils.getProperty(c, b); + d.isFunction(g) && g.apply(c, e); + g = a.utils.getProperty(this, "_listeners"); + Array.isArray(g) && g.forEach(function(g) { + g = a.utils.getProperty(g, b); + d.isFunction(g) && g.apply(c, e); }); } - function t(a, c, b) { + function v(a, c, b) { for (var e = a.prototype;e && !e.initAVM1SymbolInstance;) { e = e.asGetPublicProperty("__proto__"); } @@ -48048,7 +48050,7 @@ __extends = this.__extends || function(d, k) { return e; } function u(a, c) { - return a ? a._as2Object ? a._as2Object : h.display.MovieClip.isType(a) ? a._avm1SymbolClass ? t(a._avm1SymbolClass, a, c) : t(c.globals.MovieClip, a, c) : h.display.SimpleButton.isType(a) ? t(c.globals.Button, a, c) : h.text.TextField.isType(a) ? t(c.globals.TextField, a, c) : h.display.BitmapData.isType(a) ? new a : null : null; + return a ? a._as2Object ? a._as2Object : g.display.MovieClip.isType(a) ? a._avm1SymbolClass ? v(a._avm1SymbolClass, a, c) : v(c.globals.MovieClip, a, c) : g.display.SimpleButton.isType(a) ? v(c.globals.Button, a, c) : g.text.TextField.isType(a) ? v(c.globals.TextField, a, c) : g.display.BitmapData.isType(a) ? new a : null : null; } function l(a, c) { var b; @@ -48074,7 +48076,7 @@ __extends = this.__extends || function(d, k) { function c(a, c) { return c.context.executeActions(a, c); } - var h = d.AVM2.AS.flash, q = function() { + var g = d.AVM2.AS.flash, q = function() { function a(c, b, e) { void 0 === e && (e = null); this.propertyName = c; @@ -48106,7 +48108,7 @@ __extends = this.__extends || function(d, k) { } __extends(c, a); Object.defineProperty(c.prototype, "isAVM1Instance", {get:function() { - return!!this._as3Object; + return !!this._as3Object; }, enumerable:!0, configurable:!0}); Object.defineProperty(c.prototype, "as3Object", {get:function() { return this._as3Object; @@ -48128,8 +48130,8 @@ __extends = this.__extends || function(d, k) { f.registerEventPropertyObserver(a.propertyName, d); d._updateEvent(a); }); - e && d.as3Object.addEventListener("removedFromStage", function z() { - d.as3Object.removeEventListener("removedFromStage", z); + e && d.as3Object.addEventListener("removedFromStage", function B() { + d.as3Object.removeEventListener("removedFromStage", B); d.unbindEvents(); }); }; @@ -48147,13 +48149,13 @@ __extends = this.__extends || function(d, k) { }, this); }; c.prototype._updateEvent = function(a) { - p(this.context, this, a.propertyName) ? this._addEventListener(a) : this._removeEventListener(a); + n(this.context, this, a.propertyName) ? this._addEventListener(a) : this._removeEventListener(a); }; c.prototype._addEventListener = function(a) { var e = this._eventsListeners[a.propertyName]; e || (e = function() { var e = a.argsConverter ? a.argsConverter.apply(null, arguments) : null; - v(this.context, this, a.propertyName, e); + w(this.context, this, a.propertyName, e); }.bind(this), this.as3Object.addEventListener(a.eventName, e), a.onBind(this), this._eventsListeners[a.propertyName] = e); }; c.prototype._removeEventListener = function(a) { @@ -48166,8 +48168,8 @@ __extends = this.__extends || function(d, k) { return c; }(q); a.AVM1SymbolBase = q; - a.avm1HasEventProperty = p; - a.avm1BroadcastEvent = v; + a.avm1HasEventProperty = n; + a.avm1BroadcastEvent = w; q = function() { function a() { } @@ -48214,20 +48216,20 @@ __extends = this.__extends || function(d, k) { c.asSetPublicProperty("prototype", a); return c; }; - var s = !1; + var r = !1; a.installObjectMethods = function() { - if (!s) { - s = !0; + if (!r) { + r = !0; var a = d.AVM2.AS.ASObject, c = a.asGetPublicProperty("prototype"); a.asSetPublicProperty("registerClass", function(a, e) { k.AVM1Context.instance.registerClass(a, e); }); c.asDefinePublicProperty("addProperty", {value:function(a, e, c) { if ("string" !== typeof a || "" === a || "function" !== typeof e || "function" !== typeof c && null !== c) { - return!1; + return !1; } this.asDefinePublicProperty(a, {get:e, set:c || void 0, configurable:!0, enumerable:!0}); - return!0; + return !0; }, writable:!1, enumerable:!1, configurable:!1}); Object.defineProperty(c, "__proto__avm1", {value:null, writable:!0, enumerable:!1}); c.asDefinePublicProperty("__proto__", {get:function() { @@ -48250,18 +48252,18 @@ __extends = this.__extends || function(d, k) { } }; a.initializeAVM1Object = function(a, d, b) { - d = u(a, d); - b.variableName && d.asSetPublicProperty("variable", b.variableName); - var e = b.events; - if (e) { - for (var h = 0;h < e.length;h++) { - var l = e[h], p; - l.actionsData ? (p = new k.AVM1ActionsData(l.actionsData, "s" + b.symbolId + "e" + h), l.actionsData = null, l.compiled = p) : p = l.compiled; - p = c.bind(null, p, d); + var e = u(a, d); + b.variableName && e.asSetPublicProperty("variable", b.variableName); + var g = b.events; + if (g) { + for (var k = 0;k < g.length;k++) { + var l = g[k], n; + l.actionsData ? (n = d.actionsDataFactory.createActionsData(l.actionsData, "s" + b.symbolId + "e" + k), l.actionsData = null, l.compiled = n) : n = l.compiled; + n = c.bind(null, n, e); var l = l.flags, q; for (q in m) { if (q |= 0, l & (q | 0)) { - var s = m[q]; + var r = m[q]; switch(q) { case 2048: ; @@ -48272,7 +48274,7 @@ __extends = this.__extends || function(d, k) { case 16384: a.buttonMode = !0; } - a.addEventListener(s, p); + a.addEventListener(r, n); } } } @@ -48308,8 +48310,8 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.Debug.notImplemented, v = d.Debug.somewhatImplemented, t = d.AVM2.Runtime.forEachPublicProperty, u = d.AVM2.AS.flash, l = jsGlobal.escape, c = [], h = function() { - function h(c) { + var n = d.Debug.notImplemented, w = d.Debug.somewhatImplemented, v = d.AVM2.Runtime.forEachPublicProperty, u = d.AVM2.AS.flash, l = jsGlobal.escape, c = [], g = function() { + function g(c) { this.fscommand = u.system.FSCommand._fscommand; this.getTimer = d.AVM2.AS.FlashUtilScript_getTimer; this.NaN = Number.NaN; @@ -48343,7 +48345,7 @@ __extends = this.__extends || function(d, k) { this.ContextMenu = u.ui.ContextMenu; this.ContextMenuItem = u.ui.ContextMenuItem; this.TextFormat = a.AVM1TextFormat.createAVM1Class(); - h.instance = this; + g.instance = this; this._global = this; "Object Function Array Number Math Boolean Date RegExp String".split(" ").forEach(function(a) { d.AVM2.Runtime.AVM2.instance.systemDomain.getClass(a); @@ -48353,45 +48355,45 @@ __extends = this.__extends || function(d, k) { this.AsBroadcaster.initializeWithContext(this.Key, c); this.AsBroadcaster.initializeWithContext(this.Mouse, c); } - h.createAVM1Class = function() { - return a.wrapAVM1Class(h, [], "_global flash ASSetPropFlags call chr clearInterval clearTimeout duplicateMovieClip fscommand escape unescape getTimer getURL getVersion gotoAndPlay gotoAndStop ifFrameLoaded int length=>length_ loadMovie loadMovieNum loadVariables loadVariablesNum mbchr mblength mbord mbsubstring nextFrame nextScene ord play prevFrame prevScene print printAsBitmap printAsBitmapNum printNum random removeMovieClip setInterval setTimeout showRedrawRegions startDrag stop stopDrag substring targetPath toggleHighQuality trace unloadMovie unloadMovieNum updateAfterEvent NaN Infinity isFinite isNaN parseFloat parseInt undefined Object Function Array Number Math Boolean Date RegExp String MovieClip AsBroadcaster System Stage Button TextField Color Key Mouse MovieClipLoader Sound SharedObject ContextMenu ContextMenuItem TextFormat toString $asfunction=>asfunction".split(" ")); + g.createAVM1Class = function() { + return a.wrapAVM1Class(g, [], "_global flash ASSetPropFlags call chr clearInterval clearTimeout duplicateMovieClip fscommand escape unescape getTimer getURL getVersion gotoAndPlay gotoAndStop ifFrameLoaded int length=>length_ loadMovie loadMovieNum loadVariables loadVariablesNum mbchr mblength mbord mbsubstring nextFrame nextScene ord play prevFrame prevScene print printAsBitmap printAsBitmapNum printNum random removeMovieClip setInterval setTimeout showRedrawRegions startDrag stop stopDrag substring targetPath toggleHighQuality trace unloadMovie unloadMovieNum updateAfterEvent NaN Infinity isFinite isNaN parseFloat parseInt undefined Object Function Array Number Math Boolean Date RegExp String MovieClip AsBroadcaster System Stage Button TextField Color Key Mouse MovieClipLoader Sound SharedObject ContextMenu ContextMenuItem TextFormat toString $asfunction=>asfunction".split(" ")); }; - h.prototype.asfunction = function(a) { - p("AVM1Globals.$asfunction"); + g.prototype.asfunction = function(a) { + n("AVM1Globals.$asfunction"); }; - h.prototype.ASSetPropFlags = function(a, c, d, b) { + g.prototype.ASSetPropFlags = function(a, c, d, b) { }; - h.prototype.call = function(c) { + g.prototype.call = function(c) { var d = a.AVM1Utils.resolveTarget().as3Object; c = d._getAbsFrameNumber(c, null); void 0 !== c && d.callFrame(c); }; - h.prototype.chr = function(a) { + g.prototype.chr = function(a) { return String.fromCharCode(a); }; - h.prototype.clearInterval = function(a) { + g.prototype.clearInterval = function(a) { var d = c[a - 1]; d && (clearInterval(d), delete c[a - 1]); }; - h.prototype.clearTimeout = function(a) { + g.prototype.clearTimeout = function(a) { var d = c[a - 1]; d && (clearTimeout(d), delete c[a - 1]); }; - h.prototype.duplicateMovieClip = function(c, d, f) { + g.prototype.duplicateMovieClip = function(c, d, f) { a.AVM1Utils.resolveTarget(c).duplicateMovieClip(d, f, null); }; - h.prototype.getAVM1Property = function(c, d) { + g.prototype.getAVM1Property = function(c, d) { return a.AVM1Utils.resolveTarget(c)[q[d]]; }; - h.prototype.getURL = function(a, c, f) { + g.prototype.getURL = function(a, c, f) { var b = new u.net.URLRequest(String(a)); f && (b.method = f); "string" === typeof c && 0 === c.indexOf("_level") ? this.loadMovieNum(a, +c.substr(6), f) : d.AVM2.AS.FlashNetScript_navigateToURL(b, c); }; - h.prototype.getVersion = function() { + g.prototype.getVersion = function() { return u.system.Capabilities.version; }; - h.prototype._addToPendingScripts = function(a, c, d) { + g.prototype._addToPendingScripts = function(a, c, d) { void 0 === d && (d = null); var b = k.AVM1Context.instance, e = b.resolveTarget(void 0); b.addToPendingScripts(function() { @@ -48404,7 +48406,7 @@ __extends = this.__extends || function(d, k) { }, e); }); }; - h.prototype.escape = function(a) { + g.prototype.escape = function(a) { return encodeURIComponent(a).replace(/!|'|\(|\)|\*|-|\.|_|~/g, function(a) { switch(a) { case "*": @@ -48420,28 +48422,28 @@ __extends = this.__extends || function(d, k) { } }); }; - h.prototype.unescape = function(a) { + g.prototype.unescape = function(a) { return decodeURIComponent(a); }; - h.prototype.gotoAndPlay = function(c, d) { + g.prototype.gotoAndPlay = function(c, d) { var f = a.AVM1Utils.resolveTarget(); 2 > arguments.length ? this._addToPendingScripts(f, f.gotoAndPlay, [arguments[0]]) : this._addToPendingScripts(f, f.gotoAndPlay, [arguments[1], arguments[0]]); }; - h.prototype.gotoAndStop = function(c, d) { + g.prototype.gotoAndStop = function(c, d) { var f = a.AVM1Utils.resolveTarget(); 2 > arguments.length ? this._addToPendingScripts(f, f.gotoAndStop, [arguments[0]]) : this._addToPendingScripts(f, f.gotoAndStop, [arguments[1], arguments[0]]); }; - h.prototype.ifFrameLoaded = function(c, d) { + g.prototype.ifFrameLoaded = function(c, d) { var f = a.AVM1Utils.resolveTarget(), b = f._framesloaded; return Math.min((2 > arguments.length ? arguments[0] : arguments[1]) + 1, f._totalframes) <= b; }; - h.prototype.int = function(a) { + g.prototype.int = function(a) { return a | 0; }; - h.prototype.length_ = function(a) { - return("" + a).length; + g.prototype.length_ = function(a) { + return ("" + a).length; }; - h.prototype.loadMovie = function(c, d, f) { + g.prototype.loadMovie = function(c, d, f) { if (c && 0 === c.toLowerCase().indexOf("fscommand:")) { this.fscommand(c.substring(10), d); } else { @@ -48451,94 +48453,88 @@ __extends = this.__extends || function(d, k) { b ? (c = new u.net.URLRequest(c), f && (c.method = f), e.load(c)) : a.AVM1Utils.resolveTarget(d).loadMovie(c, f); } }; - h.prototype._setLevel = function(a, c) { + g.prototype._setLevel = function(a, c) { }; - h.prototype.loadMovieNum = function(a, c, d) { - if (a && 0 === a.toLowerCase().indexOf("fscommand:")) { - return this.fscommand(a.substring(10)); - } - c = new u.display.Loader; - a = new u.net.URLRequest(a); - d && (a.method = d); - c.load(a); + g.prototype.loadMovieNum = function(a, c, d) { + a && 0 === a.toLowerCase().indexOf("fscommand:") ? this.fscommand(a.substring(10)) : (c = new u.display.Loader, a = new u.net.URLRequest(a), d && (a.method = d), c.load(a)); }; - h.prototype.loadVariables = function(c, d, f) { + g.prototype.loadVariables = function(c, d, f) { void 0 === f && (f = ""); d = a.AVM1Utils.resolveTarget(d); this._loadVariables(d, c, f); }; - h.prototype.loadVariablesNum = function(c, d, f) { + g.prototype.loadVariablesNum = function(c, d, f) { void 0 === f && (f = ""); this._loadVariables(a.AVM1Utils.resolveLevel(d), c, f); }; - h.prototype._loadVariables = function(c, d, f) { + g.prototype._loadVariables = function(c, d, f) { function b(d) { - h.removeEventListener(u.events.Event.COMPLETE, b); - t(h.data, function(a, b) { + g.removeEventListener(u.events.Event.COMPLETE, b); + v(g.data, function(a, b) { e.utils.setProperty(c, a, b); }); c instanceof a.AVM1MovieClip && a.avm1BroadcastEvent(e, c, "onData"); } d = new u.net.URLRequest(d); f && (d.method = f); - var e = k.AVM1Context.instance, h = new u.net.URLLoader(d); - h._ignoreDecodeErrors = !0; - h.dataFormat = "variables"; - h.addEventListener(u.events.Event.COMPLETE, b); + var e = k.AVM1Context.instance, g = new u.net.URLLoader(d); + g._ignoreDecodeErrors = !0; + g.dataFormat = "variables"; + g.addEventListener(u.events.Event.COMPLETE, b); }; - h.prototype.mbchr = function(a) { + g.prototype.mbchr = function(a) { return String.fromCharCode(a); }; - h.prototype.mblength = function(a) { - return("" + a).length; + g.prototype.mblength = function(a) { + return ("" + a).length; }; - h.prototype.mbord = function(a) { - return("" + a).charCodeAt(0); + g.prototype.mbord = function(a) { + return ("" + a).charCodeAt(0); }; - h.prototype.mbsubstring = function(a, c, d) { + g.prototype.mbsubstring = function(a, c, d) { return c !== (0 | c) || d !== (0 | d) ? "" : ("" + a).substr(c, d); }; - h.prototype.nextFrame = function() { + g.prototype.nextFrame = function() { var c = a.AVM1Utils.resolveTarget(); this._addToPendingScripts(c, c.nextFrame); }; - h.prototype.nextScene = function() { + g.prototype.nextScene = function() { var c = a.AVM1Utils.resolveTarget(); this._addToPendingScripts(c, c.nextScene); }; - h.prototype.ord = function(a) { - return("" + a).charCodeAt(0); + g.prototype.ord = function(a) { + return ("" + a).charCodeAt(0); }; - h.prototype.play = function() { + g.prototype.play = function() { a.AVM1Utils.resolveTarget().play(); }; - h.prototype.prevFrame = function() { + g.prototype.prevFrame = function() { var c = a.AVM1Utils.resolveTarget(); this._addToPendingScripts(c, c.prevFrame); }; - h.prototype.prevScene = function() { + g.prototype.prevScene = function() { var c = a.AVM1Utils.resolveTarget(); this._addToPendingScripts(c, c.prevScene); }; - h.prototype.print = function(a, c) { - p("AVM1Globals.print"); + g.prototype.print = function(a, c) { + n("AVM1Globals.print"); }; - h.prototype.printAsBitmap = function(a, c) { - p("AVM1Globals.printAsBitmap"); + g.prototype.printAsBitmap = function(a, c) { + n("AVM1Globals.printAsBitmap"); }; - h.prototype.printAsBitmapNum = function(a, c) { - p("AVM1Globals.printAsBitmapNum"); + g.prototype.printAsBitmapNum = function(a, c) { + n("AVM1Globals.printAsBitmapNum"); }; - h.prototype.printNum = function(a, c) { - p("AVM1Globals.printNum"); + g.prototype.printNum = function(a, c) { + n("AVM1Globals.printNum"); }; - h.prototype.random = function(a) { + g.prototype.random = function(a) { return 0 | Math.random() * (0 | a); }; - h.prototype.removeMovieClip = function(c) { + g.prototype.removeMovieClip = function(c) { a.AVM1Utils.resolveTarget(c).removeMovieClip(); }; - h.prototype.setInterval = function() { + g.prototype.setInterval = function() { if (!(2 > arguments.length)) { var a = []; if ("function" === typeof arguments[0]) { @@ -48563,53 +48559,53 @@ __extends = this.__extends || function(d, k) { return c.push(a); } }; - h.prototype.setAVM1Property = function(c, d, f) { + g.prototype.setAVM1Property = function(c, d, f) { a.AVM1Utils.resolveTarget(c)[q[d]] = f; }; - h.prototype.setTimeout = function() { + g.prototype.setTimeout = function() { if (!(2 > arguments.length || "function" !== typeof arguments[0])) { arguments[1] |= 0; var a = setTimeout.apply(null, arguments); return c.push(a); } }; - h.prototype.showRedrawRegions = function(a, c) { - p("AVM1Globals.showRedrawRegions"); + g.prototype.showRedrawRegions = function(a, c) { + n("AVM1Globals.showRedrawRegions"); }; - h.prototype.startDrag = function(c, d, f, b, e, h) { - a.AVM1Utils.resolveTarget(c).startDrag(d, 3 > arguments.length ? null : new u.geom.Rectangle(f, b, e - f, h - b)); + g.prototype.startDrag = function(c, d, f, b, e, g) { + a.AVM1Utils.resolveTarget(c).startDrag(d, 3 > arguments.length ? null : new u.geom.Rectangle(f, b, e - f, g - b)); }; - h.prototype.stop = function() { + g.prototype.stop = function() { a.AVM1Utils.resolveTarget().stop(); }; - h.prototype.stopAllSounds = function() { + g.prototype.stopAllSounds = function() { u.media.SoundMixer.stopAll(); }; - h.prototype.stopDrag = function(c) { + g.prototype.stopDrag = function(c) { a.AVM1Utils.resolveTarget(c).stopDrag(); }; - h.prototype.substring = function(a, c, d) { + g.prototype.substring = function(a, c, d) { return this.mbsubstring(a, c, d); }; - h.prototype.targetPath = function(c) { + g.prototype.targetPath = function(c) { return a.AVM1Utils.resolveTarget(c)._target; }; - h.prototype.toggleHighQuality = function() { - p("AVM1Globals.toggleHighQuality"); + g.prototype.toggleHighQuality = function() { + n("AVM1Globals.toggleHighQuality"); }; - h.prototype.trace = function(a) { + g.prototype.trace = function(a) { d.AVM2.AS.Natives.print(a); }; - h.prototype.unloadMovie = function(c) { + g.prototype.unloadMovie = function(c) { a.AVM1Utils.resolveTarget(c).unloadMovie(); }; - h.prototype.unloadMovieNum = function(c) { + g.prototype.unloadMovieNum = function(c) { a.AVM1Utils.resolveLevel(c).unloadMovie(); }; - h.prototype.updateAfterEvent = function() { - v("AVM1Globals.updateAfterEvent"); + g.prototype.updateAfterEvent = function() { + w("AVM1Globals.updateAfterEvent"); }; - h.prototype._initializeFlashObject = function() { + g.prototype._initializeFlashObject = function() { this.flash = {}; this.flash.asSetPublicProperty("_MovieClip", this.MovieClip); var c = {}; @@ -48628,12 +48624,12 @@ __extends = this.__extends || function(d, k) { this.flash.asSetPublicProperty("geom", c); this.flash.asSetPublicProperty("text", {}); }; - h.prototype.toString = function() { + g.prototype.toString = function() { return "[type Object]"; }; - return h; + return g; }(); - a.AVM1Globals = h; + a.AVM1Globals = g; var q = "_x _y _xscale _yscale _currentframe _totalframes _alpha _visible _width _height _rotation _target _framesloaded _name _droptarget _url _highquality _focusrect _soundbuftime _quality _xmouse _ymouse".split(" "); })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); @@ -48641,23 +48637,23 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(d) { (function(a) { - var p = function() { - function p() { + var n = function() { + function n() { } - p.setAVM1Context = function(a) { + n.setAVM1Context = function(a) { this._context = a; }; - p.createAVM1Class = function() { - return a.wrapAVM1Class(p, ["initialize"], []); + n.createAVM1Class = function() { + return a.wrapAVM1Class(n, ["initialize"], []); }; - p.initialize = function(a) { - p.initializeWithContext(a, d.AVM1Context.instance); + n.initialize = function(a) { + n.initializeWithContext(a, d.AVM1Context.instance); }; - p.initializeWithContext = function(d, k) { + n.initializeWithContext = function(d, k) { d.asSetPublicProperty("_listeners", []); d.asSetPublicProperty("broadcastMessage", function(d) { - for (var c = [], h = 1;h < arguments.length;h++) { - c[h - 1] = arguments[h]; + for (var c = [], g = 1;g < arguments.length;g++) { + c[g - 1] = arguments[g]; } a.avm1BroadcastEvent(k, this, d, c); }); @@ -48669,16 +48665,16 @@ __extends = this.__extends || function(d, k) { var c = k.utils.getProperty(this, "_listeners"); a = c.indexOf(a); if (0 > a) { - return!1; + return !1; } c.splice(a, 1); this.isAVM1Instance && this.updateAllEvents(); - return!0; + return !0; }); }; - return p; + return n; }(); - a.AVM1Broadcaster = p; + a.AVM1Broadcaster = n; })(d.Lib || (d.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); @@ -48706,7 +48702,7 @@ __extends = this.__extends || function(d, k) { }, !1); }; d.isDown = function(a) { - return!!d._keyStates[a]; + return !!d._keyStates[a]; }; d.DOWN = 40; d.LEFT = 37; @@ -48802,7 +48798,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.AVM2.AS.flash, v = d.AVM2.ABC.Multiname, t = d.AVM2.Runtime.resolveMultinameProperty, u = Object.prototype.asGetProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asGetEnumerableKeys, h = function(a) { + var n = d.AVM2.AS.flash, w = d.AVM2.ABC.Multiname, v = d.AVM2.Runtime.resolveMultinameProperty, u = Object.prototype.asGetProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asGetEnumerableKeys, g = function(a) { function c(d, f, b) { void 0 === b && (b = null); a.call(this, d, f, b); @@ -48856,8 +48852,8 @@ __extends = this.__extends || function(d, k) { var e = Object.create(b.symbolProps); e.avm1Name = c; e.avm1SymbolClass = b.theClass; - b = p.display.MovieClip.initializeFrom(e); - p.display.MovieClip.instanceConstructorNoInitialize.call(b); + b = n.display.MovieClip.initializeFrom(e); + n.display.MovieClip.instanceConstructorNoInitialize.call(b); return b; } }; @@ -48874,10 +48870,10 @@ __extends = this.__extends || function(d, k) { this.graphics.beginFill(a, c); }; m.prototype.beginBitmapFill = function(a, c, b, e) { - a instanceof p.display.BitmapData && this.graphics.beginBitmapFill(a, c, b, e); + a instanceof n.display.BitmapData && this.graphics.beginBitmapFill(a, c, b, e); }; - m.prototype.beginGradientFill = function(a, c, b, e, d, h, k, l) { - this.graphics.beginGradientFill(a, c, b, e, d, h, k, l); + m.prototype.beginGradientFill = function(a, c, b, e, d, g, k, l) { + this.graphics.beginGradientFill(a, c, b, e, d, g, k, l); }; Object.defineProperty(m.prototype, "blendMode", {get:function() { return this.as3Object.blendMode; @@ -48897,20 +48893,20 @@ __extends = this.__extends || function(d, k) { m.prototype._insertChildAtDepth = function(c, d) { var b = this.as3Object; b.addTimelineObjectAtDepth(c, Math.min(b.numChildren, d)); - return p.display.Bitmap.isType(c) ? null : a.getAVM1Object(c, this.context); + return n.display.Bitmap.isType(c) ? null : a.getAVM1Object(c, this.context); }; m.prototype.createEmptyMovieClip = function(a, c) { - var b = new p.display.MovieClip; + var b = new n.display.MovieClip; b.name = a; return this._insertChildAtDepth(b, c); }; - m.prototype.createTextField = function(a, c, b, e, d, h) { - var k = new p.text.TextField; + m.prototype.createTextField = function(a, c, b, e, d, g) { + var k = new n.text.TextField; k.name = a; k.x = b; k.y = e; k.width = d; - k.height = h; + k.height = g; return this._insertChildAtDepth(k, c); }; Object.defineProperty(m.prototype, "_currentframe", {get:function() { @@ -48976,9 +48972,9 @@ __extends = this.__extends || function(d, k) { }; m.prototype.getInstanceAtDepth = function(c) { for (var d = this.as3Object, b = 0, e = d.numChildren;b < e;b++) { - var h = d._lookupChildByIndex(b); - if (h && h._depth === c) { - return p.display.Bitmap.isType(h) ? this : a.getAVM1Object(h, this.context); + var g = d._lookupChildByIndex(b); + if (g && g._depth === c) { + return n.display.Bitmap.isType(g) ? this : a.getAVM1Object(g, this.context); } } return null; @@ -49000,12 +48996,12 @@ __extends = this.__extends || function(d, k) { throw "Not implemented: getTextSnapshot"; }; m.prototype.getURL = function(a, c, b) { - a = new p.net.URLRequest(a); + a = new n.net.URLRequest(a); b && (a.method = b); d.AVM2.AS.FlashNetScript_navigateToURL(a, c); }; m.prototype.globalToLocal = function(a) { - var c = this.as3Object.globalToLocal(new p.geom.Point(a.asGetPublicProperty("x"), a.asGetPublicProperty("y"))); + var c = this.as3Object.globalToLocal(new n.geom.Point(a.asGetPublicProperty("x"), a.asGetPublicProperty("y"))); a.asSetPublicProperty("x", c.x); a.asSetPublicProperty("y", c.y); }; @@ -49032,33 +49028,33 @@ __extends = this.__extends || function(d, k) { m.prototype.hitTest = function(a, c, b) { return a instanceof m ? this.as3Object.hitTestObject(a.as3Object) : this.as3Object.hitTestPoint(a, c, b); }; - m.prototype.lineGradientStyle = function(a, c, b, e, d, h, k, l) { - this.graphics.lineGradientStyle(a, c, b, e, d, h, k, l); + m.prototype.lineGradientStyle = function(a, c, b, e, d, g, k, l) { + this.graphics.lineGradientStyle(a, c, b, e, d, g, k, l); }; - m.prototype.lineStyle = function(a, c, b, e, d, h, k, l) { - this.graphics.lineStyle(a, c, b, e, d, h, k, l); + m.prototype.lineStyle = function(a, c, b, e, d, g, k, l) { + this.graphics.lineStyle(a, c, b, e, d, g, k, l); }; m.prototype.lineTo = function(a, c) { this.graphics.lineTo(a, c); }; m.prototype.loadMovie = function(a, c) { function b(a) { - e.removeEventListener(p.events.Event.COMPLETE, b); + e.removeEventListener(n.events.Event.COMPLETE, b); a = this.as3Object.parent; var c = a.getChildIndex(this.as3Object); a.removeChild(this.as3Object); a.addChildAt(e.content, c); } - var e = new p.display.Loader, d = new p.net.URLRequest(a); + var e = new n.display.Loader, d = new n.net.URLRequest(a); c && (d.method = c); e.load(d); - e.addEventListener(p.events.Event.COMPLETE, b); + e.addEventListener(n.events.Event.COMPLETE, b); }; m.prototype.loadVariables = function(a, c) { this.context.globals._loadVariables(this, a, c); }; m.prototype.localToGlobal = function(a) { - var c = this.as3Object.localToGlobal(new p.geom.Point(a.asGetPublicProperty("x"), a.asGetPublicProperty("y"))); + var c = this.as3Object.localToGlobal(new n.geom.Point(a.asGetPublicProperty("x"), a.asGetPublicProperty("y"))); a.asSetPublicProperty("x", c.x); a.asSetPublicProperty("y", c.y); }; @@ -49139,7 +49135,7 @@ __extends = this.__extends || function(d, k) { throw "Not implemented: set$_soundbuftime"; }, enumerable:!0, configurable:!0}); m.prototype.startDrag = function(a, c, b, e, d) { - this.as3Object.startDrag(a, 3 > arguments.length ? null : new p.geom.Rectangle(c, b, e - c, d - b)); + this.as3Object.startDrag(a, 3 > arguments.length ? null : new n.geom.Rectangle(c, b, e - c, d - b)); }; m.prototype.stop = function() { return this.as3Object.stop(); @@ -49266,17 +49262,17 @@ __extends = this.__extends || function(d, k) { return e; } } - a = t(a, c, b); - if (v.isPublicQualifiedName(a) && this.isAVM1Instance) { - return this.__lookupChild(v.getNameFromPublicQualifiedName(a)); + a = v(a, c, b); + if (w.isPublicQualifiedName(a) && this.isAVM1Instance) { + return this.__lookupChild(w.getNameFromPublicQualifiedName(a)); } }; m.prototype.asHasProperty = function(a, c, b) { if (l.call(this, a, c, b) || "string" === typeof c && "_" === c[0] && this._resolveLevelNProperty(c)) { - return!0; + return !0; } - a = t(a, c, b); - return v.isPublicQualifiedName(a) && this.isAVM1Instance ? !!this.__lookupChild(v.getNameFromPublicQualifiedName(a)) : !1; + a = v(a, c, b); + return w.isPublicQualifiedName(a) && this.isAVM1Instance ? !!this.__lookupChild(w.getNameFromPublicQualifiedName(a)) : !1; }; m.prototype.asGetEnumerableKeys = function() { var a = c.call(this); @@ -49284,8 +49280,8 @@ __extends = this.__extends || function(d, k) { return a; } for (var d = this.as3Object, b = 0, e = d._children.length;b < e;b++) { - var h = d._children[b].name; - l.call(this, void 0, h, 0) || a.push(v.getPublicQualifiedName(h)); + var g = d._children[b].name; + l.call(this, void 0, g, 0) || a.push(w.getPublicQualifiedName(g)); } return a; }; @@ -49303,17 +49299,17 @@ __extends = this.__extends || function(d, k) { b || (this._boundExecuteFrameScripts = this._executeFrameScripts.bind(this), b = this._frameScripts = []); var e = b[a + 1]; e || (e = b[a + 1] = [], this.as3Object.addFrameScript(a, this._boundExecuteFrameScripts)); - b = new k.AVM1ActionsData(c, "f" + a + "i" + e.length); + b = this.context.actionsDataFactory.createActionsData(c, "f" + a + "i" + e.length); e.push(b); }; m.prototype._addInitActionBlocks = function(a, c) { - function b(h) { + function b(g) { if (e.currentFrame === a + 1) { e.removeEventListener("enterFrame", b); - h = d.context; - for (var l = 0;l < c.length;l++) { - var m = new k.AVM1ActionsData(c[l].actionsData, "f" + a + "i" + l); - h.executeActions(m, d); + g = d.context; + for (var k = 0;k < c.length;k++) { + var l = g.actionsDataFactory.createActionsData(c[k].actionsData, "f" + a + "i" + k); + g.executeActions(l, d); } } } @@ -49327,9 +49323,9 @@ __extends = this.__extends || function(d, k) { }; m.prototype._initEventsHandlers = function() { this.bindEvents([new a.AVM1EventHandler("onData", "data"), new a.AVM1EventHandler("onDragOut", "dragOut"), new a.AVM1EventHandler("onDragOver", "dragOver"), new a.AVM1EventHandler("onEnterFrame", "enterFrame"), new a.AVM1EventHandler("onKeyDown", "keyDown"), new a.AVM1EventHandler("onKeyUp", "keyUp"), new a.AVM1EventHandler("onKillFocus", "focusOut", function(a) { - return[a.relatedObject]; - }), new a.AVM1EventHandler("onLoad", "load"), new a.AVM1EventHandler("onMouseDown", "mouseDown"), new a.AVM1EventHandler("onMouseUp", "mouseUp"), new h("onPress", "mouseDown"), new h("onRelease", "mouseUp"), new h("onReleaseOutside", "releaseOutside"), new h("onRollOut", "mouseOut"), new h("onRollOver", "mouseOver"), new a.AVM1EventHandler("onSetFocus", "focusIn", function(a) { - return[a.relatedObject]; + return [a.relatedObject]; + }), new a.AVM1EventHandler("onLoad", "load"), new a.AVM1EventHandler("onMouseDown", "mouseDown"), new a.AVM1EventHandler("onMouseUp", "mouseUp"), new g("onPress", "mouseDown"), new g("onRelease", "mouseUp"), new g("onReleaseOutside", "releaseOutside"), new g("onRollOut", "mouseOut"), new g("onRollOver", "mouseOver"), new a.AVM1EventHandler("onSetFocus", "focusIn", function(a) { + return [a.relatedObject]; }), new a.AVM1EventHandler("onUnload", "unload")]); }; return m; @@ -49341,7 +49337,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.Debug.somewhatImplemented, v; + var k = d.Debug.somewhatImplemented, w; (function(a) { a[a.IdleToOverUp = 1] = "IdleToOverUp"; a[a.OverUpToIdle = 2] = "OverUpToIdle"; @@ -49352,9 +49348,9 @@ __extends = this.__extends || function(d, k) { a[a.OutDownToIdle = 64] = "OutDownToIdle"; a[a.IdleToOverDown = 128] = "IdleToOverDown"; a[a.OverDownToIdle = 256] = "OverDownToIdle"; - })(v || (v = {})); - var t = [-1, 37, 39, 36, 35, 45, 46, -1, 8, -1, -1, -1, -1, 13, 38, 40, 33, 34, 9, 27]; - v = function(d) { + })(w || (w = {})); + var v = [-1, 37, 39, 36, 35, 45, 46, -1, 8, -1, -1, -1, -1, 13, 38, 40, 33, 34, 9, 27]; + w = function(d) { function l() { d.apply(this, arguments); } @@ -49362,18 +49358,18 @@ __extends = this.__extends || function(d, k) { l.createAVM1Class = function() { return a.wrapAVM1Class(l, [], "_alpha blendMode cacheAsBitmap enabled filters _focusrect getDepth _height _highquality menu _name _parent _quality _rotation scale9Grid _soundbuftime tabEnabled tabIndex _target trackAsMenu _url useHandCursor _visible _width _x _xmouse _xscale _y _ymouse _yscale".split(" ")); }; - l.prototype.initAVM1SymbolInstance = function(a, h) { - d.prototype.initAVM1SymbolInstance.call(this, a, h); + l.prototype.initAVM1SymbolInstance = function(a, g) { + d.prototype.initAVM1SymbolInstance.call(this, a, g); var l = this._as3Object; if (l._symbol && l._symbol.data.buttonActions) { l.buttonMode = !0; l.addEventListener("addedToStage", this._addListeners.bind(this)); l.addEventListener("removedFromStage", this._removeListeners.bind(this)); - for (var s = this._requiredListeners = Object.create(null), m = this._actions = l._symbol.data.buttonActions, g = 0;g < m.length;g++) { - var f = m[g]; - f.actionsBlock || (f.actionsBlock = new k.AVM1ActionsData(f.actionsData, "s" + l._symbol.id + "e" + g)); + for (var r = this._requiredListeners = Object.create(null), m = this._actions = l._symbol.data.buttonActions, h = 0;h < m.length;h++) { + var f = m[h]; + f.actionsBlock || (f.actionsBlock = a.actionsDataFactory.createActionsData(f.actionsData, "s" + l._symbol.id + "e" + h)); if (f.keyCode) { - s.keyDown = this._keyDownHandler.bind(this); + r.keyDown = this._keyDownHandler.bind(this); } else { var b; switch(f.stateTransitionFlags) { @@ -49395,18 +49391,18 @@ __extends = this.__extends || function(d, k) { case 16: ; case 32: - p("AVM1 drag over/out button actions"); + k("AVM1 drag over/out button actions"); break; case 128: ; case 256: - p("AVM1 drag trackAsMenu over/out button actions"); + k("AVM1 drag trackAsMenu over/out button actions"); break; default: console.warn("Unknown AVM1 button action type: " + f.stateTransitionFlags); continue; } - s[b] = this._mouseEventHandler.bind(this, f.stateTransitionFlags); + r[b] = this._mouseEventHandler.bind(this, f.stateTransitionFlags); } } } @@ -49563,7 +49559,7 @@ __extends = this.__extends || function(d, k) { l.prototype._keyDownHandler = function(a) { for (var d = this._actions, k = 0;k < d.length;k++) { var l = d[k]; - l.keyCode && (32 > l.keyCode && t[l.keyCode] === a.asGetPublicProperty("keyCode") || l.keyCode === a.asGetPublicProperty("charCode")) && this._runAction(l); + l.keyCode && (32 > l.keyCode && v[l.keyCode] === a.asGetPublicProperty("keyCode") || l.keyCode === a.asGetPublicProperty("charCode")) && this._runAction(l); } }; l.prototype._mouseEventHandler = function(a) { @@ -49577,14 +49573,14 @@ __extends = this.__extends || function(d, k) { }; l.prototype._initEventsHandlers = function() { this.bindEvents([new a.AVM1EventHandler("onDragOut", "dragOut"), new a.AVM1EventHandler("onDragOver", "dragOver"), new a.AVM1EventHandler("onKeyDown", "keyDown"), new a.AVM1EventHandler("onKeyUp", "keyUp"), new a.AVM1EventHandler("onKillFocus", "focusOut", function(a) { - return[a.relatedObject]; + return [a.relatedObject]; }), new a.AVM1EventHandler("onLoad", "load"), new a.AVM1EventHandler("onMouseDown", "mouseDown"), new a.AVM1EventHandler("onMouseUp", "mouseUp"), new a.AVM1EventHandler("onPress", "mouseDown"), new a.AVM1EventHandler("onRelease", "mouseUp"), new a.AVM1EventHandler("onReleaseOutside", "releaseOutside"), new a.AVM1EventHandler("onRollOut", "mouseOut"), new a.AVM1EventHandler("onRollOver", "mouseOver"), new a.AVM1EventHandler("onSetFocus", "focusIn", function(a) { - return[a.relatedObject]; + return [a.relatedObject]; })]); }; return l; }(a.AVM1SymbolBase); - a.AVM1Button = v; + a.AVM1Button = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); @@ -49806,23 +49802,23 @@ __extends = this.__extends || function(d, k) { k.prototype._syncTextFieldValue = function(d, k) { var c; c = 0 <= k.indexOf(".") || 0 <= k.indexOf(":"); - var h = this.context.utils; + var g = this.context.utils; if (c) { - var p = k.split(/[.:\/]/g); - k = p.pop(); - if ("_root" == p[0] || "" === p[0]) { + var n = k.split(/[.:\/]/g); + k = n.pop(); + if ("_root" == n[0] || "" === n[0]) { if (null === d.root) { return; } c = a.getAVM1Object(d.root, this.context); - p.shift(); - "" === p[0] && p.shift(); + n.shift(); + "" === n[0] && n.shift(); } else { c = a.getAVM1Object(d._parent, this.context); } - for (;0 < p.length;) { - var s = p.shift(); - c = h.getProperty(c, s); + for (;0 < n.length;) { + var r = n.shift(); + c = g.getProperty(c, r); if (!c) { return; } @@ -49830,8 +49826,8 @@ __extends = this.__extends || function(d, k) { } else { c = a.getAVM1Object(d._parent, this.context); } - h.hasProperty(c, k) || h.setProperty(c, k, d.text); - d.text = "" + h.getProperty(c, k); + g.hasProperty(c, k) || g.setProperty(c, k, d.text); + d.text = "" + g.getProperty(c, k); }; Object.defineProperty(k.prototype, "_visible", {get:function() { return this._as3Object.visible; @@ -49876,9 +49872,9 @@ __extends = this.__extends || function(d, k) { }, enumerable:!0, configurable:!0}); k.prototype._initEventsHandlers = function() { this.bindEvents([new a.AVM1EventHandler("onDragOut", "dragOut"), new a.AVM1EventHandler("onDragOver", "dragOver"), new a.AVM1EventHandler("onKeyDown", "keyDown"), new a.AVM1EventHandler("onKeyUp", "keyUp"), new a.AVM1EventHandler("onKillFocus", "focusOut", function(a) { - return[a.relatedObject]; + return [a.relatedObject]; }), new a.AVM1EventHandler("onLoad", "load"), new a.AVM1EventHandler("onMouseDown", "mouseDown"), new a.AVM1EventHandler("onMouseUp", "mouseUp"), new a.AVM1EventHandler("onPress", "mouseDown"), new a.AVM1EventHandler("onRelease", "mouseUp"), new a.AVM1EventHandler("onReleaseOutside", "releaseOutside"), new a.AVM1EventHandler("onRollOut", "mouseOut"), new a.AVM1EventHandler("onRollOver", "mouseOver"), new a.AVM1EventHandler("onSetFocus", "focusIn", function(a) { - return[a.relatedObject]; + return [a.relatedObject]; })]); }; return k; @@ -49890,7 +49886,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function() { + var k = d.AVM2.AS.flash, w = function() { function d(k) { this._target = a.AVM1Utils.resolveTarget(k); } @@ -49913,14 +49909,14 @@ __extends = this.__extends || function(d, k) { }; return d; }(); - a.AVM1Color = v; + a.AVM1Color = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function() { + var k = d.AVM2.AS.flash, w = function() { function d(k) { this._target = a.AVM1Utils.resolveTarget(k); } @@ -49958,88 +49954,88 @@ __extends = this.__extends || function(d, k) { }, enumerable:!0, configurable:!0}); return d; }(); - a.AVM1Transform = v; + a.AVM1Transform = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.Debug.notImplemented, v = Object.prototype.asGetProperty, t = Object.prototype.asSetProperty, u = Object.prototype.asCallProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asHasOwnProperty, h = Object.prototype.asHasTraitProperty, q = Object.prototype.asDeleteProperty, s = function(d) { - function g() { + var k = d.Debug.notImplemented, w = Object.prototype.asGetProperty, v = Object.prototype.asSetProperty, u = Object.prototype.asCallProperty, l = Object.prototype.asHasProperty, c = Object.prototype.asHasOwnProperty, g = Object.prototype.asHasTraitProperty, q = Object.prototype.asDeleteProperty, r = function(d) { + function h() { } - __extends(g, d); - g.prototype.setTarget = function(a) { + __extends(h, d); + h.prototype.setTarget = function(a) { this._target = a; }; - g.prototype._isInternalProperty = function(a, b, e) { - return!this._target || a || "__proto__" === b || "__constructor__" === b ? !0 : !1; + h.prototype._isInternalProperty = function(a, b, c) { + return !this._target || a || "__proto__" === b || "__constructor__" === b ? !0 : !1; }; - g.prototype.asGetProperty = function(a, b, e) { - return this._isInternalProperty(a, b, e) ? v.call(this, a, b, e) : this._target.asGetPublicProperty(b); + h.prototype.asGetProperty = function(a, b, c) { + return this._isInternalProperty(a, b, c) ? w.call(this, a, b, c) : this._target.asGetPublicProperty(b); }; - g.prototype.asGetNumericProperty = function(a) { + h.prototype.asGetNumericProperty = function(a) { return this._target.asGetNumericProperty(a); }; - g.prototype.asSetNumericProperty = function(a, b) { + h.prototype.asSetNumericProperty = function(a, b) { return this._target.asSetNumericProperty(a, b); }; - g.prototype.asSetProperty = function(a, b, e, c) { - if (this._isInternalProperty(a, b, e)) { - t.call(this, a, b, e, c); + h.prototype.asSetProperty = function(a, b, c, d) { + if (this._isInternalProperty(a, b, c)) { + v.call(this, a, b, c, d); } else { - return this._target.asSetPublicProperty(b, c); + return this._target.asSetPublicProperty(b, d); } }; - g.prototype.asCallProperty = function(a, b, e, c, d) { - return this._isInternalProperty(a, b, e) ? u.call(this, a, b, e, !1, d) : this._target.asCallPublicProperty(b, d); + h.prototype.asCallProperty = function(a, b, c, d, g) { + return this._isInternalProperty(a, b, c) ? u.call(this, a, b, c, !1, g) : this._target.asCallPublicProperty(b, g); }; - g.prototype.asHasProperty = function(a, b, e) { - return this._isInternalProperty(a, b, e) ? l.call(this, a, b, e) : this._target.asHasProperty(void 0, b, 0); + h.prototype.asHasProperty = function(a, b, c) { + return this._isInternalProperty(a, b, c) ? l.call(this, a, b, c) : this._target.asHasProperty(void 0, b, 0); }; - g.prototype.asHasOwnProperty = function(a, b, e) { + h.prototype.asHasOwnProperty = function(a, b, e) { return this._isInternalProperty(a, b, e) ? c.call(this, a, b, e) : this._target.asHasOwnProperty(void 0, b, 0); }; - g.prototype.asDeleteProperty = function(a, b, e) { - if (h.call(this, a, b, e)) { - return q.call(this, a, b, e); + h.prototype.asDeleteProperty = function(a, b, c) { + if (g.call(this, a, b, c)) { + return q.call(this, a, b, c); } k("AVM1Proxy asDeleteProperty"); - return!1; + return !1; }; - g.prototype.asNextName = function(a) { + h.prototype.asNextName = function(a) { k("AVM1Proxy asNextName"); }; - g.prototype.asNextValue = function(a) { + h.prototype.asNextValue = function(a) { k("AVM1Proxy asNextValue"); }; - g.prototype.asNextNameIndex = function(a) { + h.prototype.asNextNameIndex = function(a) { k("AVM1Proxy asNextNameIndex"); }; - g.prototype.proxyNativeMethod = function(a) { + h.prototype.proxyNativeMethod = function(a) { this._target.asSetPublicProperty(a, this._target[a].bind(this._target)); }; - g.wrap = function(c, b) { + h.wrap = function(c, b) { function e() { var e = Object.create(c.prototype); a.AVM1TextFormat.apply(e, arguments); this.setTarget(e); b && b.methods && b.methods.forEach(this.proxyNativeMethod, this); } - e.prototype = g.prototype; + e.prototype = h.prototype; return e; }; - return g; + return h; }(d.AVM2.AS.ASObject); - a.AVM1Proxy = s; + a.AVM1Proxy = r; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = d.AVM2.Runtime.asCoerceString, t = function(d) { - function l(a, d, l, s, m, g, f, b, e, r, n, u, t) { + var k = d.AVM2.AS.flash, w = d.AVM2.Runtime.asCoerceString, v = function(d) { + function l(a, d, l, r, m, h, f, b, e, t, p, u, v) { k.text.TextFormat.apply(this, arguments); } __extends(l, d); @@ -50047,33 +50043,33 @@ __extends = this.__extends || function(d, k) { return a.AVM1Proxy.wrap(l, {methods:["getTextExtent"]}); }; l.prototype.getTextExtent = function(a, d) { - a = v(a); + a = w(a); d = +d; var q = l._measureTextField; q || (q = new k.text.TextField, q.multiline = !0, l._measureTextField = q); !isNaN(d) && 0 < d ? (q.width = d + 4, q.wordWrap = !0) : q.wordWrap = !1; q.defaultTextFormat = this; q.text = a; - var s = {}, m = q.textWidth, g = q.textHeight; - s.asSetPublicProperty("width", m); - s.asSetPublicProperty("height", g); - s.asSetPublicProperty("textFieldWidth", m + 4); - s.asSetPublicProperty("textFieldHeight", g + 4); + var r = {}, m = q.textWidth, h = q.textHeight; + r.asSetPublicProperty("width", m); + r.asSetPublicProperty("height", h); + r.asSetPublicProperty("textFieldWidth", m + 4); + r.asSetPublicProperty("textFieldHeight", h + 4); q = q.getLineMetrics(); - s.asSetPublicProperty("ascent", q.asGetPublicProperty("ascent")); - s.asSetPublicProperty("descent", q.asGetPublicProperty("descent")); - return s; + r.asSetPublicProperty("ascent", q.asGetPublicProperty("ascent")); + r.asSetPublicProperty("descent", q.asGetPublicProperty("descent")); + return r; }; return l; }(k.text.TextFormat); - a.AVM1TextFormat = t; + a.AVM1TextFormat = v; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var p = d.AVM2.AS.flash, v = function(d) { + var n = d.AVM2.AS.flash, w = function(d) { function u() { d.apply(this, arguments); } @@ -50085,18 +50081,18 @@ __extends = this.__extends || function(d, k) { }; u.loadBitmap = function(a) { a = asCoerceString(a); - return(a = k.AVM1Context.instance.getAsset(a)) && a.symbolProps instanceof p.display.BitmapSymbol ? (a = u.initializeFrom(a), a.class.instanceConstructorNoInitialize.call(a), a) : null; + return (a = k.AVM1Context.instance.getAsset(a)) && a.symbolProps instanceof n.display.BitmapSymbol ? (a = u.initializeFrom(a), a.class.instanceConstructorNoInitialize.call(a), a) : null; }; return u; - }(p.display.BitmapData); - a.AVM1BitmapData = v; + }(n.display.BitmapData); + a.AVM1BitmapData = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function() { + var k = d.AVM2.AS.flash, w = function() { function d() { } d.createAVM1Class = function() { @@ -50110,9 +50106,9 @@ __extends = this.__extends || function(d, k) { return k.external.ExternalInterface.asCallPublicProperty("addCallback", [a, function() { return c.apply(d, arguments); }]), !0; - } catch (h) { + } catch (g) { } - return!1; + return !1; }; d.call = function(a) { var d = Array.prototype.slice.call(arguments, 0); @@ -50120,14 +50116,14 @@ __extends = this.__extends || function(d, k) { }; return d; }(); - a.AVM1ExternalInterface = v; + a.AVM1ExternalInterface = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function(d) { + var k = d.AVM2.AS.flash, w = function(d) { function u(k) { d.call(this); this._target = a.AVM1Utils.resolveTarget(k); @@ -50181,14 +50177,14 @@ __extends = this.__extends || function(d, k) { }; return u; }(a.AVM1NativeObject); - a.AVM1Sound = v; + a.AVM1Sound = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function() { + var k = d.AVM2.AS.flash, w = function() { function d() { } d.createAVM1Class = function() { @@ -50202,14 +50198,14 @@ __extends = this.__extends || function(d, k) { }, enumerable:!0, configurable:!0}); return d; }(); - a.AVM1System = v; + a.AVM1System = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = function() { + var k = d.AVM2.AS.flash, w = function() { function d() { this._loader = new k.display.Loader; } @@ -50227,11 +50223,11 @@ __extends = this.__extends || function(d, k) { this._loader.contentLoaderInfo.addEventListener(k.events.Event.COMPLETE, this.completeHandler.bind(this)); this._loader.contentLoaderInfo.addEventListener(k.events.Event.INIT, this.initHandler.bind(this)); this._loader.load(new k.net.URLRequest(d)); - return!0; + return !0; }; d.prototype.unloadClip = function(d) { ("number" === typeof d ? a.AVM1Utils.resolveLevel(d) : a.AVM1Utils.resolveTarget(d)).as3Object.removeChild(this._loader); - return!0; + return !0; }; d.prototype.getProgress = function(a) { return this._loader.contentLoaderInfo.bytesLoaded; @@ -50261,7 +50257,7 @@ __extends = this.__extends || function(d, k) { }; return d; }(); - a.AVM1MovieClipLoader = v; + a.AVM1MovieClipLoader = w; })(k.Lib || (k.Lib = {})); })(d.AVM1 || (d.AVM1 = {})); })(Shumway || (Shumway = {})); @@ -50271,18 +50267,18 @@ console.timeEnd("Load AVM1 Dependencies"); function a(a, b, e) { return c && e ? "string" === typeof b ? (a = d.ColorUtilities.cssStyleToRGBA(b), d.ColorUtilities.rgbaToCSSStyle(e.transformRGBA(a))) : b instanceof CanvasGradient && b._template ? b._template.createCanvasGradient(a, e) : b : b; } - var p = d.NumberUtilities.clamp; + var n = d.NumberUtilities.clamp; (function(a) { a[a.None = 0] = "None"; a[a.Brief = 1] = "Brief"; a[a.Verbose = 2] = "Verbose"; })(k.TraceLevel || (k.TraceLevel = {})); - var v = d.Metrics.Counter.instance; + var w = d.Metrics.Counter.instance; k.frameCounter = new d.Metrics.Counter(!0); k.traceLevel = 2; k.writer = null; k.frameCount = function(a) { - v.count(a); + w.count(a); k.frameCounter.count(a); }; k.timelineBuffer = new d.Tools.Profiler.TimelineBuffer("GFX"); @@ -50290,62 +50286,62 @@ console.timeEnd("Load AVM1 Dependencies"); }; k.leaveTimeline = function(a, b) { }; - var t = null, u = null, l = null, c = !0; - c && "undefined" !== typeof CanvasRenderingContext2D && (t = CanvasGradient.prototype.addColorStop, u = CanvasRenderingContext2D.prototype.createLinearGradient, l = CanvasRenderingContext2D.prototype.createRadialGradient, CanvasRenderingContext2D.prototype.createLinearGradient = function(a, b, e, c) { - return(new q(a, b, e, c)).createCanvasGradient(this, null); - }, CanvasRenderingContext2D.prototype.createRadialGradient = function(a, b, e, c, d, f) { - return(new s(a, b, e, c, d, f)).createCanvasGradient(this, null); + var v = null, u = null, l = null, c = !0; + c && "undefined" !== typeof CanvasRenderingContext2D && (v = CanvasGradient.prototype.addColorStop, u = CanvasRenderingContext2D.prototype.createLinearGradient, l = CanvasRenderingContext2D.prototype.createRadialGradient, CanvasRenderingContext2D.prototype.createLinearGradient = function(a, b, c, e) { + return (new q(a, b, c, e)).createCanvasGradient(this, null); + }, CanvasRenderingContext2D.prototype.createRadialGradient = function(a, b, c, e, d, f) { + return (new r(a, b, c, e, d, f)).createCanvasGradient(this, null); }, CanvasGradient.prototype.addColorStop = function(a, b) { - t.call(this, a, b); + v.call(this, a, b); this._template.addColorStop(a, b); }); - var h = function() { + var g = function() { return function(a, b) { this.offset = a; this.color = b; }; }(), q = function() { - function b(a, e, c, d) { + function b(a, c, e, d) { this.x0 = a; - this.y0 = e; - this.x1 = c; + this.y0 = c; + this.x1 = e; this.y1 = d; this.colorStops = []; } b.prototype.addColorStop = function(a, b) { - this.colorStops.push(new h(a, b)); + this.colorStops.push(new g(a, b)); }; - b.prototype.createCanvasGradient = function(b, e) { - for (var c = u.call(b, this.x0, this.y0, this.x1, this.y1), d = this.colorStops, f = 0;f < d.length;f++) { - var g = d[f], h = g.offset, g = g.color, g = e ? a(b, g, e) : g; - t.call(c, h, g); + b.prototype.createCanvasGradient = function(b, c) { + for (var e = u.call(b, this.x0, this.y0, this.x1, this.y1), d = this.colorStops, f = 0;f < d.length;f++) { + var g = d[f], h = g.offset, g = g.color, g = c ? a(b, g, c) : g; + v.call(e, h, g); } - c._template = this; - c._transform = this._transform; - return c; + e._template = this; + e._transform = this._transform; + return e; }; return b; - }(), s = function() { - function b(a, e, c, d, f, g) { + }(), r = function() { + function b(a, c, e, d, f, g) { this.x0 = a; - this.y0 = e; - this.r0 = c; + this.y0 = c; + this.r0 = e; this.x1 = d; this.y1 = f; this.r1 = g; this.colorStops = []; } b.prototype.addColorStop = function(a, b) { - this.colorStops.push(new h(a, b)); + this.colorStops.push(new g(a, b)); }; - b.prototype.createCanvasGradient = function(b, e) { - for (var c = l.call(b, this.x0, this.y0, this.r0, this.x1, this.y1, this.r1), d = this.colorStops, f = 0;f < d.length;f++) { - var g = d[f], h = g.offset, g = g.color, g = e ? a(b, g, e) : g; - t.call(c, h, g); + b.prototype.createCanvasGradient = function(b, c) { + for (var e = l.call(b, this.x0, this.y0, this.r0, this.x1, this.y1, this.r1), d = this.colorStops, f = 0;f < d.length;f++) { + var g = d[f], h = g.offset, g = g.color, g = c ? a(b, g, c) : g; + v.call(e, h, g); } - c._template = this; - c._transform = this._transform; - return c; + e._template = this; + e._transform = this._transform; + return e; }; return b; }(), m; @@ -50362,7 +50358,7 @@ console.timeEnd("Load AVM1 Dependencies"); a[a.Restore = 10] = "Restore"; a[a.Transform = 11] = "Transform"; })(m || (m = {})); - var g = function() { + var h = function() { function a(b) { this._commands = new Uint8Array(a._arrayBufferPool.acquire(8), 0, 8); this._commandPosition = 0; @@ -50371,33 +50367,33 @@ console.timeEnd("Load AVM1 Dependencies"); b instanceof a && this.addPath(b); } a._apply = function(a, b) { - var e = a._commands, c = a._data, d = 0, f = 0; + var c = a._commands, e = a._data, d = 0, f = 0; b.beginPath(); for (var g = a._commandPosition;d < g;) { - switch(e[d++]) { + switch(c[d++]) { case 1: b.closePath(); break; case 2: - b.moveTo(c[f++], c[f++]); + b.moveTo(e[f++], e[f++]); break; case 3: - b.lineTo(c[f++], c[f++]); + b.lineTo(e[f++], e[f++]); break; case 4: - b.quadraticCurveTo(c[f++], c[f++], c[f++], c[f++]); + b.quadraticCurveTo(e[f++], e[f++], e[f++], e[f++]); break; case 5: - b.bezierCurveTo(c[f++], c[f++], c[f++], c[f++], c[f++], c[f++]); + b.bezierCurveTo(e[f++], e[f++], e[f++], e[f++], e[f++], e[f++]); break; case 6: - b.arcTo(c[f++], c[f++], c[f++], c[f++], c[f++]); + b.arcTo(e[f++], e[f++], e[f++], e[f++], e[f++]); break; case 7: - b.rect(c[f++], c[f++], c[f++], c[f++]); + b.rect(e[f++], e[f++], e[f++], e[f++]); break; case 8: - b.arc(c[f++], c[f++], c[f++], c[f++], c[f++], !!c[f++]); + b.arc(e[f++], e[f++], e[f++], e[f++], e[f++], !!e[f++]); break; case 9: b.save(); @@ -50406,7 +50402,7 @@ console.timeEnd("Load AVM1 Dependencies"); b.restore(); break; case 11: - b.transform(c[f++], c[f++], c[f++], c[f++], c[f++], c[f++]); + b.transform(e[f++], e[f++], e[f++], e[f++], e[f++], e[f++]); } } }; @@ -50420,13 +50416,13 @@ console.timeEnd("Load AVM1 Dependencies"); this._commandPosition >= this._commands.length && this._ensureCommandCapacity(this._commandPosition + 1); this._commands[this._commandPosition++] = a; }; - a.prototype._writeData = function(a, b, c, e, d, f) { + a.prototype._writeData = function(a, b, e, c, d, f) { var g = arguments.length; this._dataPosition + g >= this._data.length && this._ensureDataCapacity(this._dataPosition + g); var h = this._data, k = this._dataPosition; h[k] = a; h[k + 1] = b; - 2 < g && (h[k + 2] = c, h[k + 3] = e, 4 < g && (h[k + 4] = d, 6 === g && (h[k + 5] = f))); + 2 < g && (h[k + 2] = e, h[k + 3] = c, 4 < g && (h[k + 4] = d, 6 === g && (h[k + 5] = f))); this._dataPosition += g; }; a.prototype.closePath = function() { @@ -50440,66 +50436,66 @@ console.timeEnd("Load AVM1 Dependencies"); this._writeCommand(3); this._writeData(a, b); }; - a.prototype.quadraticCurveTo = function(a, b, c, e) { + a.prototype.quadraticCurveTo = function(a, b, e, c) { this._writeCommand(4); - this._writeData(a, b, c, e); + this._writeData(a, b, e, c); }; - a.prototype.bezierCurveTo = function(a, b, c, e, d, f) { + a.prototype.bezierCurveTo = function(a, b, e, c, d, f) { this._writeCommand(5); - this._writeData(a, b, c, e, d, f); + this._writeData(a, b, e, c, d, f); }; - a.prototype.arcTo = function(a, b, c, e, d) { + a.prototype.arcTo = function(a, b, e, c, d) { this._writeCommand(6); - this._writeData(a, b, c, e, d); + this._writeData(a, b, e, c, d); }; - a.prototype.rect = function(a, b, c, e) { + a.prototype.rect = function(a, b, e, c) { this._writeCommand(7); - this._writeData(a, b, c, e); + this._writeData(a, b, e, c); }; - a.prototype.arc = function(a, b, c, e, d, f) { + a.prototype.arc = function(a, b, e, c, d, f) { this._writeCommand(8); - this._writeData(a, b, c, e, d, +f); + this._writeData(a, b, e, c, d, +f); }; a.prototype.addPath = function(a, b) { b && (this._writeCommand(9), this._writeCommand(11), this._writeData(b.a, b.b, b.c, b.d, b.e, b.f)); - var c = this._commandPosition + a._commandPosition; - c >= this._commands.length && this._ensureCommandCapacity(c); - for (var e = this._commands, d = a._commands, f = this._commandPosition, g = 0;f < c;f++) { - e[f] = d[g++]; + var e = this._commandPosition + a._commandPosition; + e >= this._commands.length && this._ensureCommandCapacity(e); + for (var c = this._commands, d = a._commands, f = this._commandPosition, g = 0;f < e;f++) { + c[f] = d[g++]; } - this._commandPosition = c; - c = this._dataPosition + a._dataPosition; - c >= this._data.length && this._ensureDataCapacity(c); - e = this._data; + this._commandPosition = e; + e = this._dataPosition + a._dataPosition; + e >= this._data.length && this._ensureDataCapacity(e); + c = this._data; d = a._data; f = this._dataPosition; - for (g = 0;f < c;f++) { - e[f] = d[g++]; + for (g = 0;f < e;f++) { + c[f] = d[g++]; } - this._dataPosition = c; + this._dataPosition = e; b && this._writeCommand(10); }; a._arrayBufferPool = new d.ArrayBufferPool; return a; }(); - k.Path = g; + k.Path = h; if ("undefined" !== typeof CanvasRenderingContext2D && ("undefined" === typeof Path2D || !Path2D.prototype.addPath)) { var f = CanvasRenderingContext2D.prototype.fill; CanvasRenderingContext2D.prototype.fill = function(a, b) { - arguments.length && (a instanceof g ? g._apply(a, this) : b = a); + arguments.length && (a instanceof h ? h._apply(a, this) : b = a); b ? f.call(this, b) : f.call(this); }; var b = CanvasRenderingContext2D.prototype.stroke; - CanvasRenderingContext2D.prototype.stroke = function(a, c) { - arguments.length && (a instanceof g ? g._apply(a, this) : c = a); - c ? b.call(this, c) : b.call(this); + CanvasRenderingContext2D.prototype.stroke = function(a, e) { + arguments.length && (a instanceof h ? h._apply(a, this) : e = a); + e ? b.call(this, e) : b.call(this); }; var e = CanvasRenderingContext2D.prototype.clip; CanvasRenderingContext2D.prototype.clip = function(a, b) { - arguments.length && (a instanceof g ? g._apply(a, this) : b = a); + arguments.length && (a instanceof h ? h._apply(a, this) : b = a); b ? e.call(this, b) : e.call(this); }; - window.Path2D = g; + window.Path2D = h; } if ("undefined" !== typeof CanvasPattern && Path2D.prototype.addPath) { m = function(a) { @@ -50508,39 +50504,39 @@ console.timeEnd("Load AVM1 Dependencies"); }; CanvasPattern.prototype.setTransform || (CanvasPattern.prototype.setTransform = m); CanvasGradient.prototype.setTransform || (CanvasGradient.prototype.setTransform = m); - var r = CanvasRenderingContext2D.prototype.fill, n = CanvasRenderingContext2D.prototype.stroke; + var t = CanvasRenderingContext2D.prototype.fill, p = CanvasRenderingContext2D.prototype.stroke; CanvasRenderingContext2D.prototype.fill = function(a, b) { - var c = !!this.fillStyle._transform; - if ((this.fillStyle instanceof CanvasPattern || this.fillStyle instanceof CanvasGradient) && c && a instanceof Path2D) { - var c = this.fillStyle._transform, e; + var e = !!this.fillStyle._transform; + if ((this.fillStyle instanceof CanvasPattern || this.fillStyle instanceof CanvasGradient) && e && a instanceof Path2D) { + var e = this.fillStyle._transform, c; try { - e = c.inverse(); + c = e.inverse(); } catch (d) { - e = c = k.Geometry.Matrix.createIdentitySVGMatrix(); + c = e = k.Geometry.Matrix.createIdentitySVGMatrix(); } - this.transform(c.a, c.b, c.c, c.d, c.e, c.f); - c = new Path2D; - c.addPath(a, e); - r.call(this, c, b); this.transform(e.a, e.b, e.c, e.d, e.e, e.f); + e = new Path2D; + e.addPath(a, c); + t.call(this, e, b); + this.transform(c.a, c.b, c.c, c.d, c.e, c.f); } else { - 0 === arguments.length ? r.call(this) : 1 === arguments.length ? r.call(this, a) : 2 === arguments.length && r.call(this, a, b); + 0 === arguments.length ? t.call(this) : 1 === arguments.length ? t.call(this, a) : 2 === arguments.length && t.call(this, a, b); } }; CanvasRenderingContext2D.prototype.stroke = function(a) { var b = !!this.strokeStyle._transform; if ((this.strokeStyle instanceof CanvasPattern || this.strokeStyle instanceof CanvasGradient) && b && a instanceof Path2D) { - var c = this.strokeStyle._transform, b = c.inverse(); - this.transform(c.a, c.b, c.c, c.d, c.e, c.f); - c = new Path2D; - c.addPath(a, b); - var e = this.lineWidth; + var e = this.strokeStyle._transform, b = e.inverse(); + this.transform(e.a, e.b, e.c, e.d, e.e, e.f); + e = new Path2D; + e.addPath(a, b); + var c = this.lineWidth; this.lineWidth *= (b.a + b.d) / 2; - n.call(this, c); + p.call(this, e); this.transform(b.a, b.b, b.c, b.d, b.e, b.f); - this.lineWidth = e; + this.lineWidth = c; } else { - 0 === arguments.length ? n.call(this) : 1 === arguments.length && n.call(this, a); + 0 === arguments.length ? p.call(this) : 1 === arguments.length && p.call(this, a); } }; } @@ -50548,61 +50544,80 @@ console.timeEnd("Load AVM1 Dependencies"); function a() { return k.Geometry.Matrix.createSVGMatrixFromArray(this.mozCurrentTransform); } - CanvasRenderingContext2D.prototype.flashStroke = function(a, b) { - var c = this.currentTransform; - if (c) { - var e = new Path2D; - e.addPath(a, c); - var f = this.lineWidth; + var b = "currentTransform" in CanvasRenderingContext2D.prototype; + CanvasRenderingContext2D.prototype.flashStroke = function(a, e) { + if (b) { + var c = this.currentTransform, f = new Path2D; + f.addPath(a, c); + var g = this.lineWidth; this.setTransform(1, 0, 0, 1, 0, 0); - switch(b) { + switch(e) { case 1: - this.lineWidth = p(f * (d.getScaleX(c) + d.getScaleY(c)) / 2, 1, 1024); + this.lineWidth = n(g * (d.getScaleX(c) + d.getScaleY(c)) / 2, 1, 1024); break; case 2: - this.lineWidth = p(f * d.getScaleY(c), 1, 1024); + this.lineWidth = n(g * d.getScaleY(c), 1, 1024); break; case 3: - this.lineWidth = p(f * d.getScaleX(c), 1, 1024); + this.lineWidth = n(g * d.getScaleX(c), 1, 1024); } - this.stroke(e); + this.stroke(f); this.setTransform(c.a, c.b, c.c, c.d, c.e, c.f); - this.lineWidth = f; + this.lineWidth = g; } else { this.stroke(a); } }; - !("currentTransform" in CanvasRenderingContext2D.prototype) && "mozCurrentTransform" in CanvasRenderingContext2D.prototype && Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:a}); + if (!b) { + if ("mozCurrentTransform" in CanvasRenderingContext2D.prototype) { + Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:a}), b = !0; + } else { + var e = CanvasRenderingContext2D.prototype.setTransform; + CanvasRenderingContext2D.prototype.setTransform = function(a, b, c, d, f, g) { + var h = this.currentTransform; + h.a = a; + h.b = b; + h.c = c; + h.d = d; + h.e = f; + h.f = g; + e.call(this, a, b, c, d, f, g); + }; + Object.defineProperty(CanvasRenderingContext2D.prototype, "currentTransform", {get:function() { + return this._currentTransform || (this._currentTransform = k.Geometry.Matrix.createIdentitySVGMatrix()); + }}); + } + } }(); if ("undefined" !== typeof CanvasRenderingContext2D && void 0 === CanvasRenderingContext2D.prototype.globalColorMatrix) { - var x = CanvasRenderingContext2D.prototype.fill, I = CanvasRenderingContext2D.prototype.stroke, z = CanvasRenderingContext2D.prototype.fillText, D = CanvasRenderingContext2D.prototype.strokeText; + var C = CanvasRenderingContext2D.prototype.fill, I = CanvasRenderingContext2D.prototype.stroke, B = CanvasRenderingContext2D.prototype.fillText, D = CanvasRenderingContext2D.prototype.strokeText; Object.defineProperty(CanvasRenderingContext2D.prototype, "globalColorMatrix", {get:function() { return this._globalColorMatrix ? this._globalColorMatrix.clone() : null; }, set:function(a) { a ? this._globalColorMatrix ? this._globalColorMatrix.set(a) : this._globalColorMatrix = a.clone() : this._globalColorMatrix = null; }, enumerable:!0, configurable:!0}); - CanvasRenderingContext2D.prototype.fill = function(b, c) { - var e = null; - this._globalColorMatrix && (e = this.fillStyle, this.fillStyle = a(this, this.fillStyle, this._globalColorMatrix)); - 0 === arguments.length ? x.call(this) : 1 === arguments.length ? x.call(this, b) : 2 === arguments.length && x.call(this, b, c); - e && (this.fillStyle = e); + CanvasRenderingContext2D.prototype.fill = function(b, e) { + var c = null; + this._globalColorMatrix && (c = this.fillStyle, this.fillStyle = a(this, this.fillStyle, this._globalColorMatrix)); + 0 === arguments.length ? C.call(this) : 1 === arguments.length ? C.call(this, b) : 2 === arguments.length && C.call(this, b, e); + c && (this.fillStyle = c); }; - CanvasRenderingContext2D.prototype.stroke = function(b, c) { - var e = null; - this._globalColorMatrix && (e = this.strokeStyle, this.strokeStyle = a(this, this.strokeStyle, this._globalColorMatrix)); + CanvasRenderingContext2D.prototype.stroke = function(b, e) { + var c = null; + this._globalColorMatrix && (c = this.strokeStyle, this.strokeStyle = a(this, this.strokeStyle, this._globalColorMatrix)); 0 === arguments.length ? I.call(this) : 1 === arguments.length && I.call(this, b); - e && (this.strokeStyle = e); + c && (this.strokeStyle = c); }; - CanvasRenderingContext2D.prototype.fillText = function(b, c, e, f) { + CanvasRenderingContext2D.prototype.fillText = function(b, e, c, f) { var g = null; this._globalColorMatrix && (g = this.fillStyle, this.fillStyle = a(this, this.fillStyle, this._globalColorMatrix)); - 3 === arguments.length ? z.call(this, b, c, e) : 4 === arguments.length ? z.call(this, b, c, e, f) : d.Debug.unexpected(); + 3 === arguments.length ? B.call(this, b, e, c) : 4 === arguments.length ? B.call(this, b, e, c, f) : d.Debug.unexpected(); g && (this.fillStyle = g); }; - CanvasRenderingContext2D.prototype.strokeText = function(b, c, e, f) { + CanvasRenderingContext2D.prototype.strokeText = function(b, e, c, f) { var g = null; this._globalColorMatrix && (g = this.strokeStyle, this.strokeStyle = a(this, this.strokeStyle, this._globalColorMatrix)); - 3 === arguments.length ? D.call(this, b, c, e) : 4 === arguments.length ? D.call(this, b, c, e, f) : d.Debug.unexpected(); + 3 === arguments.length ? D.call(this, b, e, c) : 4 === arguments.length ? D.call(this, b, e, c, f) : d.Debug.unexpected(); g && (this.strokeStyle = g); }; } @@ -50667,84 +50682,84 @@ console.timeEnd("Load AVM1 Dependencies"); return a.d; }; })(Shumway || (Shumway = {})); -var Shumway$$inline_749 = Shumway || (Shumway = {}), GFX$$inline_750 = Shumway$$inline_749.GFX || (Shumway$$inline_749.GFX = {}), Option$$inline_751 = Shumway$$inline_749.Options.Option, OptionSet$$inline_752 = Shumway$$inline_749.Options.OptionSet, shumwayOptions$$inline_753 = Shumway$$inline_749.Settings.shumwayOptions, rendererOptions$$inline_754 = shumwayOptions$$inline_753.register(new OptionSet$$inline_752("Renderer Options")); -GFX$$inline_750.imageUpdateOption = rendererOptions$$inline_754.register(new Option$$inline_751("", "imageUpdate", "boolean", !0, "Enable image updating.")); -GFX$$inline_750.imageConvertOption = rendererOptions$$inline_754.register(new Option$$inline_751("", "imageConvert", "boolean", !0, "Enable image conversion.")); -GFX$$inline_750.stageOptions = shumwayOptions$$inline_753.register(new OptionSet$$inline_752("Stage Renderer Options")); -GFX$$inline_750.forcePaint = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "forcePaint", "boolean", !1, "Force repainting.")); -GFX$$inline_750.ignoreViewport = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "ignoreViewport", "boolean", !1, "Cull elements outside of the viewport.")); -GFX$$inline_750.viewportLoupeDiameter = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "viewportLoupeDiameter", "number", 256, "Size of the viewport loupe.", {range:{min:1, max:1024, step:1}})); -GFX$$inline_750.disableClipping = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "disableClipping", "boolean", !1, "Disable clipping.")); -GFX$$inline_750.debugClipping = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "debugClipping", "boolean", !1, "Disable clipping.")); -GFX$$inline_750.hud = GFX$$inline_750.stageOptions.register(new Option$$inline_751("", "hud", "boolean", !1, "Enable HUD.")); -var webGLOptions$$inline_755 = GFX$$inline_750.stageOptions.register(new OptionSet$$inline_752("WebGL Options")); -GFX$$inline_750.perspectiveCamera = webGLOptions$$inline_755.register(new Option$$inline_751("", "pc", "boolean", !1, "Use perspective camera.")); -GFX$$inline_750.perspectiveCameraFOV = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcFOV", "number", 60, "Perspective Camera FOV.")); -GFX$$inline_750.perspectiveCameraDistance = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcDistance", "number", 2, "Perspective Camera Distance.")); -GFX$$inline_750.perspectiveCameraAngle = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcAngle", "number", 0, "Perspective Camera Angle.")); -GFX$$inline_750.perspectiveCameraAngleRotate = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcRotate", "boolean", !1, "Rotate Use perspective camera.")); -GFX$$inline_750.perspectiveCameraSpacing = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcSpacing", "number", .01, "Element Spacing.")); -GFX$$inline_750.perspectiveCameraSpacingInflate = webGLOptions$$inline_755.register(new Option$$inline_751("", "pcInflate", "boolean", !1, "Rotate Use perspective camera.")); -GFX$$inline_750.drawTiles = webGLOptions$$inline_755.register(new Option$$inline_751("", "drawTiles", "boolean", !1, "Draw WebGL Tiles")); -GFX$$inline_750.drawSurfaces = webGLOptions$$inline_755.register(new Option$$inline_751("", "drawSurfaces", "boolean", !1, "Draw WebGL Surfaces.")); -GFX$$inline_750.drawSurface = webGLOptions$$inline_755.register(new Option$$inline_751("", "drawSurface", "number", -1, "Draw WebGL Surface #")); -GFX$$inline_750.drawElements = webGLOptions$$inline_755.register(new Option$$inline_751("", "drawElements", "boolean", !0, "Actually call gl.drawElements. This is useful to test if the GPU is the bottleneck.")); -GFX$$inline_750.disableSurfaceUploads = webGLOptions$$inline_755.register(new Option$$inline_751("", "disableSurfaceUploads", "boolean", !1, "Disable surface uploads.")); -GFX$$inline_750.premultipliedAlpha = webGLOptions$$inline_755.register(new Option$$inline_751("", "premultipliedAlpha", "boolean", !1, "Set the premultipliedAlpha flag on getContext().")); -GFX$$inline_750.unpackPremultiplyAlpha = webGLOptions$$inline_755.register(new Option$$inline_751("", "unpackPremultiplyAlpha", "boolean", !0, "Use UNPACK_PREMULTIPLY_ALPHA_WEBGL in pixelStorei.")); -var factorChoices$$inline_756 = {ZERO:0, ONE:1, SRC_COLOR:768, ONE_MINUS_SRC_COLOR:769, DST_COLOR:774, ONE_MINUS_DST_COLOR:775, SRC_ALPHA:770, ONE_MINUS_SRC_ALPHA:771, DST_ALPHA:772, ONE_MINUS_DST_ALPHA:773, SRC_ALPHA_SATURATE:776, CONSTANT_COLOR:32769, ONE_MINUS_CONSTANT_COLOR:32770, CONSTANT_ALPHA:32771, ONE_MINUS_CONSTANT_ALPHA:32772}; -GFX$$inline_750.sourceBlendFactor = webGLOptions$$inline_755.register(new Option$$inline_751("", "sourceBlendFactor", "number", factorChoices$$inline_756.ONE, "", {choices:factorChoices$$inline_756})); -GFX$$inline_750.destinationBlendFactor = webGLOptions$$inline_755.register(new Option$$inline_751("", "destinationBlendFactor", "number", factorChoices$$inline_756.ONE_MINUS_SRC_ALPHA, "", {choices:factorChoices$$inline_756})); -var canvas2DOptions$$inline_757 = GFX$$inline_750.stageOptions.register(new OptionSet$$inline_752("Canvas2D Options")); -GFX$$inline_750.clipDirtyRegions = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "clipDirtyRegions", "boolean", !1, "Clip dirty regions.")); -GFX$$inline_750.clipCanvas = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "clipCanvas", "boolean", !1, "Clip Regions.")); -GFX$$inline_750.cull = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "cull", "boolean", !1, "Enable culling.")); -GFX$$inline_750.snapToDevicePixels = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "snapToDevicePixels", "boolean", !1, "")); -GFX$$inline_750.imageSmoothing = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "imageSmoothing", "boolean", !1, "")); -GFX$$inline_750.masking = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "masking", "boolean", !0, "Composite Mask.")); -GFX$$inline_750.blending = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "blending", "boolean", !0, "")); -GFX$$inline_750.debugLayers = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "debugLayers", "boolean", !1, "")); -GFX$$inline_750.filters = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "filters", "boolean", !1, "")); -GFX$$inline_750.cacheShapes = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "cacheShapes", "boolean", !0, "")); -GFX$$inline_750.cacheShapesMaxSize = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "cacheShapesMaxSize", "number", 256, "", {range:{min:1, max:1024, step:1}})); -GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new Option$$inline_751("", "cacheShapesThreshold", "number", 256, "", {range:{min:1, max:1024, step:1}})); +var Shumway$$inline_747 = Shumway || (Shumway = {}), GFX$$inline_748 = Shumway$$inline_747.GFX || (Shumway$$inline_747.GFX = {}), Option$$inline_749 = Shumway$$inline_747.Options.Option, OptionSet$$inline_750 = Shumway$$inline_747.Options.OptionSet, shumwayOptions$$inline_751 = Shumway$$inline_747.Settings.shumwayOptions, rendererOptions$$inline_752 = shumwayOptions$$inline_751.register(new OptionSet$$inline_750("Renderer Options")); +GFX$$inline_748.imageUpdateOption = rendererOptions$$inline_752.register(new Option$$inline_749("", "imageUpdate", "boolean", !0, "Enable image updating.")); +GFX$$inline_748.imageConvertOption = rendererOptions$$inline_752.register(new Option$$inline_749("", "imageConvert", "boolean", !0, "Enable image conversion.")); +GFX$$inline_748.stageOptions = shumwayOptions$$inline_751.register(new OptionSet$$inline_750("Stage Renderer Options")); +GFX$$inline_748.forcePaint = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "forcePaint", "boolean", !1, "Force repainting.")); +GFX$$inline_748.ignoreViewport = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "ignoreViewport", "boolean", !1, "Cull elements outside of the viewport.")); +GFX$$inline_748.viewportLoupeDiameter = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "viewportLoupeDiameter", "number", 256, "Size of the viewport loupe.", {range:{min:1, max:1024, step:1}})); +GFX$$inline_748.disableClipping = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "disableClipping", "boolean", !1, "Disable clipping.")); +GFX$$inline_748.debugClipping = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "debugClipping", "boolean", !1, "Disable clipping.")); +GFX$$inline_748.hud = GFX$$inline_748.stageOptions.register(new Option$$inline_749("", "hud", "boolean", !1, "Enable HUD.")); +var webGLOptions$$inline_753 = GFX$$inline_748.stageOptions.register(new OptionSet$$inline_750("WebGL Options")); +GFX$$inline_748.perspectiveCamera = webGLOptions$$inline_753.register(new Option$$inline_749("", "pc", "boolean", !1, "Use perspective camera.")); +GFX$$inline_748.perspectiveCameraFOV = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcFOV", "number", 60, "Perspective Camera FOV.")); +GFX$$inline_748.perspectiveCameraDistance = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcDistance", "number", 2, "Perspective Camera Distance.")); +GFX$$inline_748.perspectiveCameraAngle = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcAngle", "number", 0, "Perspective Camera Angle.")); +GFX$$inline_748.perspectiveCameraAngleRotate = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcRotate", "boolean", !1, "Rotate Use perspective camera.")); +GFX$$inline_748.perspectiveCameraSpacing = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcSpacing", "number", .01, "Element Spacing.")); +GFX$$inline_748.perspectiveCameraSpacingInflate = webGLOptions$$inline_753.register(new Option$$inline_749("", "pcInflate", "boolean", !1, "Rotate Use perspective camera.")); +GFX$$inline_748.drawTiles = webGLOptions$$inline_753.register(new Option$$inline_749("", "drawTiles", "boolean", !1, "Draw WebGL Tiles")); +GFX$$inline_748.drawSurfaces = webGLOptions$$inline_753.register(new Option$$inline_749("", "drawSurfaces", "boolean", !1, "Draw WebGL Surfaces.")); +GFX$$inline_748.drawSurface = webGLOptions$$inline_753.register(new Option$$inline_749("", "drawSurface", "number", -1, "Draw WebGL Surface #")); +GFX$$inline_748.drawElements = webGLOptions$$inline_753.register(new Option$$inline_749("", "drawElements", "boolean", !0, "Actually call gl.drawElements. This is useful to test if the GPU is the bottleneck.")); +GFX$$inline_748.disableSurfaceUploads = webGLOptions$$inline_753.register(new Option$$inline_749("", "disableSurfaceUploads", "boolean", !1, "Disable surface uploads.")); +GFX$$inline_748.premultipliedAlpha = webGLOptions$$inline_753.register(new Option$$inline_749("", "premultipliedAlpha", "boolean", !1, "Set the premultipliedAlpha flag on getContext().")); +GFX$$inline_748.unpackPremultiplyAlpha = webGLOptions$$inline_753.register(new Option$$inline_749("", "unpackPremultiplyAlpha", "boolean", !0, "Use UNPACK_PREMULTIPLY_ALPHA_WEBGL in pixelStorei.")); +var factorChoices$$inline_754 = {ZERO:0, ONE:1, SRC_COLOR:768, ONE_MINUS_SRC_COLOR:769, DST_COLOR:774, ONE_MINUS_DST_COLOR:775, SRC_ALPHA:770, ONE_MINUS_SRC_ALPHA:771, DST_ALPHA:772, ONE_MINUS_DST_ALPHA:773, SRC_ALPHA_SATURATE:776, CONSTANT_COLOR:32769, ONE_MINUS_CONSTANT_COLOR:32770, CONSTANT_ALPHA:32771, ONE_MINUS_CONSTANT_ALPHA:32772}; +GFX$$inline_748.sourceBlendFactor = webGLOptions$$inline_753.register(new Option$$inline_749("", "sourceBlendFactor", "number", factorChoices$$inline_754.ONE, "", {choices:factorChoices$$inline_754})); +GFX$$inline_748.destinationBlendFactor = webGLOptions$$inline_753.register(new Option$$inline_749("", "destinationBlendFactor", "number", factorChoices$$inline_754.ONE_MINUS_SRC_ALPHA, "", {choices:factorChoices$$inline_754})); +var canvas2DOptions$$inline_755 = GFX$$inline_748.stageOptions.register(new OptionSet$$inline_750("Canvas2D Options")); +GFX$$inline_748.clipDirtyRegions = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "clipDirtyRegions", "boolean", !1, "Clip dirty regions.")); +GFX$$inline_748.clipCanvas = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "clipCanvas", "boolean", !1, "Clip Regions.")); +GFX$$inline_748.cull = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "cull", "boolean", !1, "Enable culling.")); +GFX$$inline_748.snapToDevicePixels = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "snapToDevicePixels", "boolean", !1, "")); +GFX$$inline_748.imageSmoothing = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "imageSmoothing", "boolean", !1, "")); +GFX$$inline_748.masking = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "masking", "boolean", !0, "Composite Mask.")); +GFX$$inline_748.blending = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "blending", "boolean", !0, "")); +GFX$$inline_748.debugLayers = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "debugLayers", "boolean", !1, "")); +GFX$$inline_748.filters = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "filters", "boolean", !1, "")); +GFX$$inline_748.cacheShapes = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "cacheShapes", "boolean", !0, "")); +GFX$$inline_748.cacheShapesMaxSize = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "cacheShapesMaxSize", "number", 256, "", {range:{min:1, max:1024, step:1}})); +GFX$$inline_748.cacheShapesThreshold = canvas2DOptions$$inline_755.register(new Option$$inline_749("", "cacheShapesThreshold", "number", 256, "", {range:{min:1, max:1024, step:1}})); (function(d) { (function(k) { (function(a) { - function p(a, c, d, f) { - var g = 1 - f; - return a * g * g + 2 * c * g * f + d * f * f; + function n(a, e, c, d) { + var f = 1 - d; + return a * f * f + 2 * e * f * d + c * d * d; } - function v(a, c, d, f, g) { - var h = g * g, k = 1 - g, l = k * k; - return a * k * l + 3 * c * g * l + 3 * d * k * h + f * g * h; + function w(a, e, c, d, f) { + var g = f * f, h = 1 - f, k = h * h; + return a * h * k + 3 * e * f * k + 3 * c * h * g + d * f * g; } - var t = d.NumberUtilities.clamp, u = d.NumberUtilities.pow2, l = d.NumberUtilities.epsilonEquals; + var v = d.NumberUtilities.clamp, u = d.NumberUtilities.pow2, l = d.NumberUtilities.epsilonEquals; a.radianToDegrees = function(a) { return 180 * a / Math.PI; }; a.degreesToRadian = function(a) { return a * Math.PI / 180; }; - a.quadraticBezier = p; - a.quadraticBezierExtreme = function(a, c, d) { - var f = (a - c) / (a - 2 * c + d); - return 0 > f ? a : 1 < f ? d : p(a, c, d, f); + a.quadraticBezier = n; + a.quadraticBezierExtreme = function(a, e, c) { + var d = (a - e) / (a - 2 * e + c); + return 0 > d ? a : 1 < d ? c : n(a, e, c, d); }; - a.cubicBezier = v; - a.cubicBezierExtremes = function(a, c, d, f) { - var g = c - a, h; - h = 2 * (d - c); - var k = f - d; - g + k === h && (k *= 1.0001); - var l = 2 * g - h, m = h - 2 * g, m = Math.sqrt(m * m - 4 * g * (g - h + k)); - h = 2 * (g - h + k); - g = (l + m) / h; - l = (l - m) / h; - m = []; - 0 <= g && 1 >= g && m.push(v(a, c, d, f, g)); - 0 <= l && 1 >= l && m.push(v(a, c, d, f, l)); - return m; + a.cubicBezier = w; + a.cubicBezierExtremes = function(a, e, c, d) { + var f = e - a, g; + g = 2 * (c - e); + var h = d - c; + f + h === g && (h *= 1.0001); + var k = 2 * f - g, l = g - 2 * f, l = Math.sqrt(l * l - 4 * f * (f - g + h)); + g = 2 * (f - g + h); + f = (k + l) / g; + k = (k - l) / g; + l = []; + 0 <= f && 1 >= f && l.push(w(a, e, c, d, f)); + 0 <= k && 1 >= k && l.push(w(a, e, c, d, k)); + return l; }; var c = function() { function a(b, c) { @@ -50790,7 +50805,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new a.prototype.inTriangle = function(a, b, c) { var d = a.y * c.x - a.x * c.y + (c.y - a.y) * this.x + (a.x - c.x) * this.y, f = a.x * b.y - a.y * b.x + (a.y - b.y) * this.x + (b.x - a.x) * this.y; if (0 > d != 0 > f) { - return!1; + return !1; } a = -b.y * c.x + a.y * (c.x - b.x) + a.x * (b.y - c.y) + b.x * c.y; 0 > a && (d = -d, f = -f, a = -a); @@ -50808,7 +50823,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new return a; }(); a.Point = c; - var h = function() { + var g = function() { function a(b, c, d) { this.x = b; this.y = c; @@ -50874,7 +50889,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; return a; }(); - a.Point3D = h; + a.Point3D = g; var q = function() { function a(c, d, f, g) { this.setElements(c, d, f, g); @@ -50902,10 +50917,10 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new a.prototype.isContained = function(a) { for (var b = 0;b < a.length;b++) { if (a[b].contains(this)) { - return!0; + return !0; } } - return!1; + return !1; }; a.prototype.isSmallerThan = function(a) { return this.w < a.w && this.h < a.h; @@ -50952,11 +50967,11 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.intersects = function(a) { if (this.isEmpty() || a.isEmpty()) { - return!1; + return !1; } var b = Math.max(this.x, a.x), c = Math.max(this.y, a.y), b = Math.min(this.x + this.w, a.x + a.w) - b; a = Math.min(this.y + this.h, a.y + a.h) - c; - return!(0 >= b || 0 >= a); + return !(0 >= b || 0 >= a); }; a.prototype.intersectsTransformedAABB = function(c, d) { var f = a._temporary; @@ -50966,12 +50981,12 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.intersectsTranslated = function(a, b, c) { if (this.isEmpty() || a.isEmpty()) { - return!1; + return !1; } var d = Math.max(this.x, a.x + b), f = Math.max(this.y, a.y + c); b = Math.min(this.x + this.w, a.x + b + a.w) - d; a = Math.min(this.y + this.h, a.y + c + a.h) - f; - return!(0 >= b || 0 >= a); + return !(0 >= b || 0 >= a); }; a.prototype.area = function() { return this.w * this.h; @@ -51057,7 +51072,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new return a; }(); a.Rectangle = q; - var s = function() { + var r = function() { function a(b) { this.corners = b.map(function(a) { return a.clone(); @@ -51091,14 +51106,14 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new 0 === c ? g = f = d : d < f ? f = d : d > g && (g = d); } if (f > 1 + this.origins[b] || g < this.origins[b]) { - return!1; + return !1; } } - return!0; + return !0; }; return a; }(); - a.OBB = s; + a.OBB = r; (function(a) { a[a.Unknown = 0] = "Unknown"; a[a.Identity = 1] = "Identity"; @@ -51181,7 +51196,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.isEqual = function(a) { if (1 === this._type && 1 === a._type) { - return!0; + return !0; } var b = this._data; a = a._data; @@ -51200,30 +51215,30 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new a._dirtyStack.push(this); }; a.prototype.transform = function(a, b, c, d, f, g) { - var h = this._data, k = h[0], l = h[1], m = h[2], p = h[3], q = h[4], s = h[5]; + var h = this._data, k = h[0], l = h[1], m = h[2], n = h[3], q = h[4], r = h[5]; h[0] = k * a + m * b; - h[1] = l * a + p * b; + h[1] = l * a + n * b; h[2] = k * c + m * d; - h[3] = l * c + p * d; + h[3] = l * c + n * d; h[4] = k * f + m * g + q; - h[5] = l * f + p * g + s; + h[5] = l * f + n * g + r; this._type = 0; return this; }; a.prototype.transformRectangle = function(a, b) { - var c = this._data, d = c[0], f = c[1], g = c[2], h = c[3], k = c[4], c = c[5], l = a.x, m = a.y, p = a.w, q = a.h; + var c = this._data, d = c[0], f = c[1], g = c[2], h = c[3], k = c[4], c = c[5], l = a.x, m = a.y, n = a.w, q = a.h; b[0].x = d * l + g * m + k; b[0].y = f * l + h * m + c; - b[1].x = d * (l + p) + g * m + k; - b[1].y = f * (l + p) + h * m + c; - b[2].x = d * (l + p) + g * (m + q) + k; - b[2].y = f * (l + p) + h * (m + q) + c; + b[1].x = d * (l + n) + g * m + k; + b[1].y = f * (l + n) + h * m + c; + b[2].x = d * (l + n) + g * (m + q) + k; + b[2].y = f * (l + n) + h * (m + q) + c; b[3].x = d * l + g * (m + q) + k; b[3].y = f * l + h * (m + q) + c; }; a.prototype.isTranslationOnly = function() { if (2 === this._type) { - return!0; + return !0; } var a = this._data; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 1 === a[3] || l(a[0], 1) && l(a[1], 0) && l(a[2], 0) && l(a[3], 1) ? (this._type = 2, !0) : !1; @@ -51234,15 +51249,15 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new if (2 === this._type) { a.x += b[4], a.y += b[5]; } else { - var c = b[0], d = b[1], f = b[2], g = b[3], h = b[4], k = b[5], l = a.x, m = a.y, p = a.w, q = a.h, b = c * l + f * m + h, s = d * l + g * m + k, u = c * (l + p) + f * m + h, t = d * (l + p) + g * m + k, v = c * (l + p) + f * (m + q) + h, p = d * (l + p) + g * (m + q) + k, c = c * l + f * (m + q) + h, d = d * l + g * (m + q) + k, g = 0; + var c = b[0], d = b[1], f = b[2], g = b[3], h = b[4], k = b[5], l = a.x, m = a.y, n = a.w, q = a.h, b = c * l + f * m + h, r = d * l + g * m + k, u = c * (l + n) + f * m + h, v = d * (l + n) + g * m + k, w = c * (l + n) + f * (m + q) + h, n = d * (l + n) + g * (m + q) + k, c = c * l + f * (m + q) + h, d = d * l + g * (m + q) + k, g = 0; b > u && (g = b, b = u, u = g); - v > c && (g = v, v = c, c = g); - a.x = b < v ? b : v; + w > c && (g = w, w = c, c = g); + a.x = b < w ? b : w; a.w = (u > c ? u : c) - a.x; - s > t && (g = s, s = t, t = g); - p > d && (g = p, p = d, d = g); - a.y = s < p ? s : p; - a.h = (t > d ? t : d) - a.y; + r > v && (g = r, r = v, v = g); + n > d && (g = n, n = d, d = g); + a.y = r < n ? r : n; + a.h = (v > d ? v : d) - a.y; } } }; @@ -51334,7 +51349,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.isIdentity = function() { if (1 === this._type) { - return!0; + return !0; } var a = this._data; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 1 === a[3] && 0 === a[4] && 0 === a[5]; @@ -51416,7 +51431,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new return 0 < a[3] ? b : -b; }; a.prototype.getScale = function() { - return(this.getScaleX() + this.getScaleY()) / 2; + return (this.getScaleX() + this.getScaleY()) / 2; }; a.prototype.getAbsoluteScaleX = function() { return Math.abs(this.getScaleX()); @@ -51430,7 +51445,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.isScaleOrRotation = function() { var a = this._data; - return.01 > Math.abs(a[0] * a[2] + a[1] * a[3]); + return .01 > Math.abs(a[0] * a[2] + a[1] * a[3]); }; a.prototype.toString = function(a) { void 0 === a && (a = 2); @@ -51509,11 +51524,11 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new a = [a.x, a.y, a.z, 0]; for (var b = this._m, c = [], d = 0;4 > d;d++) { c[d] = 0; - for (var f = 4 * d, g = 0;4 > g;g++) { - c[d] += b[f + g] * a[g]; + for (var f = 4 * d, h = 0;4 > h;h++) { + c[d] += b[f + h] * a[h]; } } - return new h(c[0], c[1], c[2]); + return new g(c[0], c[1], c[2]); }; a.create2DProjection = function(c, d, f) { return new a([2 / c, 0, 0, 0, 0, -2 / d, 0, 0, 0, 0, 2 / f, 0, -1, 1, 0, 1]); @@ -51548,17 +51563,17 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new return new a([c, 0, 0, 0, 0, d, 0, 0, 0, 0, f, 0, 0, 0, 0, 1]); }; a.createMultiply = function(c, d) { - var f = c._m, g = d._m, h = f[0], k = f[1], l = f[2], m = f[3], p = f[4], q = f[5], s = f[6], u = f[7], t = f[8], v = f[9], A = f[10], y = f[11], G = f[12], J = f[13], E = f[14], f = f[15], Q = g[0], S = g[1], K = g[2], P = g[3], R = g[4], W = g[5], ba = g[6], w = g[7], X = g[8], U = g[9], $ = g[10], Y = g[11], L = g[12], Z = g[13], ca = g[14], g = g[15]; - return new a([h * Q + k * R + l * X + m * L, h * S + k * W + l * U + m * Z, h * K + k * ba + l * $ + m * ca, h * P + k * w + l * Y + m * g, p * Q + q * R + s * X + u * L, p * S + q * W + s * U + u * Z, p * K + q * ba + s * $ + u * ca, p * P + q * w + s * Y + u * g, t * Q + v * R + A * X + y * L, t * S + v * W + A * U + y * Z, t * K + v * ba + A * $ + y * ca, t * P + v * w + A * Y + y * g, G * Q + J * R + E * X + f * L, G * S + J * W + E * U + f * Z, G * K + J * ba + E * $ + f * ca, G * - P + J * w + E * Y + f * g]); + var f = c._m, g = d._m, h = f[0], k = f[1], l = f[2], m = f[3], n = f[4], q = f[5], r = f[6], u = f[7], v = f[8], w = f[9], A = f[10], z = f[11], G = f[12], L = f[13], F = f[14], f = f[15], S = g[0], U = g[1], N = g[2], R = g[3], T = g[4], X = g[5], da = g[6], x = g[7], Y = g[8], V = g[9], ba = g[10], Z = g[11], O = g[12], aa = g[13], ea = g[14], g = g[15]; + return new a([h * S + k * T + l * Y + m * O, h * U + k * X + l * V + m * aa, h * N + k * da + l * ba + m * ea, h * R + k * x + l * Z + m * g, n * S + q * T + r * Y + u * O, n * U + q * X + r * V + u * aa, n * N + q * da + r * ba + u * ea, n * R + q * x + r * Z + u * g, v * S + w * T + A * Y + z * O, v * U + w * X + A * V + z * aa, v * N + w * da + A * ba + z * ea, v * R + w * x + A * Z + z * g, G * S + L * T + F * Y + f * O, G * U + L * X + F * V + f * aa, G * N + L * da + F * ba + f * + ea, G * R + L * x + F * Z + f * g]); }; a.createInverse = function(c) { var d = c._m; c = d[0]; - var f = d[1], g = d[2], h = d[3], k = d[4], l = d[5], m = d[6], p = d[7], q = d[8], s = d[9], u = d[10], t = d[11], v = d[12], A = d[13], y = d[14], d = d[15], G = u * d, J = y * t, E = m * d, Q = y * p, S = m * t, K = u * p, P = g * d, R = y * h, W = g * t, ba = u * h, w = g * p, X = m * h, U = q * A, $ = v * s, Y = k * A, L = v * l, Z = k * s, ca = q * l, ga = c * A, ha = v * f, ea = c * s, aa = q * f, da = c * l, O = k * f, ka = G * l + Q * s + S * A - (J * l + E * s + K * A), V = J * - f + P * s + ba * A - (G * f + R * s + W * A), A = E * f + R * l + w * A - (Q * f + P * l + X * A), f = K * f + W * l + X * s - (S * f + ba * l + w * s), l = 1 / (c * ka + k * V + q * A + v * f); - return new a([l * ka, l * V, l * A, l * f, l * (J * k + E * q + K * v - (G * k + Q * q + S * v)), l * (G * c + R * q + W * v - (J * c + P * q + ba * v)), l * (Q * c + P * k + X * v - (E * c + R * k + w * v)), l * (S * c + ba * k + w * q - (K * c + W * k + X * q)), l * (U * p + L * t + Z * d - ($ * p + Y * t + ca * d)), l * ($ * h + ga * t + aa * d - (U * h + ha * t + ea * d)), l * (Y * h + ha * p + da * d - (L * h + ga * p + O * d)), l * (ca * h + ea * p + O * t - (Z * h + aa * p + da * - t)), l * (Y * u + ca * y + $ * m - (Z * y + U * m + L * u)), l * (ea * y + U * g + ha * u - (ga * u + aa * y + $ * g)), l * (ga * m + O * y + L * g - (da * y + Y * g + ha * m)), l * (da * u + Z * g + aa * m - (ea * m + O * u + ca * g))]); + var f = d[1], g = d[2], h = d[3], k = d[4], l = d[5], m = d[6], n = d[7], q = d[8], r = d[9], u = d[10], v = d[11], w = d[12], A = d[13], z = d[14], d = d[15], G = u * d, L = z * v, F = m * d, S = z * n, U = m * v, N = u * n, R = g * d, T = z * h, X = g * v, da = u * h, x = g * n, Y = m * h, V = q * A, ba = w * r, Z = k * A, O = w * l, aa = k * r, ea = q * l, ia = c * A, ja = w * f, ga = c * r, ca = q * f, fa = c * l, Q = k * f, ma = G * l + S * r + U * A - (L * l + F * r + N * A), W = + L * f + R * r + da * A - (G * f + T * r + X * A), A = F * f + T * l + x * A - (S * f + R * l + Y * A), f = N * f + X * l + Y * r - (U * f + da * l + x * r), l = 1 / (c * ma + k * W + q * A + w * f); + return new a([l * ma, l * W, l * A, l * f, l * (L * k + F * q + N * w - (G * k + S * q + U * w)), l * (G * c + T * q + X * w - (L * c + R * q + da * w)), l * (S * c + R * k + Y * w - (F * c + T * k + x * w)), l * (U * c + da * k + x * q - (N * c + X * k + Y * q)), l * (V * n + O * v + aa * d - (ba * n + Z * v + ea * d)), l * (ba * h + ia * v + ca * d - (V * h + ja * v + ga * d)), l * (Z * h + ja * n + fa * d - (O * h + ia * n + Q * d)), l * (ea * h + ga * n + Q * v - (aa * h + ca * n + + fa * v)), l * (Z * u + ea * z + ba * m - (aa * z + V * m + O * u)), l * (ga * z + V * g + ja * u - (ia * u + ca * z + ba * g)), l * (ia * m + Q * z + O * g - (fa * z + Z * g + ja * m)), l * (fa * u + aa * g + ca * m - (ga * m + Q * u + ea * g))]); }; return a; }(); @@ -51670,7 +51685,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }(); a.Cell = c; })(m = a.DirtyRegion || (a.DirtyRegion = {})); - var g = function() { + var h = function() { function a(b, c, d, f, g, h) { this.index = b; this.x = c; @@ -51683,17 +51698,17 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new return this._obb; } this.bounds.getCorners(a.corners); - return this._obb = new s(a.corners); + return this._obb = new r(a.corners); }; a.corners = c.createEmptyPoints(4); return a; }(); - a.Tile = g; + a.Tile = h; var f = function() { - function a(b, c, d, f, h) { + function a(b, c, d, f, g) { this.tileW = d; this.tileH = f; - this.scale = h; + this.scale = g; this.w = b; this.h = c; this.rows = Math.ceil(c / f); @@ -51701,13 +51716,13 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new this.tiles = []; for (c = b = 0;c < this.rows;c++) { for (var k = 0;k < this.columns;k++) { - this.tiles.push(new g(b++, k, c, d, f, h)); + this.tiles.push(new h(b++, k, c, d, f, g)); } } } a.prototype.getTiles = function(a, b) { if (b.emptyArea(a)) { - return[]; + return []; } if (b.infiniteArea(a)) { return this.tiles; @@ -51723,18 +51738,18 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new d.transformRectangle(c, a._points); var g; c = new q(0, 0, this.w, this.h); - f && (g = new s(a._points)); - c.intersect(s.getBounds(a._points)); + f && (g = new r(a._points)); + c.intersect(r.getBounds(a._points)); if (c.isEmpty()) { - return[]; + return []; } var h = c.x / this.tileW | 0; d = c.y / this.tileH | 0; - var k = Math.ceil((c.x + c.w) / this.tileW) | 0, l = Math.ceil((c.y + c.h) / this.tileH) | 0, h = t(h, 0, this.columns), k = t(k, 0, this.columns); - d = t(d, 0, this.rows); - for (var l = t(l, 0, this.rows), m = [];h < k;h++) { - for (var p = d;p < l;p++) { - var u = this.tiles[p * this.columns + h]; + var k = Math.ceil((c.x + c.w) / this.tileW) | 0, l = Math.ceil((c.y + c.h) / this.tileH) | 0, h = v(h, 0, this.columns), k = v(k, 0, this.columns); + d = v(d, 0, this.rows); + for (var l = v(l, 0, this.rows), m = [];h < k;h++) { + for (var n = d;n < l;n++) { + var u = this.tiles[n * this.columns + h]; u.bounds.intersects(c) && (f ? u.getOBB().intersects(g) : 1) && m.push(u); } } @@ -51742,11 +51757,11 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new }; a.prototype.getManyTiles = function(c, d) { function f(a, b, c) { - return(a - b.x) * (c.y - b.y) / (c.x - b.x) + b.y; + return (a - b.x) * (c.y - b.y) / (c.x - b.x) + b.y; } function g(a, b, c, e, d) { if (!(0 > c || c >= b.columns)) { - for (e = t(e, 0, b.rows), d = t(d + 1, 0, b.rows);e < d;e++) { + for (e = v(e, 0, b.rows), d = v(d + 1, 0, b.rows);e < d;e++) { a.push(b.tiles[e * b.columns + c]); } } @@ -51757,33 +51772,33 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new k.push(h[l % 4]); } (k[1].x - k[0].x) * (k[3].y - k[0].y) < (k[1].y - k[0].y) * (k[3].x - k[0].x) && (h = k[1], k[1] = k[3], k[3] = h); - var h = [], p, q, l = Math.floor(k[0].x / this.tileW), m = (l + 1) * this.tileW; + var h = [], n, q, l = Math.floor(k[0].x / this.tileW), m = (l + 1) * this.tileW; if (k[2].x < m) { - p = Math.min(k[0].y, k[1].y, k[2].y, k[3].y); + n = Math.min(k[0].y, k[1].y, k[2].y, k[3].y); q = Math.max(k[0].y, k[1].y, k[2].y, k[3].y); - var s = Math.floor(p / this.tileH), u = Math.floor(q / this.tileH); - g(h, this, l, s, u); + var r = Math.floor(n / this.tileH), u = Math.floor(q / this.tileH); + g(h, this, l, r, u); return h; } - var v = 0, H = 4, A = !1; + var w = 0, H = 4, A = !1; if (k[0].x === k[1].x || k[0].x === k[3].x) { - k[0].x === k[1].x ? (A = !0, v++) : H--, p = f(m, k[v], k[v + 1]), q = f(m, k[H], k[H - 1]), s = Math.floor(k[v].y / this.tileH), u = Math.floor(k[H].y / this.tileH), g(h, this, l, s, u), l++; + k[0].x === k[1].x ? (A = !0, w++) : H--, n = f(m, k[w], k[w + 1]), q = f(m, k[H], k[H - 1]), r = Math.floor(k[w].y / this.tileH), u = Math.floor(k[H].y / this.tileH), g(h, this, l, r, u), l++; } do { - var y, G, J, E; - k[v + 1].x < m ? (y = k[v + 1].y, J = !0) : (y = f(m, k[v], k[v + 1]), J = !1); - k[H - 1].x < m ? (G = k[H - 1].y, E = !0) : (G = f(m, k[H], k[H - 1]), E = !1); - s = Math.floor((k[v].y < k[v + 1].y ? p : y) / this.tileH); + var z, G, L, F; + k[w + 1].x < m ? (z = k[w + 1].y, L = !0) : (z = f(m, k[w], k[w + 1]), L = !1); + k[H - 1].x < m ? (G = k[H - 1].y, F = !0) : (G = f(m, k[H], k[H - 1]), F = !1); + r = Math.floor((k[w].y < k[w + 1].y ? n : z) / this.tileH); u = Math.floor((k[H].y > k[H - 1].y ? q : G) / this.tileH); - g(h, this, l, s, u); - if (J && A) { + g(h, this, l, r, u); + if (L && A) { break; } - J ? (A = !0, v++, p = f(m, k[v], k[v + 1])) : p = y; - E ? (H--, q = f(m, k[H], k[H - 1])) : q = G; + L ? (A = !0, w++, n = f(m, k[w], k[w + 1])) : n = z; + F ? (H--, q = f(m, k[H], k[H - 1])) : q = G; l++; m = (l + 1) * this.tileW; - } while (v < H); + } while (w < H); return h; }; a._points = c.createEmptyPoints(4); @@ -51799,7 +51814,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new } a.prototype._getTilesAtScale = function(a, b, c) { var d = Math.max(b.getAbsoluteScaleX(), b.getAbsoluteScaleY()), g = 0; - 1 !== d && (g = t(Math.round(Math.log(1 / d) / Math.LN2), -5, 3)); + 1 !== d && (g = v(Math.round(Math.log(1 / d) / Math.LN2), -5, 3)); d = u(g); if (this._source.hasFlags(1048576)) { for (;;) { @@ -51810,7 +51825,7 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new g--; } } - this._source.hasFlags(2097152) || (g = t(g, -5, 0)); + this._source.hasFlags(2097152) || (g = v(g, -5, 0)); d = u(g); c = 5 + g; g = this._cacheLevels[c]; @@ -51854,11 +51869,11 @@ GFX$$inline_750.cacheShapesThreshold = canvas2DOptions$$inline_757.register(new this._source.render(a, 0); a.restore(); for (var h = null, l = 0;l < b.length;l++) { - var m = b[l], p = m.bounds.clone(); - p.x -= g.x; - p.y -= g.y; - d.contains(p) || (h || (h = []), h.push(m)); - m.cachedSurfaceRegion = c(m.cachedSurfaceRegion, a, p); + var m = b[l], n = m.bounds.clone(); + n.x -= g.x; + n.y -= g.y; + d.contains(n) || (h || (h = []), h.push(m)); + m.cachedSurfaceRegion = c(m.cachedSurfaceRegion, a, n); } h && (2 <= h.length ? (b = h.slice(0, h.length / 2 | 0), g = h.slice(b.length), this._cacheTiles(a, b, c, d, f - 1), this._cacheTiles(a, g, c, d, f - 1)) : this._cacheTiles(a, h, c, d, f - 1)); }; @@ -51872,24 +51887,24 @@ __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; }; (function(d) { (function(k) { - var a = d.IntegerUtilities.roundToMultipleOfPowerOfTwo, p = k.Geometry.Rectangle; + var a = d.IntegerUtilities.roundToMultipleOfPowerOfTwo, n = k.Geometry.Rectangle; (function(d) { - var t = function(a) { + var v = function(a) { function c() { a.apply(this, arguments); } __extends(c, a); return c; }(k.Geometry.Rectangle); - d.Region = t; + d.Region = v; var u = function() { function a(c, d) { this._root = new l(0, 0, c | 0, d | 0, !1); @@ -51956,7 +51971,7 @@ __extends = this.__extends || function(d, k) { return null; } var d = this._freeList, k = this._index; - return 0 < d.length ? (b = d.pop(), b.w = a, b.h = c, b.allocated = !0, b) : k < this._total ? (d = k / this._columns | 0, b = new h((k - d * this._columns) * b, d * e, a, c), b.index = k, b.allocator = this, b.allocated = !0, this._index++, b) : null; + return 0 < d.length ? (b = d.pop(), b.w = a, b.h = c, b.allocated = !0, b) : k < this._total ? (d = k / this._columns | 0, b = new g((k - d * this._columns) * b, d * e, a, c), b.index = k, b.allocator = this, b.allocated = !0, this._index++, b) : null; }; a.prototype.free = function(a) { a.allocated = !1; @@ -51965,7 +51980,7 @@ __extends = this.__extends || function(d, k) { return a; }(); d.GridAllocator = c; - var h = function(a) { + var g = function(a) { function c(d, b, e, g) { a.call(this, d, b, e, g); this.index = -1; @@ -51973,14 +51988,14 @@ __extends = this.__extends || function(d, k) { __extends(c, a); return c; }(d.Region); - d.GridCell = h; + d.GridCell = g; var q = function() { return function(a, c, d) { this.size = a; this.region = c; this.allocator = d; }; - }(), s = function(a) { + }(), r = function(a) { function c(d, b, e, g, h) { a.call(this, d, b, e, g); this.region = h; @@ -51988,8 +52003,8 @@ __extends = this.__extends || function(d, k) { __extends(c, a); return c; }(d.Region); - d.BucketCell = s; - t = function() { + d.BucketCell = r; + v = function() { function d(a, c) { this._buckets = []; this._w = a | 0; @@ -52003,9 +52018,9 @@ __extends = this.__extends || function(d, k) { if (d > this._w || f > this._h) { return null; } - var e = null, h, k = this._buckets; + var e = null, g, k = this._buckets; do { - for (var l = 0;l < k.length && !(k[l].size >= b && (h = k[l], e = h.allocator.allocate(d, f)));l++) { + for (var l = 0;l < k.length && !(k[l].size >= b && (g = k[l], e = g.allocator.allocate(d, f)));l++) { } if (!e) { var m = this._h - this._filled; @@ -52017,19 +52032,19 @@ __extends = this.__extends || function(d, k) { if (u < l) { return null; } - m = new p(0, this._filled, this._w, u); + m = new n(0, this._filled, this._w, u); this._buckets.push(new q(l, m, new c(m.w, m.h, l, l))); this._filled += u; } } while (!e); - return new s(h.region.x + e.x, h.region.y + e.y, e.w, e.h, e); + return new r(g.region.x + e.x, g.region.y + e.y, e.w, e.h, e); }; d.prototype.free = function(a) { a.region.allocator.free(a.region); }; return d; }(); - d.BucketAllocator = t; + d.BucketAllocator = v; })(k.RegionAllocator || (k.RegionAllocator = {})); (function(a) { var d = function() { @@ -52050,9 +52065,9 @@ __extends = this.__extends || function(d, k) { }; a.prototype.allocate = function(a, c, d) { for (var k = 0;k < this._surfaces.length;k++) { - var p = this._surfaces[k]; - if (p !== d && (p = p.allocate(a, c))) { - return p; + var n = this._surfaces[k]; + if (n !== d && (n = n.allocate(a, c))) { + return n; } } return this._createNewSurface(a, c).allocate(a, c); @@ -52067,7 +52082,7 @@ __extends = this.__extends || function(d, k) { })(Shumway || (Shumway = {})); (function(d) { (function(k) { - var a = k.Geometry.Rectangle, p = k.Geometry.Matrix, v = k.Geometry.DirtyRegion; + var a = k.Geometry.Rectangle, n = k.Geometry.Matrix, w = k.Geometry.DirtyRegion; (function(a) { a[a.Normal = 1] = "Normal"; a[a.Layer = 2] = "Layer"; @@ -52084,7 +52099,7 @@ __extends = this.__extends || function(d, k) { a[a.Overlay = 13] = "Overlay"; a[a.HardLight = 14] = "HardLight"; })(k.BlendMode || (k.BlendMode = {})); - var t = k.BlendMode; + var v = k.BlendMode; (function(a) { a[a.None = 0] = "None"; a[a.BoundsAutoCompute = 2] = "BoundsAutoCompute"; @@ -52135,8 +52150,8 @@ __extends = this.__extends || function(d, k) { }; a.prototype.visitGroup = function(a, b) { this.visitNode(a, b); - for (var c = a.getChildren(), d = 0;d < c.length;d++) { - c[d].visit(this, b); + for (var c = a.getChildren(), e = 0;e < c.length;e++) { + c[e].visit(this, b); } }; a.prototype.visitStage = function(a, b) { @@ -52148,15 +52163,15 @@ __extends = this.__extends || function(d, k) { return a; }(); k.NodeVisitor = c; - var h = function() { + var g = function() { return function() { }; }(); - k.State = h; + k.State = g; var q = function(a) { function b() { a.call(this); - this.matrix = p.createIdentity(); + this.matrix = n.createIdentity(); this.depth = 0; } __extends(b, a); @@ -52184,9 +52199,9 @@ __extends = this.__extends || function(d, k) { }; b._dirtyStack = []; return b; - }(h); + }(g); k.PreRenderState = q; - var s = function(a) { + var r = function(a) { function b() { a.apply(this, arguments); this.isDirty = !0; @@ -52202,9 +52217,9 @@ __extends = this.__extends || function(d, k) { b.prototype.visitGroup = function(a, b) { var c = a.getChildren(); this.visitNode(a, b); - for (var d = 0;d < c.length;d++) { - var e = c[d], f = b.transform(e.getTransform()); - e.visit(this, f); + for (var e = 0;e < c.length;e++) { + var d = c[e], f = b.transform(d.getTransform()); + d.visit(this, f); f.free(); } }; @@ -52215,8 +52230,8 @@ __extends = this.__extends || function(d, k) { }; return b; }(c); - k.PreRenderVisitor = s; - h = function(a) { + k.PreRenderVisitor = r; + g = function(a) { function b(c) { a.call(this); this.writer = c; @@ -52232,8 +52247,8 @@ __extends = this.__extends || function(d, k) { this.visitNode(a, b); var c = a.getChildren(); this.writer.enter(a.toString() + " " + c.length); - for (var d = 0;d < c.length;d++) { - c[d].visit(this, b); + for (var e = 0;e < c.length;e++) { + c[e].visit(this, b); } this.writer.outdent(); }; @@ -52242,7 +52257,7 @@ __extends = this.__extends || function(d, k) { }; return b; }(c); - k.TracingNodeVisitor = h; + k.TracingNodeVisitor = g; var m = function() { function c() { this._clip = -1; @@ -52259,8 +52274,8 @@ __extends = this.__extends || function(d, k) { c.prototype._dispatchEvent = function(a) { if (this._eventListeners) { for (var b = this._eventListeners, c = 0;c < b.length;c++) { - var d = b[c]; - d.type === a && d.listener(this, a); + var e = b[c]; + e.type === a && e.listener(this, a); } } }; @@ -52269,10 +52284,10 @@ __extends = this.__extends || function(d, k) { this._eventListeners.push({type:a, listener:b}); }; c.prototype.removeEventListener = function(a, b) { - for (var c = this._eventListeners, d = 0;d < c.length;d++) { - var e = c[d]; - if (e.type === a && e.listener === b) { - c.splice(d, 1); + for (var c = this._eventListeners, e = 0;e < c.length;e++) { + var d = c[e]; + if (d.type === a && d.listener === b) { + c.splice(e, 1); break; } } @@ -52337,10 +52352,10 @@ __extends = this.__extends || function(d, k) { this._flags |= a; }; c.prototype.hasFlags = function(a) { - return(this._flags & a) === a; + return (this._flags & a) === a; }; c.prototype.hasAnyFlags = function(a) { - return!!(this._flags & a); + return !!(this._flags & a); }; c.prototype.removeFlags = function(a) { this._flags &= ~a; @@ -52362,11 +52377,11 @@ __extends = this.__extends || function(d, k) { c.prototype.isAncestor = function(a) { for (;a;) { if (a === this) { - return!0; + return !0; } a = a._parent; } - return!1; + return !1; }; c._getAncestors = function(a, b) { var d = c._path; @@ -52388,22 +52403,22 @@ __extends = this.__extends || function(d, k) { return this._type === a; }; c.prototype.isTypeOf = function(a) { - return(this._type & a) === a; + return (this._type & a) === a; }; c.prototype.isLeaf = function() { return this.isType(33) || this.isType(3); }; c.prototype.isLinear = function() { if (this.isLeaf()) { - return!0; + return !0; } if (this.isType(5)) { var a = this._children; if (1 === a.length && a[0].isLinear()) { - return!0; + return !0; } } - return!1; + return !1; }; c.prototype.getTransformMatrix = function() { var a; @@ -52453,7 +52468,7 @@ __extends = this.__extends || function(d, k) { return c; }(); k.Node = m; - var g = function(b) { + var h = function(b) { function c() { b.call(this); this._type = 5; @@ -52510,27 +52525,27 @@ __extends = this.__extends || function(d, k) { var c = this._bounds || (this._bounds = a.createEmpty()); if (this.hasFlags(256)) { c.setEmpty(); - for (var d = this._children, e = a.allocate(), f = 0;f < d.length;f++) { - var g = d[f]; - e.set(g.getBounds()); - g.getTransformMatrix().transformRectangleAABB(e); - c.union(e); + for (var e = this._children, d = a.allocate(), f = 0;f < e.length;f++) { + var g = e[f]; + d.set(g.getBounds()); + g.getTransformMatrix().transformRectangleAABB(d); + c.union(d); } - e.free(); + d.free(); this.removeFlags(256); } return b ? c.clone() : c; }; return c; }(m); - k.Group = g; + k.Group = h; var f = function() { function a(b) { this._node = b; - this._matrix = p.createIdentity(); + this._matrix = n.createIdentity(); this._colorMatrix = k.ColorMatrix.createIdentity(); - this._concatenatedMatrix = p.createIdentity(); - this._invertedConcatenatedMatrix = p.createIdentity(); + this._concatenatedMatrix = n.createIdentity(); + this._invertedConcatenatedMatrix = n.createIdentity(); this._concatenatedColorMatrix = k.ColorMatrix.createIdentity(); } a.prototype.setMatrix = function(a) { @@ -52557,10 +52572,10 @@ __extends = this.__extends || function(d, k) { var a; void 0 === a && (a = !1); if (this._node.hasFlags(512)) { - for (var b = this._node._findClosestAncestor(), c = m._getAncestors(this._node, b), d = b ? b.getTransform()._concatenatedMatrix.clone() : p.createIdentity(), e = c.length - 1;0 <= e;e--) { - var b = c[e], f = b.getTransform(); - d.preMultiply(f._matrix); - f._concatenatedMatrix.set(d); + for (var b = this._node._findClosestAncestor(), c = m._getAncestors(this._node, b), e = b ? b.getTransform()._concatenatedMatrix.clone() : n.createIdentity(), d = c.length - 1;0 <= d;d--) { + var b = c[d], f = b.getTransform(); + e.preMultiply(f._matrix); + f._concatenatedMatrix.set(e); b.removeFlags(512); } } @@ -52601,12 +52616,12 @@ __extends = this.__extends || function(d, k) { (this._mask = a) && this._mask.setFlags(4); }, enumerable:!0, configurable:!0}); a.prototype.toString = function() { - return t[this._blendMode]; + return v[this._blendMode]; }; return a; }(); k.Layer = b; - h = function(b) { + g = function(b) { function c(a) { b.call(this); this._source = a; @@ -52627,11 +52642,11 @@ __extends = this.__extends || function(d, k) { this.setFlags(a); }; c.prototype.getChildren = function(a) { - return[this._source]; + return [this._source]; }; return c; }(m); - k.Shape = h; + k.Shape = g; k.RendererOptions = function() { return function() { this.debug = !1; @@ -52673,20 +52688,20 @@ __extends = this.__extends || function(d, k) { }(c); k.Renderer = c; c = function(b) { - function c(d, f, h) { - void 0 === h && (h = !1); + function c(d, f, g) { + void 0 === g && (g = !1); b.call(this); - this._preVisitor = new s; + this._preVisitor = new r; this._flags &= -3; this._type = 13; this._scaleMode = c.DEFAULT_SCALE; this._align = c.DEFAULT_ALIGN; - this._content = new g; + this._content = new h; this._content._flags &= -3; this.addChild(this._content); this.setFlags(16); this.setBounds(new a(0, 0, d, f)); - h ? (this._dirtyRegion = new v(d, f), this._dirtyRegion.addDirtyRectangle(new a(0, 0, d, f))) : this._dirtyRegion = null; + g ? (this._dirtyRegion = new w(d, f), this._dirtyRegion.addDirtyRectangle(new a(0, 0, d, f))) : this._dirtyRegion = null; this._updateContentMatrix(); } __extends(c, b); @@ -52697,7 +52712,7 @@ __extends = this.__extends || function(d, k) { b.prototype.setBounds.call(this, a); this._updateContentMatrix(); this._dispatchEvent(1); - this._dirtyRegion && (this._dirtyRegion = new v(a.w, a.h), this._dirtyRegion.addDirtyRectangle(a)); + this._dirtyRegion && (this._dirtyRegion = new w(a.w, a.h), this._dirtyRegion.addDirtyRectangle(a)); }; Object.defineProperty(c.prototype, "content", {get:function() { return this._content; @@ -52721,7 +52736,7 @@ __extends = this.__extends || function(d, k) { }, enumerable:!0, configurable:!0}); c.prototype._updateContentMatrix = function() { if (this._scaleMode === c.DEFAULT_SCALE && this._align === c.DEFAULT_ALIGN) { - this._content.getTransform().setMatrix(new p(1, 0, 0, 1, 0, 0)); + this._content.getTransform().setMatrix(new n(1, 0, 0, 1, 0, 0)); } else { var a = this.getBounds(), b = this._content.getBounds(), d = a.w / b.w, e = a.h / b.h; switch(this._scaleMode) { @@ -52739,13 +52754,13 @@ __extends = this.__extends || function(d, k) { var f; f = this._align & 4 ? 0 : this._align & 8 ? a.w - b.w * d : (a.w - b.w * d) / 2; a = this._align & 1 ? 0 : this._align & 2 ? a.h - b.h * e : (a.h - b.h * e) / 2; - this._content.getTransform().setMatrix(new p(d, 0, 0, e, f, a)); + this._content.getTransform().setMatrix(new n(d, 0, 0, e, f, a)); } }; c.DEFAULT_SCALE = 4; c.DEFAULT_ALIGN = 5; return c; - }(g); + }(h); k.Stage = c; })(d.GFX || (d.GFX = {})); })(Shumway || (Shumway = {})); @@ -52754,10 +52769,10 @@ __extends = this.__extends || function(d, k) { function a(a, c, d) { return a + (c - a) * d; } - function p(b, c, d) { + function n(b, c, d) { return a(b >> 24 & 255, c >> 24 & 255, d) << 24 | a(b >> 16 & 255, c >> 16 & 255, d) << 16 | a(b >> 8 & 255, c >> 8 & 255, d) << 8 | a(b & 255, c & 255, d); } - var v = k.Geometry.Point, t = k.Geometry.Rectangle, u = k.Geometry.Matrix, l = d.ArrayUtilities.indexOf, c = function(a) { + var w = k.Geometry.Point, v = k.Geometry.Rectangle, u = k.Geometry.Matrix, l = d.ArrayUtilities.indexOf, c = function(a) { function c() { a.call(this); this._parents = []; @@ -52778,7 +52793,7 @@ __extends = this.__extends || function(d, k) { for (var a = this._parents, b = 0;b < a.length;b++) { for (var c = a[b];c;) { if (c.isType(13)) { - return!0; + return !0; } if (!c.hasFlags(65536)) { break; @@ -52786,7 +52801,7 @@ __extends = this.__extends || function(d, k) { c = c._parent; } } - return!1; + return !1; }; c.prototype.addRenderableParent = function(a) { l(this._renderableParents, a); @@ -52841,7 +52856,7 @@ __extends = this.__extends || function(d, k) { return c; }(k.Node); k.Renderable = c; - var h = function(a) { + var g = function(a) { function c(d, e) { a.call(this); this.setBounds(d); @@ -52850,21 +52865,21 @@ __extends = this.__extends || function(d, k) { __extends(c, a); return c; }(c); - k.CustomRenderable = h; + k.CustomRenderable = g; (function(a) { a[a.Idle = 1] = "Idle"; a[a.Playing = 2] = "Playing"; a[a.Paused = 3] = "Paused"; a[a.Ended = 4] = "Ended"; })(k.RenderableVideoState || (k.RenderableVideoState = {})); - h = function(a) { + g = function(a) { function c(d, f) { a.call(this); this._flags = 1048592; this._lastPausedTime = this._lastTimeInvalidated = 0; this._pauseHappening = this._seekHappening = !1; this._isDOMElement = !0; - this.setBounds(new t(0, 0, 1, 1)); + this.setBounds(new v(0, 0, 1, 1)); this._assetId = d; this._eventSerializer = f; var g = document.createElement("video"), h = this._handleVideoEvent.bind(this); @@ -53029,8 +53044,8 @@ __extends = this.__extends || function(d, k) { c._renderableVideos = []; return c; }(c); - k.RenderableVideo = h; - h = function(a) { + k.RenderableVideo = g; + g = function(a) { function c(d, e) { a.call(this); this._flags = 1048592; @@ -53060,7 +53075,7 @@ __extends = this.__extends || function(d, k) { return h; }; c.FromImage = function(a, b, d) { - return new c(a, new t(0, 0, b, d)); + return new c(a, new v(0, 0, b, d)); }; c.prototype.updateFromDataBuffer = function(a, b) { if (k.imageUpdateOption.value) { @@ -53117,7 +53132,7 @@ __extends = this.__extends || function(d, k) { }; return c; }(c); - k.RenderableBitmap = h; + k.RenderableBitmap = g; (function(a) { a[a.Fill = 0] = "Fill"; a[a.Stroke = 1] = "Stroke"; @@ -53133,7 +53148,7 @@ __extends = this.__extends || function(d, k) { }; }(); k.StyledPath = q; - var s = function() { + var r = function() { return function(a, c, d, f, g) { this.thickness = a; this.scaleMode = c; @@ -53142,7 +53157,7 @@ __extends = this.__extends || function(d, k) { this.miterLimit = g; }; }(); - k.StrokeProperties = s; + k.StrokeProperties = r; var m = function(a) { function c(d, e, f, g) { a.call(this); @@ -53164,7 +53179,7 @@ __extends = this.__extends || function(d, k) { this.invalidate(); }; c.prototype.render = function(a, b, c, d, e) { - void 0 === d && (d = !1); + void 0 === d && (d = null); void 0 === e && (e = !1); a.fillStyle = a.strokeStyle = "transparent"; b = this._deserializePaths(this._pathData, a, b); @@ -53173,7 +53188,7 @@ __extends = this.__extends || function(d, k) { var f = b[c]; a.mozImageSmoothingEnabled = a.msImageSmoothingEnabled = a.imageSmoothingEnabled = f.smoothImage; if (0 === f.type) { - d ? a.clip(f.path, "evenodd") : (a.fillStyle = e ? "#000000" : f.style, a.fill(f.path, "evenodd"), a.fillStyle = "transparent"); + d ? d.addPath(f.path, a.currentTransform) : (a.fillStyle = e ? "#000000" : f.style, a.fill(f.path, "evenodd"), a.fillStyle = "transparent"); } else { if (!d && !e) { a.strokeStyle = f.style; @@ -53195,15 +53210,15 @@ __extends = this.__extends || function(d, k) { return this._paths; } f = this._paths = []; - var g = null, h = null, l = 0, m = 0, p, q, u = !1, t = 0, v = 0, H = a.commands, A = a.coordinates, y = a.styles, G = y.position = 0; + var g = null, h = null, l = 0, m = 0, n, q, u = !1, v = 0, w = 0, H = a.commands, A = a.coordinates, z = a.styles, G = z.position = 0; a = a.commandsPosition; - for (var J = 0;J < a;J++) { - switch(H[J]) { + for (var L = 0;L < a;L++) { + switch(H[L]) { case 9: - u && g && (g.lineTo(t, v), h && h.lineTo(t, v)); + u && g && (g.lineTo(v, w), h && h.lineTo(v, w)); u = !0; - l = t = A[G++] / 20; - m = v = A[G++] / 20; + l = v = A[G++] / 20; + m = w = A[G++] / 20; g && g.moveTo(l, m); h && h.moveTo(l, m); break; @@ -53214,54 +53229,54 @@ __extends = this.__extends || function(d, k) { h && h.lineTo(l, m); break; case 11: - p = A[G++] / 20; + n = A[G++] / 20; q = A[G++] / 20; l = A[G++] / 20; m = A[G++] / 20; - g && g.quadraticCurveTo(p, q, l, m); - h && h.quadraticCurveTo(p, q, l, m); + g && g.quadraticCurveTo(n, q, l, m); + h && h.quadraticCurveTo(n, q, l, m); break; case 12: - p = A[G++] / 20; + n = A[G++] / 20; q = A[G++] / 20; - var E = A[G++] / 20, Q = A[G++] / 20, l = A[G++] / 20, m = A[G++] / 20; - g && g.bezierCurveTo(p, q, E, Q, l, m); - h && h.bezierCurveTo(p, q, E, Q, l, m); + var F = A[G++] / 20, S = A[G++] / 20, l = A[G++] / 20, m = A[G++] / 20; + g && g.bezierCurveTo(n, q, F, S, l, m); + h && h.bezierCurveTo(n, q, F, S, l, m); break; case 1: - g = this._createPath(0, d.ColorUtilities.rgbaToCSSStyle(y.readUnsignedInt()), !1, null, l, m); + g = this._createPath(0, d.ColorUtilities.rgbaToCSSStyle(z.readUnsignedInt()), !1, null, l, m); break; case 3: - p = this._readBitmap(y, b); - g = this._createPath(0, p.style, p.smoothImage, null, l, m); + n = this._readBitmap(z, b); + g = this._createPath(0, n.style, n.smoothImage, null, l, m); break; case 2: - g = this._createPath(0, this._readGradient(y, b), !1, null, l, m); + g = this._createPath(0, this._readGradient(z, b), !1, null, l, m); break; case 4: g = null; break; case 5: - h = d.ColorUtilities.rgbaToCSSStyle(y.readUnsignedInt()); - y.position += 1; - p = y.readByte(); - q = c.LINE_CAPS_STYLES[y.readByte()]; - E = c.LINE_JOINTS_STYLES[y.readByte()]; - p = new s(A[G++] / 20, p, q, E, y.readByte()); - h = this._createPath(1, h, !1, p, l, m); + h = d.ColorUtilities.rgbaToCSSStyle(z.readUnsignedInt()); + z.position += 1; + n = z.readByte(); + q = c.LINE_CAPS_STYLES[z.readByte()]; + F = c.LINE_JOINTS_STYLES[z.readByte()]; + n = new r(A[G++] / 20, n, q, F, z.readByte()); + h = this._createPath(1, h, !1, n, l, m); break; case 6: - h = this._createPath(2, this._readGradient(y, b), !1, null, l, m); + h = this._createPath(2, this._readGradient(z, b), !1, null, l, m); break; case 7: - p = this._readBitmap(y, b); - h = this._createPath(2, p.style, p.smoothImage, null, l, m); + n = this._readBitmap(z, b); + h = this._createPath(2, n.style, n.smoothImage, null, l, m); break; case 8: h = null; } } - u && g && (g.lineTo(t, v), h && h.lineTo(t, v)); + u && g && (g.lineTo(v, w), h && h.lineTo(v, w)); this._pathData = null; k.leaveTimeline("RenderableShape.deserializePaths"); return f; @@ -53289,7 +53304,7 @@ __extends = this.__extends || function(d, k) { c.prototype._readBitmap = function(a, b) { var c = a.readUnsignedInt(), d = this._readMatrix(a), e = a.readBoolean() ? "repeat" : "no-repeat", f = a.readBoolean(); (c = this._textures[c]) ? (e = b.createPattern(c.renderSource, e), e.setTransform(d.toSVGMatrix())) : e = null; - return{style:e, smoothImage:f}; + return {style:e, smoothImage:f}; }; c.prototype._renderFallback = function(a) { this.fillStyle || (this.fillStyle = d.ColorStyle.randomStyle()); @@ -53306,7 +53321,7 @@ __extends = this.__extends || function(d, k) { return c; }(c); k.RenderableShape = m; - h = function(b) { + g = function(b) { function c() { b.apply(this, arguments); this._flags = 7340048; @@ -53318,78 +53333,78 @@ __extends = this.__extends || function(d, k) { if (this._morphPaths[e]) { return this._morphPaths[e]; } - var f = this._morphPaths[e] = [], g = null, h = null, l = 0, q = 0, u, t, v = !1, B = 0, H = 0, A = b.commands, y = b.coordinates, G = b.morphCoordinates, J = b.styles, E = b.morphStyles; - J.position = 0; - var Q = E.position = 0; + var f = this._morphPaths[e] = [], g = null, h = null, l = 0, q = 0, u, v, w = !1, K = 0, H = 0, A = b.commands, z = b.coordinates, G = b.morphCoordinates, L = b.styles, F = b.morphStyles; + L.position = 0; + var S = F.position = 0; b = b.commandsPosition; - for (var S = 0;S < b;S++) { - switch(A[S]) { + for (var U = 0;U < b;U++) { + switch(A[U]) { case 9: - v && g && (g.lineTo(B, H), h && h.lineTo(B, H)); - v = !0; - l = B = a(y[Q], G[Q++], e) / 20; - q = H = a(y[Q], G[Q++], e) / 20; + w && g && (g.lineTo(K, H), h && h.lineTo(K, H)); + w = !0; + l = K = a(z[S], G[S++], e) / 20; + q = H = a(z[S], G[S++], e) / 20; g && g.moveTo(l, q); h && h.moveTo(l, q); break; case 10: - l = a(y[Q], G[Q++], e) / 20; - q = a(y[Q], G[Q++], e) / 20; + l = a(z[S], G[S++], e) / 20; + q = a(z[S], G[S++], e) / 20; g && g.lineTo(l, q); h && h.lineTo(l, q); break; case 11: - u = a(y[Q], G[Q++], e) / 20; - t = a(y[Q], G[Q++], e) / 20; - l = a(y[Q], G[Q++], e) / 20; - q = a(y[Q], G[Q++], e) / 20; - g && g.quadraticCurveTo(u, t, l, q); - h && h.quadraticCurveTo(u, t, l, q); + u = a(z[S], G[S++], e) / 20; + v = a(z[S], G[S++], e) / 20; + l = a(z[S], G[S++], e) / 20; + q = a(z[S], G[S++], e) / 20; + g && g.quadraticCurveTo(u, v, l, q); + h && h.quadraticCurveTo(u, v, l, q); break; case 12: - u = a(y[Q], G[Q++], e) / 20; - t = a(y[Q], G[Q++], e) / 20; - var K = a(y[Q], G[Q++], e) / 20, P = a(y[Q], G[Q++], e) / 20, l = a(y[Q], G[Q++], e) / 20, q = a(y[Q], G[Q++], e) / 20; - g && g.bezierCurveTo(u, t, K, P, l, q); - h && h.bezierCurveTo(u, t, K, P, l, q); + u = a(z[S], G[S++], e) / 20; + v = a(z[S], G[S++], e) / 20; + var N = a(z[S], G[S++], e) / 20, R = a(z[S], G[S++], e) / 20, l = a(z[S], G[S++], e) / 20, q = a(z[S], G[S++], e) / 20; + g && g.bezierCurveTo(u, v, N, R, l, q); + h && h.bezierCurveTo(u, v, N, R, l, q); break; case 1: - g = this._createMorphPath(0, e, d.ColorUtilities.rgbaToCSSStyle(p(J.readUnsignedInt(), E.readUnsignedInt(), e)), !1, null, l, q); + g = this._createMorphPath(0, e, d.ColorUtilities.rgbaToCSSStyle(n(L.readUnsignedInt(), F.readUnsignedInt(), e)), !1, null, l, q); break; case 3: - u = this._readMorphBitmap(J, E, e, c); + u = this._readMorphBitmap(L, F, e, c); g = this._createMorphPath(0, e, u.style, u.smoothImage, null, l, q); break; case 2: - u = this._readMorphGradient(J, E, e, c); + u = this._readMorphGradient(L, F, e, c); g = this._createMorphPath(0, e, u, !1, null, l, q); break; case 4: g = null; break; case 5: - u = a(y[Q], G[Q++], e) / 20; - h = d.ColorUtilities.rgbaToCSSStyle(p(J.readUnsignedInt(), E.readUnsignedInt(), e)); - J.position += 1; - t = J.readByte(); - K = m.LINE_CAPS_STYLES[J.readByte()]; - P = m.LINE_JOINTS_STYLES[J.readByte()]; - u = new s(u, t, K, P, J.readByte()); + u = a(z[S], G[S++], e) / 20; + h = d.ColorUtilities.rgbaToCSSStyle(n(L.readUnsignedInt(), F.readUnsignedInt(), e)); + L.position += 1; + v = L.readByte(); + N = m.LINE_CAPS_STYLES[L.readByte()]; + R = m.LINE_JOINTS_STYLES[L.readByte()]; + u = new r(u, v, N, R, L.readByte()); h = this._createMorphPath(1, e, h, !1, u, l, q); break; case 6: - u = this._readMorphGradient(J, E, e, c); + u = this._readMorphGradient(L, F, e, c); h = this._createMorphPath(2, e, u, !1, null, l, q); break; case 7: - u = this._readMorphBitmap(J, E, e, c); + u = this._readMorphBitmap(L, F, e, c); h = this._createMorphPath(2, e, u.style, u.smoothImage, null, l, q); break; case 8: h = null; } } - v && g && (g.lineTo(B, H), h && h.lineTo(B, H)); + w && g && (g.lineTo(K, H), h && h.lineTo(K, H)); k.leaveTimeline("RenderableMorphShape.deserializPaths"); return f; }; @@ -53408,7 +53423,7 @@ __extends = this.__extends || function(d, k) { f.setTransform && f.setTransform(k.toSVGMatrix()); k = b.readUnsignedByte(); for (g = 0;g < k;g++) { - var h = a(b.readUnsignedByte() / 255, c.readUnsignedByte() / 255, e), l = p(b.readUnsignedInt(), c.readUnsignedInt(), e), l = d.ColorUtilities.rgbaToCSSStyle(l); + var h = a(b.readUnsignedByte() / 255, c.readUnsignedByte() / 255, e), l = n(b.readUnsignedInt(), c.readUnsignedInt(), e), l = d.ColorUtilities.rgbaToCSSStyle(l); f.addColorStop(h, l); } b.position += 2; @@ -53421,12 +53436,12 @@ __extends = this.__extends || function(d, k) { a = a.readBoolean(); d = d.createPattern(this._textures[e]._canvas, c); d.setTransform(b.toSVGMatrix()); - return{style:d, smoothImage:a}; + return {style:d, smoothImage:a}; }; return c; }(m); - k.RenderableMorphShape = h; - var g = function() { + k.RenderableMorphShape = g; + var h = function() { function a() { this.align = this.leading = this.descent = this.ascent = this.width = this.y = this.x = 0; this.runs = []; @@ -53449,36 +53464,29 @@ __extends = this.__extends || function(d, k) { h.width = 0; h.runs = []; for (var k = a._getMeasureContext(), l = 0;l < g.length;l++) { - var m = g[l], p = m.text; + var m = g[l], n = m.text; m.text = ""; m.width = 0; k.font = m.font; - for (var q = c, s = p.split(/[\s.-]/), u = 0, t = 0;t < s.length;t++) { - var v = s[t], H = p.substr(u, v.length + 1), A = k.measureText(H).width | 0; + for (var q = c, r = n.split(/[\s.-]/), u = 0, v = 0;v < r.length;v++) { + var w = r[v], H = n.substr(u, w.length + 1), A = k.measureText(H).width | 0; if (A > q) { do { if (m.text && (h.runs.push(m), h.width += m.width, m = new f(m.font, m.fillStyle, "", 0, m.underline), q = new a, q.y = h.y + h.descent + h.leading + h.ascent | 0, q.ascent = h.ascent, q.descent = h.descent, q.leading = h.leading, q.align = h.align, d.push(q), h = q), q = c - A, 0 > q) { - var A = H.length, y, G; - do { - A--; - if (1 > A) { - throw Error("Shall never happen: bad maxWidth?"); - } - y = H.substr(0, A); - G = k.measureText(y).width | 0; - } while (G > c); - m.text = y; - m.width = G; - H = H.substr(A); + for (var z = H.length, G = H;1 < z && !(z--, G = H.substr(0, z), A = k.measureText(G).width | 0, A <= c);) { + } + m.text = G; + m.width = A; + H = H.substr(z); A = k.measureText(H).width | 0; } - } while (0 > q); + } while (H && 0 > q); } else { q -= A; } m.text += H; m.width += A; - u += v.length + 1; + u += w.length + 1; } h.runs.push(m); h.width += m.width; @@ -53487,7 +53495,7 @@ __extends = this.__extends || function(d, k) { }; return a; }(); - k.TextLine = g; + k.TextLine = h; var f = function() { return function(a, c, d, f, g) { void 0 === a && (a = ""); @@ -53503,7 +53511,7 @@ __extends = this.__extends || function(d, k) { }; }(); k.TextRun = f; - h = function(a) { + g = function(a) { function c(d) { a.call(this); this._flags = 1048592; @@ -53542,71 +53550,71 @@ __extends = this.__extends || function(d, k) { c.prototype.reflow = function(a, b) { var c = this._textRunData; if (c) { - var e = this._bounds, f = e.w - 4, h = this._plainText, l = this.lines, m = new g, p = 0, q = 0, s = 0, u = 0, t = 0, v = -1; + var e = this._bounds, f = e.w - 4, g = this._plainText, l = this.lines, m = new h, n = 0, q = 0, r = 0, u = 0, v = 0, w = -1; for (k.enterTimeline("RenderableText.reflow");c.position < c.length;) { - var y = c.readInt(), G = c.readInt(), J = c.readInt(), E = c.readUTF(), Q = c.readInt(), S = c.readInt(), K = c.readInt(); - Q > s && (s = Q); - S > u && (u = S); - K > t && (t = K); - Q = c.readBoolean(); - S = ""; - c.readBoolean() && (S += "italic "); - Q && (S += "bold "); - J = S + J + "px " + E; - E = c.readInt(); - E = d.ColorUtilities.rgbToHex(E); - Q = c.readInt(); - -1 === v && (v = Q); + var z = c.readInt(), G = c.readInt(), L = c.readInt(), F = c.readUTF(), S = c.readInt(), U = c.readInt(), N = c.readInt(); + S > r && (r = S); + U > u && (u = U); + N > v && (v = N); + S = c.readBoolean(); + U = ""; + c.readBoolean() && (U += "italic "); + S && (U += "bold "); + L = U + L + "px " + F; + F = c.readInt(); + F = d.ColorUtilities.rgbToHex(F); + S = c.readInt(); + -1 === w && (w = S); c.readBoolean(); c.readInt(); c.readInt(); c.readInt(); c.readInt(); c.readInt(); - for (var Q = c.readBoolean(), P = "", S = !1;!S;y++) { - S = y >= G - 1; - K = h[y]; - if ("\r" !== K && "\n" !== K && (P += K, y < h.length - 1)) { + for (var S = c.readBoolean(), R = "", U = !1;!U;z++) { + U = z >= G - 1; + N = g[z]; + if ("\r" !== N && "\n" !== N && (R += N, z < g.length - 1)) { continue; } - m.addRun(J, E, P, Q); + m.addRun(L, F, R, S); if (m.runs.length) { - l.length && (p += t); - p += s; - m.y = p | 0; - p += u; - m.ascent = s; + l.length && (n += v); + n += r; + m.y = n | 0; + n += u; + m.ascent = r; m.descent = u; - m.leading = t; - m.align = v; + m.leading = v; + m.align = w; if (b && m.width > f) { - for (m = m.wrap(f), P = 0;P < m.length;P++) { - var R = m[P], p = R.y + R.descent + R.leading; - l.push(R); - R.width > q && (q = R.width); + for (m = m.wrap(f), R = 0;R < m.length;R++) { + var T = m[R], n = T.y + T.descent + T.leading; + l.push(T); + T.width > q && (q = T.width); } } else { l.push(m), m.width > q && (q = m.width); } - m = new g; + m = new h; } else { - p += s + u + t; + n += r + u + v; } - P = ""; - if (S) { - t = u = s = 0; - v = -1; + R = ""; + if (U) { + v = u = r = 0; + w = -1; break; } - "\r" === K && "\n" === h[y + 1] && y++; + "\r" === N && "\n" === g[z + 1] && z++; } - m.addRun(J, E, P, Q); + m.addRun(L, F, R, S); } - c = h[h.length - 1]; + c = g[g.length - 1]; "\r" !== c && "\n" !== c || l.push(m); c = this.textRect; c.w = q; - c.h = p; + c.h = n; if (a) { if (!b) { f = q; @@ -53622,12 +53630,12 @@ __extends = this.__extends || function(d, k) { e.w = f + 4; } e.x = c.x - 2; - e.h = p + 4; + e.h = n + 4; } else { this._textBounds = e; } - for (y = 0;y < l.length;y++) { - if (e = l[y], e.width < f) { + for (z = 0;z < l.length;z++) { + if (e = l[z], e.width < f) { switch(e.align) { case 1: e.x = f - e.width | 0; @@ -53706,28 +53714,28 @@ __extends = this.__extends || function(d, k) { break; } for (var l = g.runs, m = 0;m < l.length;m++) { - var p = l[m]; - a.font = p.font; - a.fillStyle = p.fillStyle; - p.underline && a.fillRect(h, k + g.descent / 2 | 0, p.width, 1); + var n = l[m]; + a.font = n.font; + a.fillStyle = n.fillStyle; + n.underline && a.fillRect(h, k + g.descent / 2 | 0, n.width, 1); a.textAlign = "left"; a.textBaseline = "alphabetic"; - a.fillText(p.text, h, k); - h += p.width; + a.fillText(n.text, h, k); + h += n.width; } } } }; - c.absoluteBoundPoints = [new v(0, 0), new v(0, 0), new v(0, 0), new v(0, 0)]; + c.absoluteBoundPoints = [new w(0, 0), new w(0, 0), new w(0, 0), new w(0, 0)]; return c; }(c); - k.RenderableText = h; + k.RenderableText = g; c = function(a) { function c(d, e) { a.call(this); this._flags = 3145728; this.properties = {}; - this.setBounds(new t(0, 0, d, e)); + this.setBounds(new v(0, 0, d, e)); } __extends(c, a); Object.defineProperty(c.prototype, "text", {get:function() { @@ -53749,62 +53757,62 @@ __extends = this.__extends || function(d, k) { })(Shumway || (Shumway = {})); (function(d) { (function(k) { - var a = d.ColorUtilities.clampByte, p = function() { + var a = d.ColorUtilities.clampByte, n = function() { return function() { }; }(); - k.Filter = p; - var v = function(a) { - function d(k, c, h) { + k.Filter = n; + var w = function(a) { + function d(k, c, g) { a.call(this); this.blurX = k; this.blurY = c; - this.quality = h; + this.quality = g; } __extends(d, a); return d; - }(p); - k.BlurFilter = v; - v = function(a) { - function d(k, c, h, p, s, m, g, f, b, e, r) { + }(n); + k.BlurFilter = w; + w = function(a) { + function d(k, c, g, n, r, m, h, f, b, e, t) { a.call(this); this.alpha = k; this.angle = c; - this.blurX = h; - this.blurY = p; - this.color = s; + this.blurX = g; + this.blurY = n; + this.color = r; this.distance = m; - this.hideObject = g; + this.hideObject = h; this.inner = f; this.knockout = b; this.quality = e; - this.strength = r; + this.strength = t; } __extends(d, a); return d; - }(p); - k.DropshadowFilter = v; - p = function(a) { - function d(k, c, h, p, s, m, g, f) { + }(n); + k.DropshadowFilter = w; + n = function(a) { + function d(k, c, g, n, r, m, h, f) { a.call(this); this.alpha = k; this.blurX = c; - this.blurY = h; - this.color = p; - this.inner = s; + this.blurY = g; + this.color = n; + this.inner = r; this.knockout = m; - this.quality = g; + this.quality = h; this.strength = f; } __extends(d, a); return d; - }(p); - k.GlowFilter = p; + }(n); + k.GlowFilter = n; (function(a) { a[a.Unknown = 0] = "Unknown"; a[a.Identity = 1] = "Identity"; })(k.ColorMatrixType || (k.ColorMatrixType = {})); - p = function() { + n = function() { function d(a) { this._data = new Float32Array(a); this._type = 0; @@ -53829,7 +53837,7 @@ __extends = this.__extends || function(d, k) { }; d.prototype.isIdentity = function() { if (this._type & 1) { - return!0; + return !0; } var a = this._data; return 1 == a[0] && 0 == a[1] && 0 == a[2] && 0 == a[3] && 0 == a[4] && 1 == a[5] && 0 == a[6] && 0 == a[7] && 0 == a[8] && 0 == a[9] && 1 == a[10] && 0 == a[11] && 0 == a[12] && 0 == a[13] && 0 == a[14] && 1 == a[15] && 0 == a[16] && 0 == a[17] && 0 == a[18] && 0 == a[19]; @@ -53839,51 +53847,51 @@ __extends = this.__extends || function(d, k) { a._type = 1; return a; }; - d.prototype.setMultipliersAndOffsets = function(a, d, c, h, k, p, m, g) { + d.prototype.setMultipliersAndOffsets = function(a, d, c, g, k, n, m, h) { for (var f = this._data, b = 0;b < f.length;b++) { f[b] = 0; } f[0] = a; f[5] = d; f[10] = c; - f[15] = h; + f[15] = g; f[16] = k / 255; - f[17] = p / 255; + f[17] = n / 255; f[18] = m / 255; - f[19] = g / 255; + f[19] = h / 255; this._type = 0; }; d.prototype.transformRGBA = function(d) { - var k = d >> 24 & 255, c = d >> 16 & 255, h = d >> 8 & 255, p = d & 255, s = this._data; - d = a(k * s[0] + c * s[1] + h * s[2] + p * s[3] + 255 * s[16]); - var m = a(k * s[4] + c * s[5] + h * s[6] + p * s[7] + 255 * s[17]), g = a(k * s[8] + c * s[9] + h * s[10] + p * s[11] + 255 * s[18]), k = a(k * s[12] + c * s[13] + h * s[14] + p * s[15] + 255 * s[19]); - return d << 24 | m << 16 | g << 8 | k; + var k = d >> 24 & 255, c = d >> 16 & 255, g = d >> 8 & 255, n = d & 255, r = this._data; + d = a(k * r[0] + c * r[1] + g * r[2] + n * r[3] + 255 * r[16]); + var m = a(k * r[4] + c * r[5] + g * r[6] + n * r[7] + 255 * r[17]), h = a(k * r[8] + c * r[9] + g * r[10] + n * r[11] + 255 * r[18]), k = a(k * r[12] + c * r[13] + g * r[14] + n * r[15] + 255 * r[19]); + return d << 24 | m << 16 | h << 8 | k; }; d.prototype.multiply = function(a) { if (!(a._type & 1)) { var d = this._data, c = a._data; a = d[0]; - var h = d[1], k = d[2], p = d[3], m = d[4], g = d[5], f = d[6], b = d[7], e = d[8], r = d[9], n = d[10], t = d[11], v = d[12], z = d[13], D = d[14], M = d[15], F = d[16], T = d[17], N = d[18], C = d[19], B = c[0], H = c[1], A = c[2], y = c[3], G = c[4], J = c[5], E = c[6], Q = c[7], S = c[8], K = c[9], P = c[10], R = c[11], W = c[12], ba = c[13], w = c[14], X = c[15], U = c[16], $ = c[17], Y = c[18], c = c[19]; - d[0] = a * B + m * H + e * A + v * y; - d[1] = h * B + g * H + r * A + z * y; - d[2] = k * B + f * H + n * A + D * y; - d[3] = p * B + b * H + t * A + M * y; - d[4] = a * G + m * J + e * E + v * Q; - d[5] = h * G + g * J + r * E + z * Q; - d[6] = k * G + f * J + n * E + D * Q; - d[7] = p * G + b * J + t * E + M * Q; - d[8] = a * S + m * K + e * P + v * R; - d[9] = h * S + g * K + r * P + z * R; - d[10] = k * S + f * K + n * P + D * R; - d[11] = p * S + b * K + t * P + M * R; - d[12] = a * W + m * ba + e * w + v * X; - d[13] = h * W + g * ba + r * w + z * X; - d[14] = k * W + f * ba + n * w + D * X; - d[15] = p * W + b * ba + t * w + M * X; - d[16] = a * U + m * $ + e * Y + v * c + F; - d[17] = h * U + g * $ + r * Y + z * c + T; - d[18] = k * U + f * $ + n * Y + D * c + N; - d[19] = p * U + b * $ + t * Y + M * c + C; + var g = d[1], k = d[2], n = d[3], m = d[4], h = d[5], f = d[6], b = d[7], e = d[8], t = d[9], p = d[10], v = d[11], w = d[12], B = d[13], D = d[14], M = d[15], E = d[16], J = d[17], P = d[18], y = d[19], K = c[0], H = c[1], A = c[2], z = c[3], G = c[4], L = c[5], F = c[6], S = c[7], U = c[8], N = c[9], R = c[10], T = c[11], X = c[12], da = c[13], x = c[14], Y = c[15], V = c[16], ba = c[17], Z = c[18], c = c[19]; + d[0] = a * K + m * H + e * A + w * z; + d[1] = g * K + h * H + t * A + B * z; + d[2] = k * K + f * H + p * A + D * z; + d[3] = n * K + b * H + v * A + M * z; + d[4] = a * G + m * L + e * F + w * S; + d[5] = g * G + h * L + t * F + B * S; + d[6] = k * G + f * L + p * F + D * S; + d[7] = n * G + b * L + v * F + M * S; + d[8] = a * U + m * N + e * R + w * T; + d[9] = g * U + h * N + t * R + B * T; + d[10] = k * U + f * N + p * R + D * T; + d[11] = n * U + b * N + v * R + M * T; + d[12] = a * X + m * da + e * x + w * Y; + d[13] = g * X + h * da + t * x + B * Y; + d[14] = k * X + f * da + p * x + D * Y; + d[15] = n * X + b * da + v * x + M * Y; + d[16] = a * V + m * ba + e * Z + w * c + E; + d[17] = g * V + h * ba + t * Z + B * c + J; + d[18] = k * V + f * ba + p * Z + D * c + P; + d[19] = n * V + b * ba + v * Z + M * c + y; this._type = 0; } }; @@ -53896,27 +53904,27 @@ __extends = this.__extends || function(d, k) { }; d.prototype.equals = function(a) { if (!a) { - return!1; + return !1; } if (this._type === a._type && 1 === this._type) { - return!0; + return !0; } var d = this._data; a = a._data; for (var c = 0;20 > c;c++) { if (.001 < Math.abs(d[c] - a[c])) { - return!1; + return !1; } } - return!0; + return !0; }; d.prototype.toSVGFilterMatrix = function() { var a = this._data; - return[a[0], a[4], a[8], a[12], a[16], a[1], a[5], a[9], a[13], a[17], a[2], a[6], a[10], a[14], a[18], a[3], a[7], a[11], a[15], a[19]].join(" "); + return [a[0], a[4], a[8], a[12], a[16], a[1], a[5], a[9], a[13], a[17], a[2], a[6], a[10], a[14], a[18], a[3], a[7], a[11], a[15], a[19]].join(" "); }; return d; }(); - k.ColorMatrix = p; + k.ColorMatrix = n; })(d.GFX || (d.GFX = {})); })(Shumway || (Shumway = {})); (function(d) { @@ -53932,21 +53940,21 @@ __extends = this.__extends || function(d, k) { }; })(d.Player || (d.Player = {})); })(Shumway || (Shumway = {})); -var Shumway$$inline_634 = Shumway || (Shumway = {}); -Shumway$$inline_634.playerOptions = Shumway$$inline_634.Settings.shumwayOptions.register(new Shumway$$inline_634.Options.OptionSet("Player Options")); -Shumway$$inline_634.frameEnabledOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("enableFrames", "Enable Frame Execution", "boolean", !0, "Enable frame execution.")); -Shumway$$inline_634.timerEnabledOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("enableTimers", "Enable Timers", "boolean", !0, "Enable timer events.")); -Shumway$$inline_634.pumpEnabledOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("enablePump", "Enable Pump", "boolean", !0, "Enable display tree serialization.")); -Shumway$$inline_634.pumpRateOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("pumpRate", "Pump Rate", "number", 60, "Number of times / second that the display list is synchronized.", {range:{min:1, max:120, step:1}})); -Shumway$$inline_634.frameRateOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("frameRate", "Frame Rate", "number", -1, "Override a movie's frame rate, set to -1 to use the movies default frame rate.", {range:{min:-1, max:120, step:1}})); -Shumway$$inline_634.tracePlayerOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("tp", "Trace Player", "number", 0, "Trace player every n frames.", {range:{min:0, max:512, step:1}})); -Shumway$$inline_634.traceMouseEventOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("tme", "Trace Mouse Events", "boolean", !1, "Trace mouse events.")); -Shumway$$inline_634.frameRateMultiplierOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Frame Rate Multiplier", "number", 1, "Play frames at a faster rate.", {range:{min:1, max:16, step:1}})); -Shumway$$inline_634.dontSkipFramesOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Disables Frame Skipping", "boolean", !1, "Play all frames, e.g. no skipping frame during throttle.")); -Shumway$$inline_634.playAllSymbolsOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Play Symbols", "boolean", !1, "Plays all SWF symbols automatically.")); -Shumway$$inline_634.playSymbolOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Play Symbol Number", "number", 0, "Select symbol by Id.", {range:{min:0, max:2E4, step:1}})); -Shumway$$inline_634.playSymbolFrameDurationOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Play Symbol Duration", "number", 0, "How many frames to play, 0 for all frames of the movie clip.", {range:{min:0, max:128, step:1}})); -Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.register(new Shumway$$inline_634.Options.Option("", "Play Symbol Count", "number", -1, "Select symbol count.", {range:{min:0, max:2E4, step:1}})); +var Shumway$$inline_621 = Shumway || (Shumway = {}); +Shumway$$inline_621.playerOptions = Shumway$$inline_621.Settings.shumwayOptions.register(new Shumway$$inline_621.Options.OptionSet("Player Options")); +Shumway$$inline_621.frameEnabledOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("enableFrames", "Enable Frame Execution", "boolean", !0, "Enable frame execution.")); +Shumway$$inline_621.timerEnabledOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("enableTimers", "Enable Timers", "boolean", !0, "Enable timer events.")); +Shumway$$inline_621.pumpEnabledOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("enablePump", "Enable Pump", "boolean", !0, "Enable display tree serialization.")); +Shumway$$inline_621.pumpRateOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("pumpRate", "Pump Rate", "number", 60, "Number of times / second that the display list is synchronized.", {range:{min:1, max:120, step:1}})); +Shumway$$inline_621.frameRateOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("frameRate", "Frame Rate", "number", -1, "Override a movie's frame rate, set to -1 to use the movies default frame rate.", {range:{min:-1, max:120, step:1}})); +Shumway$$inline_621.tracePlayerOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("tp", "Trace Player", "number", 0, "Trace player every n frames.", {range:{min:0, max:512, step:1}})); +Shumway$$inline_621.traceMouseEventOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("tme", "Trace Mouse Events", "boolean", !1, "Trace mouse events.")); +Shumway$$inline_621.frameRateMultiplierOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Frame Rate Multiplier", "number", 1, "Play frames at a faster rate.", {range:{min:1, max:16, step:1}})); +Shumway$$inline_621.dontSkipFramesOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Disables Frame Skipping", "boolean", !1, "Play all frames, e.g. no skipping frame during throttle.")); +Shumway$$inline_621.playAllSymbolsOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Play Symbols", "boolean", !1, "Plays all SWF symbols automatically.")); +Shumway$$inline_621.playSymbolOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Play Symbol Number", "number", 0, "Select symbol by Id.", {range:{min:0, max:2E4, step:1}})); +Shumway$$inline_621.playSymbolFrameDurationOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Play Symbol Duration", "number", 0, "How many frames to play, 0 for all frames of the movie clip.", {range:{min:0, max:128, step:1}})); +Shumway$$inline_621.playSymbolCountOption = Shumway$$inline_621.playerOptions.register(new Shumway$$inline_621.Options.Option("", "Play Symbol Count", "number", -1, "Select symbol count.", {range:{min:0, max:2E4, step:1}})); (function(d) { var k = function() { function a() { @@ -53960,7 +53968,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re } Object.defineProperty(a.prototype, "shallSkipDraw", {get:function() { if (this._drawsSkipped >= a.MAX_DRAWS_TO_SKIP) { - return!1; + return !1; } var d = this._drawStats.length < a.STATS_TO_REMEMBER ? 0 : this._drawStatsSum / this._drawStats.length; return performance.now() + d + a.INTERVAL_PADDING_MS > this._expectedNextFrameAt; @@ -53972,8 +53980,8 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re return this._onTime; }, enumerable:!0, configurable:!0}); a.prototype.startFrame = function(d) { - var k = d = 1E3 / d, t = this._onTimeDelta + this._delta; - 0 !== t && (0 > t ? k *= a.SPEED_ADJUST_RATE : 0 < t && (k /= a.SPEED_ADJUST_RATE), this._onTimeDelta += d - k); + var k = d = 1E3 / d, v = this._onTimeDelta + this._delta; + 0 !== v && (0 > v ? k *= a.SPEED_ADJUST_RATE : 0 < v && (k /= a.SPEED_ADJUST_RATE), this._onTimeDelta += d - k); this._expectedNextFrameAt += k; this._onTime = !0; }; @@ -54015,7 +54023,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re (function(d) { (function(k) { (function(a) { - var k = d.AVM2.AS.flash, v = k.display, t = k.display.BitmapData, u = k.display.DisplayObjectFlags, l = k.display.BlendMode, c = k.display.PixelSnapping, h = k.geom.Point, q = d.Bounds, s = k.ui.MouseCursor, m = d.Player.writer, g = function() { + var k = d.AVM2.AS.flash, w = k.display, v = k.display.BitmapData, u = k.display.DisplayObjectFlags, l = k.display.BlendMode, c = k.display.PixelSnapping, g = k.geom.Point, q = d.Bounds, r = k.ui.MouseCursor, m = d.Player.writer, h = function() { function a() { this.phase = 0; this.roots = null; @@ -54059,11 +54067,11 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re this.output.writeInt(k.display.StageDisplayState.toNumber(a.displayState)); var d = k.ui.Mouse.cursor; if (c) { - if (this.output.writeInt(c._id), d === s.AUTO) { + if (this.output.writeInt(c._id), d === r.AUTO) { var f = c; do { if (k.display.SimpleButton.isType(f) || k.display.Sprite.isType(f) && f.buttonMode && c.useHandCursor) { - d = s.BUTTON; + d = r.BUTTON; break; } f = f._parent; @@ -54072,7 +54080,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re } else { this.output.writeInt(-1); } - this.output.writeInt(s.toNumber(d)); + this.output.writeInt(r.toNumber(d)); }; a.prototype.writeGraphics = function(a) { if (a._isDirty) { @@ -54148,35 +54156,35 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re m && m.writeLn("Sending UpdateFrame: " + a.debugName(!0)); var d = !1, f = a._hasFlags(1048576), g = a._hasFlags(67108864), h = a._hasFlags(1073741824), q = null; k.media.Video.isType(a) && (q = a); - var s = !1; - 1 === this.phase && (s = a._hasAnyFlags(65011712), d = a._hasFlags(134217728)); - var t = null; - v.Bitmap.isType(a) && (t = a); - var M = a._hasFlags(268435456), F; - F = 0 | (f ? 1 : 0) | (g ? 8 : 0); - F |= d ? 64 : 0; - F |= M ? 128 : 0; - F |= h ? 32 : 0; - F |= s ? 4 : 0; - this.output.writeInt(F); + var r = !1; + 1 === this.phase && (r = a._hasAnyFlags(65011712), d = a._hasFlags(134217728)); + var v = null; + w.Bitmap.isType(a) && (v = a); + var M = a._hasFlags(268435456), E; + E = 0 | (f ? 1 : 0) | (g ? 8 : 0); + E |= d ? 64 : 0; + E |= M ? 128 : 0; + E |= h ? 32 : 0; + E |= r ? 4 : 0; + this.output.writeInt(E); f && this._writeMatrix(a._getMatrix()); g && this._writeColorTransform(a._colorTransform); d && this.output.writeInt(a.mask ? a.mask._id : -1); M && this.writeClippedObjectsCount(a); - h && (this.output.writeInt(a._ratio), this.output.writeInt(l.toNumber(a._blendMode)), this._writeFilters(a.filters), this.output.writeBoolean(a._hasFlags(1)), this.output.writeBoolean(a.cacheAsBitmap), t ? (this.output.writeInt(c.toNumber(t.pixelSnapping)), this.output.writeInt(t.smoothing ? 1 : 0)) : (this.output.writeInt(c.toNumber(c.AUTO)), this.output.writeInt(1))); + h && (this.output.writeInt(a._ratio), this.output.writeInt(l.toNumber(a._blendMode)), this._writeFilters(a.filters), this.output.writeBoolean(a._hasFlags(1)), this.output.writeBoolean(a.cacheAsBitmap), v ? (this.output.writeInt(c.toNumber(v.pixelSnapping)), this.output.writeInt(v.smoothing ? 1 : 0)) : (this.output.writeInt(c.toNumber(c.AUTO)), this.output.writeInt(1))); d = a._getGraphics(); f = a._getTextContent(); - if (s) { + if (r) { m && m.enter("Children: {"); - if (t) { - t.bitmapData ? (this.output.writeInt(1), this.output.writeInt(134217728 | t.bitmapData._id)) : this.output.writeInt(0); + if (v) { + v.bitmapData ? (this.output.writeInt(1), this.output.writeInt(134217728 | v.bitmapData._id)) : this.output.writeInt(0); } else { if (q) { q._netStream ? (this.output.writeInt(1), this.output.writeInt(134217728 | q._netStream._id)) : this.output.writeInt(0); } else { - if (s = d || f ? 1 : 0, (q = a._children) && (s += q.length), this.output.writeInt(s), d ? (m && m.writeLn("Reference Graphics: " + d._id), this.output.writeInt(134217728 | d._id)) : f && (m && m.writeLn("Reference TextContent: " + f._id), this.output.writeInt(134217728 | f._id)), q) { - for (s = 0;s < q.length;s++) { - m && m.writeLn("Reference DisplayObject: " + q[s].debugName()), this.output.writeInt(q[s]._id), 0 <= q[s]._clipDepth && q[s]._setFlags(268435456); + if (r = d || f ? 1 : 0, (q = a._children) && (r += q.length), this.output.writeInt(r), d ? (m && m.writeLn("Reference Graphics: " + d._id), this.output.writeInt(134217728 | d._id)) : f && (m && m.writeLn("Reference TextContent: " + f._id), this.output.writeInt(134217728 | f._id)), q) { + for (r = 0;r < q.length;r++) { + m && m.writeLn("Reference DisplayObject: " + q[r].debugName()), this.output.writeInt(q[r]._id), 0 <= q[r]._clipDepth && q[r]._setFlags(268435456); } } } @@ -54187,7 +54195,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }; a.prototype.writeDirtyAssets = function(a) { var c = a._getGraphics(); - c ? this.writeGraphics(c) : (c = a._getTextContent()) ? this.writeTextContent(c) : (c = null, v.Bitmap.isType(a) ? (c = a, c.bitmapData && this.writeBitmapData(c.bitmapData)) : (c = null, k.media.Video.isType(a) && (c = a, c._netStream && this.writeNetStream(c._netStream, c._getContentBounds())))); + c ? this.writeGraphics(c) : (c = a._getTextContent()) ? this.writeTextContent(c) : (c = null, w.Bitmap.isType(a) ? (c = a, c.bitmapData && this.writeBitmapData(c.bitmapData)) : (c = null, k.media.Video.isType(a) && (c = a, c._netStream && this.writeNetStream(c._netStream, c._getContentBounds())))); }; a.prototype.writeDrawToBitmap = function(a, c, d, f, g, h, k) { void 0 === d && (d = null); @@ -54197,7 +54205,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re void 0 === k && (k = !1); this.output.writeInt(200); this.output.writeInt(a._id); - t.isType(c) ? this.output.writeInt(134217728 | c._id) : this.output.writeInt(c._id); + v.isType(c) ? this.output.writeInt(134217728 | c._id) : this.output.writeInt(c._id); a = 0 | (d ? 1 : 0) | (f ? 8 : 0); a |= h ? 16 : 0; this.output.writeInt(a); @@ -54240,8 +54248,8 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }; return a; }(); - a.PlayerChannelSerializer = g; - g = function() { + a.PlayerChannelSerializer = h; + h = function() { function a() { } a.prototype.read = function() { @@ -54255,25 +54263,25 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re } }; a.prototype._readFocusEvent = function() { - return{tag:302, type:this.input.readInt()}; + return {tag:302, type:this.input.readInt()}; }; a.prototype._readMouseEvent = function() { - var a = this.input, c = a.readInt(), c = d.Remoting.MouseEventNames[c], f = a.readFloat(), g = a.readFloat(), k = a.readInt(), a = a.readInt(); - return{tag:300, type:c, point:new h(f, g), ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4), buttons:k}; + var a = this.input, c = a.readInt(), c = d.Remoting.MouseEventNames[c], f = a.readFloat(), h = a.readFloat(), k = a.readInt(), a = a.readInt(); + return {tag:300, type:c, point:new g(f, h), ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4), buttons:k}; }; a.prototype._readKeyboardEvent = function() { var a = this.input, c = a.readInt(), c = d.Remoting.KeyboardEventNames[c], f = a.readInt(), g = a.readInt(), h = a.readInt(), a = a.readInt(); - return{tag:301, type:c, keyCode:f, charCode:g, location:h, ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4)}; + return {tag:301, type:c, keyCode:f, charCode:g, location:h, ctrlKey:!!(a & 1), altKey:!!(a & 2), shiftKey:!!(a & 4)}; }; return a; }(); - a.PlayerChannelDeserializer = g; + a.PlayerChannelDeserializer = h; })(k.Player || (k.Player = {})); })(d.Remoting || (d.Remoting = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { - var a = d.Debug.somewhatImplemented, p = d.AVM2.AS.flash, v = d.ArrayUtilities.DataBuffer, t = d.AVM2.Runtime.AVM2, u = p.events.Event, l = p.display.DisplayObject, c = p.events.EventDispatcher, h = p.display.Loader, q = p.ui.MouseEventDispatcher, s = p.ui.KeyboardEventDispatcher, m = function() { + var a = d.Debug.somewhatImplemented, n = d.AVM2.AS.flash, w = d.ArrayUtilities.DataBuffer, v = d.AVM2.Runtime.AVM2, u = n.events.Event, l = n.display.DisplayObject, c = n.events.EventDispatcher, g = n.display.Loader, q = n.ui.MouseEventDispatcher, r = n.ui.KeyboardEventDispatcher, m = function() { function a() { this._observers = []; } @@ -54340,11 +54348,11 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re return a; }(); k.GFXServiceBase = m; - var g = function() { + var h = function() { function a(b) { this._videoEventListeners = []; this._player = b; - this._keyboardEventDispatcher = new s; + this._keyboardEventDispatcher = new r; this._mouseEventDispatcher = new q; this._writer = new d.IndentingWriter; } @@ -54393,18 +54401,18 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re this._crossDomainSWFLoadingWhitelist = []; this._writer = new d.IndentingWriter; this._gfxService = a; - this._gfxServiceObserver = new g(this); + this._gfxServiceObserver = new h(this); this._gfxService.addObserver(this._gfxServiceObserver); - t.instance.globals["Shumway.Player.Utils"] = this; + v.instance.globals["Shumway.Player.Utils"] = this; } Object.defineProperty(c.prototype, "stage", {get:function() { return this._stage; }, enumerable:!0, configurable:!0}); c.prototype._shouldThrottleDownRendering = function() { - return!this._isPageVisible; + return !this._isPageVisible; }; c.prototype._shouldThrottleDownFrameExecution = function() { - return!this._isPageVisible; + return !this._isPageVisible; }; Object.defineProperty(c.prototype, "pageUrl", {get:function() { return this._pageUrl; @@ -54421,8 +54429,8 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }, enumerable:!0, configurable:!0}); c.prototype.load = function(a, c) { this._swfUrl = this._loaderUrl = a; - this._stage = new p.display.Stage; - var f = this._loaderInfo = (this._loader = p.display.Loader.getRootLoader()).contentLoaderInfo; + this._stage = new n.display.Stage; + var f = this._loaderInfo = (this._loader = n.display.Loader.getRootLoader()).contentLoaderInfo; d.playAllSymbolsOption.value ? (this._playAllSymbols(), f._allowCodeExecution = !1) : this._enterRootLoadingLoop(); this.addToSWFLoadingWhitelist(d.FileLoadingService.instance.resolveUrl(a), !1); f = this.createLoaderContext(); @@ -54431,11 +54439,11 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re g.symbolClass.instanceConstructorNoInitialize.call(h); this._loader.loadBytes(h, f); } else { - this._loader.load(new p.net.URLRequest(a), f); + this._loader.load(new n.net.URLRequest(a), f); } }; c.prototype.createLoaderContext = function() { - var a = new p.system.LoaderContext; + var a = new n.system.LoaderContext; if (this.movieParams) { var c = {}, d; for (d in this.movieParams) { @@ -54450,10 +54458,10 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }; c.prototype.syncDisplayObject = function(a, c) { void 0 === c && (c = !0); - var f = new v, g = [], h = new d.Remoting.Player.PlayerChannelSerializer; + var f = new w, g = [], h = new d.Remoting.Player.PlayerChannelSerializer; h.output = f; h.outputAssets = g; - p.display.Stage.isType(a) && h.writeStage(a, this._currentMouseTarget); + n.display.Stage.isType(a) && h.writeStage(a, this._currentMouseTarget); h.begin(a); h.remoteObjects(); h.remoteReferences(); @@ -54465,7 +54473,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re return l; }; c.prototype.requestBitmapData = function(a) { - var c = new v, f = [], g = new d.Remoting.Player.PlayerChannelSerializer; + var c = new w, f = [], g = new d.Remoting.Player.PlayerChannelSerializer; g.output = c; g.outputAssets = f; g.writeRequestBitmapData(a); @@ -54478,15 +54486,15 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re void 0 === h && (h = null); void 0 === l && (l = null); void 0 === m && (m = !1); - var q = new v, s = [], t = new d.Remoting.Player.PlayerChannelSerializer; - t.output = q; - t.outputAssets = s; - t.writeBitmapData(a); - p.display.BitmapData.isType(c) ? t.writeBitmapData(c) : (t.begin(c), t.remoteObjects(), t.remoteReferences()); - t.writeDrawToBitmap(a, c, f, g, h, l, m); + var q = new w, r = [], u = new d.Remoting.Player.PlayerChannelSerializer; + u.output = q; + u.outputAssets = r; + u.writeBitmapData(a); + n.display.BitmapData.isType(c) ? u.writeBitmapData(c) : (u.begin(c), u.remoteObjects(), u.remoteReferences()); + u.writeDrawToBitmap(a, c, f, g, h, l, m); q.writeInt(0); k.enterTimeline("sendUpdates"); - this._gfxService.updateAndGet(q, s); + this._gfxService.updateAndGet(q, r); k.leaveTimeline("sendUpdates"); }; c.prototype.registerEventListener = function(a, c) { @@ -54533,7 +54541,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re var h = c._stage, k = void 0 !== c.defaultStageColor ? c.defaultStageColor : g._file.backgroundColor; h._loaderInfo = g; h.align = c.stageAlign || ""; - !c.stageScale || 0 > p.display.StageScaleMode.toNumber(c.stageScale) ? h.scaleMode = p.display.StageScaleMode.SHOW_ALL : h.scaleMode = c.stageScale; + !c.stageScale || 0 > n.display.StageScaleMode.toNumber(c.stageScale) ? h.scaleMode = n.display.StageScaleMode.SHOW_ALL : h.scaleMode = c.stageScale; h.frameRate = g.frameRate; h.setStageWidth(g.width); h.setStageHeight(g.height); @@ -54544,7 +54552,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re setTimeout(a, c._getFrameInterval()); } } - var c = this, f = h.getRootLoader(); + var c = this, f = g.getRootLoader(); f._setStage(this._stage); a(); }; @@ -54553,7 +54561,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re this._frameTimeout = setTimeout(this._eventLoopTick, this._getFrameInterval()); if (c || !(!d.frameEnabledOption.value && a || this._shouldThrottleDownFrameExecution())) { l._stage = this._stage; - if (!h.getRootLoader().content && (h.processEvents(), !h.getRootLoader().content)) { + if (!g.getRootLoader().content && (g.processEvents(), !g.getRootLoader().content)) { return; } for (c = 0;c < d.frameRateMultiplierOption.value;c++) { @@ -54561,7 +54569,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re var f = performance.now(); l.performFrameNavigation(!0, a); k.counter.count("performFrameNavigation", 1, performance.now() - f); - h.processEvents(); + g.processEvents(); k.leaveTimeline("eventLoop"); } this._framesPlayed++; @@ -54578,7 +54586,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re d.AVM2.counter.clear(); d.Player.counter.traceSorted(a); d.Player.counter.clear(); - a.writeLn("advancableInstances: " + p.display.DisplayObject._advancableInstances.length); + a.writeLn("advancableInstances: " + n.display.DisplayObject._advancableInstances.length); a.outdent(); }; c.prototype._leaveEventLoop = function() { @@ -54587,25 +54595,25 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }; c.prototype._playAllSymbols = function() { var a = this._stage, c = this._loader, f = this._loaderInfo, g = this; - f.addEventListener(p.events.ProgressEvent.PROGRESS, function I() { - c.content && (f.removeEventListener(p.events.ProgressEvent.PROGRESS, I), g._enterEventLoop()); + f.addEventListener(n.events.ProgressEvent.PROGRESS, function I() { + c.content && (f.removeEventListener(n.events.ProgressEvent.PROGRESS, I), g._enterEventLoop()); }); - f.addEventListener(p.events.Event.COMPLETE, function() { + f.addEventListener(n.events.Event.COMPLETE, function() { function c() { var k; 0 < d.playSymbolOption.value ? (k = f.getSymbolById(d.playSymbolOption.value), k instanceof d.Timeline.DisplaySymbol || (k = null)) : (k = e[h++], h === e.length && (h = 0), 0 <= d.playSymbolCountOption.value && h > d.playSymbolCountOption.value && (h = 0)); var l = 1; if (k && 0 < k.id) { var m = k; - p.display.DisplayObject.reset(); - p.display.MovieClip.reset(); + n.display.DisplayObject.reset(); + n.display.MovieClip.reset(); var q = m.symbolClass.initializeFrom(m); m.symbolClass.instanceConstructorNoInitialize.call(q); - for (m instanceof p.display.BitmapSymbol && (q = new p.display.Bitmap(q));0 < a.numChildren;) { + for (m instanceof n.display.BitmapSymbol && (q = new n.display.Bitmap(q));0 < a.numChildren;) { a.removeChildAt(0); } a.addChild(q); - k instanceof p.display.SpriteSymbol && (l = k.numFrames); + k instanceof n.display.SpriteSymbol && (l = k.numFrames); } 0 < d.playSymbolFrameDurationOption.value && (l = d.playSymbolFrameDurationOption.value); setTimeout(c, g._getFrameInterval() * l); @@ -54649,7 +54657,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re try { var c = new window.URL(a); } catch (d) { - return!1; + return !1; } return this._crossDomainSWFLoadingWhitelist.some(function(a) { return c.hostname !== a.hostname && "*" !== a.hostname ? !1 : a.insecure ? !0 : "https:" === c.protocol || "https:" !== a.protocol; @@ -54667,12 +54675,12 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re a[a.Playerglobal = 2] = "Playerglobal"; a[a.Shell = 4] = "Shell"; })(d.AVM2LoadLibrariesFlags || (d.AVM2LoadLibrariesFlags = {})); - d.createAVM2 = function(p, v, t) { + d.createAVM2 = function(n, w, v) { var u, l = new d.PromiseWrapper; d.SWF.enterTimeline("Load builton.abc file"); d.SystemResourcesLoadingService.instance.load(0).then(function(c) { d.SWF.leaveTimeline(); - a.initialize(v, t); + a.initialize(w, v); u = a.instance; d.AVM2.AS.linkNatives(u); console.time("Execute builtin.abc"); @@ -54680,10 +54688,10 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re u.systemDomain.executeAbc(new k(new Uint8Array(c), "builtin.abc")); u.builtinsLoaded = !0; console.timeEnd("Execute builtin.abc"); - p & 4 ? d.SystemResourcesLoadingService.instance.load(3).then(function(a) { + n & 4 ? d.SystemResourcesLoadingService.instance.load(3).then(function(a) { u.systemDomain.executeAbc(new k(new Uint8Array(a), "shell.abc")); l.resolve(u); - }, l.reject) : p & 2 && !a.isPlayerglobalLoaded() ? a.loadPlayerglobal().then(function() { + }, l.reject) : n & 2 && !a.isPlayerglobalLoaded() ? a.loadPlayerglobal().then(function() { l.resolve(u); }, l.reject) : l.resolve(u); }, l.reject); @@ -54696,7 +54704,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re function a() { } Object.defineProperty(a.prototype, "enabled", {get:function() { - return!0; + return !0; }, enumerable:!0, configurable:!0}); a.prototype.initJS = function(a) { ShumwayCom.externalCom({action:"init"}); @@ -54765,7 +54773,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }}; }; a.prototype.resolveUrl = function(a) { - return(new window.URL(a, this._baseUrl)).href; + return (new window.URL(a, this._baseUrl)).href; }; a.prototype.navigateTo = function(a, d) { ShumwayCom.navigateTo({url:this.resolveUrl(a), target:d}); @@ -54795,14 +54803,14 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re } a.prototype.createSession = function() { var a = this; - return{open:function(k) { - var p = this, l = a.resolveUrl(k.url); + return {open:function(k) { + var n = this, l = a.resolveUrl(k.url); console.log("FileLoadingService: loading " + l + ", data: " + k.data); (new d.BinaryFileReader(l, k.method, k.mimeType, k.data)).readChunked(a._fileReadChunkSize, function(a, d) { - p.onprogress(a, {bytesLoaded:d.loaded, bytesTotal:d.total}); + n.onprogress(a, {bytesLoaded:d.loaded, bytesTotal:d.total}); }, function(a) { - p.onerror(a); - }, p.onopen, p.onclose, p.onhttpstatus); + n.onerror(a); + }, n.onopen, n.onclose, n.onhttpstatus); }}; }; a.prototype.init = function(a, d) { @@ -54811,7 +54819,7 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re this._fileReadChunkSize = d; }; a.prototype.resolveUrl = function(a) { - return(new window.URL(a, this._baseUrl)).href; + return (new window.URL(a, this._baseUrl)).href; }; a.prototype.navigateTo = function(a, d) { window.open(this.resolveUrl(a), d || "_blank"); @@ -54837,10 +54845,10 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re }(); k.ShumwayComResourcesLoadingService = a; a = function() { - function a(d, k, p) { + function a(d, k, n) { this.builtinPath = d; this.viewerPlayerglobalInfo = k; - this.shellPath = p; + this.shellPath = n; } a.prototype.load = function(a) { switch(a) { @@ -54857,15 +54865,15 @@ Shumway$$inline_634.playSymbolCountOption = Shumway$$inline_634.playerOptions.re } }; a.prototype._promiseFile = function(a, k) { - return new Promise(function(p, l) { + return new Promise(function(n, l) { d.SWF.enterTimeline("Load file", a); var c = new XMLHttpRequest; c.open("GET", a); c.responseType = k; c.onload = function() { d.SWF.leaveTimeline(); - var h = c.response; - h ? ("json" === k && "json" !== c.responseType && (h = JSON.parse(h)), p(h)) : l("Unable to load " + a + ": " + c.statusText); + var g = c.response; + g ? ("json" === k && "json" !== c.responseType && (g = JSON.parse(g)), n(g)) : l("Unable to load " + a + ": " + c.statusText); }; c.onerror = function() { d.SWF.leaveTimeline(); @@ -54883,8 +54891,8 @@ __extends = this.__extends || function(d, k) { function a() { this.constructor = d; } - for (var p in k) { - k.hasOwnProperty(p) && (d[p] = k[p]); + for (var n in k) { + k.hasOwnProperty(n) && (d[n] = k[n]); } a.prototype = k.prototype; d.prototype = new a; @@ -54892,7 +54900,7 @@ __extends = this.__extends || function(d, k) { (function(d) { (function(k) { (function(a) { - var p = d.ArrayUtilities.DataBuffer, v = function(a) { + var n = d.ArrayUtilities.DataBuffer, w = function(a) { function k(d, c) { a.call(this); this._window = d; @@ -54909,7 +54917,7 @@ __extends = this.__extends || function(d, k) { }; k.prototype.updateAndGet = function(a, c) { var d = {type:"player", updates:a.getBytes(), assets:c, result:void 0}, d = this._sendSyncMessage(d); - return p.FromPlainObject(d); + return n.FromPlainObject(d); }; k.prototype.frame = function() { this._parent.postMessage({type:"frame"}, "*"); @@ -54927,16 +54935,16 @@ __extends = this.__extends || function(d, k) { return a.result; }; k.prototype.registerFont = function(a, c) { - var h = this._fontOrImageRequests.length, k = new d.PromiseWrapper; - this._fontOrImageRequests[h] = k; - this._parent.postMessage({type:"registerFontOrImage", syncId:a, assetType:"font", data:c, requestId:h}, "*"); + var g = this._fontOrImageRequests.length, k = new d.PromiseWrapper; + this._fontOrImageRequests[g] = k; + this._parent.postMessage({type:"registerFontOrImage", syncId:a, assetType:"font", data:c, requestId:g}, "*"); return k.promise; }; - k.prototype.registerImage = function(a, c, h) { - var k = this._fontOrImageRequests.length, p = new d.PromiseWrapper; - this._fontOrImageRequests[k] = p; - this._parent.postMessage({type:"registerFontOrImage", syncId:a, symbolId:c, assetType:"image", data:h, requestId:k}, "*"); - return p.promise; + k.prototype.registerImage = function(a, c, g) { + var k = this._fontOrImageRequests.length, n = new d.PromiseWrapper; + this._fontOrImageRequests[k] = n; + this._parent.postMessage({type:"registerFontOrImage", syncId:a, symbolId:c, assetType:"image", data:g, requestId:k}, "*"); + return n.promise; }; k.prototype.fscommand = function(a, c) { this._parent.postMessage({type:"fscommand", command:a, args:c}, "*"); @@ -54991,14 +54999,14 @@ __extends = this.__extends || function(d, k) { }; return k; }(k.GFXServiceBase); - a.WindowGFXService = v; + a.WindowGFXService = w; })(k.Window || (k.Window = {})); })(d.Player || (d.Player = {})); })(Shumway || (Shumway = {})); (function(d) { (function(k) { (function(a) { - var p = d.ArrayUtilities.DataBuffer, v = function(a) { + var n = d.ArrayUtilities.DataBuffer, w = function(a) { function k() { a.call(this); this._worker = d.Player.Test.FakeSyncWorker.instance; @@ -55012,7 +55020,7 @@ __extends = this.__extends || function(d, k) { }; k.prototype.updateAndGet = function(a, c) { var d = a.getBytes(), d = this._worker.postSyncMessage({type:"player", updates:d, assets:c}, [d.buffer]); - return p.FromPlainObject(d); + return n.FromPlainObject(d); }; k.prototype.frame = function() { this._worker.postMessage({type:"frame"}); @@ -55021,16 +55029,16 @@ __extends = this.__extends || function(d, k) { return this._worker.postSyncMessage({type:"videoControl", id:a, eventType:c, data:d}); }; k.prototype.registerFont = function(a, c) { - var h = this._fontOrImageRequests.length, k = new d.PromiseWrapper; - this._fontOrImageRequests[h] = k; - this._worker.postMessage({type:"registerFontOrImage", syncId:a, assetType:"font", data:c, requestId:h}); + var g = this._fontOrImageRequests.length, k = new d.PromiseWrapper; + this._fontOrImageRequests[g] = k; + this._worker.postMessage({type:"registerFontOrImage", syncId:a, assetType:"font", data:c, requestId:g}); return k.promise; }; - k.prototype.registerImage = function(a, c, h) { - var k = this._fontOrImageRequests.length, p = new d.PromiseWrapper; - this._fontOrImageRequests[k] = p; - this._worker.postMessage({type:"registerFontOrImage", syncId:a, symbolId:c, assetType:"image", data:h, requestId:k}); - return p.promise; + k.prototype.registerImage = function(a, c, g) { + var k = this._fontOrImageRequests.length, n = new d.PromiseWrapper; + this._fontOrImageRequests[k] = n; + this._worker.postMessage({type:"registerFontOrImage", syncId:a, symbolId:c, assetType:"image", data:g, requestId:k}); + return n.promise; }; k.prototype.fscommand = function(a, c) { this._worker.postMessage({type:"fscommand", command:a, args:c}); @@ -55040,7 +55048,7 @@ __extends = this.__extends || function(d, k) { if ("object" === typeof c && null !== c) { switch(c.type) { case "gfx": - c = p.FromArrayBuffer(a.data.updates.buffer); + c = n.FromArrayBuffer(a.data.updates.buffer); this.processUpdates(c, a.data.assets); break; case "videoPlayback": @@ -55056,7 +55064,7 @@ __extends = this.__extends || function(d, k) { }; return k; }(k.GFXServiceBase); - a.TestGFXService = v; + a.TestGFXService = w; })(k.Test || (k.Test = {})); })(d.Player || (d.Player = {})); })(Shumway || (Shumway = {})); @@ -55084,12 +55092,12 @@ __extends = this.__extends || function(d, k) { var d = {data:a, result:void 0, handled:!1}; try { if ("function" === typeof c ? c(d) : c.handleEvent(d), !d.handled) { - return!1; + return !1; } - } catch (p) { + } catch (n) { } k = d.result; - return!0; + return !0; }); return k; }; @@ -55099,12 +55107,12 @@ __extends = this.__extends || function(d, k) { var d = {data:a, result:void 0, handled:!1}; try { if ("function" === typeof c ? c(d) : c.handleEvent(d), !d.handled) { - return!1; + return !1; } - } catch (p) { + } catch (n) { } k = d.result; - return!0; + return !0; }); return k; }; diff --git a/browser/extensions/shumway/content/version.txt b/browser/extensions/shumway/content/version.txt index bfef1ca2d21e..059acf06b184 100644 --- a/browser/extensions/shumway/content/version.txt +++ b/browser/extensions/shumway/content/version.txt @@ -1,2 +1,2 @@ -0.10.268 -02fd13d +0.10.312 +9de7c7a