Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !function(a, b) {
- "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) {
- if (!a.document)
- throw new Error("jQuery requires a window with a document");
- return b(a)
- } : b(a)
- }("undefined" != typeof window ? window : this, function(a, b) {
- function c(a) {
- var b = a.length, c = _.type(a);
- return "function" === c || _.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a
- }
- function d(a, b, c) {
- if (_.isFunction(b))
- return _.grep(a, function(a, d) {
- return !!b.call(a, d, a) !== c
- });
- if (b.nodeType)
- return _.grep(a, function(a) {
- return a === b !== c
- });
- if ("string" == typeof b) {
- if (hb.test(b))
- return _.filter(b, a, c);
- b = _.filter(b, a)
- }
- return _.grep(a, function(a) {
- return U.call(b, a) >= 0 !== c
- })
- }
- function e(a, b) {
- for (; (a = a[b]) && 1 !== a.nodeType; )
- ;
- return a
- }
- function f(a) {
- var b = ob[a] = {};
- return _.each(a.match(nb) || [], function(a, c) {
- b[c] = !0
- }), b
- }
- function g() {
- Z.removeEventListener("DOMContentLoaded", g, !1), a.removeEventListener("load", g, !1), _.ready()
- }
- function h() {
- Object.defineProperty(this.cache = {}, 0, {get: function() {
- return {}
- }}), this.expando = _.expando + Math.random()
- }
- function i(a, b, c) {
- var d;
- if (void 0 === c && 1 === a.nodeType)
- if (d = "data-" + b.replace(ub, "-$1").toLowerCase(), c = a.getAttribute(d), "string" == typeof c) {
- try {
- c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : tb.test(c) ? _.parseJSON(c) : c
- } catch (e) {
- }
- sb.set(a, b, c)
- } else
- c = void 0;
- return c
- }
- function j() {
- return !0
- }
- function k() {
- return !1
- }
- function l() {
- try {
- return Z.activeElement
- } catch (a) {
- }
- }
- function m(a, b) {
- return _.nodeName(a, "table") && _.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a
- }
- function n(a) {
- return a.type = (null !== a.getAttribute("type")) + "/" + a.type, a
- }
- function o(a) {
- var b = Kb.exec(a.type);
- return b ? a.type = b[1] : a.removeAttribute("type"), a
- }
- function p(a, b) {
- for (var c = 0, d = a.length; d > c; c++)
- rb.set(a[c], "globalEval", !b || rb.get(b[c], "globalEval"))
- }
- function q(a, b) {
- var c, d, e, f, g, h, i, j;
- if (1 === b.nodeType) {
- if (rb.hasData(a) && (f = rb.access(a), g = rb.set(b, f), j = f.events)) {
- delete g.handle, g.events = {};
- for (e in j)
- for (c = 0, d = j[e].length; d > c; c++)
- _.event.add(b, e, j[e][c])
- }
- sb.hasData(a) && (h = sb.access(a), i = _.extend({}, h), sb.set(b, i))
- }
- }
- function r(a, b) {
- var c = a.getElementsByTagName ? a.getElementsByTagName(b || "*") : a.querySelectorAll ? a.querySelectorAll(b || "*") : [];
- return void 0 === b || b && _.nodeName(a, b) ? _.merge([a], c) : c
- }
- function s(a, b) {
- var c = b.nodeName.toLowerCase();
- "input" === c && yb.test(a.type) ? b.checked = a.checked : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue)
- }
- function t(b, c) {
- var d, e = _(c.createElement(b)).appendTo(c.body), f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : _.css(e[0], "display");
- return e.detach(), f
- }
- function u(a) {
- var b = Z, c = Ob[a];
- return c || (c = t(a, b), "none" !== c && c || (Nb = (Nb || _("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement), b = Nb[0].contentDocument, b.write(), b.close(), c = t(a, b), Nb.detach()), Ob[a] = c), c
- }
- function v(a, b, c) {
- var d, e, f, g, h = a.style;
- return c = c || Rb(a), c && (g = c.getPropertyValue(b) || c[b]), c && ("" !== g || _.contains(a.ownerDocument, a) || (g = _.style(a, b)), Qb.test(g) && Pb.test(b) && (d = h.width, e = h.minWidth, f = h.maxWidth, h.minWidth = h.maxWidth = h.width = g, g = c.width, h.width = d, h.minWidth = e, h.maxWidth = f)), void 0 !== g ? g + "" : g
- }
- function w(a, b) {
- return {get: function() {
- return a() ? void delete this.get : (this.get = b).apply(this, arguments)
- }}
- }
- function x(a, b) {
- if (b in a)
- return b;
- for (var c = b[0].toUpperCase() + b.slice(1), d = b, e = Xb.length; e--; )
- if (b = Xb[e] + c, b in a)
- return b;
- return d
- }
- function y(a, b, c) {
- var d = Tb.exec(b);
- return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b
- }
- function z(a, b, c, d, e) {
- for (var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2)
- "margin" === c && (g += _.css(a, c + wb[f], !0, e)), d ? ("content" === c && (g -= _.css(a, "padding" + wb[f], !0, e)), "margin" !== c && (g -= _.css(a, "border" + wb[f] + "Width", !0, e))) : (g += _.css(a, "padding" + wb[f], !0, e), "padding" !== c && (g += _.css(a, "border" + wb[f] + "Width", !0, e)));
- return g
- }
- function A(a, b, c) {
- var d = !0, e = "width" === b ? a.offsetWidth : a.offsetHeight, f = Rb(a), g = "border-box" === _.css(a, "boxSizing", !1, f);
- if (0 >= e || null == e) {
- if (e = v(a, b, f), (0 > e || null == e) && (e = a.style[b]), Qb.test(e))
- return e;
- d = g && (Y.boxSizingReliable() || e === a.style[b]), e = parseFloat(e) || 0
- }
- return e + z(a, b, c || (g ? "border" : "content"), d, f) + "px"
- }
- function B(a, b) {
- for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++)
- d = a[g], d.style && (f[g] = rb.get(d, "olddisplay"), c = d.style.display, b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && xb(d) && (f[g] = rb.access(d, "olddisplay", u(d.nodeName)))) : (e = xb(d), "none" === c && e || rb.set(d, "olddisplay", e ? c : _.css(d, "display"))));
- for (g = 0; h > g; g++)
- d = a[g], d.style && (b && "none" !== d.style.display && "" !== d.style.display || (d.style.display = b ? f[g] || "" : "none"));
- return a
- }
- function C(a, b, c, d, e) {
- return new C.prototype.init(a, b, c, d, e)
- }
- function D() {
- return setTimeout(function() {
- Yb = void 0
- }), Yb = _.now()
- }
- function E(a, b) {
- var c, d = 0, e = {height: a};
- for (b = b ? 1 : 0; 4 > d; d += 2 - b)
- c = wb[d], e["margin" + c] = e["padding" + c] = a;
- return b && (e.opacity = e.width = a), e
- }
- function F(a, b, c) {
- for (var d, e = (cc[b] || []).concat(cc["*"]), f = 0, g = e.length; g > f; f++)
- if (d = e[f].call(c, b, a))
- return d
- }
- function G(a, b, c) {
- var d, e, f, g, h, i, j, k, l = this, m = {}, n = a.style, o = a.nodeType && xb(a), p = rb.get(a, "fxshow");
- c.queue || (h = _._queueHooks(a, "fx"), null == h.unqueued && (h.unqueued = 0, i = h.empty.fire, h.empty.fire = function() {
- h.unqueued || i()
- }), h.unqueued++, l.always(function() {
- l.always(function() {
- h.unqueued--, _.queue(a, "fx").length || h.empty.fire()
- })
- })), 1 === a.nodeType && ("height" in b || "width" in b) && (c.overflow = [n.overflow, n.overflowX, n.overflowY], j = _.css(a, "display"), k = "none" === j ? rb.get(a, "olddisplay") || u(a.nodeName) : j, "inline" === k && "none" === _.css(a, "float") && (n.display = "inline-block")), c.overflow && (n.overflow = "hidden", l.always(function() {
- n.overflow = c.overflow[0], n.overflowX = c.overflow[1], n.overflowY = c.overflow[2]
- }));
- for (d in b)
- if (e = b[d], $b.exec(e)) {
- if (delete b[d], f = f || "toggle" === e, e === (o ? "hide" : "show")) {
- if ("show" !== e || !p || void 0 === p[d])
- continue;
- o = !0
- }
- m[d] = p && p[d] || _.style(a, d)
- } else
- j = void 0;
- if (_.isEmptyObject(m))
- "inline" === ("none" === j ? u(a.nodeName) : j) && (n.display = j);
- else {
- p ? "hidden" in p && (o = p.hidden) : p = rb.access(a, "fxshow", {}), f && (p.hidden = !o), o ? _(a).show() : l.done(function() {
- _(a).hide()
- }), l.done(function() {
- var b;
- rb.remove(a, "fxshow");
- for (b in m)
- _.style(a, b, m[b])
- });
- for (d in m)
- g = F(o ? p[d] : 0, d, l), d in p || (p[d] = g.start, o && (g.end = g.start, g.start = "width" === d || "height" === d ? 1 : 0))
- }
- }
- function H(a, b) {
- var c, d, e, f, g;
- for (c in a)
- if (d = _.camelCase(c), e = b[d], f = a[c], _.isArray(f) && (e = f[1], f = a[c] = f[0]), c !== d && (a[d] = f, delete a[c]), g = _.cssHooks[d], g && "expand" in g) {
- f = g.expand(f), delete a[d];
- for (c in f)
- c in a || (a[c] = f[c], b[c] = e)
- } else
- b[d] = e
- }
- function I(a, b, c) {
- var d, e, f = 0, g = bc.length, h = _.Deferred().always(function() {
- delete i.elem
- }), i = function() {
- if (e)
- return !1;
- for (var b = Yb || D(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++)
- j.tweens[g].start(f);
- return h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1)
- }, j = h.promise({elem: a,props: _.extend({}, b),opts: _.extend(!0, {specialEasing: {}}, c),originalProperties: b,originalOptions: c,startTime: Yb || D(),duration: c.duration,tweens: [],createTween: function(b, c) {
- var d = _.Tween(a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing);
- return j.tweens.push(d), d
- },stop: function(b) {
- var c = 0, d = b ? j.tweens.length : 0;
- if (e)
- return this;
- for (e = !0; d > c; c++)
- j.tweens[c].start(1);
- return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this
- }}), k = j.props;
- for (H(k, j.opts.specialEasing); g > f; f++)
- if (d = bc[f].call(j, a, k, j.opts))
- return d;
- return _.map(k, F, j), _.isFunction(j.opts.start) && j.opts.start.call(a, j), _.fx.timer(_.extend(i, {elem: a,anim: j,queue: j.opts.queue})), j.progress(j.opts.progress).done(j.opts.done, j.opts.complete).fail(j.opts.fail).always(j.opts.always)
- }
- function J(a) {
- return function(b, c) {
- "string" != typeof b && (c = b, b = "*");
- var d, e = 0, f = b.toLowerCase().match(nb) || [];
- if (_.isFunction(c))
- for (; d = f[e++]; )
- "+" === d[0] ? (d = d.slice(1) || "*", (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c)
- }
- }
- function K(a, b, c, d) {
- function e(h) {
- var i;
- return f[h] = !0, _.each(a[h] || [], function(a, h) {
- var j = h(b, c, d);
- return "string" != typeof j || g || f[j] ? g ? !(i = j) : void 0 : (b.dataTypes.unshift(j), e(j), !1)
- }), i
- }
- var f = {}, g = a === vc;
- return e(b.dataTypes[0]) || !f["*"] && e("*")
- }
- function L(a, b) {
- var c, d, e = _.ajaxSettings.flatOptions || {};
- for (c in b)
- void 0 !== b[c] && ((e[c] ? a : d || (d = {}))[c] = b[c]);
- return d && _.extend(!0, a, d), a
- }
- function M(a, b, c) {
- for (var d, e, f, g, h = a.contents, i = a.dataTypes; "*" === i[0]; )
- i.shift(), void 0 === d && (d = a.mimeType || b.getResponseHeader("Content-Type"));
- if (d)
- for (e in h)
- if (h[e] && h[e].test(d)) {
- i.unshift(e);
- break
- }
- if (i[0] in c)
- f = i[0];
- else {
- for (e in c) {
- if (!i[0] || a.converters[e + " " + i[0]]) {
- f = e;
- break
- }
- g || (g = e)
- }
- f = f || g
- }
- return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0
- }
- function N(a, b, c, d) {
- var e, f, g, h, i, j = {}, k = a.dataTypes.slice();
- if (k[1])
- for (g in a.converters)
- j[g.toLowerCase()] = a.converters[g];
- for (f = k.shift(); f; )
- if (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), i = f, f = k.shift())
- if ("*" === f)
- f = i;
- else if ("*" !== i && i !== f) {
- if (g = j[i + " " + f] || j["* " + f], !g)
- for (e in j)
- if (h = e.split(" "), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) {
- g === !0 ? g = j[e] : j[e] !== !0 && (f = h[0], k.unshift(h[1]));
- break
- }
- if (g !== !0)
- if (g && a["throws"])
- b = g(b);
- else
- try {
- b = g(b)
- } catch (l) {
- return {state: "parsererror",error: g ? l : "No conversion from " + i + " to " + f}
- }
- }
- return {state: "success",data: b}
- }
- function O(a, b, c, d) {
- var e;
- if (_.isArray(b))
- _.each(b, function(b, e) {
- c || zc.test(a) ? d(a, e) : O(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d)
- });
- else if (c || "object" !== _.type(b))
- d(a, b);
- else
- for (e in b)
- O(a + "[" + e + "]", b[e], c, d)
- }
- function P(a) {
- return _.isWindow(a) ? a : 9 === a.nodeType && a.defaultView
- }
- var Q = [], R = Q.slice, S = Q.concat, T = Q.push, U = Q.indexOf, V = {}, W = V.toString, X = V.hasOwnProperty, Y = {}, Z = a.document, $ = "2.1.1", _ = function(a, b) {
- return new _.fn.init(a, b)
- }, ab = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, bb = /^-ms-/, cb = /-([\da-z])/gi, db = function(a, b) {
- return b.toUpperCase()
- };
- _.fn = _.prototype = {jquery: $,constructor: _,selector: "",length: 0,toArray: function() {
- return R.call(this)
- },get: function(a) {
- return null != a ? 0 > a ? this[a + this.length] : this[a] : R.call(this)
- },pushStack: function(a) {
- var b = _.merge(this.constructor(), a);
- return b.prevObject = this, b.context = this.context, b
- },each: function(a, b) {
- return _.each(this, a, b)
- },map: function(a) {
- return this.pushStack(_.map(this, function(b, c) {
- return a.call(b, c, b)
- }))
- },slice: function() {
- return this.pushStack(R.apply(this, arguments))
- },first: function() {
- return this.eq(0)
- },last: function() {
- return this.eq(-1)
- },eq: function(a) {
- var b = this.length, c = +a + (0 > a ? b : 0);
- return this.pushStack(c >= 0 && b > c ? [this[c]] : [])
- },end: function() {
- return this.prevObject || this.constructor(null)
- },push: T,sort: Q.sort,splice: Q.splice}, _.extend = _.fn.extend = function() {
- var a, b, c, d, e, f, g = arguments[0] || {}, h = 1, i = arguments.length, j = !1;
- for ("boolean" == typeof g && (j = g, g = arguments[h] || {}, h++), "object" == typeof g || _.isFunction(g) || (g = {}), h === i && (g = this, h--); i > h; h++)
- if (null != (a = arguments[h]))
- for (b in a)
- c = g[b], d = a[b], g !== d && (j && d && (_.isPlainObject(d) || (e = _.isArray(d))) ? (e ? (e = !1, f = c && _.isArray(c) ? c : []) : f = c && _.isPlainObject(c) ? c : {}, g[b] = _.extend(j, f, d)) : void 0 !== d && (g[b] = d));
- return g
- }, _.extend({expando: "jQuery" + ($ + Math.random()).replace(/\D/g, ""),isReady: !0,error: function(a) {
- throw new Error(a)
- },noop: function() {
- },isFunction: function(a) {
- return "function" === _.type(a)
- },isArray: Array.isArray,isWindow: function(a) {
- return null != a && a === a.window
- },isNumeric: function(a) {
- return !_.isArray(a) && a - parseFloat(a) >= 0
- },isPlainObject: function(a) {
- return "object" !== _.type(a) || a.nodeType || _.isWindow(a) ? !1 : a.constructor && !X.call(a.constructor.prototype, "isPrototypeOf") ? !1 : !0
- },isEmptyObject: function(a) {
- var b;
- for (b in a)
- return !1;
- return !0
- },type: function(a) {
- return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? V[W.call(a)] || "object" : typeof a
- },globalEval: function(a) {
- var b, c = eval;
- a = _.trim(a), a && (1 === a.indexOf("use strict") ? (b = Z.createElement("script"), b.text = a, Z.head.appendChild(b).parentNode.removeChild(b)) : c(a))
- },camelCase: function(a) {
- return a.replace(bb, "ms-").replace(cb, db)
- },nodeName: function(a, b) {
- return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase()
- },each: function(a, b, d) {
- var e, f = 0, g = a.length, h = c(a);
- if (d) {
- if (h)
- for (; g > f && (e = b.apply(a[f], d), e !== !1); f++)
- ;
- else
- for (f in a)
- if (e = b.apply(a[f], d), e === !1)
- break
- } else if (h)
- for (; g > f && (e = b.call(a[f], f, a[f]), e !== !1); f++)
- ;
- else
- for (f in a)
- if (e = b.call(a[f], f, a[f]), e === !1)
- break;
- return a
- },trim: function(a) {
- return null == a ? "" : (a + "").replace(ab, "")
- },makeArray: function(a, b) {
- var d = b || [];
- return null != a && (c(Object(a)) ? _.merge(d, "string" == typeof a ? [a] : a) : T.call(d, a)), d
- },inArray: function(a, b, c) {
- return null == b ? -1 : U.call(b, a, c)
- },merge: function(a, b) {
- for (var c = +b.length, d = 0, e = a.length; c > d; d++)
- a[e++] = b[d];
- return a.length = e, a
- },grep: function(a, b, c) {
- for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++)
- d = !b(a[f], f), d !== h && e.push(a[f]);
- return e
- },map: function(a, b, d) {
- var e, f = 0, g = a.length, h = c(a), i = [];
- if (h)
- for (; g > f; f++)
- e = b(a[f], f, d), null != e && i.push(e);
- else
- for (f in a)
- e = b(a[f], f, d), null != e && i.push(e);
- return S.apply([], i)
- },guid: 1,proxy: function(a, b) {
- var c, d, e;
- return "string" == typeof b && (c = a[b], b = a, a = c), _.isFunction(a) ? (d = R.call(arguments, 2), e = function() {
- return a.apply(b || this, d.concat(R.call(arguments)))
- }, e.guid = a.guid = a.guid || _.guid++, e) : void 0
- },now: Date.now,support: Y}), _.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(a, b) {
- V["[object " + b + "]"] = b.toLowerCase()
- });
- var eb = function(a) {
- function b(a, b, c, d) {
- var e, f, g, h, i, j, l, n, o, p;
- if ((b ? b.ownerDocument || b : O) !== G && F(b), b = b || G, c = c || [], !a || "string" != typeof a)
- return c;
- if (1 !== (h = b.nodeType) && 9 !== h)
- return [];
- if (I && !d) {
- if (e = sb.exec(a))
- if (g = e[1]) {
- if (9 === h) {
- if (f = b.getElementById(g), !f || !f.parentNode)
- return c;
- if (f.id === g)
- return c.push(f), c
- } else if (b.ownerDocument && (f = b.ownerDocument.getElementById(g)) && M(b, f) && f.id === g)
- return c.push(f), c
- } else {
- if (e[2])
- return _.apply(c, b.getElementsByTagName(a)), c;
- if ((g = e[3]) && v.getElementsByClassName && b.getElementsByClassName)
- return _.apply(c, b.getElementsByClassName(g)), c
- }
- if (v.qsa && (!J || !J.test(a))) {
- if (n = l = N, o = b, p = 9 === h && a, 1 === h && "object" !== b.nodeName.toLowerCase()) {
- for (j = z(a), (l = b.getAttribute("id")) ? n = l.replace(ub, "\\$&") : b.setAttribute("id", n), n = "[id='" + n + "'] ", i = j.length; i--; )
- j[i] = n + m(j[i]);
- o = tb.test(a) && k(b.parentNode) || b, p = j.join(",")
- }
- if (p)
- try {
- return _.apply(c, o.querySelectorAll(p)), c
- } catch (q) {
- }finally {
- l || b.removeAttribute("id")
- }
- }
- }
- return B(a.replace(ib, "$1"), b, c, d)
- }
- function c() {
- function a(c, d) {
- return b.push(c + " ") > w.cacheLength && delete a[b.shift()], a[c + " "] = d
- }
- var b = [];
- return a
- }
- function d(a) {
- return a[N] = !0, a
- }
- function e(a) {
- var b = G.createElement("div");
- try {
- return !!a(b)
- } catch (c) {
- return !1
- }finally {
- b.parentNode && b.parentNode.removeChild(b), b = null
- }
- }
- function f(a, b) {
- for (var c = a.split("|"), d = a.length; d--; )
- w.attrHandle[c[d]] = b
- }
- function g(a, b) {
- var c = b && a, d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || W) - (~a.sourceIndex || W);
- if (d)
- return d;
- if (c)
- for (; c = c.nextSibling; )
- if (c === b)
- return -1;
- return a ? 1 : -1
- }
- function h(a) {
- return function(b) {
- var c = b.nodeName.toLowerCase();
- return "input" === c && b.type === a
- }
- }
- function i(a) {
- return function(b) {
- var c = b.nodeName.toLowerCase();
- return ("input" === c || "button" === c) && b.type === a
- }
- }
- function j(a) {
- return d(function(b) {
- return b = +b, d(function(c, d) {
- for (var e, f = a([], c.length, b), g = f.length; g--; )
- c[e = f[g]] && (c[e] = !(d[e] = c[e]))
- })
- })
- }
- function k(a) {
- return a && typeof a.getElementsByTagName !== V && a
- }
- function l() {
- }
- function m(a) {
- for (var b = 0, c = a.length, d = ""; c > b; b++)
- d += a[b].value;
- return d
- }
- function n(a, b, c) {
- var d = b.dir, e = c && "parentNode" === d, f = Q++;
- return b.first ? function(b, c, f) {
- for (; b = b[d]; )
- if (1 === b.nodeType || e)
- return a(b, c, f)
- } : function(b, c, g) {
- var h, i, j = [P, f];
- if (g) {
- for (; b = b[d]; )
- if ((1 === b.nodeType || e) && a(b, c, g))
- return !0
- } else
- for (; b = b[d]; )
- if (1 === b.nodeType || e) {
- if (i = b[N] || (b[N] = {}), (h = i[d]) && h[0] === P && h[1] === f)
- return j[2] = h[2];
- if (i[d] = j, j[2] = a(b, c, g))
- return !0
- }
- }
- }
- function o(a) {
- return a.length > 1 ? function(b, c, d) {
- for (var e = a.length; e--; )
- if (!a[e](b, c, d))
- return !1;
- return !0
- } : a[0]
- }
- function p(a, c, d) {
- for (var e = 0, f = c.length; f > e; e++)
- b(a, c[e], d);
- return d
- }
- function q(a, b, c, d, e) {
- for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++)
- (f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h));
- return g
- }
- function r(a, b, c, e, f, g) {
- return e && !e[N] && (e = r(e)), f && !f[N] && (f = r(f, g)), d(function(d, g, h, i) {
- var j, k, l, m = [], n = [], o = g.length, r = d || p(b || "*", h.nodeType ? [h] : h, []), s = !a || !d && b ? r : q(r, m, a, h, i), t = c ? f || (d ? a : o || e) ? [] : g : s;
- if (c && c(s, t, h, i), e)
- for (j = q(t, n), e(j, [], h, i), k = j.length; k--; )
- (l = j[k]) && (t[n[k]] = !(s[n[k]] = l));
- if (d) {
- if (f || a) {
- if (f) {
- for (j = [], k = t.length; k--; )
- (l = t[k]) && j.push(s[k] = l);
- f(null, t = [], j, i)
- }
- for (k = t.length; k--; )
- (l = t[k]) && (j = f ? bb.call(d, l) : m[k]) > -1 && (d[j] = !(g[j] = l))
- }
- } else
- t = q(t === g ? t.splice(o, t.length) : t), f ? f(null, g, t, i) : _.apply(g, t)
- })
- }
- function s(a) {
- for (var b, c, d, e = a.length, f = w.relative[a[0].type], g = f || w.relative[" "], h = f ? 1 : 0, i = n(function(a) {
- return a === b
- }, g, !0), j = n(function(a) {
- return bb.call(b, a) > -1
- }, g, !0), k = [function(a, c, d) {
- return !f && (d || c !== C) || ((b = c).nodeType ? i(a, c, d) : j(a, c, d))
- }]; e > h; h++)
- if (c = w.relative[a[h].type])
- k = [n(o(k), c)];
- else {
- if (c = w.filter[a[h].type].apply(null, a[h].matches), c[N]) {
- for (d = ++h; e > d && !w.relative[a[d].type]; d++)
- ;
- return r(h > 1 && o(k), h > 1 && m(a.slice(0, h - 1).concat({value: " " === a[h - 2].type ? "*" : ""})).replace(ib, "$1"), c, d > h && s(a.slice(h, d)), e > d && s(a = a.slice(d)), e > d && m(a))
- }
- k.push(c)
- }
- return o(k)
- }
- function t(a, c) {
- var e = c.length > 0, f = a.length > 0, g = function(d, g, h, i, j) {
- var k, l, m, n = 0, o = "0", p = d && [], r = [], s = C, t = d || f && w.find.TAG("*", j), u = P += null == s ? 1 : Math.random() || .1, v = t.length;
- for (j && (C = g !== G && g); o !== v && null != (k = t[o]); o++) {
- if (f && k) {
- for (l = 0; m = a[l++]; )
- if (m(k, g, h)) {
- i.push(k);
- break
- }
- j && (P = u)
- }
- e && ((k = !m && k) && n--, d && p.push(k))
- }
- if (n += o, e && o !== n) {
- for (l = 0; m = c[l++]; )
- m(p, r, g, h);
- if (d) {
- if (n > 0)
- for (; o--; )
- p[o] || r[o] || (r[o] = Z.call(i));
- r = q(r)
- }
- _.apply(i, r), j && !d && r.length > 0 && n + c.length > 1 && b.uniqueSort(i)
- }
- return j && (P = u, C = s), p
- };
- return e ? d(g) : g
- }
- var u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N = "sizzle" + -new Date, O = a.document, P = 0, Q = 0, R = c(), S = c(), T = c(), U = function(a, b) {
- return a === b && (E = !0), 0
- }, V = "undefined", W = 1 << 31, X = {}.hasOwnProperty, Y = [], Z = Y.pop, $ = Y.push, _ = Y.push, ab = Y.slice, bb = Y.indexOf || function(a) {
- for (var b = 0, c = this.length; c > b; b++)
- if (this[b] === a)
- return b;
- return -1
- }, cb = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", db = "[\\x20\\t\\r\\n\\f]", eb = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", fb = eb.replace("w", "w#"), gb = "\\[" + db + "*(" + eb + ")(?:" + db + "*([*^$|!~]?=)" + db + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + fb + "))|)" + db + "*\\]", hb = ":(" + eb + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + gb + ")*)|.*)\\)|)", ib = new RegExp("^" + db + "+|((?:^|[^\\\\])(?:\\\\.)*)" + db + "+$", "g"), jb = new RegExp("^" + db + "*," + db + "*"), kb = new RegExp("^" + db + "*([>+~]|" + db + ")" + db + "*"), lb = new RegExp("=" + db + "*([^\\]'\"]*?)" + db + "*\\]", "g"), mb = new RegExp(hb), nb = new RegExp("^" + fb + "$"), ob = {ID: new RegExp("^#(" + eb + ")"),CLASS: new RegExp("^\\.(" + eb + ")"),TAG: new RegExp("^(" + eb.replace("w", "w*") + ")"),ATTR: new RegExp("^" + gb),PSEUDO: new RegExp("^" + hb),CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + db + "*(even|odd|(([+-]|)(\\d*)n|)" + db + "*(?:([+-]|)" + db + "*(\\d+)|))" + db + "*\\)|)", "i"),bool: new RegExp("^(?:" + cb + ")$", "i"),needsContext: new RegExp("^" + db + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + db + "*((?:-\\d)?\\d*)" + db + "*\\)|)(?=[^-]|$)", "i")}, pb = /^(?:input|select|textarea|button)$/i, qb = /^h\d$/i, rb = /^[^{]+\{\s*\[native \w/, sb = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, tb = /[+~]/, ub = /'|\\/g, vb = new RegExp("\\\\([\\da-f]{1,6}" + db + "?|(" + db + ")|.)", "ig"), wb = function(a, b, c) {
- var d = "0x" + b - 65536;
- return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode(d >> 10 | 55296, 1023 & d | 56320)
- };
- try {
- _.apply(Y = ab.call(O.childNodes), O.childNodes), Y[O.childNodes.length].nodeType
- } catch (xb) {
- _ = {apply: Y.length ? function(a, b) {
- $.apply(a, ab.call(b))
- } : function(a, b) {
- for (var c = a.length, d = 0; a[c++] = b[d++]; )
- ;
- a.length = c - 1
- }}
- }
- v = b.support = {}, y = b.isXML = function(a) {
- var b = a && (a.ownerDocument || a).documentElement;
- return b ? "HTML" !== b.nodeName : !1
- }, F = b.setDocument = function(a) {
- var b, c = a ? a.ownerDocument || a : O, d = c.defaultView;
- return c !== G && 9 === c.nodeType && c.documentElement ? (G = c, H = c.documentElement, I = !y(c), d && d !== d.top && (d.addEventListener ? d.addEventListener("unload", function() {
- F()
- }, !1) : d.attachEvent && d.attachEvent("onunload", function() {
- F()
- })), v.attributes = e(function(a) {
- return a.className = "i", !a.getAttribute("className")
- }), v.getElementsByTagName = e(function(a) {
- return a.appendChild(c.createComment("")), !a.getElementsByTagName("*").length
- }), v.getElementsByClassName = rb.test(c.getElementsByClassName) && e(function(a) {
- return a.innerHTML = "<div class='a'></div><div class='a i'></div>", a.firstChild.className = "i", 2 === a.getElementsByClassName("i").length
- }), v.getById = e(function(a) {
- return H.appendChild(a).id = N, !c.getElementsByName || !c.getElementsByName(N).length
- }), v.getById ? (w.find.ID = function(a, b) {
- if (typeof b.getElementById !== V && I) {
- var c = b.getElementById(a);
- return c && c.parentNode ? [c] : []
- }
- }, w.filter.ID = function(a) {
- var b = a.replace(vb, wb);
- return function(a) {
- return a.getAttribute("id") === b
- }
- }) : (delete w.find.ID, w.filter.ID = function(a) {
- var b = a.replace(vb, wb);
- return function(a) {
- var c = typeof a.getAttributeNode !== V && a.getAttributeNode("id");
- return c && c.value === b
- }
- }), w.find.TAG = v.getElementsByTagName ? function(a, b) {
- return typeof b.getElementsByTagName !== V ? b.getElementsByTagName(a) : void 0
- } : function(a, b) {
- var c, d = [], e = 0, f = b.getElementsByTagName(a);
- if ("*" === a) {
- for (; c = f[e++]; )
- 1 === c.nodeType && d.push(c);
- return d
- }
- return f
- }, w.find.CLASS = v.getElementsByClassName && function(a, b) {
- return typeof b.getElementsByClassName !== V && I ? b.getElementsByClassName(a) : void 0
- }, K = [], J = [], (v.qsa = rb.test(c.querySelectorAll)) && (e(function(a) {
- a.innerHTML = "<select msallowclip=''><option selected=''></option></select>", a.querySelectorAll("[msallowclip^='']").length && J.push("[*^$]=" + db + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || J.push("\\[" + db + "*(?:value|" + cb + ")"), a.querySelectorAll(":checked").length || J.push(":checked")
- }), e(function(a) {
- var b = c.createElement("input");
- b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && J.push("name" + db + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || J.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), J.push(",.*:")
- })), (v.matchesSelector = rb.test(L = H.matches || H.webkitMatchesSelector || H.mozMatchesSelector || H.oMatchesSelector || H.msMatchesSelector)) && e(function(a) {
- v.disconnectedMatch = L.call(a, "div"), L.call(a, "[s!='']:x"), K.push("!=", hb)
- }), J = J.length && new RegExp(J.join("|")), K = K.length && new RegExp(K.join("|")), b = rb.test(H.compareDocumentPosition), M = b || rb.test(H.contains) ? function(a, b) {
- var c = 9 === a.nodeType ? a.documentElement : a, d = b && b.parentNode;
- return a === d || !(!d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)))
- } : function(a, b) {
- if (b)
- for (; b = b.parentNode; )
- if (b === a)
- return !0;
- return !1
- }, U = b ? function(a, b) {
- if (a === b)
- return E = !0, 0;
- var d = !a.compareDocumentPosition - !b.compareDocumentPosition;
- return d ? d : (d = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1, 1 & d || !v.sortDetached && b.compareDocumentPosition(a) === d ? a === c || a.ownerDocument === O && M(O, a) ? -1 : b === c || b.ownerDocument === O && M(O, b) ? 1 : D ? bb.call(D, a) - bb.call(D, b) : 0 : 4 & d ? -1 : 1)
- } : function(a, b) {
- if (a === b)
- return E = !0, 0;
- var d, e = 0, f = a.parentNode, h = b.parentNode, i = [a], j = [b];
- if (!f || !h)
- return a === c ? -1 : b === c ? 1 : f ? -1 : h ? 1 : D ? bb.call(D, a) - bb.call(D, b) : 0;
- if (f === h)
- return g(a, b);
- for (d = a; d = d.parentNode; )
- i.unshift(d);
- for (d = b; d = d.parentNode; )
- j.unshift(d);
- for (; i[e] === j[e]; )
- e++;
- return e ? g(i[e], j[e]) : i[e] === O ? -1 : j[e] === O ? 1 : 0
- }, c) : G
- }, b.matches = function(a, c) {
- return b(a, null, null, c)
- }, b.matchesSelector = function(a, c) {
- if ((a.ownerDocument || a) !== G && F(a), c = c.replace(lb, "='$1']"), !(!v.matchesSelector || !I || K && K.test(c) || J && J.test(c)))
- try {
- var d = L.call(a, c);
- if (d || v.disconnectedMatch || a.document && 11 !== a.document.nodeType)
- return d
- } catch (e) {
- }
- return b(c, G, null, [a]).length > 0
- }, b.contains = function(a, b) {
- return (a.ownerDocument || a) !== G && F(a), M(a, b)
- }, b.attr = function(a, b) {
- (a.ownerDocument || a) !== G && F(a);
- var c = w.attrHandle[b.toLowerCase()], d = c && X.call(w.attrHandle, b.toLowerCase()) ? c(a, b, !I) : void 0;
- return void 0 !== d ? d : v.attributes || !I ? a.getAttribute(b) : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
- }, b.error = function(a) {
- throw new Error("Syntax error, unrecognized expression: " + a)
- }, b.uniqueSort = function(a) {
- var b, c = [], d = 0, e = 0;
- if (E = !v.detectDuplicates, D = !v.sortStable && a.slice(0), a.sort(U), E) {
- for (; b = a[e++]; )
- b === a[e] && (d = c.push(e));
- for (; d--; )
- a.splice(c[d], 1)
- }
- return D = null, a
- }, x = b.getText = function(a) {
- var b, c = "", d = 0, e = a.nodeType;
- if (e) {
- if (1 === e || 9 === e || 11 === e) {
- if ("string" == typeof a.textContent)
- return a.textContent;
- for (a = a.firstChild; a; a = a.nextSibling)
- c += x(a)
- } else if (3 === e || 4 === e)
- return a.nodeValue
- } else
- for (; b = a[d++]; )
- c += x(b);
- return c
- }, w = b.selectors = {cacheLength: 50,createPseudo: d,match: ob,attrHandle: {},find: {},relative: {">": {dir: "parentNode",first: !0}," ": {dir: "parentNode"},"+": {dir: "previousSibling",first: !0},"~": {dir: "previousSibling"}},preFilter: {ATTR: function(a) {
- return a[1] = a[1].replace(vb, wb), a[3] = (a[3] || a[4] || a[5] || "").replace(vb, wb), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4)
- },CHILD: function(a) {
- return a[1] = a[1].toLowerCase(), "nth" === a[1].slice(0, 3) ? (a[3] || b.error(a[0]), a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3])), a[5] = +(a[7] + a[8] || "odd" === a[3])) : a[3] && b.error(a[0]), a
- },PSEUDO: function(a) {
- var b, c = !a[6] && a[2];
- return ob.CHILD.test(a[0]) ? null : (a[3] ? a[2] = a[4] || a[5] || "" : c && mb.test(c) && (b = z(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && (a[0] = a[0].slice(0, b), a[2] = c.slice(0, b)), a.slice(0, 3))
- }},filter: {TAG: function(a) {
- var b = a.replace(vb, wb).toLowerCase();
- return "*" === a ? function() {
- return !0
- } : function(a) {
- return a.nodeName && a.nodeName.toLowerCase() === b
- }
- },CLASS: function(a) {
- var b = R[a + " "];
- return b || (b = new RegExp("(^|" + db + ")" + a + "(" + db + "|$)")) && R(a, function(a) {
- return b.test("string" == typeof a.className && a.className || typeof a.getAttribute !== V && a.getAttribute("class") || "")
- })
- },ATTR: function(a, c, d) {
- return function(e) {
- var f = b.attr(e, a);
- return null == f ? "!=" === c : c ? (f += "", "=" === c ? f === d : "!=" === c ? f !== d : "^=" === c ? d && 0 === f.indexOf(d) : "*=" === c ? d && f.indexOf(d) > -1 : "$=" === c ? d && f.slice(-d.length) === d : "~=" === c ? (" " + f + " ").indexOf(d) > -1 : "|=" === c ? f === d || f.slice(0, d.length + 1) === d + "-" : !1) : !0
- }
- },CHILD: function(a, b, c, d, e) {
- var f = "nth" !== a.slice(0, 3), g = "last" !== a.slice(-4), h = "of-type" === b;
- return 1 === d && 0 === e ? function(a) {
- return !!a.parentNode
- } : function(b, c, i) {
- var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling", q = b.parentNode, r = h && b.nodeName.toLowerCase(), s = !i && !h;
- if (q) {
- if (f) {
- for (; p; ) {
- for (l = b; l = l[p]; )
- if (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType)
- return !1;
- o = p = "only" === a && !o && "nextSibling"
- }
- return !0
- }
- if (o = [g ? q.firstChild : q.lastChild], g && s) {
- for (k = q[N] || (q[N] = {}), j = k[a] || [], n = j[0] === P && j[1], m = j[0] === P && j[2], l = n && q.childNodes[n]; l = ++n && l && l[p] || (m = n = 0) || o.pop(); )
- if (1 === l.nodeType && ++m && l === b) {
- k[a] = [P, n, m];
- break
- }
- } else if (s && (j = (b[N] || (b[N] = {}))[a]) && j[0] === P)
- m = j[1];
- else
- for (; (l = ++n && l && l[p] || (m = n = 0) || o.pop()) && ((h ? l.nodeName.toLowerCase() !== r : 1 !== l.nodeType) || !++m || (s && ((l[N] || (l[N] = {}))[a] = [P, m]), l !== b)); )
- ;
- return m -= e, m === d || m % d === 0 && m / d >= 0
- }
- }
- },PSEUDO: function(a, c) {
- var e, f = w.pseudos[a] || w.setFilters[a.toLowerCase()] || b.error("unsupported pseudo: " + a);
- return f[N] ? f(c) : f.length > 1 ? (e = [a, a, "", c], w.setFilters.hasOwnProperty(a.toLowerCase()) ? d(function(a, b) {
- for (var d, e = f(a, c), g = e.length; g--; )
- d = bb.call(a, e[g]), a[d] = !(b[d] = e[g])
- }) : function(a) {
- return f(a, 0, e)
- }) : f
- }},pseudos: {not: d(function(a) {
- var b = [], c = [], e = A(a.replace(ib, "$1"));
- return e[N] ? d(function(a, b, c, d) {
- for (var f, g = e(a, null, d, []), h = a.length; h--; )
- (f = g[h]) && (a[h] = !(b[h] = f))
- }) : function(a, d, f) {
- return b[0] = a, e(b, null, f, c), !c.pop()
- }
- }),has: d(function(a) {
- return function(c) {
- return b(a, c).length > 0
- }
- }),contains: d(function(a) {
- return function(b) {
- return (b.textContent || b.innerText || x(b)).indexOf(a) > -1
- }
- }),lang: d(function(a) {
- return nb.test(a || "") || b.error("unsupported lang: " + a), a = a.replace(vb, wb).toLowerCase(), function(b) {
- var c;
- do
- if (c = I ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang"))
- return c = c.toLowerCase(), c === a || 0 === c.indexOf(a + "-");
- while ((b = b.parentNode) && 1 === b.nodeType);
- return !1
- }
- }),target: function(b) {
- var c = a.location && a.location.hash;
- return c && c.slice(1) === b.id
- },root: function(a) {
- return a === H
- },focus: function(a) {
- return a === G.activeElement && (!G.hasFocus || G.hasFocus()) && !!(a.type || a.href || ~a.tabIndex)
- },enabled: function(a) {
- return a.disabled === !1
- },disabled: function(a) {
- return a.disabled === !0
- },checked: function(a) {
- var b = a.nodeName.toLowerCase();
- return "input" === b && !!a.checked || "option" === b && !!a.selected
- },selected: function(a) {
- return a.parentNode && a.parentNode.selectedIndex, a.selected === !0
- },empty: function(a) {
- for (a = a.firstChild; a; a = a.nextSibling)
- if (a.nodeType < 6)
- return !1;
- return !0
- },parent: function(a) {
- return !w.pseudos.empty(a)
- },header: function(a) {
- return qb.test(a.nodeName)
- },input: function(a) {
- return pb.test(a.nodeName)
- },button: function(a) {
- var b = a.nodeName.toLowerCase();
- return "input" === b && "button" === a.type || "button" === b
- },text: function(a) {
- var b;
- return "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase())
- },first: j(function() {
- return [0]
- }),last: j(function(a, b) {
- return [b - 1]
- }),eq: j(function(a, b, c) {
- return [0 > c ? c + b : c]
- }),even: j(function(a, b) {
- for (var c = 0; b > c; c += 2)
- a.push(c);
- return a
- }),odd: j(function(a, b) {
- for (var c = 1; b > c; c += 2)
- a.push(c);
- return a
- }),lt: j(function(a, b, c) {
- for (var d = 0 > c ? c + b : c; --d >= 0; )
- a.push(d);
- return a
- }),gt: j(function(a, b, c) {
- for (var d = 0 > c ? c + b : c; ++d < b; )
- a.push(d);
- return a
- })}}, w.pseudos.nth = w.pseudos.eq;
- for (u in {radio: !0,checkbox: !0,file: !0,password: !0,image: !0})
- w.pseudos[u] = h(u);
- for (u in {submit: !0,reset: !0})
- w.pseudos[u] = i(u);
- return l.prototype = w.filters = w.pseudos, w.setFilters = new l, z = b.tokenize = function(a, c) {
- var d, e, f, g, h, i, j, k = S[a + " "];
- if (k)
- return c ? 0 : k.slice(0);
- for (h = a, i = [], j = w.preFilter; h; ) {
- (!d || (e = jb.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push(f = [])), d = !1, (e = kb.exec(h)) && (d = e.shift(), f.push({value: d,type: e[0].replace(ib, " ")}), h = h.slice(d.length));
- for (g in w.filter)
- !(e = ob[g].exec(h)) || j[g] && !(e = j[g](e)) || (d = e.shift(), f.push({value: d,type: g,matches: e}), h = h.slice(d.length));
- if (!d)
- break
- }
- return c ? h.length : h ? b.error(a) : S(a, i).slice(0)
- }, A = b.compile = function(a, b) {
- var c, d = [], e = [], f = T[a + " "];
- if (!f) {
- for (b || (b = z(a)), c = b.length; c--; )
- f = s(b[c]), f[N] ? d.push(f) : e.push(f);
- f = T(a, t(e, d)), f.selector = a
- }
- return f
- }, B = b.select = function(a, b, c, d) {
- var e, f, g, h, i, j = "function" == typeof a && a, l = !d && z(a = j.selector || a);
- if (c = c || [], 1 === l.length) {
- if (f = l[0] = l[0].slice(0), f.length > 2 && "ID" === (g = f[0]).type && v.getById && 9 === b.nodeType && I && w.relative[f[1].type]) {
- if (b = (w.find.ID(g.matches[0].replace(vb, wb), b) || [])[0], !b)
- return c;
- j && (b = b.parentNode), a = a.slice(f.shift().value.length)
- }
- for (e = ob.needsContext.test(a) ? 0 : f.length; e-- && (g = f[e], !w.relative[h = g.type]); )
- if ((i = w.find[h]) && (d = i(g.matches[0].replace(vb, wb), tb.test(f[0].type) && k(b.parentNode) || b))) {
- if (f.splice(e, 1), a = d.length && m(f), !a)
- return _.apply(c, d), c;
- break
- }
- }
- return (j || A(a, l))(d, b, !I, c, tb.test(a) && k(b.parentNode) || b), c
- }, v.sortStable = N.split("").sort(U).join("") === N, v.detectDuplicates = !!E, F(), v.sortDetached = e(function(a) {
- return 1 & a.compareDocumentPosition(G.createElement("div"))
- }), e(function(a) {
- return a.innerHTML = "<a href='#'></a>", "#" === a.firstChild.getAttribute("href")
- }) || f("type|href|height|width", function(a, b, c) {
- return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2)
- }), v.attributes && e(function(a) {
- return a.innerHTML = "<input/>", a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value")
- }) || f("value", function(a, b, c) {
- return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue
- }), e(function(a) {
- return null == a.getAttribute("disabled")
- }) || f(cb, function(a, b, c) {
- var d;
- return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null
- }), b
- }(a);
- _.find = eb, _.expr = eb.selectors, _.expr[":"] = _.expr.pseudos, _.unique = eb.uniqueSort, _.text = eb.getText, _.isXMLDoc = eb.isXML, _.contains = eb.contains;
- var fb = _.expr.match.needsContext, gb = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, hb = /^.[^:#\[\.,]*$/;
- _.filter = function(a, b, c) {
- var d = b[0];
- return c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? _.find.matchesSelector(d, a) ? [d] : [] : _.find.matches(a, _.grep(b, function(a) {
- return 1 === a.nodeType
- }))
- }, _.fn.extend({find: function(a) {
- var b, c = this.length, d = [], e = this;
- if ("string" != typeof a)
- return this.pushStack(_(a).filter(function() {
- for (b = 0; c > b; b++)
- if (_.contains(e[b], this))
- return !0
- }));
- for (b = 0; c > b; b++)
- _.find(a, e[b], d);
- return d = this.pushStack(c > 1 ? _.unique(d) : d), d.selector = this.selector ? this.selector + " " + a : a, d
- },filter: function(a) {
- return this.pushStack(d(this, a || [], !1))
- },not: function(a) {
- return this.pushStack(d(this, a || [], !0))
- },is: function(a) {
- return !!d(this, "string" == typeof a && fb.test(a) ? _(a) : a || [], !1).length
- }});
- var ib, jb = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, kb = _.fn.init = function(a, b) {
- var c, d;
- if (!a)
- return this;
- if ("string" == typeof a) {
- if (c = "<" === a[0] && ">" === a[a.length - 1] && a.length >= 3 ? [null, a, null] : jb.exec(a), !c || !c[1] && b)
- return !b || b.jquery ? (b || ib).find(a) : this.constructor(b).find(a);
- if (c[1]) {
- if (b = b instanceof _ ? b[0] : b, _.merge(this, _.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : Z, !0)), gb.test(c[1]) && _.isPlainObject(b))
- for (c in b)
- _.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]);
- return this
- }
- return d = Z.getElementById(c[2]), d && d.parentNode && (this.length = 1, this[0] = d), this.context = Z, this.selector = a, this
- }
- return a.nodeType ? (this.context = this[0] = a, this.length = 1, this) : _.isFunction(a) ? "undefined" != typeof ib.ready ? ib.ready(a) : a(_) : (void 0 !== a.selector && (this.selector = a.selector, this.context = a.context), _.makeArray(a, this))
- };
- kb.prototype = _.fn, ib = _(Z);
- var lb = /^(?:parents|prev(?:Until|All))/, mb = {children: !0,contents: !0,next: !0,prev: !0};
- _.extend({dir: function(a, b, c) {
- for (var d = [], e = void 0 !== c; (a = a[b]) && 9 !== a.nodeType; )
- if (1 === a.nodeType) {
- if (e && _(a).is(c))
- break;
- d.push(a)
- }
- return d
- },sibling: function(a, b) {
- for (var c = []; a; a = a.nextSibling)
- 1 === a.nodeType && a !== b && c.push(a);
- return c
- }}), _.fn.extend({has: function(a) {
- var b = _(a, this), c = b.length;
- return this.filter(function() {
- for (var a = 0; c > a; a++)
- if (_.contains(this, b[a]))
- return !0
- })
- },closest: function(a, b) {
- for (var c, d = 0, e = this.length, f = [], g = fb.test(a) || "string" != typeof a ? _(a, b || this.context) : 0; e > d; d++)
- for (c = this[d]; c && c !== b; c = c.parentNode)
- if (c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && _.find.matchesSelector(c, a))) {
- f.push(c);
- break
- }
- return this.pushStack(f.length > 1 ? _.unique(f) : f)
- },index: function(a) {
- return a ? "string" == typeof a ? U.call(_(a), this[0]) : U.call(this, a.jquery ? a[0] : a) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
- },add: function(a, b) {
- return this.pushStack(_.unique(_.merge(this.get(), _(a, b))))
- },addBack: function(a) {
- return this.add(null == a ? this.prevObject : this.prevObject.filter(a))
- }}), _.each({parent: function(a) {
- var b = a.parentNode;
- return b && 11 !== b.nodeType ? b : null
- },parents: function(a) {
- return _.dir(a, "parentNode")
- },parentsUntil: function(a, b, c) {
- return _.dir(a, "parentNode", c)
- },next: function(a) {
- return e(a, "nextSibling")
- },prev: function(a) {
- return e(a, "previousSibling")
- },nextAll: function(a) {
- return _.dir(a, "nextSibling")
- },prevAll: function(a) {
- return _.dir(a, "previousSibling")
- },nextUntil: function(a, b, c) {
- return _.dir(a, "nextSibling", c)
- },prevUntil: function(a, b, c) {
- return _.dir(a, "previousSibling", c)
- },siblings: function(a) {
- return _.sibling((a.parentNode || {}).firstChild, a)
- },children: function(a) {
- return _.sibling(a.firstChild)
- },contents: function(a) {
- return a.contentDocument || _.merge([], a.childNodes)
- }}, function(a, b) {
- _.fn[a] = function(c, d) {
- var e = _.map(this, b, c);
- return "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = _.filter(d, e)), this.length > 1 && (mb[a] || _.unique(e), lb.test(a) && e.reverse()), this.pushStack(e)
- }
- });
- var nb = /\S+/g, ob = {};
- _.Callbacks = function(a) {
- a = "string" == typeof a ? ob[a] || f(a) : _.extend({}, a);
- var b, c, d, e, g, h, i = [], j = !a.once && [], k = function(f) {
- for (b = a.memory && f, c = !0, h = e || 0, e = 0, g = i.length, d = !0; i && g > h; h++)
- if (i[h].apply(f[0], f[1]) === !1 && a.stopOnFalse) {
- b = !1;
- break
- }
- d = !1, i && (j ? j.length && k(j.shift()) : b ? i = [] : l.disable())
- }, l = {add: function() {
- if (i) {
- var c = i.length;
- !function f(b) {
- _.each(b, function(b, c) {
- var d = _.type(c);
- "function" === d ? a.unique && l.has(c) || i.push(c) : c && c.length && "string" !== d && f(c)
- })
- }(arguments), d ? g = i.length : b && (e = c, k(b))
- }
- return this
- },remove: function() {
- return i && _.each(arguments, function(a, b) {
- for (var c; (c = _.inArray(b, i, c)) > -1; )
- i.splice(c, 1), d && (g >= c && g--, h >= c && h--)
- }), this
- },has: function(a) {
- return a ? _.inArray(a, i) > -1 : !(!i || !i.length)
- },empty: function() {
- return i = [], g = 0, this
- },disable: function() {
- return i = j = b = void 0, this
- },disabled: function() {
- return !i
- },lock: function() {
- return j = void 0, b || l.disable(), this
- },locked: function() {
- return !j
- },fireWith: function(a, b) {
- return !i || c && !j || (b = b || [], b = [a, b.slice ? b.slice() : b], d ? j.push(b) : k(b)), this
- },fire: function() {
- return l.fireWith(this, arguments), this
- },fired: function() {
- return !!c
- }};
- return l
- }, _.extend({Deferred: function(a) {
- var b = [["resolve", "done", _.Callbacks("once memory"), "resolved"], ["reject", "fail", _.Callbacks("once memory"), "rejected"], ["notify", "progress", _.Callbacks("memory")]], c = "pending", d = {state: function() {
- return c
- },always: function() {
- return e.done(arguments).fail(arguments), this
- },then: function() {
- var a = arguments;
- return _.Deferred(function(c) {
- _.each(b, function(b, f) {
- var g = _.isFunction(a[b]) && a[b];
- e[f[1]](function() {
- var a = g && g.apply(this, arguments);
- a && _.isFunction(a.promise) ? a.promise().done(c.resolve).fail(c.reject).progress(c.notify) : c[f[0] + "With"](this === d ? c.promise() : this, g ? [a] : arguments)
- })
- }), a = null
- }).promise()
- },promise: function(a) {
- return null != a ? _.extend(a, d) : d
- }}, e = {};
- return d.pipe = d.then, _.each(b, function(a, f) {
- var g = f[2], h = f[3];
- d[f[1]] = g.add, h && g.add(function() {
- c = h
- }, b[1 ^ a][2].disable, b[2][2].lock), e[f[0]] = function() {
- return e[f[0] + "With"](this === e ? d : this, arguments), this
- }, e[f[0] + "With"] = g.fireWith
- }), d.promise(e), a && a.call(e, e), e
- },when: function(a) {
- var b, c, d, e = 0, f = R.call(arguments), g = f.length, h = 1 !== g || a && _.isFunction(a.promise) ? g : 0, i = 1 === h ? a : _.Deferred(), j = function(a, c, d) {
- return function(e) {
- c[a] = this, d[a] = arguments.length > 1 ? R.call(arguments) : e, d === b ? i.notifyWith(c, d) : --h || i.resolveWith(c, d)
- }
- };
- if (g > 1)
- for (b = new Array(g), c = new Array(g), d = new Array(g); g > e; e++)
- f[e] && _.isFunction(f[e].promise) ? f[e].promise().done(j(e, d, f)).fail(i.reject).progress(j(e, c, b)) : --h;
- return h || i.resolveWith(d, f), i.promise()
- }});
- var pb;
- _.fn.ready = function(a) {
- return _.ready.promise().done(a), this
- }, _.extend({isReady: !1,readyWait: 1,holdReady: function(a) {
- a ? _.readyWait++ : _.ready(!0)
- },ready: function(a) {
- (a === !0 ? --_.readyWait : _.isReady) || (_.isReady = !0, a !== !0 && --_.readyWait > 0 || (pb.resolveWith(Z, [_]), _.fn.triggerHandler && (_(Z).triggerHandler("ready"), _(Z).off("ready"))))
- }}), _.ready.promise = function(b) {
- return pb || (pb = _.Deferred(), "complete" === Z.readyState ? setTimeout(_.ready) : (Z.addEventListener("DOMContentLoaded", g, !1), a.addEventListener("load", g, !1))), pb.promise(b)
- }, _.ready.promise();
- var qb = _.access = function(a, b, c, d, e, f, g) {
- var h = 0, i = a.length, j = null == c;
- if ("object" === _.type(c)) {
- e = !0;
- for (h in c)
- _.access(a, b, h, c[h], !0, f, g)
- } else if (void 0 !== d && (e = !0, _.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), b = null) : (j = b, b = function(a, b, c) {
- return j.call(_(a), c)
- })), b))
- for (; i > h; h++)
- b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c)));
- return e ? a : j ? b.call(a) : i ? b(a[0], c) : f
- };
- _.acceptData = function(a) {
- return 1 === a.nodeType || 9 === a.nodeType || !+a.nodeType
- }, h.uid = 1, h.accepts = _.acceptData, h.prototype = {key: function(a) {
- if (!h.accepts(a))
- return 0;
- var b = {}, c = a[this.expando];
- if (!c) {
- c = h.uid++;
- try {
- b[this.expando] = {value: c}, Object.defineProperties(a, b)
- } catch (d) {
- b[this.expando] = c, _.extend(a, b)
- }
- }
- return this.cache[c] || (this.cache[c] = {}), c
- },set: function(a, b, c) {
- var d, e = this.key(a), f = this.cache[e];
- if ("string" == typeof b)
- f[b] = c;
- else if (_.isEmptyObject(f))
- _.extend(this.cache[e], b);
- else
- for (d in b)
- f[d] = b[d];
- return f
- },get: function(a, b) {
- var c = this.cache[this.key(a)];
- return void 0 === b ? c : c[b]
- },access: function(a, b, c) {
- var d;
- return void 0 === b || b && "string" == typeof b && void 0 === c ? (d = this.get(a, b), void 0 !== d ? d : this.get(a, _.camelCase(b))) : (this.set(a, b, c), void 0 !== c ? c : b)
- },remove: function(a, b) {
- var c, d, e, f = this.key(a), g = this.cache[f];
- if (void 0 === b)
- this.cache[f] = {};
- else {
- _.isArray(b) ? d = b.concat(b.map(_.camelCase)) : (e = _.camelCase(b), b in g ? d = [b, e] : (d = e, d = d in g ? [d] : d.match(nb) || [])), c = d.length;
- for (; c--; )
- delete g[d[c]]
- }
- },hasData: function(a) {
- return !_.isEmptyObject(this.cache[a[this.expando]] || {})
- },discard: function(a) {
- a[this.expando] && delete this.cache[a[this.expando]]
- }};
- var rb = new h, sb = new h, tb = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, ub = /([A-Z])/g;
- _.extend({hasData: function(a) {
- return sb.hasData(a) || rb.hasData(a)
- },data: function(a, b, c) {
- return sb.access(a, b, c)
- },removeData: function(a, b) {
- sb.remove(a, b)
- },_data: function(a, b, c) {
- return rb.access(a, b, c)
- },_removeData: function(a, b) {
- rb.remove(a, b)
- }}), _.fn.extend({data: function(a, b) {
- var c, d, e, f = this[0], g = f && f.attributes;
- if (void 0 === a) {
- if (this.length && (e = sb.get(f), 1 === f.nodeType && !rb.get(f, "hasDataAttrs"))) {
- for (c = g.length; c--; )
- g[c] && (d = g[c].name, 0 === d.indexOf("data-") && (d = _.camelCase(d.slice(5)), i(f, d, e[d])));
- rb.set(f, "hasDataAttrs", !0)
- }
- return e
- }
- return "object" == typeof a ? this.each(function() {
- sb.set(this, a)
- }) : qb(this, function(b) {
- var c, d = _.camelCase(a);
- if (f && void 0 === b) {
- if (c = sb.get(f, a), void 0 !== c)
- return c;
- if (c = sb.get(f, d), void 0 !== c)
- return c;
- if (c = i(f, d, void 0), void 0 !== c)
- return c
- } else
- this.each(function() {
- var c = sb.get(this, d);
- sb.set(this, d, b), -1 !== a.indexOf("-") && void 0 !== c && sb.set(this, a, b)
- })
- }, null, b, arguments.length > 1, null, !0)
- },removeData: function(a) {
- return this.each(function() {
- sb.remove(this, a)
- })
- }}), _.extend({queue: function(a, b, c) {
- var d;
- return a ? (b = (b || "fx") + "queue", d = rb.get(a, b), c && (!d || _.isArray(c) ? d = rb.access(a, b, _.makeArray(c)) : d.push(c)), d || []) : void 0
- },dequeue: function(a, b) {
- b = b || "fx";
- var c = _.queue(a, b), d = c.length, e = c.shift(), f = _._queueHooks(a, b), g = function() {
- _.dequeue(a, b)
- };
- "inprogress" === e && (e = c.shift(), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire()
- },_queueHooks: function(a, b) {
- var c = b + "queueHooks";
- return rb.get(a, c) || rb.access(a, c, {empty: _.Callbacks("once memory").add(function() {
- rb.remove(a, [b + "queue", c])
- })})
- }}), _.fn.extend({queue: function(a, b) {
- var c = 2;
- return "string" != typeof a && (b = a, a = "fx", c--), arguments.length < c ? _.queue(this[0], a) : void 0 === b ? this : this.each(function() {
- var c = _.queue(this, a, b);
- _._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && _.dequeue(this, a)
- })
- },dequeue: function(a) {
- return this.each(function() {
- _.dequeue(this, a)
- })
- },clearQueue: function(a) {
- return this.queue(a || "fx", [])
- },promise: function(a, b) {
- var c, d = 1, e = _.Deferred(), f = this, g = this.length, h = function() {
- --d || e.resolveWith(f, [f])
- };
- for ("string" != typeof a && (b = a, a = void 0), a = a || "fx"; g--; )
- c = rb.get(f[g], a + "queueHooks"), c && c.empty && (d++, c.empty.add(h));
- return h(), e.promise(b)
- }});
- var vb = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, wb = ["Top", "Right", "Bottom", "Left"], xb = function(a, b) {
- return a = b || a, "none" === _.css(a, "display") || !_.contains(a.ownerDocument, a)
- }, yb = /^(?:checkbox|radio)$/i;
- !function() {
- var a = Z.createDocumentFragment(), b = a.appendChild(Z.createElement("div")), c = Z.createElement("input");
- c.setAttribute("type", "radio"), c.setAttribute("checked", "checked"), c.setAttribute("name", "t"), b.appendChild(c), Y.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked, b.innerHTML = "<textarea>x</textarea>", Y.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue
- }();
- var zb = "undefined";
- Y.focusinBubbles = "onfocusin" in a;
- var Ab = /^key/, Bb = /^(?:mouse|pointer|contextmenu)|click/, Cb = /^(?:focusinfocus|focusoutblur)$/, Db = /^([^.]*)(?:\.(.+)|)$/;
- _.event = {global: {},add: function(a, b, c, d, e) {
- var f, g, h, i, j, k, l, m, n, o, p, q = rb.get(a);
- if (q)
- for (c.handler && (f = c, c = f.handler, e = f.selector), c.guid || (c.guid = _.guid++), (i = q.events) || (i = q.events = {}), (g = q.handle) || (g = q.handle = function(b) {
- return typeof _ !== zb && _.event.triggered !== b.type ? _.event.dispatch.apply(a, arguments) : void 0
- }), b = (b || "").match(nb) || [""], j = b.length; j--; )
- h = Db.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n && (l = _.event.special[n] || {}, n = (e ? l.delegateType : l.bindType) || n, l = _.event.special[n] || {}, k = _.extend({type: n,origType: p,data: d,handler: c,guid: c.guid,selector: e,needsContext: e && _.expr.match.needsContext.test(e),namespace: o.join(".")}, f), (m = i[n]) || (m = i[n] = [], m.delegateCount = 0, l.setup && l.setup.call(a, d, o, g) !== !1 || a.addEventListener && a.addEventListener(n, g, !1)), l.add && (l.add.call(a, k), k.handler.guid || (k.handler.guid = c.guid)), e ? m.splice(m.delegateCount++, 0, k) : m.push(k), _.event.global[n] = !0)
- },remove: function(a, b, c, d, e) {
- var f, g, h, i, j, k, l, m, n, o, p, q = rb.hasData(a) && rb.get(a);
- if (q && (i = q.events)) {
- for (b = (b || "").match(nb) || [""], j = b.length; j--; )
- if (h = Db.exec(b[j]) || [], n = p = h[1], o = (h[2] || "").split(".").sort(), n) {
- for (l = _.event.special[n] || {}, n = (d ? l.delegateType : l.bindType) || n, m = i[n] || [], h = h[2] && new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)"), g = f = m.length; f--; )
- k = m[f], !e && p !== k.origType || c && c.guid !== k.guid || h && !h.test(k.namespace) || d && d !== k.selector && ("**" !== d || !k.selector) || (m.splice(f, 1), k.selector && m.delegateCount--, l.remove && l.remove.call(a, k));
- g && !m.length && (l.teardown && l.teardown.call(a, o, q.handle) !== !1 || _.removeEvent(a, n, q.handle), delete i[n])
- } else
- for (n in i)
- _.event.remove(a, n + b[j], c, d, !0);
- _.isEmptyObject(i) && (delete q.handle, rb.remove(a, "events"))
- }
- },trigger: function(b, c, d, e) {
- var f, g, h, i, j, k, l, m = [d || Z], n = X.call(b, "type") ? b.type : b, o = X.call(b, "namespace") ? b.namespace.split(".") : [];
- if (g = h = d = d || Z, 3 !== d.nodeType && 8 !== d.nodeType && !Cb.test(n + _.event.triggered) && (n.indexOf(".") >= 0 && (o = n.split("."), n = o.shift(), o.sort()), j = n.indexOf(":") < 0 && "on" + n, b = b[_.expando] ? b : new _.Event(n, "object" == typeof b && b), b.isTrigger = e ? 2 : 3, b.namespace = o.join("."), b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + o.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, b.result = void 0, b.target || (b.target = d), c = null == c ? [b] : _.makeArray(c, [b]), l = _.event.special[n] || {}, e || !l.trigger || l.trigger.apply(d, c) !== !1)) {
- if (!e && !l.noBubble && !_.isWindow(d)) {
- for (i = l.delegateType || n, Cb.test(i + n) || (g = g.parentNode); g; g = g.parentNode)
- m.push(g), h = g;
- h === (d.ownerDocument || Z) && m.push(h.defaultView || h.parentWindow || a)
- }
- for (f = 0; (g = m[f++]) && !b.isPropagationStopped(); )
- b.type = f > 1 ? i : l.bindType || n, k = (rb.get(g, "events") || {})[b.type] && rb.get(g, "handle"), k && k.apply(g, c), k = j && g[j], k && k.apply && _.acceptData(g) && (b.result = k.apply(g, c), b.result === !1 && b.preventDefault());
- return b.type = n, e || b.isDefaultPrevented() || l._default && l._default.apply(m.pop(), c) !== !1 || !_.acceptData(d) || j && _.isFunction(d[n]) && !_.isWindow(d) && (h = d[j], h && (d[j] = null), _.event.triggered = n, d[n](), _.event.triggered = void 0, h && (d[j] = h)), b.result
- }
- },dispatch: function(a) {
- a = _.event.fix(a);
- var b, c, d, e, f, g = [], h = R.call(arguments), i = (rb.get(this, "events") || {})[a.type] || [], j = _.event.special[a.type] || {};
- if (h[0] = a, a.delegateTarget = this, !j.preDispatch || j.preDispatch.call(this, a) !== !1) {
- for (g = _.event.handlers.call(this, a, i), b = 0; (e = g[b++]) && !a.isPropagationStopped(); )
- for (a.currentTarget = e.elem, c = 0; (f = e.handlers[c++]) && !a.isImmediatePropagationStopped(); )
- (!a.namespace_re || a.namespace_re.test(f.namespace)) && (a.handleObj = f, a.data = f.data, d = ((_.event.special[f.origType] || {}).handle || f.handler).apply(e.elem, h), void 0 !== d && (a.result = d) === !1 && (a.preventDefault(), a.stopPropagation()));
- return j.postDispatch && j.postDispatch.call(this, a), a.result
- }
- },handlers: function(a, b) {
- var c, d, e, f, g = [], h = b.delegateCount, i = a.target;
- if (h && i.nodeType && (!a.button || "click" !== a.type))
- for (; i !== this; i = i.parentNode || this)
- if (i.disabled !== !0 || "click" !== a.type) {
- for (d = [], c = 0; h > c; c++)
- f = b[c], e = f.selector + " ", void 0 === d[e] && (d[e] = f.needsContext ? _(e, this).index(i) >= 0 : _.find(e, this, null, [i]).length), d[e] && d.push(f);
- d.length && g.push({elem: i,handlers: d})
- }
- return h < b.length && g.push({elem: this,handlers: b.slice(h)}), g
- },props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks: {},keyHooks: {props: "char charCode key keyCode".split(" "),filter: function(a, b) {
- return null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a
- }},mouseHooks: {props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter: function(a, b) {
- var c, d, e, f = b.button;
- return null == a.pageX && null != b.clientX && (c = a.target.ownerDocument || Z, d = c.documentElement, e = c.body, a.pageX = b.clientX + (d && d.scrollLeft || e && e.scrollLeft || 0) - (d && d.clientLeft || e && e.clientLeft || 0), a.pageY = b.clientY + (d && d.scrollTop || e && e.scrollTop || 0) - (d && d.clientTop || e && e.clientTop || 0)), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a
- }},fix: function(a) {
- if (a[_.expando])
- return a;
- var b, c, d, e = a.type, f = a, g = this.fixHooks[e];
- for (g || (this.fixHooks[e] = g = Bb.test(e) ? this.mouseHooks : Ab.test(e) ? this.keyHooks : {}), d = g.props ? this.props.concat(g.props) : this.props, a = new _.Event(f), b = d.length; b--; )
- c = d[b], a[c] = f[c];
- return a.target || (a.target = Z), 3 === a.target.nodeType && (a.target = a.target.parentNode), g.filter ? g.filter(a, f) : a
- },special: {load: {noBubble: !0},focus: {trigger: function() {
- return this !== l() && this.focus ? (this.focus(), !1) : void 0
- },delegateType: "focusin"},blur: {trigger: function() {
- return this === l() && this.blur ? (this.blur(), !1) : void 0
- },delegateType: "focusout"},click: {trigger: function() {
- return "checkbox" === this.type && this.click && _.nodeName(this, "input") ? (this.click(), !1) : void 0
- },_default: function(a) {
- return _.nodeName(a.target, "a")
- }},beforeunload: {postDispatch: function(a) {
- void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result)
- }}},simulate: function(a, b, c, d) {
- var e = _.extend(new _.Event, c, {type: a,isSimulated: !0,originalEvent: {}});
- d ? _.event.trigger(e, null, b) : _.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault()
- }}, _.removeEvent = function(a, b, c) {
- a.removeEventListener && a.removeEventListener(b, c, !1)
- }, _.Event = function(a, b) {
- return this instanceof _.Event ? (a && a.type ? (this.originalEvent = a, this.type = a.type, this.isDefaultPrevented = a.defaultPrevented || void 0 === a.defaultPrevented && a.returnValue === !1 ? j : k) : this.type = a, b && _.extend(this, b), this.timeStamp = a && a.timeStamp || _.now(), void (this[_.expando] = !0)) : new _.Event(a, b)
- }, _.Event.prototype = {isDefaultPrevented: k,isPropagationStopped: k,isImmediatePropagationStopped: k,preventDefault: function() {
- var a = this.originalEvent;
- this.isDefaultPrevented = j, a && a.preventDefault && a.preventDefault()
- },stopPropagation: function() {
- var a = this.originalEvent;
- this.isPropagationStopped = j, a && a.stopPropagation && a.stopPropagation()
- },stopImmediatePropagation: function() {
- var a = this.originalEvent;
- this.isImmediatePropagationStopped = j, a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation()
- }}, _.each({mouseenter: "mouseover",mouseleave: "mouseout",pointerenter: "pointerover",pointerleave: "pointerout"}, function(a, b) {
- _.event.special[a] = {delegateType: b,bindType: b,handle: function(a) {
- var c, d = this, e = a.relatedTarget, f = a.handleObj;
- return (!e || e !== d && !_.contains(d, e)) && (a.type = f.origType, c = f.handler.apply(this, arguments), a.type = b), c
- }}
- }), Y.focusinBubbles || _.each({focus: "focusin",blur: "focusout"}, function(a, b) {
- var c = function(a) {
- _.event.simulate(b, a.target, _.event.fix(a), !0)
- };
- _.event.special[b] = {setup: function() {
- var d = this.ownerDocument || this, e = rb.access(d, b);
- e || d.addEventListener(a, c, !0), rb.access(d, b, (e || 0) + 1)
- },teardown: function() {
- var d = this.ownerDocument || this, e = rb.access(d, b) - 1;
- e ? rb.access(d, b, e) : (d.removeEventListener(a, c, !0), rb.remove(d, b))
- }}
- }), _.fn.extend({on: function(a, b, c, d, e) {
- var f, g;
- if ("object" == typeof a) {
- "string" != typeof b && (c = c || b, b = void 0);
- for (g in a)
- this.on(g, b, c, a[g], e);
- return this
- }
- if (null == c && null == d ? (d = b, c = b = void 0) : null == d && ("string" == typeof b ? (d = c, c = void 0) : (d = c, c = b, b = void 0)), d === !1)
- d = k;
- else if (!d)
- return this;
- return 1 === e && (f = d, d = function(a) {
- return _().off(a), f.apply(this, arguments)
- }, d.guid = f.guid || (f.guid = _.guid++)), this.each(function() {
- _.event.add(this, a, d, c, b)
- })
- },one: function(a, b, c, d) {
- return this.on(a, b, c, d, 1)
- },off: function(a, b, c) {
- var d, e;
- if (a && a.preventDefault && a.handleObj)
- return d = a.handleObj, _(a.delegateTarget).off(d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler), this;
- if ("object" == typeof a) {
- for (e in a)
- this.off(e, b, a[e]);
- return this
- }
- return (b === !1 || "function" == typeof b) && (c = b, b = void 0), c === !1 && (c = k), this.each(function() {
- _.event.remove(this, a, c, b)
- })
- },trigger: function(a, b) {
- return this.each(function() {
- _.event.trigger(a, b, this)
- })
- },triggerHandler: function(a, b) {
- var c = this[0];
- return c ? _.event.trigger(a, b, c, !0) : void 0
- }});
- var Eb = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, Fb = /<([\w:]+)/, Gb = /<|&#?\w+;/, Hb = /<(?:script|style|link)/i, Ib = /checked\s*(?:[^=]|=\s*.checked.)/i, Jb = /^$|\/(?:java|ecma)script/i, Kb = /^true\/(.*)/, Lb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, Mb = {option: [1, "<select multiple='multiple'>", "</select>"],thead: [1, "<table>", "</table>"],col: [2, "<table><colgroup>", "</colgroup></table>"],tr: [2, "<table><tbody>", "</tbody></table>"],td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],_default: [0, "", ""]};
- Mb.optgroup = Mb.option, Mb.tbody = Mb.tfoot = Mb.colgroup = Mb.caption = Mb.thead, Mb.th = Mb.td, _.extend({clone: function(a, b, c) {
- var d, e, f, g, h = a.cloneNode(!0), i = _.contains(a.ownerDocument, a);
- if (!(Y.noCloneChecked || 1 !== a.nodeType && 11 !== a.nodeType || _.isXMLDoc(a)))
- for (g = r(h), f = r(a), d = 0, e = f.length; e > d; d++)
- s(f[d], g[d]);
- if (b)
- if (c)
- for (f = f || r(a), g = g || r(h), d = 0, e = f.length; e > d; d++)
- q(f[d], g[d]);
- else
- q(a, h);
- return g = r(h, "script"), g.length > 0 && p(g, !i && r(a, "script")), h
- },buildFragment: function(a, b, c, d) {
- for (var e, f, g, h, i, j, k = b.createDocumentFragment(), l = [], m = 0, n = a.length; n > m; m++)
- if (e = a[m], e || 0 === e)
- if ("object" === _.type(e))
- _.merge(l, e.nodeType ? [e] : e);
- else if (Gb.test(e)) {
- for (f = f || k.appendChild(b.createElement("div")), g = (Fb.exec(e) || ["", ""])[1].toLowerCase(), h = Mb[g] || Mb._default, f.innerHTML = h[1] + e.replace(Eb, "<$1></$2>") + h[2], j = h[0]; j--; )
- f = f.lastChild;
- _.merge(l, f.childNodes), f = k.firstChild, f.textContent = ""
- } else
- l.push(b.createTextNode(e));
- for (k.textContent = "", m = 0; e = l[m++]; )
- if ((!d || -1 === _.inArray(e, d)) && (i = _.contains(e.ownerDocument, e), f = r(k.appendChild(e), "script"), i && p(f), c))
- for (j = 0; e = f[j++]; )
- Jb.test(e.type || "") && c.push(e);
- return k
- },cleanData: function(a) {
- for (var b, c, d, e, f = _.event.special, g = 0; void 0 !== (c = a[g]); g++) {
- if (_.acceptData(c) && (e = c[rb.expando], e && (b = rb.cache[e]))) {
- if (b.events)
- for (d in b.events)
- f[d] ? _.event.remove(c, d) : _.removeEvent(c, d, b.handle);
- rb.cache[e] && delete rb.cache[e]
- }
- delete sb.cache[c[sb.expando]]
- }
- }}), _.fn.extend({text: function(a) {
- return qb(this, function(a) {
- return void 0 === a ? _.text(this) : this.empty().each(function() {
- (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) && (this.textContent = a)
- })
- }, null, a, arguments.length)
- },append: function() {
- return this.domManip(arguments, function(a) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var b = m(this, a);
- b.appendChild(a)
- }
- })
- },prepend: function() {
- return this.domManip(arguments, function(a) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var b = m(this, a);
- b.insertBefore(a, b.firstChild)
- }
- })
- },before: function() {
- return this.domManip(arguments, function(a) {
- this.parentNode && this.parentNode.insertBefore(a, this)
- })
- },after: function() {
- return this.domManip(arguments, function(a) {
- this.parentNode && this.parentNode.insertBefore(a, this.nextSibling)
- })
- },remove: function(a, b) {
- for (var c, d = a ? _.filter(a, this) : this, e = 0; null != (c = d[e]); e++)
- b || 1 !== c.nodeType || _.cleanData(r(c)), c.parentNode && (b && _.contains(c.ownerDocument, c) && p(r(c, "script")), c.parentNode.removeChild(c));
- return this
- },empty: function() {
- for (var a, b = 0; null != (a = this[b]); b++)
- 1 === a.nodeType && (_.cleanData(r(a, !1)), a.textContent = "");
- return this
- },clone: function(a, b) {
- return a = null == a ? !1 : a, b = null == b ? a : b, this.map(function() {
- return _.clone(this, a, b)
- })
- },html: function(a) {
- return qb(this, function(a) {
- var b = this[0] || {}, c = 0, d = this.length;
- if (void 0 === a && 1 === b.nodeType)
- return b.innerHTML;
- if ("string" == typeof a && !Hb.test(a) && !Mb[(Fb.exec(a) || ["", ""])[1].toLowerCase()]) {
- a = a.replace(Eb, "<$1></$2>");
- try {
- for (; d > c; c++)
- b = this[c] || {}, 1 === b.nodeType && (_.cleanData(r(b, !1)), b.innerHTML = a);
- b = 0
- } catch (e) {
- }
- }
- b && this.empty().append(a)
- }, null, a, arguments.length)
- },replaceWith: function() {
- var a = arguments[0];
- return this.domManip(arguments, function(b) {
- a = this.parentNode, _.cleanData(r(this)), a && a.replaceChild(b, this)
- }), a && (a.length || a.nodeType) ? this : this.remove()
- },detach: function(a) {
- return this.remove(a, !0)
- },domManip: function(a, b) {
- a = S.apply([], a);
- var c, d, e, f, g, h, i = 0, j = this.length, k = this, l = j - 1, m = a[0], p = _.isFunction(m);
- if (p || j > 1 && "string" == typeof m && !Y.checkClone && Ib.test(m))
- return this.each(function(c) {
- var d = k.eq(c);
- p && (a[0] = m.call(this, c, d.html())), d.domManip(a, b)
- });
- if (j && (c = _.buildFragment(a, this[0].ownerDocument, !1, this), d = c.firstChild, 1 === c.childNodes.length && (c = d), d)) {
- for (e = _.map(r(c, "script"), n), f = e.length; j > i; i++)
- g = c, i !== l && (g = _.clone(g, !0, !0), f && _.merge(e, r(g, "script"))), b.call(this[i], g, i);
- if (f)
- for (h = e[e.length - 1].ownerDocument, _.map(e, o), i = 0; f > i; i++)
- g = e[i], Jb.test(g.type || "") && !rb.access(g, "globalEval") && _.contains(h, g) && (g.src ? _._evalUrl && _._evalUrl(g.src) : _.globalEval(g.textContent.replace(Lb, "")))
- }
- return this
- }}), _.each({appendTo: "append",prependTo: "prepend",insertBefore: "before",insertAfter: "after",replaceAll: "replaceWith"}, function(a, b) {
- _.fn[a] = function(a) {
- for (var c, d = [], e = _(a), f = e.length - 1, g = 0; f >= g; g++)
- c = g === f ? this : this.clone(!0), _(e[g])[b](c), T.apply(d, c.get());
- return this.pushStack(d)
- }
- });
- var Nb, Ob = {}, Pb = /^margin/, Qb = new RegExp("^(" + vb + ")(?!px)[a-z%]+$", "i"), Rb = function(a) {
- return a.ownerDocument.defaultView.getComputedStyle(a, null)
- };
- !function() {
- function b() {
- g.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", g.innerHTML = "", e.appendChild(f);
- var b = a.getComputedStyle(g, null);
- c = "1%" !== b.top, d = "4px" === b.width, e.removeChild(f)
- }
- var c, d, e = Z.documentElement, f = Z.createElement("div"), g = Z.createElement("div");
- g.style && (g.style.backgroundClip = "content-box", g.cloneNode(!0).style.backgroundClip = "", Y.clearCloneStyle = "content-box" === g.style.backgroundClip, f.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", f.appendChild(g), a.getComputedStyle && _.extend(Y, {pixelPosition: function() {
- return b(), c
- },boxSizingReliable: function() {
- return null == d && b(), d
- },reliableMarginRight: function() {
- var b, c = g.appendChild(Z.createElement("div"));
- return c.style.cssText = g.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", c.style.marginRight = c.style.width = "0", g.style.width = "1px", e.appendChild(f), b = !parseFloat(a.getComputedStyle(c, null).marginRight), e.removeChild(f), b
- }}))
- }(), _.swap = function(a, b, c, d) {
- var e, f, g = {};
- for (f in b)
- g[f] = a.style[f], a.style[f] = b[f];
- e = c.apply(a, d || []);
- for (f in b)
- a.style[f] = g[f];
- return e
- };
- var Sb = /^(none|table(?!-c[ea]).+)/, Tb = new RegExp("^(" + vb + ")(.*)$", "i"), Ub = new RegExp("^([+-])=(" + vb + ")", "i"), Vb = {position: "absolute",visibility: "hidden",display: "block"}, Wb = {letterSpacing: "0",fontWeight: "400"}, Xb = ["Webkit", "O", "Moz", "ms"];
- _.extend({cssHooks: {opacity: {get: function(a, b) {
- if (b) {
- var c = v(a, "opacity");
- return "" === c ? "1" : c
- }
- }}},cssNumber: {columnCount: !0,fillOpacity: !0,flexGrow: !0,flexShrink: !0,fontWeight: !0,lineHeight: !0,opacity: !0,order: !0,orphans: !0,widows: !0,zIndex: !0,zoom: !0},cssProps: {"float": "cssFloat"},style: function(a, b, c, d) {
- if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) {
- var e, f, g, h = _.camelCase(b), i = a.style;
- return b = _.cssProps[h] || (_.cssProps[h] = x(i, h)), g = _.cssHooks[b] || _.cssHooks[h], void 0 === c ? g && "get" in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b] : (f = typeof c, "string" === f && (e = Ub.exec(c)) && (c = (e[1] + 1) * e[2] + parseFloat(_.css(a, b)), f = "number"), void (null != c && c === c && ("number" !== f || _.cssNumber[h] || (c += "px"), Y.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), g && "set" in g && void 0 === (c = g.set(a, c, d)) || (i[b] = c))))
- }
- },css: function(a, b, c, d) {
- var e, f, g, h = _.camelCase(b);
- return b = _.cssProps[h] || (_.cssProps[h] = x(a.style, h)), g = _.cssHooks[b] || _.cssHooks[h], g && "get" in g && (e = g.get(a, !0, c)), void 0 === e && (e = v(a, b, d)), "normal" === e && b in Wb && (e = Wb[b]), "" === c || c ? (f = parseFloat(e), c === !0 || _.isNumeric(f) ? f || 0 : e) : e
- }}), _.each(["height", "width"], function(a, b) {
- _.cssHooks[b] = {get: function(a, c, d) {
- return c ? Sb.test(_.css(a, "display")) && 0 === a.offsetWidth ? _.swap(a, Vb, function() {
- return A(a, b, d)
- }) : A(a, b, d) : void 0
- },set: function(a, c, d) {
- var e = d && Rb(a);
- return y(a, c, d ? z(a, b, d, "border-box" === _.css(a, "boxSizing", !1, e), e) : 0)
- }}
- }), _.cssHooks.marginRight = w(Y.reliableMarginRight, function(a, b) {
- return b ? _.swap(a, {display: "inline-block"}, v, [a, "marginRight"]) : void 0
- }), _.each({margin: "",padding: "",border: "Width"}, function(a, b) {
- _.cssHooks[a + b] = {expand: function(c) {
- for (var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++)
- e[a + wb[d] + b] = f[d] || f[d - 2] || f[0];
- return e
- }}, Pb.test(a) || (_.cssHooks[a + b].set = y)
- }), _.fn.extend({css: function(a, b) {
- return qb(this, function(a, b, c) {
- var d, e, f = {}, g = 0;
- if (_.isArray(b)) {
- for (d = Rb(a), e = b.length; e > g; g++)
- f[b[g]] = _.css(a, b[g], !1, d);
- return f
- }
- return void 0 !== c ? _.style(a, b, c) : _.css(a, b)
- }, a, b, arguments.length > 1)
- },show: function() {
- return B(this, !0)
- },hide: function() {
- return B(this)
- },toggle: function(a) {
- return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function() {
- xb(this) ? _(this).show() : _(this).hide()
- })
- }}), _.Tween = C, C.prototype = {constructor: C,init: function(a, b, c, d, e, f) {
- this.elem = a, this.prop = c, this.easing = e || "swing", this.options = b, this.start = this.now = this.cur(), this.end = d, this.unit = f || (_.cssNumber[c] ? "" : "px")
- },cur: function() {
- var a = C.propHooks[this.prop];
- return a && a.get ? a.get(this) : C.propHooks._default.get(this)
- },start: function(a) {
- var b, c = C.propHooks[this.prop];
- return this.pos = b = this.options.duration ? _.easing[this.easing](a, this.options.duration * a, 0, 1, this.options.duration) : a, this.now = (this.end - this.start) * b + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : C.propHooks._default.set(this), this
- }}, C.prototype.init.prototype = C.prototype, C.propHooks = {_default: {get: function(a) {
- var b;
- return null == a.elem[a.prop] || a.elem.style && null != a.elem.style[a.prop] ? (b = _.css(a.elem, a.prop, ""), b && "auto" !== b ? b : 0) : a.elem[a.prop]
- },set: function(a) {
- _.fx.step[a.prop] ? _.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[_.cssProps[a.prop]] || _.cssHooks[a.prop]) ? _.style(a.elem, a.prop, a.now + a.unit) : a.elem[a.prop] = a.now
- }}}, C.propHooks.scrollTop = C.propHooks.scrollLeft = {set: function(a) {
- a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now)
- }}, _.easing = {linear: function(a) {
- return a
- },swing: function(a) {
- return .5 - Math.cos(a * Math.PI) / 2
- }}, _.fx = C.prototype.init, _.fx.step = {};
- var Yb, Zb, $b = /^(?:toggle|show|hide)$/, _b = new RegExp("^(?:([+-])=|)(" + vb + ")([a-z%]*)$", "i"), ac = /queueHooks$/, bc = [G], cc = {"*": [function(a, b) {
- var c = this.createTween(a, b), d = c.cur(), e = _b.exec(b), f = e && e[3] || (_.cssNumber[a] ? "" : "px"), g = (_.cssNumber[a] || "px" !== f && +d) && _b.exec(_.css(c.elem, a)), h = 1, i = 20;
- if (g && g[3] !== f) {
- f = f || g[3], e = e || [], g = +d || 1;
- do
- h = h || ".5", g /= h, _.style(c.elem, a, g + f);
- while (h !== (h = c.cur() / d) && 1 !== h && --i)
- }
- return e && (g = c.start = +g || +d || 0, c.unit = f, c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2]), c
- }]};
- _.Animation = _.extend(I, {tweener: function(a, b) {
- _.isFunction(a) ? (b = a, a = ["*"]) : a = a.split(" ");
- for (var c, d = 0, e = a.length; e > d; d++)
- c = a[d], cc[c] = cc[c] || [], cc[c].unshift(b)
- },prefilter: function(a, b) {
- b ? bc.unshift(a) : bc.push(a)
- }}), _.speed = function(a, b, c) {
- var d = a && "object" == typeof a ? _.extend({}, a) : {complete: c || !c && b || _.isFunction(a) && a,duration: a,easing: c && b || b && !_.isFunction(b) && b};
- return d.duration = _.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in _.fx.speeds ? _.fx.speeds[d.duration] : _.fx.speeds._default, (null == d.queue || d.queue === !0) && (d.queue = "fx"), d.old = d.complete, d.complete = function() {
- _.isFunction(d.old) && d.old.call(this), d.queue && _.dequeue(this, d.queue)
- }, d
- }, _.fn.extend({fadeTo: function(a, b, c, d) {
- return this.filter(xb).css("opacity", 0).show().end().animate({opacity: b}, a, c, d)
- },animate: function(a, b, c, d) {
- var e = _.isEmptyObject(a), f = _.speed(b, c, d), g = function() {
- var b = I(this, _.extend({}, a), f);
- (e || rb.get(this, "finish")) && b.stop(!0)
- };
- return g.finish = g, e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g)
- },stop: function(a, b, c) {
- var d = function(a) {
- var b = a.stop;
- delete a.stop, b(c)
- };
- return "string" != typeof a && (c = b, b = a, a = void 0), b && a !== !1 && this.queue(a || "fx", []), this.each(function() {
- var b = !0, e = null != a && a + "queueHooks", f = _.timers, g = rb.get(this);
- if (e)
- g[e] && g[e].stop && d(g[e]);
- else
- for (e in g)
- g[e] && g[e].stop && ac.test(e) && d(g[e]);
- for (e = f.length; e--; )
- f[e].elem !== this || null != a && f[e].queue !== a || (f[e].anim.stop(c), b = !1, f.splice(e, 1));
- (b || !c) && _.dequeue(this, a)
- })
- },finish: function(a) {
- return a !== !1 && (a = a || "fx"), this.each(function() {
- var b, c = rb.get(this), d = c[a + "queue"], e = c[a + "queueHooks"], f = _.timers, g = d ? d.length : 0;
- for (c.finish = !0, _.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--; )
- f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1));
- for (b = 0; g > b; b++)
- d[b] && d[b].finish && d[b].finish.call(this);
- delete c.finish
- })
- }}), _.each(["toggle", "show", "hide"], function(a, b) {
- var c = _.fn[b];
- _.fn[b] = function(a, d, e) {
- return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(E(b, !0), a, d, e)
- }
- }), _.each({slideDown: E("show"),slideUp: E("hide"),slideToggle: E("toggle"),fadeIn: {opacity: "show"},fadeOut: {opacity: "hide"},fadeToggle: {opacity: "toggle"}}, function(a, b) {
- _.fn[a] = function(a, c, d) {
- return this.animate(b, a, c, d)
- }
- }), _.timers = [], _.fx.tick = function() {
- var a, b = 0, c = _.timers;
- for (Yb = _.now(); b < c.length; b++)
- a = c[b], a() || c[b] !== a || c.splice(b--, 1);
- c.length || _.fx.stop(), Yb = void 0
- }, _.fx.timer = function(a) {
- _.timers.push(a), a() ? _.fx.start() : _.timers.pop()
- }, _.fx.interval = 13, _.fx.start = function() {
- Zb || (Zb = setInterval(_.fx.tick, _.fx.interval))
- }, _.fx.stop = function() {
- clearInterval(Zb), Zb = null
- }, _.fx.speeds = {slow: 600,fast: 200,_default: 400}, _.fn.delay = function(a, b) {
- return a = _.fx ? _.fx.speeds[a] || a : a, b = b || "fx", this.queue(b, function(b, c) {
- var d = setTimeout(b, a);
- c.stop = function() {
- clearTimeout(d)
- }
- })
- }, function() {
- var a = Z.createElement("input"), b = Z.createElement("select"), c = b.appendChild(Z.createElement("option"));
- a.type = "checkbox", Y.checkOn = "" !== a.value, Y.optSelected = c.selected, b.disabled = !0, Y.optDisabled = !c.disabled, a = Z.createElement("input"), a.value = "t", a.type = "radio", Y.radioValue = "t" === a.value
- }();
- var dc, ec, fc = _.expr.attrHandle;
- _.fn.extend({attr: function(a, b) {
- return qb(this, _.attr, a, b, arguments.length > 1)
- },removeAttr: function(a) {
- return this.each(function() {
- _.removeAttr(this, a)
- })
- }}), _.extend({attr: function(a, b, c) {
- var d, e, f = a.nodeType;
- return a && 3 !== f && 8 !== f && 2 !== f ? typeof a.getAttribute === zb ? _.prop(a, b, c) : (1 === f && _.isXMLDoc(a) || (b = b.toLowerCase(), d = _.attrHooks[b] || (_.expr.match.bool.test(b) ? ec : dc)), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : (e = _.find.attr(a, b), null == e ? void 0 : e) : null !== c ? d && "set" in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void _.removeAttr(a, b)) : void 0
- },removeAttr: function(a, b) {
- var c, d, e = 0, f = b && b.match(nb);
- if (f && 1 === a.nodeType)
- for (; c = f[e++]; )
- d = _.propFix[c] || c, _.expr.match.bool.test(c) && (a[d] = !1), a.removeAttribute(c)
- },attrHooks: {type: {set: function(a, b) {
- if (!Y.radioValue && "radio" === b && _.nodeName(a, "input")) {
- var c = a.value;
- return a.setAttribute("type", b), c && (a.value = c), b
- }
- }}}}), ec = {set: function(a, b, c) {
- return b === !1 ? _.removeAttr(a, c) : a.setAttribute(c, c), c
- }}, _.each(_.expr.match.bool.source.match(/\w+/g), function(a, b) {
- var c = fc[b] || _.find.attr;
- fc[b] = function(a, b, d) {
- var e, f;
- return d || (f = fc[b], fc[b] = e, e = null != c(a, b, d) ? b.toLowerCase() : null, fc[b] = f), e
- }
- });
- var gc = /^(?:input|select|textarea|button)$/i;
- _.fn.extend({prop: function(a, b) {
- return qb(this, _.prop, a, b, arguments.length > 1)
- },removeProp: function(a) {
- return this.each(function() {
- delete this[_.propFix[a] || a]
- })
- }}), _.extend({propFix: {"for": "htmlFor","class": "className"},prop: function(a, b, c) {
- var d, e, f, g = a.nodeType;
- return a && 3 !== g && 8 !== g && 2 !== g ? (f = 1 !== g || !_.isXMLDoc(a), f && (b = _.propFix[b] || b, e = _.propHooks[b]), void 0 !== c ? e && "set" in e && void 0 !== (d = e.set(a, c, b)) ? d : a[b] = c : e && "get" in e && null !== (d = e.get(a, b)) ? d : a[b]) : void 0
- },propHooks: {tabIndex: {get: function(a) {
- return a.hasAttribute("tabindex") || gc.test(a.nodeName) || a.href ? a.tabIndex : -1
- }}}}), Y.optSelected || (_.propHooks.selected = {get: function(a) {
- var b = a.parentNode;
- return b && b.parentNode && b.parentNode.selectedIndex, null
- }}), _.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
- _.propFix[this.toLowerCase()] = this
- });
- var hc = /[\t\r\n\f]/g;
- _.fn.extend({addClass: function(a) {
- var b, c, d, e, f, g, h = "string" == typeof a && a, i = 0, j = this.length;
- if (_.isFunction(a))
- return this.each(function(b) {
- _(this).addClass(a.call(this, b, this.className))
- });
- if (h)
- for (b = (a || "").match(nb) || []; j > i; i++)
- if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hc, " ") : " ")) {
- for (f = 0; e = b[f++]; )
- d.indexOf(" " + e + " ") < 0 && (d += e + " ");
- g = _.trim(d), c.className !== g && (c.className = g)
- }
- return this
- },removeClass: function(a) {
- var b, c, d, e, f, g, h = 0 === arguments.length || "string" == typeof a && a, i = 0, j = this.length;
- if (_.isFunction(a))
- return this.each(function(b) {
- _(this).removeClass(a.call(this, b, this.className))
- });
- if (h)
- for (b = (a || "").match(nb) || []; j > i; i++)
- if (c = this[i], d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(hc, " ") : "")) {
- for (f = 0; e = b[f++]; )
- for (; d.indexOf(" " + e + " ") >= 0; )
- d = d.replace(" " + e + " ", " ");
- g = a ? _.trim(d) : "", c.className !== g && (c.className = g)
- }
- return this
- },toggleClass: function(a, b) {
- var c = typeof a;
- return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : this.each(_.isFunction(a) ? function(c) {
- _(this).toggleClass(a.call(this, c, this.className, b), b)
- } : function() {
- if ("string" === c)
- for (var b, d = 0, e = _(this), f = a.match(nb) || []; b = f[d++]; )
- e.hasClass(b) ? e.removeClass(b) : e.addClass(b);
- else
- (c === zb || "boolean" === c) && (this.className && rb.set(this, "__className__", this.className), this.className = this.className || a === !1 ? "" : rb.get(this, "__className__") || "")
- })
- },hasClass: function(a) {
- for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++)
- if (1 === this[c].nodeType && (" " + this[c].className + " ").replace(hc, " ").indexOf(b) >= 0)
- return !0;
- return !1
- }});
- var ic = /\r/g;
- _.fn.extend({val: function(a) {
- var b, c, d, e = this[0];
- return arguments.length ? (d = _.isFunction(a), this.each(function(c) {
- var e;
- 1 === this.nodeType && (e = d ? a.call(this, c, _(this).val()) : a, null == e ? e = "" : "number" == typeof e ? e += "" : _.isArray(e) && (e = _.map(e, function(a) {
- return null == a ? "" : a + ""
- })), b = _.valHooks[this.type] || _.valHooks[this.nodeName.toLowerCase()], b && "set" in b && void 0 !== b.set(this, e, "value") || (this.value = e))
- })) : e ? (b = _.valHooks[e.type] || _.valHooks[e.nodeName.toLowerCase()], b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : (c = e.value, "string" == typeof c ? c.replace(ic, "") : null == c ? "" : c)) : void 0
- }}), _.extend({valHooks: {option: {get: function(a) {
- var b = _.find.attr(a, "value");
- return null != b ? b : _.trim(_.text(a))
- }},select: {get: function(a) {
- for (var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++)
- if (c = d[i], !(!c.selected && i !== e || (Y.optDisabled ? c.disabled : null !== c.getAttribute("disabled")) || c.parentNode.disabled && _.nodeName(c.parentNode, "optgroup"))) {
- if (b = _(c).val(), f)
- return b;
- g.push(b)
- }
- return g
- },set: function(a, b) {
- for (var c, d, e = a.options, f = _.makeArray(b), g = e.length; g--; )
- d = e[g], (d.selected = _.inArray(d.value, f) >= 0) && (c = !0);
- return c || (a.selectedIndex = -1), f
- }}}}), _.each(["radio", "checkbox"], function() {
- _.valHooks[this] = {set: function(a, b) {
- return _.isArray(b) ? a.checked = _.inArray(_(a).val(), b) >= 0 : void 0
- }}, Y.checkOn || (_.valHooks[this].get = function(a) {
- return null === a.getAttribute("value") ? "on" : a.value
- })
- }), _.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(a, b) {
- _.fn[b] = function(a, c) {
- return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b)
- }
- }), _.fn.extend({hover: function(a, b) {
- return this.mouseenter(a).mouseleave(b || a)
- },bind: function(a, b, c) {
- return this.on(a, null, b, c)
- },unbind: function(a, b) {
- return this.off(a, null, b)
- },delegate: function(a, b, c, d) {
- return this.on(b, a, c, d)
- },undelegate: function(a, b, c) {
- return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c)
- }});
- var jc = _.now(), kc = /\?/;
- _.parseJSON = function(a) {
- return JSON.parse(a + "")
- }, _.parseXML = function(a) {
- var b, c;
- if (!a || "string" != typeof a)
- return null;
- try {
- c = new DOMParser, b = c.parseFromString(a, "text/xml")
- } catch (d) {
- b = void 0
- }
- return (!b || b.getElementsByTagName("parsererror").length) && _.error("Invalid XML: " + a), b
- };
- var lc, mc, nc = /#.*$/, oc = /([?&])_=[^&]*/, pc = /^(.*?):[ \t]*([^\r\n]*)$/gm, qc = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rc = /^(?:GET|HEAD)$/, sc = /^\/\//, tc = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, uc = {}, vc = {}, wc = "*/".concat("*");
- try {
- mc = location.href
- } catch (xc) {
- mc = Z.createElement("a"), mc.href = "", mc = mc.href
- }
- lc = tc.exec(mc.toLowerCase()) || [], _.extend({active: 0,lastModified: {},etag: {},ajaxSettings: {url: mc,type: "GET",isLocal: qc.test(lc[1]),global: !0,processData: !0,async: !0,contentType: "application/x-www-form-urlencoded; charset=UTF-8",accepts: {"*": wc,text: "text/plain",html: "text/html",xml: "application/xml, text/xml",json: "application/json, text/javascript"},contents: {xml: /xml/,html: /html/,json: /json/},responseFields: {xml: "responseXML",text: "responseText",json: "responseJSON"},converters: {"* text": String,"text html": !0,"text json": _.parseJSON,"text xml": _.parseXML},flatOptions: {url: !0,context: !0}},ajaxSetup: function(a, b) {
- return b ? L(L(a, _.ajaxSettings), b) : L(_.ajaxSettings, a)
- },ajaxPrefilter: J(uc),ajaxTransport: J(vc),ajax: function(a, b) {
- function c(a, b, c, g) {
- var i, k, r, s, u, w = b;
- 2 !== t && (t = 2, h && clearTimeout(h), d = void 0, f = g || "", v.readyState = a > 0 ? 4 : 0, i = a >= 200 && 300 > a || 304 === a, c && (s = M(l, v, c)), s = N(l, s, v, i), i ? (l.ifModified && (u = v.getResponseHeader("Last-Modified"), u && (_.lastModified[e] = u), u = v.getResponseHeader("etag"), u && (_.etag[e] = u)), 204 === a || "HEAD" === l.type ? w = "nocontent" : 304 === a ? w = "notmodified" : (w = s.state, k = s.data, r = s.error, i = !r)) : (r = w, (a || !w) && (w = "error", 0 > a && (a = 0))), v.status = a, v.statusText = (b || w) + "", i ? o.resolveWith(m, [k, w, v]) : o.rejectWith(m, [v, w, r]), v.statusCode(q), q = void 0, j && n.trigger(i ? "ajaxSuccess" : "ajaxError", [v, l, i ? k : r]), p.fireWith(m, [v, w]), j && (n.trigger("ajaxComplete", [v, l]), --_.active || _.event.trigger("ajaxStop")))
- }
- "object" == typeof a && (b = a, a = void 0), b = b || {};
- var d, e, f, g, h, i, j, k, l = _.ajaxSetup({}, b), m = l.context || l, n = l.context && (m.nodeType || m.jquery) ? _(m) : _.event, o = _.Deferred(), p = _.Callbacks("once memory"), q = l.statusCode || {}, r = {}, s = {}, t = 0, u = "canceled", v = {readyState: 0,getResponseHeader: function(a) {
- var b;
- if (2 === t) {
- if (!g)
- for (g = {}; b = pc.exec(f); )
- g[b[1].toLowerCase()] = b[2];
- b = g[a.toLowerCase()]
- }
- return null == b ? null : b
- },getAllResponseHeaders: function() {
- return 2 === t ? f : null
- },setRequestHeader: function(a, b) {
- var c = a.toLowerCase();
- return t || (a = s[c] = s[c] || a, r[a] = b), this
- },overrideMimeType: function(a) {
- return t || (l.mimeType = a), this
- },statusCode: function(a) {
- var b;
- if (a)
- if (2 > t)
- for (b in a)
- q[b] = [q[b], a[b]];
- else
- v.always(a[v.status]);
- return this
- },abort: function(a) {
- var b = a || u;
- return d && d.abort(b), c(0, b), this
- }};
- if (o.promise(v).complete = p.add, v.success = v.done, v.error = v.fail, l.url = ((a || l.url || mc) + "").replace(nc, "").replace(sc, lc[1] + "//"), l.type = b.method || b.type || l.method || l.type, l.dataTypes = _.trim(l.dataType || "*").toLowerCase().match(nb) || [""], null == l.crossDomain && (i = tc.exec(l.url.toLowerCase()), l.crossDomain = !(!i || i[1] === lc[1] && i[2] === lc[2] && (i[3] || ("http:" === i[1] ? "80" : "443")) === (lc[3] || ("http:" === lc[1] ? "80" : "443")))), l.data && l.processData && "string" != typeof l.data && (l.data = _.param(l.data, l.traditional)), K(uc, l, b, v), 2 === t)
- return v;
- j = l.global, j && 0 === _.active++ && _.event.trigger("ajaxStart"), l.type = l.type.toUpperCase(), l.hasContent = !rc.test(l.type), e = l.url, l.hasContent || (l.data && (e = l.url += (kc.test(e) ? "&" : "?") + l.data, delete l.data), l.cache === !1 && (l.url = oc.test(e) ? e.replace(oc, "$1_=" + jc++) : e + (kc.test(e) ? "&" : "?") + "_=" + jc++)), l.ifModified && (_.lastModified[e] && v.setRequestHeader("If-Modified-Since", _.lastModified[e]), _.etag[e] && v.setRequestHeader("If-None-Match", _.etag[e])), (l.data && l.hasContent && l.contentType !== !1 || b.contentType) && v.setRequestHeader("Content-Type", l.contentType), v.setRequestHeader("Accept", l.dataTypes[0] && l.accepts[l.dataTypes[0]] ? l.accepts[l.dataTypes[0]] + ("*" !== l.dataTypes[0] ? ", " + wc + "; q=0.01" : "") : l.accepts["*"]);
- for (k in l.headers)
- v.setRequestHeader(k, l.headers[k]);
- if (l.beforeSend && (l.beforeSend.call(m, v, l) === !1 || 2 === t))
- return v.abort();
- u = "abort";
- for (k in {success: 1,error: 1,complete: 1})
- v[k](l[k]);
- if (d = K(vc, l, b, v)) {
- v.readyState = 1, j && n.trigger("ajaxSend", [v, l]), l.async && l.timeout > 0 && (h = setTimeout(function() {
- v.abort("timeout")
- }, l.timeout));
- try {
- t = 1, d.send(r, c)
- } catch (w) {
- if (!(2 > t))
- throw w;
- c(-1, w)
- }
- } else
- c(-1, "No Transport");
- return v
- },getJSON: function(a, b, c) {
- return _.get(a, b, c, "json")
- },getScript: function(a, b) {
- return _.get(a, void 0, b, "script")
- }}), _.each(["get", "post"], function(a, b) {
- _[b] = function(a, c, d, e) {
- return _.isFunction(c) && (e = e || d, d = c, c = void 0), _.ajax({url: a,type: b,dataType: e,data: c,success: d})
- }
- }), _.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(a, b) {
- _.fn[b] = function(a) {
- return this.on(b, a)
- }
- }), _._evalUrl = function(a) {
- return _.ajax({url: a,type: "GET",dataType: "script",async: !1,global: !1,"throws": !0})
- }, _.fn.extend({wrapAll: function(a) {
- var b;
- return _.isFunction(a) ? this.each(function(b) {
- _(this).wrapAll(a.call(this, b))
- }) : (this[0] && (b = _(a, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && b.insertBefore(this[0]), b.map(function() {
- for (var a = this; a.firstElementChild; )
- a = a.firstElementChild;
- return a
- }).append(this)), this)
- },wrapInner: function(a) {
- return this.each(_.isFunction(a) ? function(b) {
- _(this).wrapInner(a.call(this, b))
- } : function() {
- var b = _(this), c = b.contents();
- c.length ? c.wrapAll(a) : b.append(a)
- })
- },wrap: function(a) {
- var b = _.isFunction(a);
- return this.each(function(c) {
- _(this).wrapAll(b ? a.call(this, c) : a)
- })
- },unwrap: function() {
- return this.parent().each(function() {
- _.nodeName(this, "body") || _(this).replaceWith(this.childNodes)
- }).end()
- }}), _.expr.filters.hidden = function(a) {
- return a.offsetWidth <= 0 && a.offsetHeight <= 0
- }, _.expr.filters.visible = function(a) {
- return !_.expr.filters.hidden(a)
- };
- var yc = /%20/g, zc = /\[\]$/, Ac = /\r?\n/g, Bc = /^(?:submit|button|image|reset|file)$/i, Cc = /^(?:input|select|textarea|keygen)/i;
- _.param = function(a, b) {
- var c, d = [], e = function(a, b) {
- b = _.isFunction(b) ? b() : null == b ? "" : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)
- };
- if (void 0 === b && (b = _.ajaxSettings && _.ajaxSettings.traditional), _.isArray(a) || a.jquery && !_.isPlainObject(a))
- _.each(a, function() {
- e(this.name, this.value)
- });
- else
- for (c in a)
- O(c, a[c], b, e);
- return d.join("&").replace(yc, "+")
- }, _.fn.extend({serialize: function() {
- return _.param(this.serializeArray())
- },serializeArray: function() {
- return this.map(function() {
- var a = _.prop(this, "elements");
- return a ? _.makeArray(a) : this
- }).filter(function() {
- var a = this.type;
- return this.name && !_(this).is(":disabled") && Cc.test(this.nodeName) && !Bc.test(a) && (this.checked || !yb.test(a))
- }).map(function(a, b) {
- var c = _(this).val();
- return null == c ? null : _.isArray(c) ? _.map(c, function(a) {
- return {name: b.name,value: a.replace(Ac, "\r\n")}
- }) : {name: b.name,value: c.replace(Ac, "\r\n")}
- }).get()
- }}), _.ajaxSettings.xhr = function() {
- try {
- return new XMLHttpRequest
- } catch (a) {
- }
- };
- var Dc = 0, Ec = {}, Fc = {0: 200,1223: 204}, Gc = _.ajaxSettings.xhr();
- a.ActiveXObject && _(a).on("unload", function() {
- for (var a in Ec)
- Ec[a]()
- }), Y.cors = !!Gc && "withCredentials" in Gc, Y.ajax = Gc = !!Gc, _.ajaxTransport(function(a) {
- var b;
- return Y.cors || Gc && !a.crossDomain ? {send: function(c, d) {
- var e, f = a.xhr(), g = ++Dc;
- if (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields)
- for (e in a.xhrFields)
- f[e] = a.xhrFields[e];
- a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest");
- for (e in c)
- f.setRequestHeader(e, c[e]);
- b = function(a) {
- return function() {
- b && (delete Ec[g], b = f.onload = f.onerror = null, "abort" === a ? f.abort() : "error" === a ? d(f.status, f.statusText) : d(Fc[f.status] || f.status, f.statusText, "string" == typeof f.responseText ? {text: f.responseText} : void 0, f.getAllResponseHeaders()))
- }
- }, f.onload = b(), f.onerror = b("error"), b = Ec[g] = b("abort");
- try {
- f.send(a.hasContent && a.data || null)
- } catch (h) {
- if (b)
- throw h
- }
- },abort: function() {
- b && b()
- }} : void 0
- }), _.ajaxSetup({accepts: {script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents: {script: /(?:java|ecma)script/},converters: {"text script": function(a) {
- return _.globalEval(a), a
- }}}), _.ajaxPrefilter("script", function(a) {
- void 0 === a.cache && (a.cache = !1), a.crossDomain && (a.type = "GET")
- }), _.ajaxTransport("script", function(a) {
- if (a.crossDomain) {
- var b, c;
- return {send: function(d, e) {
- b = _("<script>").prop({async: !0,charset: a.scriptCharset,src: a.url}).on("load error", c = function(a) {
- b.remove(), c = null, a && e("error" === a.type ? 404 : 200, a.type)
- }), Z.head.appendChild(b[0])
- },abort: function() {
- c && c()
- }}
- }
- });
- var Hc = [], Ic = /(=)\?(?=&|$)|\?\?/;
- _.ajaxSetup({jsonp: "callback",jsonpCallback: function() {
- var a = Hc.pop() || _.expando + "_" + jc++;
- return this[a] = !0, a
- }}), _.ajaxPrefilter("json jsonp", function(b, c, d) {
- var e, f, g, h = b.jsonp !== !1 && (Ic.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf("application/x-www-form-urlencoded") && Ic.test(b.data) && "data");
- return h || "jsonp" === b.dataTypes[0] ? (e = b.jsonpCallback = _.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback, h ? b[h] = b[h].replace(Ic, "$1" + e) : b.jsonp !== !1 && (b.url += (kc.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), b.converters["script json"] = function() {
- return g || _.error(e + " was not called"), g[0]
- }, b.dataTypes[0] = "json", f = a[e], a[e] = function() {
- g = arguments
- }, d.always(function() {
- a[e] = f, b[e] && (b.jsonpCallback = c.jsonpCallback, Hc.push(e)), g && _.isFunction(f) && f(g[0]), g = f = void 0
- }), "script") : void 0
- }), _.parseHTML = function(a, b, c) {
- if (!a || "string" != typeof a)
- return null;
- "boolean" == typeof b && (c = b, b = !1), b = b || Z;
- var d = gb.exec(a), e = !c && [];
- return d ? [b.createElement(d[1])] : (d = _.buildFragment([a], b, e), e && e.length && _(e).remove(), _.merge([], d.childNodes))
- };
- var Jc = _.fn.load;
- _.fn.load = function(a, b, c) {
- if ("string" != typeof a && Jc)
- return Jc.apply(this, arguments);
- var d, e, f, g = this, h = a.indexOf(" ");
- return h >= 0 && (d = _.trim(a.slice(h)), a = a.slice(0, h)), _.isFunction(b) ? (c = b, b = void 0) : b && "object" == typeof b && (e = "POST"), g.length > 0 && _.ajax({url: a,type: e,dataType: "html",data: b}).done(function(a) {
- f = arguments, g.html(d ? _("<div>").append(_.parseHTML(a)).find(d) : a)
- }).complete(c && function(a, b) {
- g.each(c, f || [a.responseText, b, a])
- }), this
- }, _.expr.filters.animated = function(a) {
- return _.grep(_.timers, function(b) {
- return a === b.elem
- }).length
- };
- var Kc = a.document.documentElement;
- _.offset = {setOffset: function(a, b, c) {
- var d, e, f, g, h, i, j, k = _.css(a, "position"), l = _(a), m = {};
- "static" === k && (a.style.position = "relative"), h = l.offset(), f = _.css(a, "top"), i = _.css(a, "left"), j = ("absolute" === k || "fixed" === k) && (f + i).indexOf("auto") > -1, j ? (d = l.position(), g = d.top, e = d.left) : (g = parseFloat(f) || 0, e = parseFloat(i) || 0), _.isFunction(b) && (b = b.call(a, c, h)), null != b.top && (m.top = b.top - h.top + g), null != b.left && (m.left = b.left - h.left + e), "using" in b ? b.using.call(a, m) : l.css(m)
- }}, _.fn.extend({offset: function(a) {
- if (arguments.length)
- return void 0 === a ? this : this.each(function(b) {
- _.offset.setOffset(this, a, b)
- });
- var b, c, d = this[0], e = {top: 0,left: 0}, f = d && d.ownerDocument;
- return f ? (b = f.documentElement, _.contains(b, d) ? (typeof d.getBoundingClientRect !== zb && (e = d.getBoundingClientRect()), c = P(f), {top: e.top + c.pageYOffset - b.clientTop,left: e.left + c.pageXOffset - b.clientLeft}) : e) : void 0
- },position: function() {
- if (this[0]) {
- var a, b, c = this[0], d = {top: 0,left: 0};
- return "fixed" === _.css(c, "position") ? b = c.getBoundingClientRect() : (a = this.offsetParent(), b = this.offset(), _.nodeName(a[0], "html") || (d = a.offset()), d.top += _.css(a[0], "borderTopWidth", !0), d.left += _.css(a[0], "borderLeftWidth", !0)), {top: b.top - d.top - _.css(c, "marginTop", !0),left: b.left - d.left - _.css(c, "marginLeft", !0)}
- }
- },offsetParent: function() {
- return this.map(function() {
- for (var a = this.offsetParent || Kc; a && !_.nodeName(a, "html") && "static" === _.css(a, "position"); )
- a = a.offsetParent;
- return a || Kc
- })
- }}), _.each({scrollLeft: "pageXOffset",scrollTop: "pageYOffset"}, function(b, c) {
- var d = "pageYOffset" === c;
- _.fn[b] = function(e) {
- return qb(this, function(b, e, f) {
- var g = P(b);
- return void 0 === f ? g ? g[c] : b[e] : void (g ? g.scrollTo(d ? a.pageXOffset : f, d ? f : a.pageYOffset) : b[e] = f)
- }, b, e, arguments.length, null)
- }
- }), _.each(["top", "left"], function(a, b) {
- _.cssHooks[b] = w(Y.pixelPosition, function(a, c) {
- return c ? (c = v(a, b), Qb.test(c) ? _(a).position()[b] + "px" : c) : void 0
- })
- }), _.each({Height: "height",Width: "width"}, function(a, b) {
- _.each({padding: "inner" + a,content: b,"": "outer" + a}, function(c, d) {
- _.fn[d] = function(d, e) {
- var f = arguments.length && (c || "boolean" != typeof d), g = c || (d === !0 || e === !0 ? "margin" : "border");
- return qb(this, function(b, c, d) {
- var e;
- return _.isWindow(b) ? b.document.documentElement["client" + a] : 9 === b.nodeType ? (e = b.documentElement, Math.max(b.body["scroll" + a], e["scroll" + a], b.body["offset" + a], e["offset" + a], e["client" + a])) : void 0 === d ? _.css(b, c, g) : _.style(b, c, d, g)
- }, b, f ? d : void 0, f, null)
- }
- })
- }), _.fn.size = function() {
- return this.length
- }, _.fn.andSelf = _.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function() {
- return _
- });
- var Lc = a.jQuery, Mc = a.$;
- return _.noConflict = function(b) {
- return a.$ === _ && (a.$ = Mc), b && a.jQuery === _ && (a.jQuery = Lc), _
- }, typeof b === zb && (a.jQuery = a.$ = _), _
- }), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype;
- b.type = null, b.target = null, b.currentTarget = null, b.eventPhase = 0, b.bubbles = !1, b.cancelable = !1, b.timeStamp = 0, b.defaultPrevented = !1, b.propagationStopped = !1, b.immediatePropagationStopped = !1, b.removed = !1, b.initialize = function(a, b, c) {
- this.type = a, this.bubbles = b, this.cancelable = c, this.timeStamp = (new Date).getTime()
- }, b.preventDefault = function() {
- this.defaultPrevented = !0
- }, b.stopPropagation = function() {
- this.propagationStopped = !0
- }, b.stopImmediatePropagation = function() {
- this.immediatePropagationStopped = this.propagationStopped = !0
- }, b.remove = function() {
- this.removed = !0
- }, b.clone = function() {
- return new a(this.type, this.bubbles, this.cancelable)
- }, b.toString = function() {
- return "[Event (type=" + this.type + ")]"
- }, createjs.Event = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- }, b = a.prototype;
- a.initialize = function(a) {
- a.addEventListener = b.addEventListener, a.on = b.on, a.removeEventListener = a.off = b.removeEventListener, a.removeAllEventListeners = b.removeAllEventListeners, a.hasEventListener = b.hasEventListener, a.dispatchEvent = b.dispatchEvent, a._dispatchEvent = b._dispatchEvent, a.willTrigger = b.willTrigger
- }, b._listeners = null, b._captureListeners = null, b.initialize = function() {
- }, b.addEventListener = function(a, b, c) {
- var d;
- d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {};
- var e = d[a];
- return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b
- }, b.on = function(a, b, c, d, e, f) {
- return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function(a) {
- b.call(c, a, e), d && a.remove()
- }, f)
- }, b.removeEventListener = function(a, b, c) {
- var d = c ? this._captureListeners : this._listeners;
- if (d) {
- var e = d[a];
- if (e)
- for (var f = 0, g = e.length; g > f; f++)
- if (e[f] == b) {
- 1 == g ? delete d[a] : e.splice(f, 1);
- break
- }
- }
- }, b.off = b.removeEventListener, b.removeAllEventListeners = function(a) {
- a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null
- }, b.dispatchEvent = function(a, b) {
- if ("string" == typeof a) {
- var c = this._listeners;
- if (!c || !c[a])
- return !1;
- a = new createjs.Event(a)
- }
- if (a.target = b || this, a.bubbles && this.parent) {
- for (var d = this, e = [d]; d.parent; )
- e.push(d = d.parent);
- var f, g = e.length;
- for (f = g - 1; f >= 0 && !a.propagationStopped; f--)
- e[f]._dispatchEvent(a, 1 + (0 == f));
- for (f = 1; g > f && !a.propagationStopped; f++)
- e[f]._dispatchEvent(a, 3)
- } else
- this._dispatchEvent(a, 2);
- return a.defaultPrevented
- }, b.hasEventListener = function(a) {
- var b = this._listeners, c = this._captureListeners;
- return !!(b && b[a] || c && c[a])
- }, b.willTrigger = function(a) {
- for (var b = this; b; ) {
- if (b.hasEventListener(a))
- return !0;
- b = b.parent
- }
- return !1
- }, b.toString = function() {
- return "[EventDispatcher]"
- }, b._dispatchEvent = function(a, b) {
- var c, d = 1 == b ? this._captureListeners : this._listeners;
- if (a && d) {
- var e = d[a.type];
- if (!e || !(c = e.length))
- return;
- a.currentTarget = this, a.eventPhase = b, a.removed = !1, e = e.slice();
- for (var f = 0; c > f && !a.immediatePropagationStopped; f++) {
- var g = e[f];
- g.handleEvent ? g.handleEvent(a) : g(a), a.removed && (this.off(a.type, g, 1 == b), a.removed = !1)
- }
- }
- }, createjs.EventDispatcher = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- createjs.indexOf = function(a, b) {
- for (var c = 0, d = a.length; d > c; c++)
- if (b === a[c])
- return c;
- return -1
- }
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "UID cannot be instantiated"
- };
- a._nextID = 0, a.get = function() {
- return a._nextID++
- }, createjs.UID = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "Ticker cannot be instantiated."
- };
- a.RAF_SYNCHED = "synched", a.RAF = "raf", a.TIMEOUT = "timeout", a.useRAF = !1, a.timingMode = null, a.maxDelta = 0, a.removeEventListener = null, a.removeAllEventListeners = null, a.dispatchEvent = null, a.hasEventListener = null, a._listeners = null, createjs.EventDispatcher.initialize(a), a._addEventListener = a.addEventListener, a.addEventListener = function() {
- return !a._inited && a.init(), a._addEventListener.apply(a, arguments)
- }, a._paused = !1, a._inited = !1, a._startTime = 0, a._pausedTime = 0, a._ticks = 0, a._pausedTicks = 0, a._interval = 50, a._lastTime = 0, a._times = null, a._tickTimes = null, a._timerId = null, a._raf = !0, a.init = function() {
- a._inited || (a._inited = !0, a._times = [], a._tickTimes = [], a._startTime = a._getTime(), a._times.push(a._lastTime = 0), a.setInterval(a._interval))
- }, a.reset = function() {
- if (a._raf) {
- var b = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame;
- b && b(a._timerId)
- } else
- clearTimeout(a._timerId);
- a.removeAllEventListeners("tick")
- }, a.setInterval = function(b) {
- a._interval = b, a._inited && a._setupTick()
- }, a.getInterval = function() {
- return a._interval
- }, a.setFPS = function(b) {
- a.setInterval(1e3 / b)
- }, a.getFPS = function() {
- return 1e3 / a._interval
- }, a.getMeasuredTickTime = function(b) {
- var c = 0, d = a._tickTimes;
- if (d.length < 1)
- return -1;
- b = Math.min(d.length, b || 0 | a.getFPS());
- for (var e = 0; b > e; e++)
- c += d[e];
- return c / b
- }, a.getMeasuredFPS = function(b) {
- var c = a._times;
- return c.length < 2 ? -1 : (b = Math.min(c.length - 1, b || 0 | a.getFPS()), 1e3 / ((c[0] - c[b]) / b))
- }, a.setPaused = function(b) {
- a._paused = b
- }, a.getPaused = function() {
- return a._paused
- }, a.getTime = function(b) {
- return a._getTime() - a._startTime - (b ? a._pausedTime : 0)
- }, a.getEventTime = function(b) {
- return (a._lastTime || a._startTime) - (b ? a._pausedTime : 0)
- }, a.getTicks = function(b) {
- return a._ticks - (b ? a._pausedTicks : 0)
- }, a._handleSynch = function() {
- var b = a._getTime() - a._startTime;
- a._timerId = null, a._setupTick(), b - a._lastTime >= .97 * (a._interval - 1) && a._tick()
- }, a._handleRAF = function() {
- a._timerId = null, a._setupTick(), a._tick()
- }, a._handleTimeout = function() {
- a._timerId = null, a._setupTick(), a._tick()
- }, a._setupTick = function() {
- if (null == a._timerId) {
- var b = a.timingMode || a.useRAF && a.RAF_SYNCHED;
- if (b == a.RAF_SYNCHED || b == a.RAF) {
- var c = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame;
- if (c)
- return a._timerId = c(b == a.RAF ? a._handleRAF : a._handleSynch), void (a._raf = !0)
- }
- a._raf = !1, a._timerId = setTimeout(a._handleTimeout, a._interval)
- }
- }, a._tick = function() {
- var b = a._getTime() - a._startTime, c = b - a._lastTime, d = a._paused;
- if (a._ticks++, d && (a._pausedTicks++, a._pausedTime += c), a._lastTime = b, a.hasEventListener("tick")) {
- var e = new createjs.Event("tick"), f = a.maxDelta;
- e.delta = f && c > f ? f : c, e.paused = d, e.time = b, e.runTime = b - a._pausedTime, a.dispatchEvent(e)
- }
- for (a._tickTimes.unshift(a._getTime() - b); a._tickTimes.length > 100; )
- a._tickTimes.pop();
- for (a._times.unshift(b); a._times.length > 100; )
- a._times.pop()
- };
- var b = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow);
- a._getTime = function() {
- return b && b.call(performance) || (new Date).getTime()
- }, createjs.Ticker = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d, e, f, g, h, i, j) {
- this.initialize(a, b, c, d, e, f, g, h, i, j)
- }, b = a.prototype = new createjs.Event;
- b.stageX = 0, b.stageY = 0, b.rawX = 0, b.rawY = 0, b.nativeEvent = null, b.pointerID = 0, b.primary = !1, b.addEventListener = null, b.removeEventListener = null, b.removeAllEventListeners = null, b.dispatchEvent = null, b.hasEventListener = null, b._listeners = null, createjs.EventDispatcher.initialize(b), b._get_localX = function() {
- return this.currentTarget.globalToLocal(this.rawX, this.rawY).x
- }, b._get_localY = function() {
- return this.currentTarget.globalToLocal(this.rawX, this.rawY).y
- };
- try {
- Object.defineProperties(b, {localX: {get: b._get_localX},localY: {get: b._get_localY}})
- } catch (c) {
- }
- b.Event_initialize = b.initialize, b.initialize = function(a, b, c, d, e, f, g, h, i, j) {
- this.Event_initialize(a, b, c), this.stageX = d, this.stageY = e, this.nativeEvent = f, this.pointerID = g, this.primary = h, this.rawX = null == i ? d : i, this.rawY = null == j ? e : j
- }, b.clone = function() {
- return new a(this.type, this.bubbles, this.cancelable, this.stageX, this.stageY, this.target, this.nativeEvent, this.pointerID, this.primary, this.rawX, this.rawY)
- }, b.toString = function() {
- return "[MouseEvent (type=" + this.type + " stageX=" + this.stageX + " stageY=" + this.stageY + ")]"
- }, createjs.MouseEvent = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d, e, f) {
- this.initialize(a, b, c, d, e, f)
- }, b = a.prototype;
- a.identity = null, a.DEG_TO_RAD = Math.PI / 180, b.a = 1, b.b = 0, b.c = 0, b.d = 1, b.tx = 0, b.ty = 0, b.alpha = 1, b.shadow = null, b.compositeOperation = null, b.initialize = function(a, b, c, d, e, f) {
- return this.a = null == a ? 1 : a, this.b = b || 0, this.c = c || 0, this.d = null == d ? 1 : d, this.tx = e || 0, this.ty = f || 0, this
- }, b.prepend = function(a, b, c, d, e, f) {
- var g = this.tx;
- if (1 != a || 0 != b || 0 != c || 1 != d) {
- var h = this.a, i = this.c;
- this.a = h * a + this.b * c, this.b = h * b + this.b * d, this.c = i * a + this.d * c, this.d = i * b + this.d * d
- }
- return this.tx = g * a + this.ty * c + e, this.ty = g * b + this.ty * d + f, this
- }, b.append = function(a, b, c, d, e, f) {
- var g = this.a, h = this.b, i = this.c, j = this.d;
- return this.a = a * g + b * i, this.b = a * h + b * j, this.c = c * g + d * i, this.d = c * h + d * j, this.tx = e * g + f * i + this.tx, this.ty = e * h + f * j + this.ty, this
- }, b.prependMatrix = function(a) {
- return this.prepend(a.a, a.b, a.c, a.d, a.tx, a.ty), this.prependProperties(a.alpha, a.shadow, a.compositeOperation), this
- }, b.appendMatrix = function(a) {
- return this.append(a.a, a.b, a.c, a.d, a.tx, a.ty), this.appendProperties(a.alpha, a.shadow, a.compositeOperation), this
- }, b.prependTransform = function(b, c, d, e, f, g, h, i, j) {
- if (f % 360)
- var k = f * a.DEG_TO_RAD, l = Math.cos(k), m = Math.sin(k);
- else
- l = 1, m = 0;
- return (i || j) && (this.tx -= i, this.ty -= j), g || h ? (g *= a.DEG_TO_RAD, h *= a.DEG_TO_RAD, this.prepend(l * d, m * d, -m * e, l * e, 0, 0), this.prepend(Math.cos(h), Math.sin(h), -Math.sin(g), Math.cos(g), b, c)) : this.prepend(l * d, m * d, -m * e, l * e, b, c), this
- }, b.appendTransform = function(b, c, d, e, f, g, h, i, j) {
- if (f % 360)
- var k = f * a.DEG_TO_RAD, l = Math.cos(k), m = Math.sin(k);
- else
- l = 1, m = 0;
- return g || h ? (g *= a.DEG_TO_RAD, h *= a.DEG_TO_RAD, this.append(Math.cos(h), Math.sin(h), -Math.sin(g), Math.cos(g), b, c), this.append(l * d, m * d, -m * e, l * e, 0, 0)) : this.append(l * d, m * d, -m * e, l * e, b, c), (i || j) && (this.tx -= i * this.a + j * this.c, this.ty -= i * this.b + j * this.d), this
- }, b.rotate = function(a) {
- var b = Math.cos(a), c = Math.sin(a), d = this.a, e = this.c, f = this.tx;
- return this.a = d * b - this.b * c, this.b = d * c + this.b * b, this.c = e * b - this.d * c, this.d = e * c + this.d * b, this.tx = f * b - this.ty * c, this.ty = f * c + this.ty * b, this
- }, b.skew = function(b, c) {
- return b *= a.DEG_TO_RAD, c *= a.DEG_TO_RAD, this.append(Math.cos(c), Math.sin(c), -Math.sin(b), Math.cos(b), 0, 0), this
- }, b.scale = function(a, b) {
- return this.a *= a, this.d *= b, this.c *= a, this.b *= b, this.tx *= a, this.ty *= b, this
- }, b.translate = function(a, b) {
- return this.tx += a, this.ty += b, this
- }, b.identity = function() {
- return this.alpha = this.a = this.d = 1, this.b = this.c = this.tx = this.ty = 0, this.shadow = this.compositeOperation = null, this
- }, b.invert = function() {
- var a = this.a, b = this.b, c = this.c, d = this.d, e = this.tx, f = a * d - b * c;
- return this.a = d / f, this.b = -b / f, this.c = -c / f, this.d = a / f, this.tx = (c * this.ty - d * e) / f, this.ty = -(a * this.ty - b * e) / f, this
- }, b.isIdentity = function() {
- return 0 == this.tx && 0 == this.ty && 1 == this.a && 0 == this.b && 0 == this.c && 1 == this.d
- }, b.transformPoint = function(a, b, c) {
- return c = c || {}, c.x = a * this.a + b * this.c + this.tx, c.y = a * this.b + b * this.d + this.ty, c
- }, b.decompose = function(b) {
- null == b && (b = {}), b.x = this.tx, b.y = this.ty, b.scaleX = Math.sqrt(this.a * this.a + this.b * this.b), b.scaleY = Math.sqrt(this.c * this.c + this.d * this.d);
- var c = Math.atan2(-this.c, this.d), d = Math.atan2(this.b, this.a);
- return c == d ? (b.rotation = d / a.DEG_TO_RAD, this.a < 0 && this.d >= 0 && (b.rotation += b.rotation <= 0 ? 180 : -180), b.skewX = b.skewY = 0) : (b.skewX = c / a.DEG_TO_RAD, b.skewY = d / a.DEG_TO_RAD), b
- }, b.reinitialize = function(a, b, c, d, e, f, g, h, i) {
- return this.initialize(a, b, c, d, e, f), this.alpha = null == g ? 1 : g, this.shadow = h, this.compositeOperation = i, this
- }, b.copy = function(a) {
- return this.reinitialize(a.a, a.b, a.c, a.d, a.tx, a.ty, a.alpha, a.shadow, a.compositeOperation)
- }, b.appendProperties = function(a, b, c) {
- return this.alpha *= a, this.shadow = b || this.shadow, this.compositeOperation = c || this.compositeOperation, this
- }, b.prependProperties = function(a, b, c) {
- return this.alpha *= a, this.shadow = this.shadow || b, this.compositeOperation = this.compositeOperation || c, this
- }, b.clone = function() {
- return (new a).copy(this)
- }, b.toString = function() {
- return "[Matrix2D (a=" + this.a + " b=" + this.b + " c=" + this.c + " d=" + this.d + " tx=" + this.tx + " ty=" + this.ty + ")]"
- }, a.identity = new a, createjs.Matrix2D = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b) {
- this.initialize(a, b)
- }, b = a.prototype;
- b.x = 0, b.y = 0, b.initialize = function(a, b) {
- return this.x = null == a ? 0 : a, this.y = null == b ? 0 : b, this
- }, b.copy = function(a) {
- return this.initialize(a.x, a.y)
- }, b.clone = function() {
- return new a(this.x, this.y)
- }, b.toString = function() {
- return "[Point (x=" + this.x + " y=" + this.y + ")]"
- }, createjs.Point = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, b = a.prototype;
- b.x = 0, b.y = 0, b.width = 0, b.height = 0, b.initialize = function(a, b, c, d) {
- return this.x = a || 0, this.y = b || 0, this.width = c || 0, this.height = d || 0, this
- }, b.copy = function(a) {
- return this.initialize(a.x, a.y, a.width, a.height)
- }, b.clone = function() {
- return new a(this.x, this.y, this.width, this.height)
- }, b.toString = function() {
- return "[Rectangle (x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + ")]"
- }, createjs.Rectangle = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d, e, f, g) {
- this.initialize(a, b, c, d, e, f, g)
- }, b = a.prototype;
- b.target = null, b.overLabel = null, b.outLabel = null, b.downLabel = null, b.play = !1, b._isPressed = !1, b._isOver = !1, b.initialize = function(a, b, c, d, e, f, g) {
- a.addEventListener && (this.target = a, a.cursor = "pointer", this.overLabel = null == c ? "over" : c, this.outLabel = null == b ? "out" : b, this.downLabel = null == d ? "down" : d, this.play = e, this.setEnabled(!0), this.handleEvent({}), f && (g && (f.actionsEnabled = !1, f.gotoAndStop && f.gotoAndStop(g)), a.hitArea = f))
- }, b.setEnabled = function(a) {
- var b = this.target;
- a ? (b.addEventListener("rollover", this), b.addEventListener("rollout", this), b.addEventListener("mousedown", this), b.addEventListener("pressup", this)) : (b.removeEventListener("rollover", this), b.removeEventListener("rollout", this), b.removeEventListener("mousedown", this), b.removeEventListener("pressup", this))
- }, b.toString = function() {
- return "[ButtonHelper]"
- }, b.handleEvent = function(a) {
- var b, c = this.target, d = a.type;
- "mousedown" == d ? (this._isPressed = !0, b = this.downLabel) : "pressup" == d ? (this._isPressed = !1, b = this._isOver ? this.overLabel : this.outLabel) : "rollover" == d ? (this._isOver = !0, b = this._isPressed ? this.downLabel : this.overLabel) : (this._isOver = !1, b = this._isPressed ? this.overLabel : this.outLabel), this.play ? c.gotoAndPlay && c.gotoAndPlay(b) : c.gotoAndStop && c.gotoAndStop(b)
- }, createjs.ButtonHelper = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, b = a.prototype;
- a.identity = null, b.color = null, b.offsetX = 0, b.offsetY = 0, b.blur = 0, b.initialize = function(a, b, c, d) {
- this.color = a, this.offsetX = b, this.offsetY = c, this.blur = d
- }, b.toString = function() {
- return "[Shadow]"
- }, b.clone = function() {
- return new a(this.color, this.offsetX, this.offsetY, this.blur)
- }, a.identity = new a("transparent", 0, 0, 0), createjs.Shadow = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.EventDispatcher;
- b.complete = !0, b.framerate = 0, b._animations = null, b._frames = null, b._images = null, b._data = null, b._loadCount = 0, b._frameHeight = 0, b._frameWidth = 0, b._numFrames = 0, b._regX = 0, b._regY = 0, b.initialize = function(a) {
- var b, c, d, e;
- if (null != a) {
- if (this.framerate = a.framerate || 0, a.images && (c = a.images.length) > 0)
- for (e = this._images = [], b = 0; c > b; b++) {
- var f = a.images[b];
- if ("string" == typeof f) {
- var g = f;
- f = document.createElement("img"), f.src = g
- }
- e.push(f), f.getContext || f.complete || (this._loadCount++, this.complete = !1, function(a) {
- f.onload = function() {
- a._handleImageLoad()
- }
- }(this))
- }
- if (null == a.frames)
- ;
- else if (a.frames instanceof Array)
- for (this._frames = [], e = a.frames, b = 0, c = e.length; c > b; b++) {
- var h = e[b];
- this._frames.push({image: this._images[h[4] ? h[4] : 0],rect: new createjs.Rectangle(h[0], h[1], h[2], h[3]),regX: h[5] || 0,regY: h[6] || 0})
- }
- else
- d = a.frames, this._frameWidth = d.width, this._frameHeight = d.height, this._regX = d.regX || 0, this._regY = d.regY || 0, this._numFrames = d.count, 0 == this._loadCount && this._calculateFrames();
- if (this._animations = [], null != (d = a.animations)) {
- this._data = {};
- var i;
- for (i in d) {
- var j = {name: i}, k = d[i];
- if ("number" == typeof k)
- e = j.frames = [k];
- else if (k instanceof Array)
- if (1 == k.length)
- j.frames = [k[0]];
- else
- for (j.speed = k[3], j.next = k[2], e = j.frames = [], b = k[0]; b <= k[1]; b++)
- e.push(b);
- else {
- j.speed = k.speed, j.next = k.next;
- var l = k.frames;
- e = j.frames = "number" == typeof l ? [l] : l.slice(0)
- }
- (j.next === !0 || void 0 === j.next) && (j.next = i), (j.next === !1 || e.length < 2 && j.next == i) && (j.next = null), j.speed || (j.speed = 1), this._animations.push(i), this._data[i] = j
- }
- }
- }
- }, b.getNumFrames = function(a) {
- if (null == a)
- return this._frames ? this._frames.length : this._numFrames;
- var b = this._data[a];
- return null == b ? 0 : b.frames.length
- }, b.getAnimations = function() {
- return this._animations.slice(0)
- }, b.getAnimation = function(a) {
- return this._data[a]
- }, b.getFrame = function(a) {
- var b;
- return this._frames && (b = this._frames[a]) ? b : null
- }, b.getFrameBounds = function(a, b) {
- var c = this.getFrame(a);
- return c ? (b || new createjs.Rectangle).initialize(-c.regX, -c.regY, c.rect.width, c.rect.height) : null
- }, b.toString = function() {
- return "[SpriteSheet]"
- }, b.clone = function() {
- var b = new a;
- return b.complete = this.complete, b._animations = this._animations, b._frames = this._frames, b._images = this._images, b._data = this._data, b._frameHeight = this._frameHeight, b._frameWidth = this._frameWidth, b._numFrames = this._numFrames, b._loadCount = this._loadCount, b
- }, b._handleImageLoad = function() {
- 0 == --this._loadCount && (this._calculateFrames(), this.complete = !0, this.dispatchEvent("complete"))
- }, b._calculateFrames = function() {
- if (!this._frames && 0 != this._frameWidth) {
- this._frames = [];
- for (var a = 0, b = this._frameWidth, c = this._frameHeight, d = 0, e = this._images; d < e.length; d++) {
- for (var f = e[d], g = 0 | f.width / b, h = 0 | f.height / c, i = this._numFrames > 0 ? Math.min(this._numFrames - a, g * h) : g * h, j = 0; i > j; j++)
- this._frames.push({image: f,rect: new createjs.Rectangle(j % g * b, (0 | j / g) * c, b, c),regX: this._regX,regY: this._regY});
- a += i
- }
- this._numFrames = a
- }
- }, createjs.SpriteSheet = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- function a(a, b, c) {
- this.f = a, this.params = b, this.path = null == c ? !0 : c
- }
- a.prototype.exec = function(a) {
- this.f.apply(a, this.params)
- };
- var b = function() {
- this.initialize()
- }, c = b.prototype;
- b.getRGB = function(a, b, c, d) {
- return null != a && null == c && (d = b, c = 255 & a, b = 255 & a >> 8, a = 255 & a >> 16), null == d ? "rgb(" + a + "," + b + "," + c + ")" : "rgba(" + a + "," + b + "," + c + "," + d + ")"
- }, b.getHSL = function(a, b, c, d) {
- return null == d ? "hsl(" + a % 360 + "," + b + "%," + c + "%)" : "hsla(" + a % 360 + "," + b + "%," + c + "%," + d + ")"
- }, b.Command = a, b.BASE_64 = {A: 0,B: 1,C: 2,D: 3,E: 4,F: 5,G: 6,H: 7,I: 8,J: 9,K: 10,L: 11,M: 12,N: 13,O: 14,P: 15,Q: 16,R: 17,S: 18,T: 19,U: 20,V: 21,W: 22,X: 23,Y: 24,Z: 25,a: 26,b: 27,c: 28,d: 29,e: 30,f: 31,g: 32,h: 33,i: 34,j: 35,k: 36,l: 37,m: 38,n: 39,o: 40,p: 41,q: 42,r: 43,s: 44,t: 45,u: 46,v: 47,w: 48,x: 49,y: 50,z: 51,0: 52,1: 53,2: 54,3: 55,4: 56,5: 57,6: 58,7: 59,8: 60,9: 61,"+": 62,"/": 63}, b.STROKE_CAPS_MAP = ["butt", "round", "square"], b.STROKE_JOINTS_MAP = ["miter", "round", "bevel"];
- var d = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas");
- if (d.getContext) {
- var e = b._ctx = d.getContext("2d");
- b.beginCmd = new a(e.beginPath, [], !1), b.fillCmd = new a(e.fill, [], !1), b.strokeCmd = new a(e.stroke, [], !1), d.width = d.height = 1
- }
- c._strokeInstructions = null, c._strokeStyleInstructions = null, c._strokeIgnoreScale = !1, c._fillInstructions = null, c._fillMatrix = null, c._instructions = null, c._oldInstructions = null, c._activeInstructions = null, c._active = !1, c._dirty = !1, c.initialize = function() {
- this.clear(), this._ctx = b._ctx
- }, c.isEmpty = function() {
- return !(this._instructions.length || this._oldInstructions.length || this._activeInstructions.length)
- }, c.draw = function(a) {
- this._dirty && this._updateInstructions();
- for (var b = this._instructions, c = 0, d = b.length; d > c; c++)
- b[c].exec(a)
- }, c.drawAsPath = function(a) {
- this._dirty && this._updateInstructions();
- for (var b, c = this._instructions, d = 0, e = c.length; e > d; d++)
- ((b = c[d]).path || 0 == d) && b.exec(a)
- }, c.moveTo = function(b, c) {
- return this._activeInstructions.push(new a(this._ctx.moveTo, [b, c])), this
- }, c.lineTo = function(b, c) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(this._ctx.lineTo, [b, c])), this
- }, c.arcTo = function(b, c, d, e, f) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(this._ctx.arcTo, [b, c, d, e, f])), this
- }, c.arc = function(b, c, d, e, f, g) {
- return this._dirty = this._active = !0, null == g && (g = !1), this._activeInstructions.push(new a(this._ctx.arc, [b, c, d, e, f, g])), this
- }, c.quadraticCurveTo = function(b, c, d, e) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(this._ctx.quadraticCurveTo, [b, c, d, e])), this
- }, c.bezierCurveTo = function(b, c, d, e, f, g) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(this._ctx.bezierCurveTo, [b, c, d, e, f, g])), this
- }, c.rect = function(b, c, d, e) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(this._ctx.rect, [b, c, d, e])), this
- }, c.closePath = function() {
- return this._active && (this._dirty = !0, this._activeInstructions.push(new a(this._ctx.closePath, []))), this
- }, c.clear = function() {
- return this._instructions = [], this._oldInstructions = [], this._activeInstructions = [], this._strokeStyleInstructions = this._strokeInstructions = this._fillInstructions = this._fillMatrix = null, this._active = this._dirty = this._strokeIgnoreScale = !1, this
- }, c.beginFill = function(b) {
- return this._active && this._newPath(), this._fillInstructions = b ? [new a(this._setProp, ["fillStyle", b], !1)] : null, this._fillMatrix = null, this
- }, c.beginLinearGradientFill = function(b, c, d, e, f, g) {
- this._active && this._newPath();
- for (var h = this._ctx.createLinearGradient(d, e, f, g), i = 0, j = b.length; j > i; i++)
- h.addColorStop(c[i], b[i]);
- return this._fillInstructions = [new a(this._setProp, ["fillStyle", h], !1)], this._fillMatrix = null, this
- }, c.beginRadialGradientFill = function(b, c, d, e, f, g, h, i) {
- this._active && this._newPath();
- for (var j = this._ctx.createRadialGradient(d, e, f, g, h, i), k = 0, l = b.length; l > k; k++)
- j.addColorStop(c[k], b[k]);
- return this._fillInstructions = [new a(this._setProp, ["fillStyle", j], !1)], this._fillMatrix = null, this
- }, c.beginBitmapFill = function(b, c, d) {
- this._active && this._newPath(), c = c || "";
- var e = this._ctx.createPattern(b, c);
- return this._fillInstructions = [new a(this._setProp, ["fillStyle", e], !1)], this._fillMatrix = d ? [d.a, d.b, d.c, d.d, d.tx, d.ty] : null, this
- }, c.endFill = function() {
- return this.beginFill()
- }, c.setStrokeStyle = function(c, d, e, f, g) {
- return this._active && this._newPath(), this._strokeStyleInstructions = [new a(this._setProp, ["lineWidth", null == c ? "1" : c], !1), new a(this._setProp, ["lineCap", null == d ? "butt" : isNaN(d) ? d : b.STROKE_CAPS_MAP[d]], !1), new a(this._setProp, ["lineJoin", null == e ? "miter" : isNaN(e) ? e : b.STROKE_JOINTS_MAP[e]], !1), new a(this._setProp, ["miterLimit", null == f ? "10" : f], !1)], this._strokeIgnoreScale = g, this
- }, c.beginStroke = function(b) {
- return this._active && this._newPath(), this._strokeInstructions = b ? [new a(this._setProp, ["strokeStyle", b], !1)] : null, this
- }, c.beginLinearGradientStroke = function(b, c, d, e, f, g) {
- this._active && this._newPath();
- for (var h = this._ctx.createLinearGradient(d, e, f, g), i = 0, j = b.length; j > i; i++)
- h.addColorStop(c[i], b[i]);
- return this._strokeInstructions = [new a(this._setProp, ["strokeStyle", h], !1)], this
- }, c.beginRadialGradientStroke = function(b, c, d, e, f, g, h, i) {
- this._active && this._newPath();
- for (var j = this._ctx.createRadialGradient(d, e, f, g, h, i), k = 0, l = b.length; l > k; k++)
- j.addColorStop(c[k], b[k]);
- return this._strokeInstructions = [new a(this._setProp, ["strokeStyle", j], !1)], this
- }, c.beginBitmapStroke = function(b, c) {
- this._active && this._newPath(), c = c || "";
- var d = this._ctx.createPattern(b, c);
- return this._strokeInstructions = [new a(this._setProp, ["strokeStyle", d], !1)], this
- }, c.endStroke = function() {
- return this.beginStroke(), this
- }, c.curveTo = c.quadraticCurveTo, c.drawRect = c.rect, c.drawRoundRect = function(a, b, c, d, e) {
- return this.drawRoundRectComplex(a, b, c, d, e, e, e, e), this
- }, c.drawRoundRectComplex = function(b, c, d, e, f, g, h, i) {
- var j = (e > d ? d : e) / 2, k = 0, l = 0, m = 0, n = 0;
- 0 > f && (f *= k = -1), f > j && (f = j), 0 > g && (g *= l = -1), g > j && (g = j), 0 > h && (h *= m = -1), h > j && (h = j), 0 > i && (i *= n = -1), i > j && (i = j), this._dirty = this._active = !0;
- var o = this._ctx.arcTo, p = this._ctx.lineTo;
- return this._activeInstructions.push(new a(this._ctx.moveTo, [b + d - g, c]), new a(o, [b + d + g * l, c - g * l, b + d, c + g, g]), new a(p, [b + d, c + e - h]), new a(o, [b + d + h * m, c + e + h * m, b + d - h, c + e, h]), new a(p, [b + i, c + e]), new a(o, [b - i * n, c + e + i * n, b, c + e - i, i]), new a(p, [b, c + f]), new a(o, [b - f * k, c - f * k, b + f, c, f]), new a(this._ctx.closePath)), this
- }, c.drawCircle = function(a, b, c) {
- return this.arc(a, b, c, 0, 2 * Math.PI), this
- }, c.drawEllipse = function(b, c, d, e) {
- this._dirty = this._active = !0;
- var f = .5522848, g = d / 2 * f, h = e / 2 * f, i = b + d, j = c + e, k = b + d / 2, l = c + e / 2;
- return this._activeInstructions.push(new a(this._ctx.moveTo, [b, l]), new a(this._ctx.bezierCurveTo, [b, l - h, k - g, c, k, c]), new a(this._ctx.bezierCurveTo, [k + g, c, i, l - h, i, l]), new a(this._ctx.bezierCurveTo, [i, l + h, k + g, j, k, j]), new a(this._ctx.bezierCurveTo, [k - g, j, b, l + h, b, l])), this
- }, c.inject = function(b, c) {
- return this._dirty = this._active = !0, this._activeInstructions.push(new a(b, [c])), this
- }, c.drawPolyStar = function(b, c, d, e, f, g) {
- this._dirty = this._active = !0, null == f && (f = 0), f = 1 - f, null == g ? g = 0 : g /= 180 / Math.PI;
- var h = Math.PI / e;
- this._activeInstructions.push(new a(this._ctx.moveTo, [b + Math.cos(g) * d, c + Math.sin(g) * d]));
- for (var i = 0; e > i; i++)
- g += h, 1 != f && this._activeInstructions.push(new a(this._ctx.lineTo, [b + Math.cos(g) * d * f, c + Math.sin(g) * d * f])), g += h, this._activeInstructions.push(new a(this._ctx.lineTo, [b + Math.cos(g) * d, c + Math.sin(g) * d]));
- return this
- }, c.decodePath = function(a) {
- for (var c = [this.moveTo, this.lineTo, this.quadraticCurveTo, this.bezierCurveTo, this.closePath], d = [2, 2, 4, 6, 0], e = 0, f = a.length, g = [], h = 0, i = 0, j = b.BASE_64; f > e; ) {
- var k = a.charAt(e), l = j[k], m = l >> 3, n = c[m];
- if (!n || 3 & l)
- throw "bad path data (@" + e + "): " + k;
- var o = d[m];
- m || (h = i = 0), g.length = 0, e++;
- for (var p = (1 & l >> 2) + 2, q = 0; o > q; q++) {
- var r = j[a.charAt(e)], s = r >> 5 ? -1 : 1;
- r = (31 & r) << 6 | j[a.charAt(e + 1)], 3 == p && (r = r << 6 | j[a.charAt(e + 2)]), r = s * r / 10, q % 2 ? h = r += h : i = r += i, g[q] = r, e += p
- }
- n.apply(this, g)
- }
- return this
- }, c.clone = function() {
- var a = new b;
- return a._instructions = this._instructions.slice(), a._activeInstructions = this._activeInstructions.slice(), a._oldInstructions = this._oldInstructions.slice(), this._fillInstructions && (a._fillInstructions = this._fillInstructions.slice()), this._strokeInstructions && (a._strokeInstructions = this._strokeInstructions.slice()), this._strokeStyleInstructions && (a._strokeStyleInstructions = this._strokeStyleInstructions.slice()), a._active = this._active, a._dirty = this._dirty, a._fillMatrix = this._fillMatrix, a._strokeIgnoreScale = this._strokeIgnoreScale, a
- }, c.toString = function() {
- return "[Graphics]"
- }, c.mt = c.moveTo, c.lt = c.lineTo, c.at = c.arcTo, c.bt = c.bezierCurveTo, c.qt = c.quadraticCurveTo, c.a = c.arc, c.r = c.rect, c.cp = c.closePath, c.c = c.clear, c.f = c.beginFill, c.lf = c.beginLinearGradientFill, c.rf = c.beginRadialGradientFill, c.bf = c.beginBitmapFill, c.ef = c.endFill, c.ss = c.setStrokeStyle, c.s = c.beginStroke, c.ls = c.beginLinearGradientStroke, c.rs = c.beginRadialGradientStroke, c.bs = c.beginBitmapStroke, c.es = c.endStroke, c.dr = c.drawRect, c.rr = c.drawRoundRect, c.rc = c.drawRoundRectComplex, c.dc = c.drawCircle, c.de = c.drawEllipse, c.dp = c.drawPolyStar, c.p = c.decodePath, c._updateInstructions = function() {
- this._instructions = this._oldInstructions.slice(), this._instructions.push(b.beginCmd), this._appendInstructions(this._fillInstructions), this._appendInstructions(this._strokeInstructions), this._appendInstructions(this._strokeInstructions && this._strokeStyleInstructions), this._appendInstructions(this._activeInstructions), this._fillInstructions && this._appendDraw(b.fillCmd, this._fillMatrix), this._strokeInstructions && this._appendDraw(b.strokeCmd, this._strokeIgnoreScale && [1, 0, 0, 1, 0, 0])
- }, c._appendInstructions = function(a) {
- a && this._instructions.push.apply(this._instructions, a)
- }, c._appendDraw = function(b, c) {
- c ? this._instructions.push(new a(this._ctx.save, [], !1), new a(this._ctx.transform, c, !1), b, new a(this._ctx.restore, [], !1)) : this._instructions.push(b)
- }, c._newPath = function() {
- this._dirty && this._updateInstructions(), this._oldInstructions = this._instructions, this._activeInstructions = [], this._active = this._dirty = !1
- }, c._setProp = function(a, b) {
- this[a] = b
- }, createjs.Graphics = b
- }(), this.createjs = this.createjs || {}, function() {
- var a = function() {
- this.initialize()
- }, b = a.prototype = new createjs.EventDispatcher;
- a._MOUSE_EVENTS = ["click", "dblclick", "mousedown", "mouseout", "mouseover", "pressmove", "pressup", "rollout", "rollover"], a.suppressCrossDomainErrors = !1;
- var c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas");
- c.getContext && (a._hitTestCanvas = c, a._hitTestContext = c.getContext("2d"), c.width = c.height = 1), a._nextCacheID = 1, b.alpha = 1, b.cacheCanvas = null, b.id = -1, b.mouseEnabled = !0, b.tickEnabled = !0, b.name = null, b.parent = null, b.regX = 0, b.regY = 0, b.rotation = 0, b.scaleX = 1, b.scaleY = 1, b.skewX = 0, b.skewY = 0, b.shadow = null, b.visible = !0, b.x = 0, b.y = 0, b.compositeOperation = null, b.snapToPixel = !1, b.filters = null, b.cacheID = 0, b.mask = null, b.hitArea = null, b.cursor = null, b._cacheOffsetX = 0, b._cacheOffsetY = 0, b._cacheScale = 1, b._cacheDataURLID = 0, b._cacheDataURL = null, b._matrix = null, b._rectangle = null, b._bounds = null, b.initialize = function() {
- this.id = createjs.UID.get(), this._matrix = new createjs.Matrix2D, this._rectangle = new createjs.Rectangle
- }, b.isVisible = function() {
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY)
- }, b.draw = function(a, b) {
- var c = this.cacheCanvas;
- if (b || !c)
- return !1;
- var d, e = this._cacheScale, f = this._cacheOffsetX, g = this._cacheOffsetY;
- return (d = this._applyFilterBounds(f, g, 0, 0)) && (f = d.x, g = d.y), a.drawImage(c, f, g, c.width / e, c.height / e), !0
- }, b.updateContext = function(a) {
- var b, c = this.mask, d = this;
- c && c.graphics && !c.graphics.isEmpty() && (b = c.getMatrix(c._matrix), a.transform(b.a, b.b, b.c, b.d, b.tx, b.ty), c.graphics.drawAsPath(a), a.clip(), b.invert(), a.transform(b.a, b.b, b.c, b.d, b.tx, b.ty)), b = d._matrix.identity().appendTransform(d.x, d.y, d.scaleX, d.scaleY, d.rotation, d.skewX, d.skewY, d.regX, d.regY), createjs.Stage._snapToPixelEnabled && d.snapToPixel ? a.transform(b.a, b.b, b.c, b.d, 0 | b.tx + .5, 0 | b.ty + .5) : a.transform(b.a, b.b, b.c, b.d, b.tx, b.ty), a.globalAlpha *= d.alpha, d.compositeOperation && (a.globalCompositeOperation = d.compositeOperation), d.shadow && this._applyShadow(a, d.shadow)
- }, b.cache = function(a, b, c, d, e) {
- e = e || 1, this.cacheCanvas || (this.cacheCanvas = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), this._cacheWidth = c, this._cacheHeight = d, this._cacheOffsetX = a, this._cacheOffsetY = b, this._cacheScale = e, this.updateCache()
- }, b.updateCache = function(b) {
- var c, d = this.cacheCanvas, e = this._cacheScale, f = this._cacheOffsetX * e, g = this._cacheOffsetY * e, h = this._cacheWidth, i = this._cacheHeight;
- if (!d)
- throw "cache() must be called before updateCache()";
- var j = d.getContext("2d");
- (c = this._applyFilterBounds(f, g, h, i)) && (f = c.x, g = c.y, h = c.width, i = c.height), h = Math.ceil(h * e), i = Math.ceil(i * e), h != d.width || i != d.height ? (d.width = h, d.height = i) : b || j.clearRect(0, 0, h + 1, i + 1), j.save(), j.globalCompositeOperation = b, j.setTransform(e, 0, 0, e, -f, -g), this.draw(j, !0), this._applyFilters(), j.restore(), this.cacheID = a._nextCacheID++
- }, b.uncache = function() {
- this._cacheDataURL = this.cacheCanvas = null, this.cacheID = this._cacheOffsetX = this._cacheOffsetY = 0, this._cacheScale = 1
- }, b.getCacheDataURL = function() {
- return this.cacheCanvas ? (this.cacheID != this._cacheDataURLID && (this._cacheDataURL = this.cacheCanvas.toDataURL()), this._cacheDataURL) : null
- }, b.getStage = function() {
- for (var a = this; a.parent; )
- a = a.parent;
- return a instanceof createjs.Stage ? a : null
- }, b.localToGlobal = function(a, b) {
- var c = this.getConcatenatedMatrix(this._matrix);
- return null == c ? null : (c.append(1, 0, 0, 1, a, b), new createjs.Point(c.tx, c.ty))
- }, b.globalToLocal = function(a, b) {
- var c = this.getConcatenatedMatrix(this._matrix);
- return null == c ? null : (c.invert(), c.append(1, 0, 0, 1, a, b), new createjs.Point(c.tx, c.ty))
- }, b.localToLocal = function(a, b, c) {
- var d = this.localToGlobal(a, b);
- return c.globalToLocal(d.x, d.y)
- }, b.setTransform = function(a, b, c, d, e, f, g, h, i) {
- return this.x = a || 0, this.y = b || 0, this.scaleX = null == c ? 1 : c, this.scaleY = null == d ? 1 : d, this.rotation = e || 0, this.skewX = f || 0, this.skewY = g || 0, this.regX = h || 0, this.regY = i || 0, this
- }, b.getMatrix = function(a) {
- var b = this;
- return (a ? a.identity() : new createjs.Matrix2D).appendTransform(b.x, b.y, b.scaleX, b.scaleY, b.rotation, b.skewX, b.skewY, b.regX, b.regY).appendProperties(b.alpha, b.shadow, b.compositeOperation)
- }, b.getConcatenatedMatrix = function(a) {
- a ? a.identity() : a = new createjs.Matrix2D;
- for (var b = this; null != b; )
- a.prependTransform(b.x, b.y, b.scaleX, b.scaleY, b.rotation, b.skewX, b.skewY, b.regX, b.regY).prependProperties(b.alpha, b.shadow, b.compositeOperation), b = b.parent;
- return a
- }, b.hitTest = function(b, c) {
- var d = a._hitTestContext;
- d.setTransform(1, 0, 0, 1, -b, -c), this.draw(d);
- var e = this._testHit(d);
- return d.setTransform(1, 0, 0, 1, 0, 0), d.clearRect(0, 0, 2, 2), e
- }, b.set = function(a) {
- for (var b in a)
- this[b] = a[b];
- return this
- }, b.getBounds = function() {
- if (this._bounds)
- return this._rectangle.copy(this._bounds);
- var a = this.cacheCanvas;
- if (a) {
- var b = this._cacheScale;
- return this._rectangle.initialize(this._cacheOffsetX, this._cacheOffsetY, a.width / b, a.height / b)
- }
- return null
- }, b.getTransformedBounds = function() {
- return this._getBounds()
- }, b.setBounds = function(a, b, c, d) {
- null == a && (this._bounds = a), this._bounds = (this._bounds || new createjs.Rectangle).initialize(a, b, c, d)
- }, b.clone = function() {
- var b = new a;
- return this.cloneProps(b), b
- }, b.toString = function() {
- return "[DisplayObject (name=" + this.name + ")]"
- }, b.cloneProps = function(a) {
- a.alpha = this.alpha, a.name = this.name, a.regX = this.regX, a.regY = this.regY, a.rotation = this.rotation, a.scaleX = this.scaleX, a.scaleY = this.scaleY, a.shadow = this.shadow, a.skewX = this.skewX, a.skewY = this.skewY, a.visible = this.visible, a.x = this.x, a.y = this.y, a._bounds = this._bounds, a.mouseEnabled = this.mouseEnabled, a.compositeOperation = this.compositeOperation
- }, b._applyShadow = function(a, b) {
- b = b || Shadow.identity, a.shadowColor = b.color, a.shadowOffsetX = b.offsetX, a.shadowOffsetY = b.offsetY, a.shadowBlur = b.blur
- }, b._tick = function(a) {
- var b = this._listeners;
- if (b && b.tick) {
- var c = new createjs.Event("tick");
- c.params = a, this._dispatchEvent(c, this, 2)
- }
- }, b._testHit = function(b) {
- try {
- var c = b.getImageData(0, 0, 1, 1).data[3] > 1
- } catch (d) {
- if (!a.suppressCrossDomainErrors)
- throw "An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."
- }
- return c
- }, b._applyFilters = function() {
- if (this.filters && 0 != this.filters.length && this.cacheCanvas)
- for (var a = this.filters.length, b = this.cacheCanvas.getContext("2d"), c = this.cacheCanvas.width, d = this.cacheCanvas.height, e = 0; a > e; e++)
- this.filters[e].applyFilter(b, 0, 0, c, d)
- }, b._applyFilterBounds = function(a, b, c, d) {
- var e, f, g = this.filters;
- if (!g || !(f = g.length))
- return null;
- for (var h = 0; f > h; h++) {
- var i = this.filters[h], j = i.getBounds && i.getBounds();
- j && (e || (e = this._rectangle.initialize(a, b, c, d)), e.x += j.x, e.y += j.y, e.width += j.width, e.height += j.height)
- }
- return e
- }, b._getBounds = function(a, b) {
- return this._transformBounds(this.getBounds(), a, b)
- }, b._transformBounds = function(a, b, c) {
- if (!a)
- return a;
- var d = a.x, e = a.y, f = a.width, g = a.height, h = c ? this._matrix.identity() : this.getMatrix(this._matrix);
- (d || e) && h.appendTransform(0, 0, 1, 1, 0, 0, 0, -d, -e), b && h.prependMatrix(b);
- var i = f * h.a, j = f * h.b, k = g * h.c, l = g * h.d, m = h.tx, n = h.ty, o = m, p = m, q = n, r = n;
- return (d = i + m) < o ? o = d : d > p && (p = d), (d = i + k + m) < o ? o = d : d > p && (p = d), (d = k + m) < o ? o = d : d > p && (p = d), (e = j + n) < q ? q = e : e > r && (r = e), (e = j + l + n) < q ? q = e : e > r && (r = e), (e = l + n) < q ? q = e : e > r && (r = e), a.initialize(o, q, p - o, r - q)
- }, b._hasMouseEventListener = function() {
- for (var b = a._MOUSE_EVENTS, c = 0, d = b.length; d > c; c++)
- if (this.hasEventListener(b[c]))
- return !0;
- return !!this.cursor
- }, createjs.DisplayObject = a
- }(), this.createjs = this.createjs || {}, function() {
- var a = function() {
- this.initialize()
- }, b = a.prototype = new createjs.DisplayObject;
- b.children = null, b.mouseChildren = !0, b.tickChildren = !0, b.DisplayObject_initialize = b.initialize, b.initialize = function() {
- this.DisplayObject_initialize(), this.children = []
- }, b.isVisible = function() {
- var a = this.cacheCanvas || this.children.length;
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- if (this.DisplayObject_draw(a, b))
- return !0;
- for (var c = this.children.slice(0), d = 0, e = c.length; e > d; d++) {
- var f = c[d];
- f.isVisible() && (a.save(), f.updateContext(a), f.draw(a), a.restore())
- }
- return !0
- }, b.addChild = function(a) {
- if (null == a)
- return a;
- var b = arguments.length;
- if (b > 1) {
- for (var c = 0; b > c; c++)
- this.addChild(arguments[c]);
- return arguments[b - 1]
- }
- return a.parent && a.parent.removeChild(a), a.parent = this, this.children.push(a), a
- }, b.addChildAt = function(a, b) {
- var c = arguments.length, d = arguments[c - 1];
- if (0 > d || d > this.children.length)
- return arguments[c - 2];
- if (c > 2) {
- for (var e = 0; c - 1 > e; e++)
- this.addChildAt(arguments[e], d + e);
- return arguments[c - 2]
- }
- return a.parent && a.parent.removeChild(a), a.parent = this, this.children.splice(b, 0, a), a
- }, b.removeChild = function(a) {
- var b = arguments.length;
- if (b > 1) {
- for (var c = !0, d = 0; b > d; d++)
- c = c && this.removeChild(arguments[d]);
- return c
- }
- return this.removeChildAt(createjs.indexOf(this.children, a))
- }, b.removeChildAt = function(a) {
- var b = arguments.length;
- if (b > 1) {
- for (var c = [], d = 0; b > d; d++)
- c[d] = arguments[d];
- c.sort(function(a, b) {
- return b - a
- });
- for (var e = !0, d = 0; b > d; d++)
- e = e && this.removeChildAt(c[d]);
- return e
- }
- if (0 > a || a > this.children.length - 1)
- return !1;
- var f = this.children[a];
- return f && (f.parent = null), this.children.splice(a, 1), !0
- }, b.removeAllChildren = function() {
- for (var a = this.children; a.length; )
- a.pop().parent = null
- }, b.getChildAt = function(a) {
- return this.children[a]
- }, b.getChildByName = function(a) {
- for (var b = this.children, c = 0, d = b.length; d > c; c++)
- if (b[c].name == a)
- return b[c];
- return null
- }, b.sortChildren = function(a) {
- this.children.sort(a)
- }, b.getChildIndex = function(a) {
- return createjs.indexOf(this.children, a)
- }, b.getNumChildren = function() {
- return this.children.length
- }, b.swapChildrenAt = function(a, b) {
- var c = this.children, d = c[a], e = c[b];
- d && e && (c[a] = e, c[b] = d)
- }, b.swapChildren = function(a, b) {
- for (var c, d, e = this.children, f = 0, g = e.length; g > f && (e[f] == a && (c = f), e[f] == b && (d = f), null == c || null == d); f++)
- ;
- f != g && (e[c] = b, e[d] = a)
- }, b.setChildIndex = function(a, b) {
- var c = this.children, d = c.length;
- if (!(a.parent != this || 0 > b || b >= d)) {
- for (var e = 0; d > e && c[e] != a; e++)
- ;
- e != d && e != b && (c.splice(e, 1), c.splice(b, 0, a))
- }
- }, b.contains = function(a) {
- for (; a; ) {
- if (a == this)
- return !0;
- a = a.parent
- }
- return !1
- }, b.hitTest = function(a, b) {
- return null != this.getObjectUnderPoint(a, b)
- }, b.getObjectsUnderPoint = function(a, b) {
- var c = [], d = this.localToGlobal(a, b);
- return this._getObjectsUnderPoint(d.x, d.y, c), c
- }, b.getObjectUnderPoint = function(a, b) {
- var c = this.localToGlobal(a, b);
- return this._getObjectsUnderPoint(c.x, c.y)
- }, b.DisplayObject_getBounds = b.getBounds, b.getBounds = function() {
- return this._getBounds(null, !0)
- }, b.getTransformedBounds = function() {
- return this._getBounds()
- }, b.clone = function(b) {
- var c = new a;
- if (this.cloneProps(c), b)
- for (var d = c.children = [], e = 0, f = this.children.length; f > e; e++) {
- var g = this.children[e].clone(b);
- g.parent = c, d.push(g)
- }
- return c
- }, b.toString = function() {
- return "[Container (name=" + this.name + ")]"
- }, b.DisplayObject__tick = b._tick, b._tick = function(a) {
- if (this.tickChildren)
- for (var b = this.children.length - 1; b >= 0; b--) {
- var c = this.children[b];
- c.tickEnabled && c._tick && c._tick(a)
- }
- this.DisplayObject__tick(a)
- }, b._getObjectsUnderPoint = function(b, c, d, e, f) {
- var g = createjs.DisplayObject._hitTestContext, h = this._matrix;
- f = f || e && this._hasMouseEventListener();
- for (var i = this.children, j = i.length, k = j - 1; k >= 0; k--) {
- var l = i[k], m = l.hitArea;
- if (l.visible && (m || l.isVisible()) && (!e || l.mouseEnabled))
- if (!m && l instanceof a) {
- var n = l._getObjectsUnderPoint(b, c, d, e, f);
- if (!d && n)
- return e && !this.mouseChildren ? this : n
- } else {
- if (!f && !l._hasMouseEventListener())
- continue;
- if (l.getConcatenatedMatrix(h), m && (h.appendTransform(m.x, m.y, m.scaleX, m.scaleY, m.rotation, m.skewX, m.skewY, m.regX, m.regY), h.alpha = m.alpha), g.globalAlpha = h.alpha, g.setTransform(h.a, h.b, h.c, h.d, h.tx - b, h.ty - c), (m || l).draw(g), !this._testHit(g))
- continue;
- if (g.setTransform(1, 0, 0, 1, 0, 0), g.clearRect(0, 0, 2, 2), !d)
- return e && !this.mouseChildren ? this : l;
- d.push(l)
- }
- }
- return null
- }, b._getBounds = function(a, b) {
- var c = this.DisplayObject_getBounds();
- if (c)
- return this._transformBounds(c, a, b);
- var d, e, f, g, h = b ? this._matrix.identity() : this.getMatrix(this._matrix);
- a && h.prependMatrix(a);
- for (var i = this.children.length, j = 0; i > j; j++) {
- var k = this.children[j];
- if (k.visible && (c = k._getBounds(h))) {
- var l = c.x, m = c.y, n = l + c.width, o = m + c.height;
- (d > l || null == d) && (d = l), (n > e || null == e) && (e = n), (f > m || null == f) && (f = m), (o > g || null == g) && (g = o)
- }
- }
- return null == e ? null : this._rectangle.initialize(d, f, e - d, g - f)
- }, createjs.Container = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.Container;
- a._snapToPixelEnabled = !1, b.autoClear = !0, b.canvas = null, b.mouseX = 0, b.mouseY = 0, b.snapToPixelEnabled = !1, b.mouseInBounds = !1, b.tickOnUpdate = !0, b.mouseMoveOutside = !1, b.nextStage = null, b._pointerData = null, b._pointerCount = 0, b._primaryPointerID = null, b._mouseOverIntervalID = null, b.Container_initialize = b.initialize, b.initialize = function(a) {
- this.Container_initialize(), this.canvas = "string" == typeof a ? document.getElementById(a) : a, this._pointerData = {}, this.enableDOMEvents(!0)
- }, b.update = function() {
- if (this.canvas) {
- this.tickOnUpdate && (this.dispatchEvent("tickstart"), this.tickEnabled && this._tick(arguments.length ? arguments : null), this.dispatchEvent("tickend")), this.dispatchEvent("drawstart"), a._snapToPixelEnabled = this.snapToPixelEnabled, this.autoClear && this.clear();
- var b = this.canvas.getContext("2d");
- b.save(), this.updateContext(b), this.draw(b, !1), b.restore(), this.dispatchEvent("drawend")
- }
- }, b.handleEvent = function(a) {
- "tick" == a.type && this.update(a)
- }, b.clear = function() {
- if (this.canvas) {
- var a = this.canvas.getContext("2d");
- a.setTransform(1, 0, 0, 1, 0, 0), a.clearRect(0, 0, this.canvas.width + 1, this.canvas.height + 1)
- }
- }, b.toDataURL = function(a, b) {
- b || (b = "image/png");
- var c, d = this.canvas.getContext("2d"), e = this.canvas.width, f = this.canvas.height;
- if (a) {
- c = d.getImageData(0, 0, e, f);
- var g = d.globalCompositeOperation;
- d.globalCompositeOperation = "destination-over", d.fillStyle = a, d.fillRect(0, 0, e, f)
- }
- var h = this.canvas.toDataURL(b);
- return a && (d.clearRect(0, 0, e + 1, f + 1), d.putImageData(c, 0, 0), d.globalCompositeOperation = g), h
- }, b.enableMouseOver = function(a) {
- if (this._mouseOverIntervalID && (clearInterval(this._mouseOverIntervalID), this._mouseOverIntervalID = null, 0 == a && this._testMouseOver(!0)), null == a)
- a = 20;
- else if (0 >= a)
- return;
- var b = this;
- this._mouseOverIntervalID = setInterval(function() {
- b._testMouseOver()
- }, 1e3 / Math.min(50, a))
- }, b.enableDOMEvents = function(a) {
- null == a && (a = !0);
- var b, c, d = this._eventListeners;
- if (!a && d) {
- for (b in d)
- c = d[b], c.t.removeEventListener(b, c.f, !1);
- this._eventListeners = null
- } else if (a && !d && this.canvas) {
- var e = window.addEventListener ? window : document, f = this;
- d = this._eventListeners = {}, d.mouseup = {t: e,f: function(a) {
- f._handleMouseUp(a)
- }}, d.mousemove = {t: e,f: function(a) {
- f._handleMouseMove(a)
- }}, d.dblclick = {t: this.canvas,f: function(a) {
- f._handleDoubleClick(a)
- }}, d.mousedown = {t: this.canvas,f: function(a) {
- f._handleMouseDown(a)
- }};
- for (b in d)
- c = d[b], c.t.addEventListener(b, c.f, !1)
- }
- }, b.clone = function() {
- var b = new a(null);
- return this.cloneProps(b), b
- }, b.toString = function() {
- return "[Stage (name=" + this.name + ")]"
- }, b._getElementRect = function(a) {
- var b;
- try {
- b = a.getBoundingClientRect()
- } catch (c) {
- b = {top: a.offsetTop,left: a.offsetLeft,width: a.offsetWidth,height: a.offsetHeight}
- }
- var d = (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || document.body.clientLeft || 0), e = (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || document.body.clientTop || 0), f = window.getComputedStyle ? getComputedStyle(a) : a.currentStyle, g = parseInt(f.paddingLeft) + parseInt(f.borderLeftWidth), h = parseInt(f.paddingTop) + parseInt(f.borderTopWidth), i = parseInt(f.paddingRight) + parseInt(f.borderRightWidth), j = parseInt(f.paddingBottom) + parseInt(f.borderBottomWidth);
- return {left: b.left + d + g,right: b.right + d - i,top: b.top + e + h,bottom: b.bottom + e - j}
- }, b._getPointerData = function(a) {
- var b = this._pointerData[a];
- return b || (b = this._pointerData[a] = {x: 0,y: 0}, null == this._primaryPointerID && (this._primaryPointerID = a), (null == this._primaryPointerID || -1 == this._primaryPointerID) && (this._primaryPointerID = a)), b
- }, b._handleMouseMove = function(a) {
- a || (a = window.event), this._handlePointerMove(-1, a, a.pageX, a.pageY)
- }, b._handlePointerMove = function(a, b, c, d) {
- if (this.canvas) {
- var e = this._getPointerData(a), f = e.inBounds;
- if (this._updatePointerPosition(a, b, c, d), f || e.inBounds || this.mouseMoveOutside) {
- -1 == a && e.inBounds == !f && this._dispatchMouseEvent(this, f ? "mouseleave" : "mouseenter", !1, a, e, b), this._dispatchMouseEvent(this, "stagemousemove", !1, a, e, b), this._dispatchMouseEvent(e.target, "pressmove", !0, a, e, b);
- var g = e.event;
- g && g.hasEventListener("mousemove") && g.dispatchEvent(new createjs.MouseEvent("mousemove", !1, !1, e.x, e.y, b, a, a == this._primaryPointerID, e.rawX, e.rawY), e.target), this.nextStage && this.nextStage._handlePointerMove(a, b, c, d)
- }
- }
- }, b._updatePointerPosition = function(a, b, c, d) {
- var e = this._getElementRect(this.canvas);
- c -= e.left, d -= e.top;
- var f = this.canvas.width, g = this.canvas.height;
- c /= (e.right - e.left) / f, d /= (e.bottom - e.top) / g;
- var h = this._getPointerData(a);
- (h.inBounds = c >= 0 && d >= 0 && f - 1 >= c && g - 1 >= d) ? (h.x = c, h.y = d) : this.mouseMoveOutside && (h.x = 0 > c ? 0 : c > f - 1 ? f - 1 : c, h.y = 0 > d ? 0 : d > g - 1 ? g - 1 : d), h.posEvtObj = b, h.rawX = c, h.rawY = d, a == this._primaryPointerID && (this.mouseX = h.x, this.mouseY = h.y, this.mouseInBounds = h.inBounds)
- }, b._handleMouseUp = function(a) {
- this._handlePointerUp(-1, a, !1)
- }, b._handlePointerUp = function(a, b, c) {
- var d = this._getPointerData(a);
- this._dispatchMouseEvent(this, "stagemouseup", !1, a, d, b);
- var e = d.target;
- e && (this._getObjectsUnderPoint(d.x, d.y, null, !0) == e && this._dispatchMouseEvent(e, "click", !0, a, d, b), this._dispatchMouseEvent(e, "pressup", !0, a, d, b));
- var f = d.event;
- f && f.hasEventListener("mouseup") && f.dispatchEvent(new createjs.MouseEvent("mouseup", !1, !1, d.x, d.y, b, a, a == this._primaryPointerID, d.rawX, d.rawY), e), c ? (a == this._primaryPointerID && (this._primaryPointerID = null), delete this._pointerData[a]) : d.event = d.target = null, this.nextStage && this.nextStage._handlePointerUp(a, b, c)
- }, b._handleMouseDown = function(a) {
- this._handlePointerDown(-1, a, a.pageX, a.pageY)
- }, b._handlePointerDown = function(a, b, c, d) {
- null != d && this._updatePointerPosition(a, b, c, d);
- var e = this._getPointerData(a);
- this._dispatchMouseEvent(this, "stagemousedown", !1, a, e, b), e.target = this._getObjectsUnderPoint(e.x, e.y, null, !0), e.event = this._dispatchMouseEvent(e.target, "mousedown", !0, a, e, b), this.nextStage && this.nextStage._handlePointerDown(a, b, c, d)
- }, b._testMouseOver = function(a) {
- if (-1 == this._primaryPointerID && (a || this.mouseX != this._mouseOverX || this.mouseY != this._mouseOverY || !this.mouseInBounds)) {
- var b, c, d, e, f = this._getPointerData(-1), g = f.posEvtObj, h = -1, i = "";
- (a || this.mouseInBounds && g && g.target == this.canvas) && (b = this._getObjectsUnderPoint(this.mouseX, this.mouseY, null, !0), this._mouseOverX = this.mouseX, this._mouseOverY = this.mouseY);
- var j = this._mouseOverTarget || [], k = j[j.length - 1], l = this._mouseOverTarget = [];
- for (c = b; c; )
- l.unshift(c), null != c.cursor && (i = c.cursor), c = c.parent;
- for (this.canvas.style.cursor = i, d = 0, e = l.length; e > d && l[d] == j[d]; d++)
- h = d;
- for (k != b && this._dispatchMouseEvent(k, "mouseout", !0, -1, f, g), d = j.length - 1; d > h; d--)
- this._dispatchMouseEvent(j[d], "rollout", !1, -1, f, g);
- for (d = l.length - 1; d > h; d--)
- this._dispatchMouseEvent(l[d], "rollover", !1, -1, f, g);
- k != b && this._dispatchMouseEvent(b, "mouseover", !0, -1, f, g)
- }
- }, b._handleDoubleClick = function(a) {
- var b = this._getPointerData(-1), c = this._getObjectsUnderPoint(b.x, b.y, null, !0);
- this._dispatchMouseEvent(c, "dblclick", !0, -1, b, a), this.nextStage && this.nextStage._handleDoubleClick(a)
- }, b._dispatchMouseEvent = function(a, b, c, d, e, f) {
- if (a && (c || a.hasEventListener(b))) {
- var g = new createjs.MouseEvent(b, c, !1, e.x, e.y, f, d, d == this._primaryPointerID, e.rawX, e.rawY);
- return a.dispatchEvent(g), g
- }
- }, createjs.Stage = a
- }(), this.createjs = this.createjs || {}, function() {
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.DisplayObject;
- b.image = null, b.snapToPixel = !0, b.sourceRect = null, b.DisplayObject_initialize = b.initialize, b.initialize = function(a) {
- this.DisplayObject_initialize(), "string" == typeof a ? (this.image = document.createElement("img"), this.image.src = a) : this.image = a
- }, b.isVisible = function() {
- var a = this.cacheCanvas || this.image && (this.image.complete || this.image.getContext || this.image.readyState >= 2);
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- if (this.DisplayObject_draw(a, b))
- return !0;
- var c = this.sourceRect;
- return c ? a.drawImage(this.image, c.x, c.y, c.width, c.height, 0, 0, c.width, c.height) : a.drawImage(this.image, 0, 0), !0
- }, b.DisplayObject_getBounds = b.getBounds, b.getBounds = function() {
- var a = this.DisplayObject_getBounds();
- if (a)
- return a;
- var b = this.sourceRect || this.image, c = this.image && (this.image.complete || this.image.getContext || this.image.readyState >= 2);
- return c ? this._rectangle.initialize(0, 0, b.width, b.height) : null
- }, b.clone = function() {
- var b = new a(this.image);
- return this.sourceRect && (b.sourceRect = this.sourceRect.clone()), this.cloneProps(b), b
- }, b.toString = function() {
- return "[Bitmap (name=" + this.name + ")]"
- }, createjs.Bitmap = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b) {
- this.initialize(a, b)
- }, b = a.prototype = new createjs.DisplayObject;
- b.currentFrame = 0, b.currentAnimation = null, b.paused = !0, b.spriteSheet = null, b.snapToPixel = !0, b.offset = 0, b.currentAnimationFrame = 0, b.framerate = 0, b._advanceCount = 0, b._animation = null, b._currentFrame = null, b.DisplayObject_initialize = b.initialize, b.initialize = function(a, b) {
- this.DisplayObject_initialize(), this.spriteSheet = a, b && this.gotoAndPlay(b)
- }, b.isVisible = function() {
- var a = this.cacheCanvas || this.spriteSheet.complete;
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- if (this.DisplayObject_draw(a, b))
- return !0;
- this._normalizeFrame();
- var c = this.spriteSheet.getFrame(0 | this._currentFrame);
- if (!c)
- return !1;
- var d = c.rect;
- return a.drawImage(c.image, d.x, d.y, d.width, d.height, -c.regX, -c.regY, d.width, d.height), !0
- }, b.play = function() {
- this.paused = !1
- }, b.stop = function() {
- this.paused = !0
- }, b.gotoAndPlay = function(a) {
- this.paused = !1, this._goto(a)
- }, b.gotoAndStop = function(a) {
- this.paused = !0, this._goto(a)
- }, b.advance = function(a) {
- var b = this._animation && this._animation.speed || 1, c = this.framerate || this.spriteSheet.framerate, d = c && null != a ? a / (1e3 / c) : 1;
- this._animation ? this.currentAnimationFrame += d * b : this._currentFrame += d * b, this._normalizeFrame()
- }, b.DisplayObject_getBounds = b.getBounds, b.getBounds = function() {
- return this.DisplayObject_getBounds() || this.spriteSheet.getFrameBounds(this.currentFrame, this._rectangle)
- }, b.clone = function() {
- var b = new a(this.spriteSheet);
- return this.cloneProps(b), b
- }, b.toString = function() {
- return "[Sprite (name=" + this.name + ")]"
- }, b.DisplayObject__tick = b._tick, b._tick = function(a) {
- this.paused || this.advance(a && a[0] && a[0].delta), this.DisplayObject__tick(a)
- }, b._normalizeFrame = function() {
- var a, b = this._animation, c = this.paused, d = this._currentFrame, e = this.currentAnimationFrame;
- if (b)
- if (a = b.frames.length, (0 | e) >= a) {
- var f = b.next;
- if (this._dispatchAnimationEnd(b, d, c, f, a - 1))
- ;
- else {
- if (f)
- return this._goto(f, e - a);
- this.paused = !0, e = this.currentAnimationFrame = b.frames.length - 1, this._currentFrame = b.frames[e]
- }
- } else
- this._currentFrame = b.frames[0 | e];
- else if (a = this.spriteSheet.getNumFrames(), d >= a && !this._dispatchAnimationEnd(b, d, c, a - 1) && (this._currentFrame -= a) >= a)
- return this._normalizeFrame();
- this.currentFrame = 0 | this._currentFrame
- }, b._dispatchAnimationEnd = function(a, b, c, d, e) {
- var f = a ? a.name : null;
- if (this.hasEventListener("animationend")) {
- var g = new createjs.Event("animationend");
- g.name = f, g.next = d, this.dispatchEvent(g)
- }
- var h = this._animation != a || this._currentFrame != b;
- return h || c || !this.paused || (this.currentAnimationFrame = e, h = !0), h
- }, b.DisplayObject_cloneProps = b.cloneProps, b.cloneProps = function(a) {
- this.DisplayObject_cloneProps(a), a.currentFrame = this.currentFrame, a._currentFrame = this._currentFrame, a.currentAnimation = this.currentAnimation, a.paused = this.paused, a._animation = this._animation, a.currentAnimationFrame = this.currentAnimationFrame, a.framerate = this.framerate
- }, b._goto = function(a, b) {
- if (isNaN(a)) {
- var c = this.spriteSheet.getAnimation(a);
- c && (this.currentAnimationFrame = b || 0, this._animation = c, this.currentAnimation = a, this._normalizeFrame())
- } else
- this.currentAnimationFrame = 0, this.currentAnimation = this._animation = null, this._currentFrame = a, this._normalizeFrame()
- }, createjs.Sprite = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = "BitmapAnimation is deprecated in favour of Sprite. See VERSIONS file for info on changes.";
- if (!createjs.Sprite)
- throw a;
- (createjs.BitmapAnimation = function(b) {
- console.log(a), this.initialize(b)
- }).prototype = new createjs.Sprite
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.DisplayObject;
- b.graphics = null, b.DisplayObject_initialize = b.initialize, b.initialize = function(a) {
- this.DisplayObject_initialize(), this.graphics = a ? a : new createjs.Graphics
- }, b.isVisible = function() {
- var a = this.cacheCanvas || this.graphics && !this.graphics.isEmpty();
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- return this.DisplayObject_draw(a, b) ? !0 : (this.graphics.draw(a), !0)
- }, b.clone = function(b) {
- var c = new a(b && this.graphics ? this.graphics.clone() : this.graphics);
- return this.cloneProps(c), c
- }, b.toString = function() {
- return "[Shape (name=" + this.name + ")]"
- }, createjs.Shape = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype = new createjs.DisplayObject, c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas");
- c.getContext && (a._workingContext = c.getContext("2d"), c.width = c.height = 1), a.H_OFFSETS = {start: 0,left: 0,center: -.5,end: -1,right: -1}, a.V_OFFSETS = {top: 0,hanging: -.01,middle: -.4,alphabetic: -.8,ideographic: -.85,bottom: -1}, b.text = "", b.font = null, b.color = null, b.textAlign = "left", b.textBaseline = "top", b.maxWidth = null, b.outline = 0, b.lineHeight = 0, b.lineWidth = null, b.DisplayObject_initialize = b.initialize, b.initialize = function(a, b, c) {
- this.DisplayObject_initialize(), this.text = a, this.font = b, this.color = c
- }, b.isVisible = function() {
- var a = this.cacheCanvas || null != this.text && "" !== this.text;
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- if (this.DisplayObject_draw(a, b))
- return !0;
- var c = this.color || "#000";
- return this.outline ? (a.strokeStyle = c, a.lineWidth = 1 * this.outline) : a.fillStyle = c, this._drawText(this._prepContext(a)), !0
- }, b.getMeasuredWidth = function() {
- return this._prepContext(a._workingContext).measureText(this.text).width
- }, b.getMeasuredLineHeight = function() {
- return 1.2 * this._prepContext(a._workingContext).measureText("M").width
- }, b.getMeasuredHeight = function() {
- return this._drawText(null, {}).height
- }, b.DisplayObject_getBounds = b.getBounds, b.getBounds = function() {
- var b = this.DisplayObject_getBounds();
- if (b)
- return b;
- if (null == this.text || "" == this.text)
- return null;
- var c = this._drawText(null, {}), d = this.maxWidth && this.maxWidth < c.width ? this.maxWidth : c.width, e = d * a.H_OFFSETS[this.textAlign || "left"], f = this.lineHeight || this.getMeasuredLineHeight(), g = f * a.V_OFFSETS[this.textBaseline || "top"];
- return this._rectangle.initialize(e, g, d, c.height)
- }, b.clone = function() {
- var b = new a(this.text, this.font, this.color);
- return this.cloneProps(b), b
- }, b.toString = function() {
- return "[Text (text=" + (this.text.length > 20 ? this.text.substr(0, 17) + "..." : this.text) + ")]"
- }, b.DisplayObject_cloneProps = b.cloneProps, b.cloneProps = function(a) {
- this.DisplayObject_cloneProps(a), a.textAlign = this.textAlign, a.textBaseline = this.textBaseline, a.maxWidth = this.maxWidth, a.outline = this.outline, a.lineHeight = this.lineHeight, a.lineWidth = this.lineWidth
- }, b._prepContext = function(a) {
- return a.font = this.font, a.textAlign = this.textAlign || "left", a.textBaseline = this.textBaseline || "top", a
- }, b._drawText = function(b, c) {
- var d = !!b;
- d || (b = this._prepContext(a._workingContext));
- for (var e = this.lineHeight || this.getMeasuredLineHeight(), f = 0, g = 0, h = String(this.text).split(/(?:\r\n|\r|\n)/), i = 0, j = h.length; j > i; i++) {
- var k = h[i], l = null;
- if (null != this.lineWidth && (l = b.measureText(k).width) > this.lineWidth) {
- var m = k.split(/(\s)/);
- k = m[0], l = b.measureText(k).width;
- for (var n = 1, o = m.length; o > n; n += 2) {
- var p = b.measureText(m[n] + m[n + 1]).width;
- l + p > this.lineWidth ? (d && this._drawTextLine(b, k, g * e), l > f && (f = l), k = m[n + 1], l = b.measureText(k).width, g++) : (k += m[n] + m[n + 1], l += p)
- }
- }
- d && this._drawTextLine(b, k, g * e), c && null == l && (l = b.measureText(k).width), l > f && (f = l), g++
- }
- return c && (c.count = g, c.width = f, c.height = g * e), c
- }, b._drawTextLine = function(a, b, c) {
- this.outline ? a.strokeText(b, 0, c, this.maxWidth || 65535) : a.fillText(b, 0, c, this.maxWidth || 65535)
- }, createjs.Text = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- function a(a, b) {
- this.initialize(a, b)
- }
- var b = a.prototype = new createjs.DisplayObject;
- b.text = "", b.spriteSheet = null, b.lineHeight = 0, b.letterSpacing = 0, b.spaceWidth = 0, b.DisplayObject_initialize = b.initialize, b.initialize = function(a, b) {
- this.DisplayObject_initialize(), this.text = a, this.spriteSheet = b
- }, b.DisplayObject_draw = b.draw, b.draw = function(a, b) {
- return this.DisplayObject_draw(a, b) ? !0 : void this._drawText(a)
- }, b.isVisible = function() {
- var a = this.cacheCanvas || this.spriteSheet && this.spriteSheet.complete && this.text;
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a)
- }, b.getBounds = function() {
- var a = this._rectangle;
- return this._drawText(null, a), a.width ? a : null
- }, b._getFrame = function(a, b) {
- var c, d = b.getAnimation(a);
- return d || (a != (c = a.toUpperCase()) || a != (c = a.toLowerCase()) || (c = null), c && (d = b.getAnimation(c))), d && b.getFrame(d.frames[0])
- }, b._getLineHeight = function(a) {
- var b = this._getFrame("1", a) || this._getFrame("T", a) || this._getFrame("L", a) || a.getFrame(0);
- return b ? b.rect.height : 1
- }, b._getSpaceWidth = function(a) {
- var b = this._getFrame("1", a) || this._getFrame("l", a) || this._getFrame("e", a) || this._getFrame("a", a) || a.getFrame(0);
- return b ? b.rect.width : 1
- }, b._drawText = function(a, b) {
- var c, d, e, f = 0, g = 0, h = this.spaceWidth, i = this.lineHeight, j = this.spriteSheet, k = !!this._getFrame(" ", j);
- k || 0 != h || (h = this._getSpaceWidth(j)), 0 == i && (i = this._getLineHeight(j));
- for (var l = 0, m = 0, n = this.text.length; n > m; m++) {
- var o = this.text.charAt(m);
- if (k || " " != o)
- if ("\n" != o && "\r" != o) {
- var p = this._getFrame(o, j);
- if (p) {
- var q = p.rect;
- e = p.regX, c = q.width, a && a.drawImage(p.image, q.x, q.y, c, d = q.height, f - e, g - p.regY, c, d), f += c + this.letterSpacing
- }
- } else
- "\r" == o && "\n" == this.text.charAt(m + 1) && m++, f - e > l && (l = f - e), f = 0, g += i;
- else
- f += h
- }
- f - e > l && (l = f - e), b && (b.width = l - this.letterSpacing, b.height = g + i)
- }, createjs.BitmapText = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "SpriteSheetUtils cannot be instantiated"
- }, b = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas");
- b.getContext && (a._workingCanvas = b, a._workingContext = b.getContext("2d"), b.width = b.height = 1), a.addFlippedFrames = function(b, c, d, e) {
- if (c || d || e) {
- var f = 0;
- c && a._flip(b, ++f, !0, !1), d && a._flip(b, ++f, !1, !0), e && a._flip(b, ++f, !0, !0)
- }
- }, a.extractFrame = function(b, c) {
- isNaN(c) && (c = b.getAnimation(c).frames[0]);
- var d = b.getFrame(c);
- if (!d)
- return null;
- var e = d.rect, f = a._workingCanvas;
- f.width = e.width, f.height = e.height, a._workingContext.drawImage(d.image, e.x, e.y, e.width, e.height, 0, 0, e.width, e.height);
- var g = document.createElement("img");
- return g.src = f.toDataURL("image/png"), g
- }, a.mergeAlpha = function(a, b, c) {
- c || (c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), c.width = Math.max(b.width, a.width), c.height = Math.max(b.height, a.height);
- var d = c.getContext("2d");
- return d.save(), d.drawImage(a, 0, 0), d.globalCompositeOperation = "destination-in", d.drawImage(b, 0, 0), d.restore(), c
- }, a._flip = function(b, c, d, e) {
- for (var f = b._images, g = a._workingCanvas, h = a._workingContext, i = f.length / c, j = 0; i > j; j++) {
- var k = f[j];
- k.__tmp = j, h.setTransform(1, 0, 0, 1, 0, 0), h.clearRect(0, 0, g.width + 1, g.height + 1), g.width = k.width, g.height = k.height, h.setTransform(d ? -1 : 1, 0, 0, e ? -1 : 1, d ? k.width : 0, e ? k.height : 0), h.drawImage(k, 0, 0);
- var l = document.createElement("img");
- l.src = g.toDataURL("image/png"), l.width = k.width, l.height = k.height, f.push(l)
- }
- var m = b._frames, n = m.length / c;
- for (j = 0; n > j; j++) {
- k = m[j];
- var o = k.rect.clone();
- l = f[k.image.__tmp + i * c];
- var p = {image: l,rect: o,regX: k.regX,regY: k.regY};
- d && (o.x = l.width - o.x - o.width, p.regX = o.width - k.regX), e && (o.y = l.height - o.y - o.height, p.regY = o.height - k.regY), m.push(p)
- }
- var q = "_" + (d ? "h" : "") + (e ? "v" : ""), r = b._animations, s = b._data, t = r.length / c;
- for (j = 0; t > j; j++) {
- var u = r[j];
- k = s[u];
- var v = {name: u + q,speed: k.speed,next: k.next,frames: []};
- k.next && (v.next += q), m = k.frames;
- for (var w = 0, x = m.length; x > w; w++)
- v.frames.push(m[w] + n * c);
- s[v.name] = v, r.push(v.name)
- }
- }, createjs.SpriteSheetUtils = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- this.initialize()
- }, b = a.prototype = new createjs.EventDispatcher;
- a.ERR_DIMENSIONS = "frame dimensions exceed max spritesheet dimensions", a.ERR_RUNNING = "a build is already running", b.maxWidth = 2048, b.maxHeight = 2048, b.spriteSheet = null, b.scale = 1, b.padding = 1, b.timeSlice = .3, b.progress = -1, b._frames = null, b._animations = null, b._data = null, b._nextFrameIndex = 0, b._index = 0, b._timerID = null, b._scale = 1, b.initialize = function() {
- this._frames = [], this._animations = {}
- }, b.addFrame = function(b, c, d, e, f, g) {
- if (this._data)
- throw a.ERR_RUNNING;
- var h = c || b.bounds || b.nominalBounds;
- return !h && b.getBounds && (h = b.getBounds()), h ? (d = d || 1, this._frames.push({source: b,sourceRect: h,scale: d,funct: e,params: f,scope: g,index: this._frames.length,height: h.height * d}) - 1) : null
- }, b.addAnimation = function(b, c, d, e) {
- if (this._data)
- throw a.ERR_RUNNING;
- this._animations[b] = {frames: c,next: d,frequency: e}
- }, b.addMovieClip = function(b, c, d) {
- if (this._data)
- throw a.ERR_RUNNING;
- var e = b.frameBounds, f = c || b.bounds || b.nominalBounds;
- if (!f && b.getBounds && (f = b.getBounds()), !f && !e)
- return null;
- for (var g = this._frames.length, h = b.timeline.duration, i = 0; h > i; i++) {
- var j = e && e[i] ? e[i] : f;
- this.addFrame(b, j, d, function(a) {
- var b = this.actionsEnabled;
- this.actionsEnabled = !1, this.gotoAndStop(a), this.actionsEnabled = b
- }, [i], b)
- }
- var k = b.timeline._labels, l = [];
- for (var m in k)
- l.push({index: k[m],label: m});
- if (l.length) {
- l.sort(function(a, b) {
- return a.index - b.index
- });
- for (var i = 0, n = l.length; n > i; i++) {
- for (var o = l[i].label, p = g + l[i].index, q = g + (i == n - 1 ? h : l[i + 1].index), r = [], s = p; q > s; s++)
- r.push(s);
- this.addAnimation(o, r, !0)
- }
- }
- }, b.build = function() {
- if (this._data)
- throw a.ERR_RUNNING;
- for (this._startBuild(); this._drawNext(); )
- ;
- return this._endBuild(), this.spriteSheet
- }, b.buildAsync = function(b) {
- if (this._data)
- throw a.ERR_RUNNING;
- this.timeSlice = b, this._startBuild();
- var c = this;
- this._timerID = setTimeout(function() {
- c._run()
- }, 50 - 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3)))
- }, b.stopAsync = function() {
- clearTimeout(this._timerID), this._data = null
- }, b.clone = function() {
- throw "SpriteSheetBuilder cannot be cloned."
- }, b.toString = function() {
- return "[SpriteSheetBuilder]"
- }, b._startBuild = function() {
- var b = this.padding || 0;
- this.progress = 0, this.spriteSheet = null, this._index = 0, this._scale = this.scale;
- var c = [];
- this._data = {images: [],frames: c,animations: this._animations};
- var d = this._frames.slice();
- if (d.sort(function(a, b) {
- return a.height <= b.height ? -1 : 1
- }), d[d.length - 1].height + 2 * b > this.maxHeight)
- throw a.ERR_DIMENSIONS;
- for (var e = 0, f = 0, g = 0; d.length; ) {
- var h = this._fillRow(d, e, g, c, b);
- if (h.w > f && (f = h.w), e += h.h, !h.h || !d.length) {
- var i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas");
- i.width = this._getSize(f, this.maxWidth), i.height = this._getSize(e, this.maxHeight), this._data.images[g] = i, h.h || (f = e = 0, g++)
- }
- }
- }, b._getSize = function(a, b) {
- for (var c = 4; Math.pow(2, ++c) < a; )
- ;
- return Math.min(b, Math.pow(2, c))
- }, b._fillRow = function(b, c, d, e, f) {
- var g = this.maxWidth, h = this.maxHeight;
- c += f;
- for (var i = h - c, j = f, k = 0, l = b.length - 1; l >= 0; l--) {
- var m = b[l], n = this._scale * m.scale, o = m.sourceRect, p = m.source, q = Math.floor(n * o.x - f), r = Math.floor(n * o.y - f), s = Math.ceil(n * o.height + 2 * f), t = Math.ceil(n * o.width + 2 * f);
- if (t > g)
- throw a.ERR_DIMENSIONS;
- s > i || j + t > g || (m.img = d, m.rect = new createjs.Rectangle(j, c, t, s), k = k || s, b.splice(l, 1), e[m.index] = [j, c, t, s, d, Math.round(-q + n * p.regX - f), Math.round(-r + n * p.regY - f)], j += t)
- }
- return {w: j,h: k}
- }, b._endBuild = function() {
- this.spriteSheet = new createjs.SpriteSheet(this._data), this._data = null, this.progress = 1, this.dispatchEvent("complete")
- }, b._run = function() {
- for (var a = 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3)), b = (new Date).getTime() + a, c = !1; b > (new Date).getTime(); )
- if (!this._drawNext()) {
- c = !0;
- break
- }
- if (c)
- this._endBuild();
- else {
- var d = this;
- this._timerID = setTimeout(function() {
- d._run()
- }, 50 - a)
- }
- var e = this.progress = this._index / this._frames.length;
- if (this.hasEventListener("progress")) {
- var f = new createjs.Event("progress");
- f.progress = e, this.dispatchEvent(f)
- }
- }, b._drawNext = function() {
- var a = this._frames[this._index], b = a.scale * this._scale, c = a.rect, d = a.sourceRect, e = this._data.images[a.img], f = e.getContext("2d");
- return a.funct && a.funct.apply(a.scope, a.params), f.save(), f.beginPath(), f.rect(c.x, c.y, c.width, c.height), f.clip(), f.translate(Math.ceil(c.x - d.x * b), Math.ceil(c.y - d.y * b)), f.scale(b, b), a.source.draw(f), f.restore(), ++this._index < this._frames.length
- }, createjs.SpriteSheetBuilder = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.DisplayObject;
- b.htmlElement = null, b._oldMtx = null, b._visible = !1, b.DisplayObject_initialize = b.initialize, b.initialize = function(a) {
- "string" == typeof a && (a = document.getElementById(a)), this.DisplayObject_initialize(), this.mouseEnabled = !1, this.htmlElement = a;
- var b = a.style;
- b.position = "absolute", b.transformOrigin = b.WebkitTransformOrigin = b.msTransformOrigin = b.MozTransformOrigin = b.OTransformOrigin = "0% 0%"
- }, b.isVisible = function() {
- return null != this.htmlElement
- }, b.draw = function() {
- return this.visible && (this._visible = !0), !0
- }, b.cache = function() {
- }, b.uncache = function() {
- }, b.updateCache = function() {
- }, b.hitTest = function() {
- }, b.localToGlobal = function() {
- }, b.globalToLocal = function() {
- }, b.localToLocal = function() {
- }, b.clone = function() {
- throw "DOMElement cannot be cloned."
- }, b.toString = function() {
- return "[DOMElement (name=" + this.name + ")]"
- }, b.DisplayObject__tick = b._tick, b._tick = function(a) {
- var b = this.getStage();
- this._visible = !1, b && b.on("drawend", this._handleDrawEnd, this, !0), this.DisplayObject__tick(a)
- }, b._handleDrawEnd = function() {
- var a = this.htmlElement;
- if (a) {
- var b = a.style, c = this._visible ? "visible" : "hidden";
- if (c != b.visibility && (b.visibility = c), this._visible) {
- var d = this.getConcatenatedMatrix(this._matrix), e = this._oldMtx, f = 1e4;
- if (e && e.alpha == d.alpha || (b.opacity = "" + (0 | d.alpha * f) / f, e && (e.alpha = d.alpha)), !e || e.tx != d.tx || e.ty != d.ty || e.a != d.a || e.b != d.b || e.c != d.c || e.d != d.d) {
- var g = "matrix(" + (0 | d.a * f) / f + "," + (0 | d.b * f) / f + "," + (0 | d.c * f) / f + "," + (0 | d.d * f) / f + "," + (0 | d.tx + .5);
- b.transform = b.WebkitTransform = b.OTransform = b.msTransform = g + "," + (0 | d.ty + .5) + ")", b.MozTransform = g + "px," + (0 | d.ty + .5) + "px)", this._oldMtx = e ? e.copy(d) : d.clone()
- }
- }
- }
- }, createjs.DOMElement = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- this.initialize()
- }, b = a.prototype;
- b.initialize = function() {
- }, b.getBounds = function() {
- return null
- }, b.applyFilter = function() {
- }, b.toString = function() {
- return "[Filter]"
- }, b.clone = function() {
- return new a
- }, createjs.Filter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype = new createjs.Filter;
- b.initialize = function(a, b, c) {
- (isNaN(a) || 0 > a) && (a = 0), this.blurX = 0 | a, (isNaN(b) || 0 > b) && (b = 0), this.blurY = 0 | b, (isNaN(c) || 1 > c) && (c = 1), this.quality = 0 | c
- }, b.blurX = 0, b.blurY = 0, b.quality = 1, b.mul_table = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1], b.shg_table = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9], b.getBounds = function() {
- var a = .5 * Math.pow(this.quality, .6);
- return new createjs.Rectangle(-this.blurX * a, -this.blurY * a, 2 * this.blurX * a, 2 * this.blurY * a)
- }, b.applyFilter = function(a, b, c, d, e, f, g, h) {
- f = f || a, null == g && (g = b), null == h && (h = c);
- try {
- var i = a.getImageData(b, c, d, e)
- } catch (j) {
- return !1
- }
- var k = this.blurX / 2;
- if (isNaN(k) || 0 > k)
- return !1;
- k |= 0;
- var l = this.blurY / 2;
- if (isNaN(l) || 0 > l)
- return !1;
- if (l |= 0, 0 == k && 0 == l)
- return !1;
- var m = this.quality;
- (isNaN(m) || 1 > m) && (m = 1), m |= 0, m > 3 && (m = 3), 1 > m && (m = 1);
- var b, c, n, o, p, q, r, s, t, u, v, w, x, y, z, A = i.data, B = k + k + 1, C = l + l + 1, D = d - 1, E = e - 1, F = k + 1, G = l + 1, H = {r: 0,b: 0,g: 0,a: 0,next: null}, I = H;
- for (n = 1; B > n; n++)
- I = I.next = {r: 0,b: 0,g: 0,a: 0,next: null};
- I.next = H;
- var J = {r: 0,b: 0,g: 0,a: 0,next: null}, K = J;
- for (n = 1; C > n; n++)
- K = K.next = {r: 0,b: 0,g: 0,a: 0,next: null};
- K.next = J;
- for (var L = null; m-- > 0; ) {
- r = q = 0;
- var M = this.mul_table[k], N = this.shg_table[k];
- for (c = e; --c > -1; ) {
- for (s = F * (w = A[q]), t = F * (x = A[q + 1]), u = F * (y = A[q + 2]), v = F * (z = A[q + 3]), I = H, n = F; --n > -1; )
- I.r = w, I.g = x, I.b = y, I.a = z, I = I.next;
- for (n = 1; F > n; n++)
- o = q + ((n > D ? D : n) << 2), s += I.r = A[o], t += I.g = A[o + 1], u += I.b = A[o + 2], v += I.a = A[o + 3], I = I.next;
- for (L = H, b = 0; d > b; b++)
- A[q++] = s * M >>> N, A[q++] = t * M >>> N, A[q++] = u * M >>> N, A[q++] = v * M >>> N, o = r + ((o = b + k + 1) < D ? o : D) << 2, s -= L.r - (L.r = A[o]), t -= L.g - (L.g = A[o + 1]), u -= L.b - (L.b = A[o + 2]), v -= L.a - (L.a = A[o + 3]), L = L.next;
- r += d
- }
- for (M = this.mul_table[l], N = this.shg_table[l], b = 0; d > b; b++) {
- for (q = b << 2, s = G * (w = A[q]), t = G * (x = A[q + 1]), u = G * (y = A[q + 2]), v = G * (z = A[q + 3]), K = J, n = 0; G > n; n++)
- K.r = w, K.g = x, K.b = y, K.a = z, K = K.next;
- for (p = d, n = 1; l >= n; n++)
- q = p + b << 2, s += K.r = A[q], t += K.g = A[q + 1], u += K.b = A[q + 2], v += K.a = A[q + 3], K = K.next, E > n && (p += d);
- if (q = b, L = J, m > 0)
- for (c = 0; e > c; c++)
- o = q << 2, A[o + 3] = z = v * M >>> N, z > 0 ? (A[o] = s * M >>> N, A[o + 1] = t * M >>> N, A[o + 2] = u * M >>> N) : A[o] = A[o + 1] = A[o + 2] = 0, o = b + ((o = c + G) < E ? o : E) * d << 2, s -= L.r - (L.r = A[o]), t -= L.g - (L.g = A[o + 1]), u -= L.b - (L.b = A[o + 2]), v -= L.a - (L.a = A[o + 3]), L = L.next, q += d;
- else
- for (c = 0; e > c; c++)
- o = q << 2, A[o + 3] = z = v * M >>> N, z > 0 ? (z = 255 / z, A[o] = (s * M >>> N) * z, A[o + 1] = (t * M >>> N) * z, A[o + 2] = (u * M >>> N) * z) : A[o] = A[o + 1] = A[o + 2] = 0, o = b + ((o = c + G) < E ? o : E) * d << 2, s -= L.r - (L.r = A[o]), t -= L.g - (L.g = A[o + 1]), u -= L.b - (L.b = A[o + 2]), v -= L.a - (L.a = A[o + 3]), L = L.next, q += d
- }
- }
- return f.putImageData(i, g, h), !0
- }, b.clone = function() {
- return new a(this.blurX, this.blurY, this.quality)
- }, b.toString = function() {
- return "[BlurFilter]"
- }, createjs.BlurFilter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.Filter;
- b.initialize = function(a) {
- this.alphaMap = a
- }, b.alphaMap = null, b._alphaMap = null, b._mapData = null, b.applyFilter = function(a, b, c, d, e, f, g, h) {
- if (!this.alphaMap)
- return !0;
- if (!this._prepAlphaMap())
- return !1;
- f = f || a, null == g && (g = b), null == h && (h = c);
- try {
- var i = a.getImageData(b, c, d, e)
- } catch (j) {
- return !1
- }
- for (var k = i.data, l = this._mapData, m = k.length, n = 0; m > n; n += 4)
- k[n + 3] = l[n] || 0;
- return f.putImageData(i, g, h), !0
- }, b.clone = function() {
- return new a(this.alphaMap)
- }, b.toString = function() {
- return "[AlphaMapFilter]"
- }, b._prepAlphaMap = function() {
- if (!this.alphaMap)
- return !1;
- if (this.alphaMap == this._alphaMap && this._mapData)
- return !0;
- this._mapData = null;
- var a, b = this._alphaMap = this.alphaMap, c = b;
- b instanceof HTMLCanvasElement ? a = c.getContext("2d") : (c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"), c.width = b.width, c.height = b.height, a = c.getContext("2d"), a.drawImage(b, 0, 0));
- try {
- var d = a.getImageData(0, 0, b.width, b.height)
- } catch (e) {
- return !1
- }
- return this._mapData = d.data, !0
- }, createjs.AlphaMapFilter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.Filter;
- b.initialize = function(a) {
- this.mask = a
- }, b.mask = null, b.applyFilter = function(a, b, c, d, e, f, g, h) {
- return this.mask ? (f = f || a, null == g && (g = b), null == h && (h = c), f.save(), f.globalCompositeOperation = "destination-in", f.drawImage(this.mask, g, h), f.restore(), !0) : !0
- }, b.clone = function() {
- return new a(this.mask)
- }, b.toString = function() {
- return "[AlphaMaskFilter]"
- }, createjs.AlphaMaskFilter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d, e, f, g, h) {
- this.initialize(a, b, c, d, e, f, g, h)
- }, b = a.prototype = new createjs.Filter;
- b.redMultiplier = 1, b.greenMultiplier = 1, b.blueMultiplier = 1, b.alphaMultiplier = 1, b.redOffset = 0, b.greenOffset = 0, b.blueOffset = 0, b.alphaOffset = 0, b.initialize = function(a, b, c, d, e, f, g, h) {
- this.redMultiplier = null != a ? a : 1, this.greenMultiplier = null != b ? b : 1, this.blueMultiplier = null != c ? c : 1, this.alphaMultiplier = null != d ? d : 1, this.redOffset = e || 0, this.greenOffset = f || 0, this.blueOffset = g || 0, this.alphaOffset = h || 0
- }, b.applyFilter = function(a, b, c, d, e, f, g, h) {
- f = f || a, null == g && (g = b), null == h && (h = c);
- try {
- var i = a.getImageData(b, c, d, e)
- } catch (j) {
- return !1
- }
- for (var k = i.data, l = k.length, m = 0; l > m; m += 4)
- k[m] = k[m] * this.redMultiplier + this.redOffset, k[m + 1] = k[m + 1] * this.greenMultiplier + this.greenOffset, k[m + 2] = k[m + 2] * this.blueMultiplier + this.blueOffset, k[m + 3] = k[m + 3] * this.alphaMultiplier + this.alphaOffset;
- return f.putImageData(i, g, h), !0
- }, b.toString = function() {
- return "[ColorFilter]"
- }, b.clone = function() {
- return new a(this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset)
- }, createjs.ColorFilter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, b = a.prototype;
- a.DELTA_INDEX = [0, .01, .02, .04, .05, .06, .07, .08, .1, .11, .12, .14, .15, .16, .17, .18, .2, .21, .22, .24, .25, .27, .28, .3, .32, .34, .36, .38, .4, .42, .44, .46, .48, .5, .53, .56, .59, .62, .65, .68, .71, .74, .77, .8, .83, .86, .89, .92, .95, .98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10], a.IDENTITY_MATRIX = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], a.LENGTH = a.IDENTITY_MATRIX.length, b.initialize = function(a, b, c, d) {
- return this.reset(), this.adjustColor(a, b, c, d), this
- }, b.reset = function() {
- return this.copyMatrix(a.IDENTITY_MATRIX)
- }, b.adjustColor = function(a, b, c, d) {
- return this.adjustHue(d), this.adjustContrast(b), this.adjustBrightness(a), this.adjustSaturation(c)
- }, b.adjustBrightness = function(a) {
- return 0 == a || isNaN(a) ? this : (a = this._cleanValue(a, 255), this._multiplyMatrix([1, 0, 0, 0, a, 0, 1, 0, 0, a, 0, 0, 1, 0, a, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this)
- }, b.adjustContrast = function(b) {
- if (0 == b || isNaN(b))
- return this;
- b = this._cleanValue(b, 100);
- var c;
- return 0 > b ? c = 127 + 127 * (b / 100) : (c = b % 1, c = 0 == c ? a.DELTA_INDEX[b] : a.DELTA_INDEX[b << 0] * (1 - c) + a.DELTA_INDEX[(b << 0) + 1] * c, c = 127 * c + 127), this._multiplyMatrix([c / 127, 0, 0, 0, .5 * (127 - c), 0, c / 127, 0, 0, .5 * (127 - c), 0, 0, c / 127, 0, .5 * (127 - c), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this
- }, b.adjustSaturation = function(a) {
- if (0 == a || isNaN(a))
- return this;
- a = this._cleanValue(a, 100);
- var b = 1 + (a > 0 ? 3 * a / 100 : a / 100), c = .3086, d = .6094, e = .082;
- return this._multiplyMatrix([c * (1 - b) + b, d * (1 - b), e * (1 - b), 0, 0, c * (1 - b), d * (1 - b) + b, e * (1 - b), 0, 0, c * (1 - b), d * (1 - b), e * (1 - b) + b, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this
- }, b.adjustHue = function(a) {
- if (0 == a || isNaN(a))
- return this;
- a = this._cleanValue(a, 180) / 180 * Math.PI;
- var b = Math.cos(a), c = Math.sin(a), d = .213, e = .715, f = .072;
- return this._multiplyMatrix([d + b * (1 - d) + c * -d, e + b * -e + c * -e, f + b * -f + c * (1 - f), 0, 0, d + b * -d + .143 * c, e + b * (1 - e) + .14 * c, f + b * -f + c * -.283, 0, 0, d + b * -d + c * -(1 - d), e + b * -e + c * e, f + b * (1 - f) + c * f, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this
- }, b.concat = function(b) {
- return b = this._fixMatrix(b), b.length != a.LENGTH ? this : (this._multiplyMatrix(b), this)
- }, b.clone = function() {
- return (new a).copyMatrix(this)
- }, b.toArray = function() {
- for (var b = [], c = 0, d = a.LENGTH; d > c; c++)
- b[c] = this[c];
- return b
- }, b.copyMatrix = function(b) {
- for (var c = a.LENGTH, d = 0; c > d; d++)
- this[d] = b[d];
- return this
- }, b.toString = function() {
- return "[ColorMatrix]"
- }, b._multiplyMatrix = function(a) {
- for (var b = [], c = 0; 5 > c; c++) {
- for (var d = 0; 5 > d; d++)
- b[d] = this[d + 5 * c];
- for (var d = 0; 5 > d; d++) {
- for (var e = 0, f = 0; 5 > f; f++)
- e += a[d + 5 * f] * b[f];
- this[d + 5 * c] = e
- }
- }
- }, b._cleanValue = function(a, b) {
- return Math.min(b, Math.max(-b, a))
- }, b._fixMatrix = function(b) {
- return b instanceof a && (b = b.toArray()), b.length < a.LENGTH ? b = b.slice(0, b.length).concat(a.IDENTITY_MATRIX.slice(b.length, a.LENGTH)) : b.length > a.LENGTH && (b = b.slice(0, a.LENGTH)), b
- }, createjs.ColorMatrix = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.initialize(a)
- }, b = a.prototype = new createjs.Filter;
- b.matrix = null, b.initialize = function(a) {
- this.matrix = a
- }, b.applyFilter = function(a, b, c, d, e, f, g, h) {
- f = f || a, null == g && (g = b), null == h && (h = c);
- try {
- var i = a.getImageData(b, c, d, e)
- } catch (j) {
- return !1
- }
- for (var k, l, m, n, o = i.data, p = o.length, q = this.matrix, r = q[0], s = q[1], t = q[2], u = q[3], v = q[4], w = q[5], x = q[6], y = q[7], z = q[8], A = q[9], B = q[10], C = q[11], D = q[12], E = q[13], F = q[14], G = q[15], H = q[16], I = q[17], J = q[18], K = q[19], L = 0; p > L; L += 4)
- k = o[L], l = o[L + 1], m = o[L + 2], n = o[L + 3], o[L] = k * r + l * s + m * t + n * u + v, o[L + 1] = k * w + l * x + m * y + n * z + A, o[L + 2] = k * B + l * C + m * D + n * E + F, o[L + 3] = k * G + l * H + m * I + n * J + K;
- return f.putImageData(i, g, h), !0
- }, b.toString = function() {
- return "[ColorMatrixFilter]"
- }, b.clone = function() {
- return new a(this.matrix)
- }, createjs.ColorMatrixFilter = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "Touch cannot be instantiated"
- };
- a.isSupported = function() {
- return "ontouchstart" in window || window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 0 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 0
- }, a.enable = function(b, c, d) {
- return b && b.canvas && a.isSupported() ? (b.__touch = {pointers: {},multitouch: !c,preventDefault: !d,count: 0}, "ontouchstart" in window ? a._IOS_enable(b) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && a._IE_enable(b), !0) : !1
- }, a.disable = function(b) {
- b && ("ontouchstart" in window ? a._IOS_disable(b) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && a._IE_disable(b))
- }, a._IOS_enable = function(b) {
- var c = b.canvas, d = b.__touch.f = function(c) {
- a._IOS_handleEvent(b, c)
- };
- c.addEventListener("touchstart", d, !1), c.addEventListener("touchmove", d, !1), c.addEventListener("touchend", d, !1), c.addEventListener("touchcancel", d, !1)
- }, a._IOS_disable = function(a) {
- var b = a.canvas;
- if (b) {
- var c = a.__touch.f;
- b.removeEventListener("touchstart", c, !1), b.removeEventListener("touchmove", c, !1), b.removeEventListener("touchend", c, !1), b.removeEventListener("touchcancel", c, !1)
- }
- }, a._IOS_handleEvent = function(a, b) {
- if (a) {
- a.__touch.preventDefault && b.preventDefault && b.preventDefault();
- for (var c = b.changedTouches, d = b.type, e = 0, f = c.length; f > e; e++) {
- var g = c[e], h = g.identifier;
- g.target == a.canvas && ("touchstart" == d ? this._handleStart(a, h, b, g.pageX, g.pageY) : "touchmove" == d ? this._handleMove(a, h, b, g.pageX, g.pageY) : ("touchend" == d || "touchcancel" == d) && this._handleEnd(a, h, b))
- }
- }
- }, a._IE_enable = function(b) {
- var c = b.canvas, d = b.__touch.f = function(c) {
- a._IE_handleEvent(b, c)
- };
- void 0 === window.navigator.pointerEnabled ? (c.addEventListener("MSPointerDown", d, !1), window.addEventListener("MSPointerMove", d, !1), window.addEventListener("MSPointerUp", d, !1), window.addEventListener("MSPointerCancel", d, !1), b.__touch.preventDefault && (c.style.msTouchAction = "none")) : (c.addEventListener("pointerdown", d, !1), window.addEventListener("pointermove", d, !1), window.addEventListener("pointerup", d, !1), window.addEventListener("pointercancel", d, !1), b.__touch.preventDefault && (c.style.touchAction = "none")), b.__touch.activeIDs = {}
- }, a._IE_disable = function(a) {
- var b = a.__touch.f;
- void 0 === window.navigator.pointerEnabled ? (window.removeEventListener("MSPointerMove", b, !1), window.removeEventListener("MSPointerUp", b, !1), window.removeEventListener("MSPointerCancel", b, !1), a.canvas && a.canvas.removeEventListener("MSPointerDown", b, !1)) : (window.removeEventListener("pointermove", b, !1), window.removeEventListener("pointerup", b, !1), window.removeEventListener("pointercancel", b, !1), a.canvas && a.canvas.removeEventListener("pointerdown", b, !1))
- }, a._IE_handleEvent = function(a, b) {
- if (a) {
- a.__touch.preventDefault && b.preventDefault && b.preventDefault();
- var c = b.type, d = b.pointerId, e = a.__touch.activeIDs;
- if ("MSPointerDown" == c || "pointerdown" == c) {
- if (b.srcElement != a.canvas)
- return;
- e[d] = !0, this._handleStart(a, d, b, b.pageX, b.pageY)
- } else
- e[d] && ("MSPointerMove" == c || "pointermove" == c ? this._handleMove(a, d, b, b.pageX, b.pageY) : ("MSPointerUp" == c || "MSPointerCancel" == c || "pointerup" == c || "pointercancel" == c) && (delete e[d], this._handleEnd(a, d, b)))
- }
- }, a._handleStart = function(a, b, c, d, e) {
- var f = a.__touch;
- if (f.multitouch || !f.count) {
- var g = f.pointers;
- g[b] || (g[b] = !0, f.count++, a._handlePointerDown(b, c, d, e))
- }
- }, a._handleMove = function(a, b, c, d, e) {
- a.__touch.pointers[b] && a._handlePointerMove(b, c, d, e)
- }, a._handleEnd = function(a, b, c) {
- var d = a.__touch, e = d.pointers;
- e[b] && (d.count--, a._handlePointerUp(b, c, !0), delete e[b])
- }, createjs.Touch = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = createjs.EaselJS = createjs.EaselJS || {};
- a.version = "0.7.1", a.buildDate = "Thu, 12 Dec 2013 23:33:39 GMT"
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype;
- b.type = null, b.target = null, b.currentTarget = null, b.eventPhase = 0, b.bubbles = !1, b.cancelable = !1, b.timeStamp = 0, b.defaultPrevented = !1, b.propagationStopped = !1, b.immediatePropagationStopped = !1, b.removed = !1, b.initialize = function(a, b, c) {
- this.type = a, this.bubbles = b, this.cancelable = c, this.timeStamp = (new Date).getTime()
- }, b.preventDefault = function() {
- this.defaultPrevented = !0
- }, b.stopPropagation = function() {
- this.propagationStopped = !0
- }, b.stopImmediatePropagation = function() {
- this.immediatePropagationStopped = this.propagationStopped = !0
- }, b.remove = function() {
- this.removed = !0
- }, b.clone = function() {
- return new a(this.type, this.bubbles, this.cancelable)
- }, b.toString = function() {
- return "[Event (type=" + this.type + ")]"
- }, createjs.Event = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- }, b = a.prototype;
- a.initialize = function(a) {
- a.addEventListener = b.addEventListener, a.on = b.on, a.removeEventListener = a.off = b.removeEventListener, a.removeAllEventListeners = b.removeAllEventListeners, a.hasEventListener = b.hasEventListener, a.dispatchEvent = b.dispatchEvent, a._dispatchEvent = b._dispatchEvent, a.willTrigger = b.willTrigger
- }, b._listeners = null, b._captureListeners = null, b.initialize = function() {
- }, b.addEventListener = function(a, b, c) {
- var d;
- d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {};
- var e = d[a];
- return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b
- }, b.on = function(a, b, c, d, e, f) {
- return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function(a) {
- b.call(c, a, e), d && a.remove()
- }, f)
- }, b.removeEventListener = function(a, b, c) {
- var d = c ? this._captureListeners : this._listeners;
- if (d) {
- var e = d[a];
- if (e)
- for (var f = 0, g = e.length; g > f; f++)
- if (e[f] == b) {
- 1 == g ? delete d[a] : e.splice(f, 1);
- break
- }
- }
- }, b.off = b.removeEventListener, b.removeAllEventListeners = function(a) {
- a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null
- }, b.dispatchEvent = function(a, b) {
- if ("string" == typeof a) {
- var c = this._listeners;
- if (!c || !c[a])
- return !1;
- a = new createjs.Event(a)
- }
- if (a.target = b || this, a.bubbles && this.parent) {
- for (var d = this, e = [d]; d.parent; )
- e.push(d = d.parent);
- var f, g = e.length;
- for (f = g - 1; f >= 0 && !a.propagationStopped; f--)
- e[f]._dispatchEvent(a, 1 + (0 == f));
- for (f = 1; g > f && !a.propagationStopped; f++)
- e[f]._dispatchEvent(a, 3)
- } else
- this._dispatchEvent(a, 2);
- return a.defaultPrevented
- }, b.hasEventListener = function(a) {
- var b = this._listeners, c = this._captureListeners;
- return !!(b && b[a] || c && c[a])
- }, b.willTrigger = function(a) {
- for (var b = this; b; ) {
- if (b.hasEventListener(a))
- return !0;
- b = b.parent
- }
- return !1
- }, b.toString = function() {
- return "[EventDispatcher]"
- }, b._dispatchEvent = function(a, b) {
- var c, d = 1 == b ? this._captureListeners : this._listeners;
- if (a && d) {
- var e = d[a.type];
- if (!e || !(c = e.length))
- return;
- a.currentTarget = this, a.eventPhase = b, a.removed = !1, e = e.slice();
- for (var f = 0; c > f && !a.immediatePropagationStopped; f++) {
- var g = e[f];
- g.handleEvent ? g.handleEvent(a) : g(a), a.removed && (this.off(a.type, g, 1 == b), a.removed = !1)
- }
- }
- }, createjs.EventDispatcher = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype = new createjs.EventDispatcher;
- a.NONE = 0, a.LOOP = 1, a.REVERSE = 2, a.IGNORE = {}, a._tweens = [], a._plugins = {}, a.get = function(b, c, d, e) {
- return e && a.removeTweens(b), new a(b, c, d)
- }, a.tick = function(b, c) {
- for (var d = a._tweens.slice(), e = d.length - 1; e >= 0; e--) {
- var f = d[e];
- c && !f.ignoreGlobalPause || f._paused || f.tick(f._useTicks ? 1 : b)
- }
- }, a.handleEvent = function(a) {
- "tick" == a.type && this.tick(a.delta, a.paused)
- }, a.removeTweens = function(b) {
- if (b.tweenjs_count) {
- for (var c = a._tweens, d = c.length - 1; d >= 0; d--)
- c[d]._target == b && (c[d]._paused = !0, c.splice(d, 1));
- b.tweenjs_count = 0
- }
- }, a.removeAllTweens = function() {
- for (var b = a._tweens, c = 0, d = b.length; d > c; c++) {
- var e = b[c];
- e.paused = !0, e.target.tweenjs_count = 0
- }
- b.length = 0
- }, a.hasActiveTweens = function(b) {
- return b ? b.tweenjs_count : a._tweens && !!a._tweens.length
- }, a.installPlugin = function(b, c) {
- var d = b.priority;
- null == d && (b.priority = d = 0);
- for (var e = 0, f = c.length, g = a._plugins; f > e; e++) {
- var h = c[e];
- if (g[h]) {
- for (var i = g[h], j = 0, k = i.length; k > j && !(d < i[j].priority); j++)
- ;
- g[h].splice(j, 0, b)
- } else
- g[h] = [b]
- }
- }, a._register = function(b, c) {
- var d = b._target, e = a._tweens;
- if (c)
- d && (d.tweenjs_count = d.tweenjs_count ? d.tweenjs_count + 1 : 1), e.push(b), !a._inited && createjs.Ticker && (createjs.Ticker.addEventListener("tick", a), a._inited = !0);
- else {
- d && d.tweenjs_count--;
- for (var f = e.length; f--; )
- if (e[f] == b)
- return void e.splice(f, 1)
- }
- }, b.ignoreGlobalPause = !1, b.loop = !1, b.duration = 0, b.pluginData = null, b.target = null, b.position = null, b.passive = !1, b._paused = !1, b._curQueueProps = null, b._initQueueProps = null, b._steps = null, b._actions = null, b._prevPosition = 0, b._stepPosition = 0, b._prevPos = -1, b._target = null, b._useTicks = !1, b._inited = !1, b.initialize = function(b, c, d) {
- this.target = this._target = b, c && (this._useTicks = c.useTicks, this.ignoreGlobalPause = c.ignoreGlobalPause, this.loop = c.loop, c.onChange && this.addEventListener("change", c.onChange), c.override && a.removeTweens(b)), this.pluginData = d || {}, this._curQueueProps = {}, this._initQueueProps = {}, this._steps = [], this._actions = [], c && c.paused ? this._paused = !0 : a._register(this, !0), c && null != c.position && this.setPosition(c.position, a.NONE)
- }, b.wait = function(a, b) {
- if (null == a || 0 >= a)
- return this;
- var c = this._cloneProps(this._curQueueProps);
- return this._addStep({d: a,p0: c,e: this._linearEase,p1: c,v: b})
- }, b.to = function(a, b, c) {
- return (isNaN(b) || 0 > b) && (b = 0), this._addStep({d: b || 0,p0: this._cloneProps(this._curQueueProps),e: c,p1: this._cloneProps(this._appendQueueProps(a))})
- }, b.call = function(a, b, c) {
- return this._addAction({f: a,p: b ? b : [this],o: c ? c : this._target})
- }, b.set = function(a, b) {
- return this._addAction({f: this._set,o: this,p: [a, b ? b : this._target]})
- }, b.play = function(a) {
- return a || (a = this), this.call(a.setPaused, [!1], a)
- }, b.pause = function(a) {
- return a || (a = this), this.call(a.setPaused, [!0], a)
- }, b.setPosition = function(a, b) {
- 0 > a && (a = 0), null == b && (b = 1);
- var c = a, d = !1;
- if (c >= this.duration && (this.loop ? c %= this.duration : (c = this.duration, d = !0)), c == this._prevPos)
- return d;
- var e = this._prevPos;
- if (this.position = this._prevPos = c, this._prevPosition = a, this._target)
- if (d)
- this._updateTargetProps(null, 1);
- else if (this._steps.length > 0) {
- for (var f = 0, g = this._steps.length; g > f && !(this._steps[f].t > c); f++)
- ;
- var h = this._steps[f - 1];
- this._updateTargetProps(h, (this._stepPosition = c - h.t) / h.d)
- }
- return 0 != b && this._actions.length > 0 && (this._useTicks ? this._runActions(c, c) : 1 == b && e > c ? (e != this.duration && this._runActions(e, this.duration), this._runActions(0, c, !0)) : this._runActions(e, c)), d && this.setPaused(!0), this.dispatchEvent("change"), d
- }, b.tick = function(a) {
- this._paused || this.setPosition(this._prevPosition + a)
- }, b.setPaused = function(b) {
- return this._paused = !!b, a._register(this, !b), this
- }, b.w = b.wait, b.t = b.to, b.c = b.call, b.s = b.set, b.toString = function() {
- return "[Tween]"
- }, b.clone = function() {
- throw "Tween can not be cloned."
- }, b._updateTargetProps = function(b, c) {
- var d, e, f, g, h, i;
- if (b || 1 != c) {
- if (this.passive = !!b.v, this.passive)
- return;
- b.e && (c = b.e(c, 0, 1, 1)), d = b.p0, e = b.p1
- } else
- this.passive = !1, d = e = this._curQueueProps;
- for (var j in this._initQueueProps) {
- null == (g = d[j]) && (d[j] = g = this._initQueueProps[j]), null == (h = e[j]) && (e[j] = h = g), f = g == h || 0 == c || 1 == c || "number" != typeof g ? 1 == c ? h : g : g + (h - g) * c;
- var k = !1;
- if (i = a._plugins[j])
- for (var l = 0, m = i.length; m > l; l++) {
- var n = i[l].tween(this, j, f, d, e, c, !!b && d == e, !b);
- n == a.IGNORE ? k = !0 : f = n
- }
- k || (this._target[j] = f)
- }
- }, b._runActions = function(a, b, c) {
- var d = a, e = b, f = -1, g = this._actions.length, h = 1;
- for (a > b && (d = b, e = a, f = g, g = h = -1); (f += h) != g; ) {
- var i = this._actions[f], j = i.t;
- (j == e || j > d && e > j || c && j == a) && i.f.apply(i.o, i.p)
- }
- }, b._appendQueueProps = function(b) {
- var c, d, e, f, g;
- for (var h in b)
- if (void 0 === this._initQueueProps[h]) {
- if (d = this._target[h], c = a._plugins[h])
- for (e = 0, f = c.length; f > e; e++)
- d = c[e].init(this, h, d);
- this._initQueueProps[h] = this._curQueueProps[h] = void 0 === d ? null : d
- } else
- d = this._curQueueProps[h];
- for (var h in b) {
- if (d = this._curQueueProps[h], c = a._plugins[h])
- for (g = g || {}, e = 0, f = c.length; f > e; e++)
- c[e].step && c[e].step(this, h, d, b[h], g);
- this._curQueueProps[h] = b[h]
- }
- return g && this._appendQueueProps(g), this._curQueueProps
- }, b._cloneProps = function(a) {
- var b = {};
- for (var c in a)
- b[c] = a[c];
- return b
- }, b._addStep = function(a) {
- return a.d > 0 && (this._steps.push(a), a.t = this.duration, this.duration += a.d), this
- }, b._addAction = function(a) {
- return a.t = this.duration, this._actions.push(a), this
- }, b._set = function(a, b) {
- for (var c in a)
- b[c] = a[c]
- }, createjs.Tween = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype = new createjs.EventDispatcher;
- b.ignoreGlobalPause = !1, b.duration = 0, b.loop = !1, b.position = null, b._paused = !1, b._tweens = null, b._labels = null, b._labelList = null, b._prevPosition = 0, b._prevPos = -1, b._useTicks = !1, b.initialize = function(a, b, c) {
- this._tweens = [], c && (this._useTicks = c.useTicks, this.loop = c.loop, this.ignoreGlobalPause = c.ignoreGlobalPause, c.onChange && this.addEventListener("change", c.onChange)), a && this.addTween.apply(this, a), this.setLabels(b), c && c.paused ? this._paused = !0 : createjs.Tween._register(this, !0), c && null != c.position && this.setPosition(c.position, createjs.Tween.NONE)
- }, b.addTween = function(a) {
- var b = arguments.length;
- if (b > 1) {
- for (var c = 0; b > c; c++)
- this.addTween(arguments[c]);
- return arguments[0]
- }
- return 0 == b ? null : (this.removeTween(a), this._tweens.push(a), a.setPaused(!0), a._paused = !1, a._useTicks = this._useTicks, a.duration > this.duration && (this.duration = a.duration), this._prevPos >= 0 && a.setPosition(this._prevPos, createjs.Tween.NONE), a)
- }, b.removeTween = function(a) {
- var b = arguments.length;
- if (b > 1) {
- for (var c = !0, d = 0; b > d; d++)
- c = c && this.removeTween(arguments[d]);
- return c
- }
- if (0 == b)
- return !1;
- for (var e = this._tweens, d = e.length; d--; )
- if (e[d] == a)
- return e.splice(d, 1), a.duration >= this.duration && this.updateDuration(), !0;
- return !1
- }, b.addLabel = function(a, b) {
- this._labels[a] = b;
- var c = this._labelList;
- if (c) {
- for (var d = 0, e = c.length; e > d && !(b < c[d].position); d++)
- ;
- c.splice(d, 0, {label: a,position: b})
- }
- }, b.setLabels = function(a) {
- this._labels = a ? a : {}
- }, b.getLabels = function() {
- var a = this._labelList;
- if (!a) {
- a = this._labelList = [];
- var b = this._labels;
- for (var c in b)
- a.push({label: c,position: b[c]});
- a.sort(function(a, b) {
- return a.position - b.position
- })
- }
- return a
- }, b.getCurrentLabel = function() {
- var a = this.getLabels(), b = this.position, c = a.length;
- if (c) {
- for (var d = 0; c > d && !(b < a[d].position); d++)
- ;
- return 0 == d ? null : a[d - 1].label
- }
- return null
- }, b.gotoAndPlay = function(a) {
- this.setPaused(!1), this._goto(a)
- }, b.gotoAndStop = function(a) {
- this.setPaused(!0), this._goto(a)
- }, b.setPosition = function(a, b) {
- 0 > a && (a = 0);
- var c = this.loop ? a % this.duration : a, d = !this.loop && a >= this.duration;
- if (c == this._prevPos)
- return d;
- this._prevPosition = a, this.position = this._prevPos = c;
- for (var e = 0, f = this._tweens.length; f > e; e++)
- if (this._tweens[e].setPosition(c, b), c != this._prevPos)
- return !1;
- return d && this.setPaused(!0), this.dispatchEvent("change"), d
- }, b.setPaused = function(a) {
- this._paused = !!a, createjs.Tween._register(this, !a)
- }, b.updateDuration = function() {
- this.duration = 0;
- for (var a = 0, b = this._tweens.length; b > a; a++) {
- var c = this._tweens[a];
- c.duration > this.duration && (this.duration = c.duration)
- }
- }, b.tick = function(a) {
- this.setPosition(this._prevPosition + a)
- }, b.resolve = function(a) {
- var b = parseFloat(a);
- return isNaN(b) && (b = this._labels[a]), b
- }, b.toString = function() {
- return "[Timeline]"
- }, b.clone = function() {
- throw "Timeline can not be cloned."
- }, b._goto = function(a) {
- var b = this.resolve(a);
- null != b && this.setPosition(b)
- }, createjs.Timeline = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "Ease cannot be instantiated."
- };
- a.linear = function(a) {
- return a
- }, a.none = a.linear, a.get = function(a) {
- return -1 > a && (a = -1), a > 1 && (a = 1), function(b) {
- return 0 == a ? b : 0 > a ? b * (b * -a + 1 + a) : b * ((2 - b) * a + (1 - a))
- }
- }, a.getPowIn = function(a) {
- return function(b) {
- return Math.pow(b, a)
- }
- }, a.getPowOut = function(a) {
- return function(b) {
- return 1 - Math.pow(1 - b, a)
- }
- }, a.getPowInOut = function(a) {
- return function(b) {
- return (b *= 2) < 1 ? .5 * Math.pow(b, a) : 1 - .5 * Math.abs(Math.pow(2 - b, a))
- }
- }, a.quadIn = a.getPowIn(2), a.quadOut = a.getPowOut(2), a.quadInOut = a.getPowInOut(2), a.cubicIn = a.getPowIn(3), a.cubicOut = a.getPowOut(3), a.cubicInOut = a.getPowInOut(3), a.quartIn = a.getPowIn(4), a.quartOut = a.getPowOut(4), a.quartInOut = a.getPowInOut(4), a.quintIn = a.getPowIn(5), a.quintOut = a.getPowOut(5), a.quintInOut = a.getPowInOut(5), a.sineIn = function(a) {
- return 1 - Math.cos(a * Math.PI / 2)
- }, a.sineOut = function(a) {
- return Math.sin(a * Math.PI / 2)
- }, a.sineInOut = function(a) {
- return -.5 * (Math.cos(Math.PI * a) - 1)
- }, a.getBackIn = function(a) {
- return function(b) {
- return b * b * ((a + 1) * b - a)
- }
- }, a.backIn = a.getBackIn(1.7), a.getBackOut = function(a) {
- return function(b) {
- return --b * b * ((a + 1) * b + a) + 1
- }
- }, a.backOut = a.getBackOut(1.7), a.getBackInOut = function(a) {
- return a *= 1.525, function(b) {
- return (b *= 2) < 1 ? .5 * b * b * ((a + 1) * b - a) : .5 * ((b -= 2) * b * ((a + 1) * b + a) + 2)
- }
- }, a.backInOut = a.getBackInOut(1.7), a.circIn = function(a) {
- return -(Math.sqrt(1 - a * a) - 1)
- }, a.circOut = function(a) {
- return Math.sqrt(1 - --a * a)
- }, a.circInOut = function(a) {
- return (a *= 2) < 1 ? -.5 * (Math.sqrt(1 - a * a) - 1) : .5 * (Math.sqrt(1 - (a -= 2) * a) + 1)
- }, a.bounceIn = function(b) {
- return 1 - a.bounceOut(1 - b)
- }, a.bounceOut = function(a) {
- return 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375
- }, a.bounceInOut = function(b) {
- return .5 > b ? .5 * a.bounceIn(2 * b) : .5 * a.bounceOut(2 * b - 1) + .5
- }, a.getElasticIn = function(a, b) {
- var c = 2 * Math.PI;
- return function(d) {
- if (0 == d || 1 == d)
- return d;
- var e = b / c * Math.asin(1 / a);
- return -(a * Math.pow(2, 10 * (d -= 1)) * Math.sin((d - e) * c / b))
- }
- }, a.elasticIn = a.getElasticIn(1, .3), a.getElasticOut = function(a, b) {
- var c = 2 * Math.PI;
- return function(d) {
- if (0 == d || 1 == d)
- return d;
- var e = b / c * Math.asin(1 / a);
- return a * Math.pow(2, -10 * d) * Math.sin((d - e) * c / b) + 1
- }
- }, a.elasticOut = a.getElasticOut(1, .3), a.getElasticInOut = function(a, b) {
- var c = 2 * Math.PI;
- return function(d) {
- var e = b / c * Math.asin(1 / a);
- return (d *= 2) < 1 ? -.5 * a * Math.pow(2, 10 * (d -= 1)) * Math.sin((d - e) * c / b) : .5 * a * Math.pow(2, -10 * (d -= 1)) * Math.sin((d - e) * c / b) + 1
- }
- }, a.elasticInOut = a.getElasticInOut(1, .3 * 1.5), createjs.Ease = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- throw "MotionGuidePlugin cannot be instantiated."
- };
- a.priority = 0, a._rotOffS, a._rotOffE, a._rotNormS, a._rotNormE, a.install = function() {
- return createjs.Tween.installPlugin(a, ["guide", "x", "y", "rotation"]), createjs.Tween.IGNORE
- }, a.init = function(a, b, c) {
- var d = a.target;
- return d.hasOwnProperty("x") || (d.x = 0), d.hasOwnProperty("y") || (d.y = 0), d.hasOwnProperty("rotation") || (d.rotation = 0), "rotation" == b && (a.__needsRot = !0), "guide" == b ? null : c
- }, a.step = function(b, c, d, e, f) {
- if ("rotation" == c && (b.__rotGlobalS = d, b.__rotGlobalE = e, a.testRotData(b, f)), "guide" != c)
- return e;
- var g, h = e;
- h.hasOwnProperty("path") || (h.path = []);
- var i = h.path;
- if (h.hasOwnProperty("end") || (h.end = 1), h.hasOwnProperty("start") || (h.start = d && d.hasOwnProperty("end") && d.path === i ? d.end : 0), h.hasOwnProperty("_segments") && h._length)
- return e;
- var j = i.length, k = 10;
- if (!(j >= 6 && 0 == (j - 2) % 4))
- throw "invalid 'path' data, please see documentation for valid paths";
- h._segments = [], h._length = 0;
- for (var l = 2; j > l; l += 4) {
- for (var m, n, o = i[l - 2], p = i[l - 1], q = i[l + 0], r = i[l + 1], s = i[l + 2], t = i[l + 3], u = o, v = p, w = 0, x = [], y = 1; k >= y; y++) {
- var z = y / k, A = 1 - z;
- m = A * A * o + 2 * A * z * q + z * z * s, n = A * A * p + 2 * A * z * r + z * z * t, w += x[x.push(Math.sqrt((g = m - u) * g + (g = n - v) * g)) - 1], u = m, v = n
- }
- h._segments.push(w), h._segments.push(x), h._length += w
- }
- g = h.orient, h.orient = !0;
- var B = {};
- return a.calc(h, h.start, B), b.__rotPathS = Number(B.rotation.toFixed(5)), a.calc(h, h.end, B), b.__rotPathE = Number(B.rotation.toFixed(5)), h.orient = !1, a.calc(h, h.end, f), h.orient = g, h.orient ? (b.__guideData = h, a.testRotData(b, f), e) : e
- }, a.testRotData = function(a, b) {
- if (void 0 === a.__rotGlobalS || void 0 === a.__rotGlobalE) {
- if (a.__needsRot)
- return;
- a.__rotGlobalS = a.__rotGlobalE = void 0 !== a._curQueueProps.rotation ? a._curQueueProps.rotation : b.rotation = a.target.rotation || 0
- }
- if (void 0 !== a.__guideData) {
- var c = a.__guideData, d = a.__rotGlobalE - a.__rotGlobalS, e = a.__rotPathE - a.__rotPathS, f = d - e;
- if ("auto" == c.orient)
- f > 180 ? f -= 360 : -180 > f && (f += 360);
- else if ("cw" == c.orient) {
- for (; 0 > f; )
- f += 360;
- 0 == f && d > 0 && 180 != d && (f += 360)
- } else if ("ccw" == c.orient) {
- for (f = d - (e > 180 ? 360 - e : e); f > 0; )
- f -= 360;
- 0 == f && 0 > d && -180 != d && (f -= 360)
- }
- c.rotDelta = f, c.rotOffS = a.__rotGlobalS - a.__rotPathS, a.__rotGlobalS = a.__rotGlobalE = a.__guideData = a.__needsRot = void 0
- }
- }, a.tween = function(b, c, d, e, f, g, h) {
- var i = f.guide;
- if (void 0 == i || i === e.guide)
- return d;
- if (i.lastRatio != g) {
- var j = (i.end - i.start) * (h ? i.end : g) + i.start;
- switch (a.calc(i, j, b.target), i.orient) {
- case "cw":
- case "ccw":
- case "auto":
- b.target.rotation += i.rotOffS + i.rotDelta * g;
- break;
- case "fixed":
- default:
- b.target.rotation += i.rotOffS
- }
- i.lastRatio = g
- }
- return "rotation" != c || i.orient && "false" != i.orient ? b.target[c] : d
- }, a.calc = function(b, c, d) {
- void 0 == b._segments && a.validate(b), void 0 == d && (d = {x: 0,y: 0,rotation: 0});
- for (var e = b._segments, f = b.path, g = b._length * c, h = e.length - 2, i = 0; g > e[i] && h > i; )
- g -= e[i], i += 2;
- var j = e[i + 1], k = 0;
- for (h = j.length - 1; g > j[k] && h > k; )
- g -= j[k], k++;
- var l = k / ++h + g / (h * j[k]);
- i = 2 * i + 2;
- var m = 1 - l;
- return d.x = m * m * f[i - 2] + 2 * m * l * f[i + 0] + l * l * f[i + 2], d.y = m * m * f[i - 1] + 2 * m * l * f[i + 1] + l * l * f[i + 3], b.orient && (d.rotation = 57.2957795 * Math.atan2((f[i + 1] - f[i - 1]) * m + (f[i + 3] - f[i + 1]) * l, (f[i + 0] - f[i - 2]) * m + (f[i + 2] - f[i + 0]) * l)), d
- }, createjs.MotionGuidePlugin = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = createjs.TweenJS = createjs.TweenJS || {};
- a.version = "0.5.1", a.buildDate = "Thu, 12 Dec 2013 23:33:38 GMT"
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, b = a.prototype = new createjs.Container;
- a.INDEPENDENT = "independent", a.SINGLE_FRAME = "single", a.SYNCHED = "synched", b.mode, b.startPosition = 0, b.loop = !0, b.currentFrame = 0, b.timeline = null, b.paused = !1, b.actionsEnabled = !0, b.autoReset = !0, b.frameBounds = null, b._synchOffset = 0, b._prevPos = -1, b._prevPosition = 0, b._managed, b.Container_initialize = b.initialize, b.initialize = function(b, c, d, e) {
- this.mode = b || a.INDEPENDENT, this.startPosition = c || 0, this.loop = d;
- var f = {paused: !0,position: c,useTicks: !0};
- this.Container_initialize(), this.timeline = new createjs.Timeline(null, e, f), this._managed = {}
- }, b.isVisible = function() {
- return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY)
- }, b.Container_draw = b.draw, b.draw = function(a, b) {
- return this.DisplayObject_draw(a, b) ? !0 : (this._updateTimeline(), this.Container_draw(a, b), !0)
- }, b.play = function() {
- this.paused = !1
- }, b.stop = function() {
- this.paused = !0
- }, b.gotoAndPlay = function(a) {
- this.paused = !1, this._goto(a)
- }, b.gotoAndStop = function(a) {
- this.paused = !0, this._goto(a)
- }, b.getLabels = function() {
- return this.timeline.getLabels()
- }, b.getCurrentLabel = function() {
- return this._updateTimeline(), this.timeline.getCurrentLabel()
- }, b.clone = function() {
- throw "MovieClip cannot be cloned."
- }, b.toString = function() {
- return "[MovieClip (name=" + this.name + ")]"
- }, b.Container__tick = b._tick, b._tick = function(b) {
- this.paused || this.mode != a.INDEPENDENT || (this._prevPosition = this._prevPos < 0 ? 0 : this._prevPosition + 1, this._updateTimeline()), this.Container__tick(b)
- }, b._goto = function(a) {
- var b = this.timeline.resolve(a);
- null != b && (-1 == this._prevPos && (this._prevPos = 0 / 0), this._prevPosition = b, this._updateTimeline())
- }, b._reset = function() {
- this._prevPos = -1, this.currentFrame = 0
- }, b._updateTimeline = function() {
- var b = this.timeline, c = this.mode != a.INDEPENDENT;
- if (b.loop = null == this.loop ? !0 : this.loop, c ? b.setPosition(this.startPosition + (this.mode == a.SINGLE_FRAME ? 0 : this._synchOffset), createjs.Tween.NONE) : b.setPosition(this._prevPos < 0 ? 0 : this._prevPosition, this.actionsEnabled ? null : createjs.Tween.NONE), this._prevPosition = b._prevPosition, this._prevPos != b._prevPos) {
- this.currentFrame = this._prevPos = b._prevPos;
- for (var d in this._managed)
- this._managed[d] = 1;
- for (var e = b._tweens, f = 0, g = e.length; g > f; f++) {
- var h = e[f], i = h._target;
- if (i != this && !h.passive) {
- var j = h._stepPosition;
- i instanceof createjs.DisplayObject ? this._addManagedChild(i, j) : this._setState(i.state, j)
- }
- }
- var k = this.children;
- for (f = k.length - 1; f >= 0; f--) {
- var l = k[f].id;
- 1 == this._managed[l] && (this.removeChildAt(f), delete this._managed[l])
- }
- }
- }, b._setState = function(a, b) {
- if (a)
- for (var c = a.length - 1; c >= 0; c--) {
- var d = a[c], e = d.t, f = d.p;
- for (var g in f)
- e[g] = f[g];
- this._addManagedChild(e, b)
- }
- }, b._addManagedChild = function(b, c) {
- b._off || (this.addChildAt(b, 0), b instanceof a && (b._synchOffset = c, b.mode == a.INDEPENDENT && b.autoReset && !this._managed[b.id] && b._reset()), this._managed[b.id] = 2)
- }, b.Container__getBounds = b._getBounds, b._getBounds = function(a, b) {
- var c = this.DisplayObject_getBounds();
- return c || (this._updateTimeline(), this.frameBounds && (c = this._rectangle.copy(this.frameBounds[this.currentFrame]))), c ? this._transformBounds(c, a, b) : this.Container__getBounds(a, b)
- }, createjs.MovieClip = a;
- var c = function() {
- throw "MovieClipPlugin cannot be instantiated."
- };
- c.priority = 100, c.install = function() {
- createjs.Tween.installPlugin(c, ["startPosition"])
- }, c.init = function(a, b, c) {
- return c
- }, c.step = function() {
- }, c.tween = function(b, c, d, e, f, g) {
- return b.target instanceof a ? 1 == g ? f[c] : e[c] : d
- }, c.install()
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = createjs.PreloadJS = createjs.PreloadJS || {};
- a.version = "0.4.1", a.buildDate = "Thu, 12 Dec 2013 23:33:38 GMT"
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype;
- b.type = null, b.target = null, b.currentTarget = null, b.eventPhase = 0, b.bubbles = !1, b.cancelable = !1, b.timeStamp = 0, b.defaultPrevented = !1, b.propagationStopped = !1, b.immediatePropagationStopped = !1, b.removed = !1, b.initialize = function(a, b, c) {
- this.type = a, this.bubbles = b, this.cancelable = c, this.timeStamp = (new Date).getTime()
- }, b.preventDefault = function() {
- this.defaultPrevented = !0
- }, b.stopPropagation = function() {
- this.propagationStopped = !0
- }, b.stopImmediatePropagation = function() {
- this.immediatePropagationStopped = this.propagationStopped = !0
- }, b.remove = function() {
- this.removed = !0
- }, b.clone = function() {
- return new a(this.type, this.bubbles, this.cancelable)
- }, b.toString = function() {
- return "[Event (type=" + this.type + ")]"
- }, createjs.Event = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- }, b = a.prototype;
- a.initialize = function(a) {
- a.addEventListener = b.addEventListener, a.on = b.on, a.removeEventListener = a.off = b.removeEventListener, a.removeAllEventListeners = b.removeAllEventListeners, a.hasEventListener = b.hasEventListener, a.dispatchEvent = b.dispatchEvent, a._dispatchEvent = b._dispatchEvent, a.willTrigger = b.willTrigger
- }, b._listeners = null, b._captureListeners = null, b.initialize = function() {
- }, b.addEventListener = function(a, b, c) {
- var d;
- d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {};
- var e = d[a];
- return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b
- }, b.on = function(a, b, c, d, e, f) {
- return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function(a) {
- b.call(c, a, e), d && a.remove()
- }, f)
- }, b.removeEventListener = function(a, b, c) {
- var d = c ? this._captureListeners : this._listeners;
- if (d) {
- var e = d[a];
- if (e)
- for (var f = 0, g = e.length; g > f; f++)
- if (e[f] == b) {
- 1 == g ? delete d[a] : e.splice(f, 1);
- break
- }
- }
- }, b.off = b.removeEventListener, b.removeAllEventListeners = function(a) {
- a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null
- }, b.dispatchEvent = function(a, b) {
- if ("string" == typeof a) {
- var c = this._listeners;
- if (!c || !c[a])
- return !1;
- a = new createjs.Event(a)
- }
- if (a.target = b || this, a.bubbles && this.parent) {
- for (var d = this, e = [d]; d.parent; )
- e.push(d = d.parent);
- var f, g = e.length;
- for (f = g - 1; f >= 0 && !a.propagationStopped; f--)
- e[f]._dispatchEvent(a, 1 + (0 == f));
- for (f = 1; g > f && !a.propagationStopped; f++)
- e[f]._dispatchEvent(a, 3)
- } else
- this._dispatchEvent(a, 2);
- return a.defaultPrevented
- }, b.hasEventListener = function(a) {
- var b = this._listeners, c = this._captureListeners;
- return !!(b && b[a] || c && c[a])
- }, b.willTrigger = function(a) {
- for (var b = this; b; ) {
- if (b.hasEventListener(a))
- return !0;
- b = b.parent
- }
- return !1
- }, b.toString = function() {
- return "[EventDispatcher]"
- }, b._dispatchEvent = function(a, b) {
- var c, d = 1 == b ? this._captureListeners : this._listeners;
- if (a && d) {
- var e = d[a.type];
- if (!e || !(c = e.length))
- return;
- a.currentTarget = this, a.eventPhase = b, a.removed = !1, e = e.slice();
- for (var f = 0; c > f && !a.immediatePropagationStopped; f++) {
- var g = e[f];
- g.handleEvent ? g.handleEvent(a) : g(a), a.removed && (this.off(a.type, g, 1 == b), a.removed = !1)
- }
- }
- }, createjs.EventDispatcher = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- createjs.indexOf = function(a, b) {
- for (var c = 0, d = a.length; d > c; c++)
- if (b === a[c])
- return c;
- return -1
- }
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- createjs.proxy = function(a, b) {
- var c = Array.prototype.slice.call(arguments, 2);
- return function() {
- return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c))
- }
- }
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- this.init()
- };
- a.prototype = new createjs.EventDispatcher;
- var b = a.prototype, c = a;
- c.FILE_PATTERN = /^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?)|(.{0,2}\/{1}))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/, c.PATH_PATTERN = /^(?:(\w+:)\/{2})|(.{0,2}\/{1})?([/.]*?(?:[^?]+)?\/?)?$/, b.loaded = !1, b.canceled = !1, b.progress = 0, b._item = null, b.getItem = function() {
- return this._item
- }, b.init = function() {
- }, b.load = function() {
- }, b.close = function() {
- }, b._sendLoadStart = function() {
- this._isCanceled() || this.dispatchEvent("loadstart")
- }, b._sendProgress = function(a) {
- if (!this._isCanceled()) {
- var b = null;
- "number" == typeof a ? (this.progress = a, b = new createjs.Event("progress"), b.loaded = this.progress, b.total = 1) : (b = a, this.progress = a.loaded / a.total, (isNaN(this.progress) || 1 / 0 == this.progress) && (this.progress = 0)), b.progress = this.progress, this.hasEventListener("progress") && this.dispatchEvent(b)
- }
- }, b._sendComplete = function() {
- this._isCanceled() || this.dispatchEvent("complete")
- }, b._sendError = function(a) {
- !this._isCanceled() && this.hasEventListener("error") && (null == a && (a = new createjs.Event("error")), this.dispatchEvent(a))
- }, b._isCanceled = function() {
- return null == window.createjs || this.canceled ? !0 : !1
- }, b._parseURI = function(a) {
- return a ? a.match(c.FILE_PATTERN) : null
- }, b._parsePath = function(a) {
- return a ? a.match(c.PATH_PATTERN) : null
- }, b._formatQueryString = function(a, b) {
- if (null == a)
- throw new Error("You must specify data.");
- var c = [];
- for (var d in a)
- c.push(d + "=" + escape(a[d]));
- return b && (c = c.concat(b)), c.join("&")
- }, b.buildPath = function(a, b) {
- if (null == b)
- return a;
- var c = [], d = a.indexOf("?");
- if (-1 != d) {
- var e = a.slice(d + 1);
- c = c.concat(e.split("&"))
- }
- return -1 != d ? a.slice(0, d) + "?" + this._formatQueryString(b, c) : a + "?" + this._formatQueryString(b, c)
- }, b._isCrossDomain = function(a) {
- var b = document.createElement("a");
- b.href = a.src;
- var c = document.createElement("a");
- c.href = location.href;
- var d = "" != b.hostname && (b.port != c.port || b.protocol != c.protocol || b.hostname != c.hostname);
- return d
- }, b._isLocal = function(a) {
- var b = document.createElement("a");
- return b.href = a.src, "" == b.hostname && "file:" == b.protocol
- }, b.toString = function() {
- return "[PreloadJS AbstractLoader]"
- }, createjs.AbstractLoader = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.init(a, b, c)
- }, b = a.prototype = new createjs.AbstractLoader, c = a;
- c.loadTimeout = 8e3, c.LOAD_TIMEOUT = 0, c.BINARY = "binary", c.CSS = "css", c.IMAGE = "image", c.JAVASCRIPT = "javascript", c.JSON = "json", c.JSONP = "jsonp", c.MANIFEST = "manifest", c.SOUND = "sound", c.SVG = "svg", c.TEXT = "text", c.XML = "xml", c.POST = "POST", c.GET = "GET", b._basePath = null, b._crossOrigin = "", b.useXHR = !0, b.stopOnError = !1, b.maintainScriptOrder = !0, b.next = null, b._typeCallbacks = null, b._extensionCallbacks = null, b._loadStartWasDispatched = !1, b._maxConnections = 1, b._currentlyLoadingScript = null, b._currentLoads = null, b._loadQueue = null, b._loadQueueBackup = null, b._loadItemsById = null, b._loadItemsBySrc = null, b._loadedResults = null, b._loadedRawResults = null, b._numItems = 0, b._numItemsLoaded = 0, b._scriptOrder = null, b._loadedScripts = null, b.init = function(a, b, c) {
- this._numItems = this._numItemsLoaded = 0, this._paused = !1, this._loadStartWasDispatched = !1, this._currentLoads = [], this._loadQueue = [], this._loadQueueBackup = [], this._scriptOrder = [], this._loadedScripts = [], this._loadItemsById = {}, this._loadItemsBySrc = {}, this._loadedResults = {}, this._loadedRawResults = {}, this._typeCallbacks = {}, this._extensionCallbacks = {}, this._basePath = b, this.setUseXHR(a), this._crossOrigin = c === !0 ? "Anonymous" : c === !1 || null == c ? "" : c
- }, b.setUseXHR = function(a) {
- return this.useXHR = 0 != a && null != window.XMLHttpRequest, this.useXHR
- }, b.removeAll = function() {
- this.remove()
- }, b.remove = function(a) {
- var b = null;
- if (!a || a instanceof Array) {
- if (a)
- b = a;
- else if (arguments.length > 0)
- return
- } else
- b = [a];
- var c = !1;
- if (b) {
- for (; b.length; ) {
- var d = b.pop(), e = this.getResult(d);
- for (f = this._loadQueue.length - 1; f >= 0; f--)
- if (g = this._loadQueue[f].getItem(), g.id == d || g.src == d) {
- this._loadQueue.splice(f, 1)[0].cancel();
- break
- }
- for (f = this._loadQueueBackup.length - 1; f >= 0; f--)
- if (g = this._loadQueueBackup[f].getItem(), g.id == d || g.src == d) {
- this._loadQueueBackup.splice(f, 1)[0].cancel();
- break
- }
- if (e)
- delete this._loadItemsById[e.id], delete this._loadItemsBySrc[e.src], this._disposeItem(e);
- else
- for (var f = this._currentLoads.length - 1; f >= 0; f--) {
- var g = this._currentLoads[f].getItem();
- if (g.id == d || g.src == d) {
- this._currentLoads.splice(f, 1)[0].cancel(), c = !0;
- break
- }
- }
- }
- c && this._loadNext()
- } else {
- this.close();
- for (var h in this._loadItemsById)
- this._disposeItem(this._loadItemsById[h]);
- this.init(this.useXHR)
- }
- }, b.reset = function() {
- this.close();
- for (var a in this._loadItemsById)
- this._disposeItem(this._loadItemsById[a]);
- for (var b = [], c = 0, d = this._loadQueueBackup.length; d > c; c++)
- b.push(this._loadQueueBackup[c].getItem());
- this.loadManifest(b, !1)
- }, c.isBinary = function(a) {
- switch (a) {
- case createjs.LoadQueue.IMAGE:
- case createjs.LoadQueue.BINARY:
- return !0;
- default:
- return !1
- }
- }, c.isText = function(a) {
- switch (a) {
- case createjs.LoadQueue.TEXT:
- case createjs.LoadQueue.JSON:
- case createjs.LoadQueue.MANIFEST:
- case createjs.LoadQueue.XML:
- case createjs.LoadQueue.HTML:
- case createjs.LoadQueue.CSS:
- case createjs.LoadQueue.SVG:
- case createjs.LoadQueue.JAVASCRIPT:
- return !0;
- default:
- return !1
- }
- }, b.installPlugin = function(a) {
- if (null != a && null != a.getPreloadHandlers) {
- var b = a.getPreloadHandlers();
- if (b.scope = a, null != b.types)
- for (var c = 0, d = b.types.length; d > c; c++)
- this._typeCallbacks[b.types[c]] = b;
- if (null != b.extensions)
- for (c = 0, d = b.extensions.length; d > c; c++)
- this._extensionCallbacks[b.extensions[c]] = b
- }
- }, b.setMaxConnections = function(a) {
- this._maxConnections = a, !this._paused && this._loadQueue.length > 0 && this._loadNext()
- }, b.loadFile = function(a, b, c) {
- if (null == a) {
- var d = new createjs.Event("error");
- return d.text = "PRELOAD_NO_FILE", void this._sendError(d)
- }
- this._addItem(a, null, c), this.setPaused(b !== !1 ? !1 : !0)
- }, b.loadManifest = function(a, b, d) {
- var e = null, f = null;
- if (a instanceof Array) {
- if (0 == a.length) {
- var g = new createjs.Event("error");
- return g.text = "PRELOAD_MANIFEST_EMPTY", void this._sendError(g)
- }
- e = a
- } else if ("string" == typeof a)
- e = [{src: a,type: c.MANIFEST}];
- else {
- if ("object" != typeof a) {
- var g = new createjs.Event("error");
- return g.text = "PRELOAD_MANIFEST_NULL", void this._sendError(g)
- }
- if (void 0 !== a.src) {
- if (null == a.type)
- a.type = c.MANIFEST;
- else if (a.type != c.MANIFEST) {
- var g = new createjs.Event("error");
- g.text = "PRELOAD_MANIFEST_ERROR", this._sendError(g)
- }
- e = [a]
- } else
- void 0 !== a.manifest && (e = a.manifest, f = a.path)
- }
- for (var h = 0, i = e.length; i > h; h++)
- this._addItem(e[h], f, d);
- this.setPaused(b !== !1 ? !1 : !0)
- }, b.load = function() {
- this.setPaused(!1)
- }, b.getItem = function(a) {
- return this._loadItemsById[a] || this._loadItemsBySrc[a]
- }, b.getResult = function(a, b) {
- var c = this._loadItemsById[a] || this._loadItemsBySrc[a];
- if (null == c)
- return null;
- var d = c.id;
- return b && this._loadedRawResults[d] ? this._loadedRawResults[d] : this._loadedResults[d]
- }, b.setPaused = function(a) {
- this._paused = a, this._paused || this._loadNext()
- }, b.close = function() {
- for (; this._currentLoads.length; )
- this._currentLoads.pop().cancel();
- this._scriptOrder.length = 0, this._loadedScripts.length = 0, this.loadStartWasDispatched = !1
- }, b._addItem = function(a, b, c) {
- var d = this._createLoadItem(a, b, c);
- if (null != d) {
- var e = this._createLoader(d);
- null != e && (this._loadQueue.push(e), this._loadQueueBackup.push(e), this._numItems++, this._updateProgress(), this.maintainScriptOrder && d.type == createjs.LoadQueue.JAVASCRIPT && e instanceof createjs.XHRLoader && (this._scriptOrder.push(d), this._loadedScripts.push(null)))
- }
- }, b._createLoadItem = function(a, b, c) {
- var d = null;
- switch (typeof a) {
- case "string":
- d = {src: a};
- break;
- case "object":
- d = window.HTMLAudioElement && a instanceof window.HTMLAudioElement ? {tag: a,src: d.tag.src,type: createjs.LoadQueue.SOUND} : a;
- break;
- default:
- return null
- }
- var e = this._parseURI(d.src);
- null != e && (d.ext = e[6]), null == d.type && (d.type = this._getTypeByExtension(d.ext));
- var f = "", g = c || this._basePath, h = d.src;
- if (e && null == e[1] && null == e[3])
- if (b) {
- f = b;
- var i = this._parsePath(b);
- h = b + h, null != g && i && null == i[1] && null == i[2] && (f = g + f)
- } else
- null != g && (f = g);
- if (d.src = f + d.src, d.path = f, (d.type == createjs.LoadQueue.JSON || d.type == createjs.LoadQueue.MANIFEST) && (d._loadAsJSONP = null != d.callback), d.type == createjs.LoadQueue.JSONP && null == d.callback)
- throw new Error("callback is required for loading JSONP requests.");
- (void 0 === d.tag || null === d.tag) && (d.tag = this._createTag(d)), (void 0 === d.id || null === d.id || "" === d.id) && (d.id = h);
- var j = this._typeCallbacks[d.type] || this._extensionCallbacks[d.ext];
- if (j) {
- var k = j.callback.call(j.scope, d.src, d.type, d.id, d.data, f, this);
- if (k === !1)
- return null;
- k === !0 || (null != k.src && (d.src = k.src), null != k.id && (d.id = k.id), null != k.tag && (d.tag = k.tag), null != k.completeHandler && (d.completeHandler = k.completeHandler), k.type && (d.type = k.type), e = this._parseURI(d.src), null != e && null != e[6] && (d.ext = e[6].toLowerCase()))
- }
- return this._loadItemsById[d.id] = d, this._loadItemsBySrc[d.src] = d, d
- }, b._createLoader = function(a) {
- var b = this.useXHR;
- switch (a.type) {
- case createjs.LoadQueue.JSON:
- case createjs.LoadQueue.MANIFEST:
- b = !a._loadAsJSONP;
- break;
- case createjs.LoadQueue.XML:
- case createjs.LoadQueue.TEXT:
- b = !0;
- break;
- case createjs.LoadQueue.SOUND:
- case createjs.LoadQueue.JSONP:
- b = !1;
- break;
- case null:
- return null
- }
- return b ? new createjs.XHRLoader(a, this._crossOrigin) : new createjs.TagLoader(a)
- }, b._loadNext = function() {
- if (!this._paused) {
- this._loadStartWasDispatched || (this._sendLoadStart(), this._loadStartWasDispatched = !0), this._numItems == this._numItemsLoaded ? (this.loaded = !0, this._sendComplete(), this.next && this.next.load && this.next.load()) : this.loaded = !1;
- for (var a = 0; a < this._loadQueue.length && !(this._currentLoads.length >= this._maxConnections); a++) {
- var b = this._loadQueue[a];
- if (this.maintainScriptOrder && b instanceof createjs.TagLoader && b.getItem().type == createjs.LoadQueue.JAVASCRIPT) {
- if (this._currentlyLoadingScript)
- continue;
- this._currentlyLoadingScript = !0
- }
- this._loadQueue.splice(a, 1), a--, this._loadItem(b)
- }
- }
- }, b._loadItem = function(a) {
- a.on("progress", this._handleProgress, this), a.on("complete", this._handleFileComplete, this), a.on("error", this._handleFileError, this), this._currentLoads.push(a), this._sendFileStart(a.getItem()), a.load()
- }, b._handleFileError = function(a) {
- var b = a.target;
- this._numItemsLoaded++, this._updateProgress();
- var c = new createjs.Event("error");
- c.text = "FILE_LOAD_ERROR", c.item = b.getItem(), this._sendError(c), this.stopOnError || (this._removeLoadItem(b), this._loadNext())
- }, b._handleFileComplete = function(a) {
- var b = a.target, c = b.getItem();
- if (this._loadedResults[c.id] = b.getResult(), b instanceof createjs.XHRLoader && (this._loadedRawResults[c.id] = b.getResult(!0)), this._removeLoadItem(b), this.maintainScriptOrder && c.type == createjs.LoadQueue.JAVASCRIPT) {
- if (!(b instanceof createjs.TagLoader))
- return this._loadedScripts[createjs.indexOf(this._scriptOrder, c)] = c, void this._checkScriptLoadOrder(b);
- this._currentlyLoadingScript = !1
- }
- if (delete c._loadAsJSONP, c.type == createjs.LoadQueue.MANIFEST) {
- var d = b.getResult();
- null != d && void 0 !== d.manifest && this.loadManifest(d, !0)
- }
- this._processFinishedLoad(c, b)
- }, b._processFinishedLoad = function(a, b) {
- this._numItemsLoaded++, this._updateProgress(), this._sendFileComplete(a, b), this._loadNext()
- }, b._checkScriptLoadOrder = function() {
- for (var a = this._loadedScripts.length, b = 0; a > b; b++) {
- var c = this._loadedScripts[b];
- if (null === c)
- break;
- if (c !== !0) {
- var d = this._loadedResults[c.id];
- (document.body || document.getElementsByTagName("body")[0]).appendChild(d), this._processFinishedLoad(c), this._loadedScripts[b] = !0
- }
- }
- }, b._removeLoadItem = function(a) {
- for (var b = this._currentLoads.length, c = 0; b > c; c++)
- if (this._currentLoads[c] == a) {
- this._currentLoads.splice(c, 1);
- break
- }
- }, b._handleProgress = function(a) {
- var b = a.target;
- this._sendFileProgress(b.getItem(), b.progress), this._updateProgress()
- }, b._updateProgress = function() {
- var a = this._numItemsLoaded / this._numItems, b = this._numItems - this._numItemsLoaded;
- if (b > 0) {
- for (var c = 0, d = 0, e = this._currentLoads.length; e > d; d++)
- c += this._currentLoads[d].progress;
- a += c / b * (b / this._numItems)
- }
- this._sendProgress(a)
- }, b._disposeItem = function(a) {
- delete this._loadedResults[a.id], delete this._loadedRawResults[a.id], delete this._loadItemsById[a.id], delete this._loadItemsBySrc[a.src]
- }, b._createTag = function(a) {
- var b = null;
- switch (a.type) {
- case createjs.LoadQueue.IMAGE:
- return b = document.createElement("img"), "" == this._crossOrigin || this._isLocal(a) || (b.crossOrigin = this._crossOrigin), b;
- case createjs.LoadQueue.SOUND:
- return b = document.createElement("audio"), b.autoplay = !1, b;
- case createjs.LoadQueue.JSON:
- case createjs.LoadQueue.JSONP:
- case createjs.LoadQueue.JAVASCRIPT:
- case createjs.LoadQueue.MANIFEST:
- return b = document.createElement("script"), b.type = "text/javascript", b;
- case createjs.LoadQueue.CSS:
- return b = document.createElement(this.useXHR ? "style" : "link"), b.rel = "stylesheet", b.type = "text/css", b;
- case createjs.LoadQueue.SVG:
- return this.useXHR ? b = document.createElement("svg") : (b = document.createElement("object"), b.type = "image/svg+xml"), b
- }
- return null
- }, b._getTypeByExtension = function(a) {
- if (null == a)
- return createjs.LoadQueue.TEXT;
- switch (a.toLowerCase()) {
- case "jpeg":
- case "jpg":
- case "gif":
- case "png":
- case "webp":
- case "bmp":
- return createjs.LoadQueue.IMAGE;
- case "ogg":
- case "mp3":
- case "wav":
- return createjs.LoadQueue.SOUND;
- case "json":
- return createjs.LoadQueue.JSON;
- case "xml":
- return createjs.LoadQueue.XML;
- case "css":
- return createjs.LoadQueue.CSS;
- case "js":
- return createjs.LoadQueue.JAVASCRIPT;
- case "svg":
- return createjs.LoadQueue.SVG;
- default:
- return createjs.LoadQueue.TEXT
- }
- }, b._sendFileProgress = function(a, b) {
- if (this._isCanceled())
- return void this._cleanUp();
- if (this.hasEventListener("fileprogress")) {
- var c = new createjs.Event("fileprogress");
- c.progress = b, c.loaded = b, c.total = 1, c.item = a, this.dispatchEvent(c)
- }
- }, b._sendFileComplete = function(a, b) {
- if (!this._isCanceled()) {
- var c = new createjs.Event("fileload");
- c.loader = b, c.item = a, c.result = this._loadedResults[a.id], c.rawResult = this._loadedRawResults[a.id], a.completeHandler && a.completeHandler(c), this.hasEventListener("fileload") && this.dispatchEvent(c)
- }
- }, b._sendFileStart = function(a) {
- var b = new createjs.Event("filestart");
- b.item = a, this.hasEventListener("filestart") && this.dispatchEvent(b)
- }, b.toString = function() {
- return "[PreloadJS LoadQueue]"
- }, createjs.LoadQueue = a;
- var d = function() {
- };
- d.init = function() {
- var a = navigator.userAgent;
- d.isFirefox = a.indexOf("Firefox") > -1, d.isOpera = null != window.opera, d.isChrome = a.indexOf("Chrome") > -1, d.isIOS = a.indexOf("iPod") > -1 || a.indexOf("iPhone") > -1 || a.indexOf("iPad") > -1
- }, d.init(), createjs.LoadQueue.BrowserDetect = d
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a) {
- this.init(a)
- }, b = a.prototype = new createjs.AbstractLoader;
- b._loadTimeout = null, b._tagCompleteProxy = null, b._isAudio = !1, b._tag = null, b._jsonResult = null, b.init = function(a) {
- this._item = a, this._tag = a.tag, this._isAudio = window.HTMLAudioElement && a.tag instanceof window.HTMLAudioElement, this._tagCompleteProxy = createjs.proxy(this._handleLoad, this)
- }, b.getResult = function() {
- return this._item.type == createjs.LoadQueue.JSONP || this._item.type == createjs.LoadQueue.MANIFEST ? this._jsonResult : this._tag
- }, b.cancel = function() {
- this.canceled = !0, this._clean()
- }, b.load = function() {
- var a = this._item, b = this._tag;
- clearTimeout(this._loadTimeout);
- var c = createjs.LoadQueue.LOAD_TIMEOUT;
- 0 == c && (c = createjs.LoadQueue.loadTimeout), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), c), this._isAudio && (b.src = null, b.preload = "auto"), b.onerror = createjs.proxy(this._handleError, this), this._isAudio ? (b.onstalled = createjs.proxy(this._handleStalled, this), b.addEventListener("canplaythrough", this._tagCompleteProxy, !1)) : (b.onload = createjs.proxy(this._handleLoad, this), b.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this));
- var d = this.buildPath(a.src, a.values);
- switch (a.type) {
- case createjs.LoadQueue.CSS:
- b.href = d;
- break;
- case createjs.LoadQueue.SVG:
- b.data = d;
- break;
- default:
- b.src = d
- }
- if (a.type == createjs.LoadQueue.JSONP || a.type == createjs.LoadQueue.JSON || a.type == createjs.LoadQueue.MANIFEST) {
- if (null == a.callback)
- throw new Error("callback is required for loading JSONP requests.");
- if (null != window[a.callback])
- throw new Error('JSONP callback "' + a.callback + '" already exists on window. You need to specify a different callback. Or re-name the current one.');
- window[a.callback] = createjs.proxy(this._handleJSONPLoad, this)
- }
- (a.type == createjs.LoadQueue.SVG || a.type == createjs.LoadQueue.JSONP || a.type == createjs.LoadQueue.JSON || a.type == createjs.LoadQueue.MANIFEST || a.type == createjs.LoadQueue.JAVASCRIPT || a.type == createjs.LoadQueue.CSS) && (this._startTagVisibility = b.style.visibility, b.style.visibility = "hidden", (document.body || document.getElementsByTagName("body")[0]).appendChild(b)), null != b.load && b.load()
- }, b._handleJSONPLoad = function(a) {
- this._jsonResult = a
- }, b._handleTimeout = function() {
- this._clean();
- var a = new createjs.Event("error");
- a.text = "PRELOAD_TIMEOUT", this._sendError(a)
- }, b._handleStalled = function() {
- }, b._handleError = function() {
- this._clean();
- var a = new createjs.Event("error");
- this._sendError(a)
- }, b._handleReadyStateChange = function() {
- clearTimeout(this._loadTimeout);
- var a = this.getItem().tag;
- ("loaded" == a.readyState || "complete" == a.readyState) && this._handleLoad()
- }, b._handleLoad = function() {
- if (!this._isCanceled()) {
- var a = this.getItem(), b = a.tag;
- if (!(this.loaded || this._isAudio && 4 !== b.readyState)) {
- switch (this.loaded = !0, a.type) {
- case createjs.LoadQueue.SVG:
- case createjs.LoadQueue.JSON:
- case createjs.LoadQueue.JSONP:
- case createjs.LoadQueue.MANIFEST:
- case createjs.LoadQueue.CSS:
- b.style.visibility = this._startTagVisibility, (document.body || document.getElementsByTagName("body")[0]).removeChild(b)
- }
- this._clean(), this._sendComplete()
- }
- }
- }, b._clean = function() {
- clearTimeout(this._loadTimeout);
- var a = this.getItem(), b = a.tag;
- null != b && (b.onload = null, b.removeEventListener && b.removeEventListener("canplaythrough", this._tagCompleteProxy, !1), b.onstalled = null, b.onprogress = null, b.onerror = null, null != b.parentNode && a.type == createjs.LoadQueue.SVG && a.type == createjs.LoadQueue.JSON && a.type == createjs.LoadQueue.MANIFEST && a.type == createjs.LoadQueue.CSS && a.type == createjs.LoadQueue.JSONP && b.parentNode.removeChild(b));
- var a = this.getItem();
- (a.type == createjs.LoadQueue.JSONP || a.type == createjs.LoadQueue.MANIFEST) && (window[a.callback] = null)
- }, b.toString = function() {
- return "[PreloadJS TagLoader]"
- }, createjs.TagLoader = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b) {
- this.init(a, b)
- }, b = a.prototype = new createjs.AbstractLoader;
- b._request = null, b._loadTimeout = null, b._xhrLevel = 1, b._response = null, b._rawResponse = null, b._crossOrigin = "", b.init = function(a, b) {
- this._item = a, this._crossOrigin = b, !this._createXHR(a)
- }, b.getResult = function(a) {
- return a && this._rawResponse ? this._rawResponse : this._response
- }, b.cancel = function() {
- this.canceled = !0, this._clean(), this._request.abort()
- }, b.load = function() {
- if (null == this._request)
- return void this._handleError();
- if (this._request.onloadstart = createjs.proxy(this._handleLoadStart, this), this._request.onprogress = createjs.proxy(this._handleProgress, this), this._request.onabort = createjs.proxy(this._handleAbort, this), this._request.onerror = createjs.proxy(this._handleError, this), this._request.ontimeout = createjs.proxy(this._handleTimeout, this), 1 == this._xhrLevel) {
- var a = createjs.LoadQueue.LOAD_TIMEOUT;
- if (0 == a)
- a = createjs.LoadQueue.loadTimeout;
- else
- try {
- console.warn("LoadQueue.LOAD_TIMEOUT has been deprecated in favor of LoadQueue.loadTimeout")
- } catch (b) {
- }
- this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), a)
- }
- this._request.onload = createjs.proxy(this._handleLoad, this), this._request.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this);
- try {
- this._item.values && this._item.method != createjs.LoadQueue.GET ? this._item.method == createjs.LoadQueue.POST && this._request.send(this._formatQueryString(this._item.values)) : this._request.send()
- } catch (c) {
- var d = new createjs.Event("error");
- d.error = c, this._sendError(d)
- }
- }, b.getAllResponseHeaders = function() {
- return this._request.getAllResponseHeaders instanceof Function ? this._request.getAllResponseHeaders() : null
- }, b.getResponseHeader = function(a) {
- return this._request.getResponseHeader instanceof Function ? this._request.getResponseHeader(a) : null
- }, b._handleProgress = function(a) {
- if (a && !(a.loaded > 0 && 0 == a.total)) {
- var b = new createjs.Event("progress");
- b.loaded = a.loaded, b.total = a.total, this._sendProgress(b)
- }
- }, b._handleLoadStart = function() {
- clearTimeout(this._loadTimeout), this._sendLoadStart()
- }, b._handleAbort = function() {
- this._clean();
- var a = new createjs.Event("error");
- a.text = "XHR_ABORTED", this._sendError(a)
- }, b._handleError = function() {
- this._clean();
- var a = new createjs.Event("error");
- this._sendError(a)
- }, b._handleReadyStateChange = function() {
- 4 == this._request.readyState && this._handleLoad()
- }, b._handleLoad = function() {
- if (!this.loaded) {
- if (this.loaded = !0, !this._checkError())
- return void this._handleError();
- this._response = this._getResponse(), this._clean();
- var a = this._generateTag();
- a && this._sendComplete()
- }
- }, b._handleTimeout = function(a) {
- this._clean();
- var b = new createjs.Event("error");
- b.text = "PRELOAD_TIMEOUT", this._sendError(a)
- }, b._checkError = function() {
- var a = parseInt(this._request.status);
- switch (a) {
- case 404:
- case 0:
- return !1
- }
- return !0
- }, b._getResponse = function() {
- if (null != this._response)
- return this._response;
- if (null != this._request.response)
- return this._request.response;
- try {
- if (null != this._request.responseText)
- return this._request.responseText
- } catch (a) {
- }
- try {
- if (null != this._request.responseXML)
- return this._request.responseXML
- } catch (a) {
- }
- return null
- }, b._createXHR = function(a) {
- var b = this._isCrossDomain(a), c = null;
- if (b && window.XDomainRequest)
- c = new XDomainRequest;
- else if (window.XMLHttpRequest)
- c = new XMLHttpRequest;
- else
- try {
- c = new ActiveXObject("Msxml2.XMLHTTP.6.0")
- } catch (d) {
- try {
- c = new ActiveXObject("Msxml2.XMLHTTP.3.0")
- } catch (d) {
- try {
- c = new ActiveXObject("Msxml2.XMLHTTP")
- } catch (d) {
- return !1
- }
- }
- }
- createjs.LoadQueue.isText(a.type) && c.overrideMimeType && c.overrideMimeType("text/plain; charset=utf-8"), this._xhrLevel = "string" == typeof c.responseType ? 2 : 1;
- var e = null;
- return e = a.method == createjs.LoadQueue.GET ? this.buildPath(a.src, a.values) : a.src, c.open(a.method || createjs.LoadQueue.GET, e, !0), b && c instanceof XMLHttpRequest && 1 == this._xhrLevel && c.setRequestHeader("Origin", location.origin), a.values && a.method == createjs.LoadQueue.POST && c.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), createjs.LoadQueue.isBinary(a.type) && (c.responseType = "arraybuffer"), this._request = c, !0
- }, b._clean = function() {
- clearTimeout(this._loadTimeout);
- var a = this._request;
- a.onloadstart = null, a.onprogress = null, a.onabort = null, a.onerror = null, a.onload = null, a.ontimeout = null, a.onloadend = null, a.onreadystatechange = null
- }, b._generateTag = function() {
- var a = this._item.type, b = this._item.tag;
- switch (a) {
- case createjs.LoadQueue.IMAGE:
- return b.onload = createjs.proxy(this._handleTagReady, this), "" != this._crossOrigin && (b.crossOrigin = "Anonymous"), b.src = this.buildPath(this._item.src, this._item.values), this._rawResponse = this._response, this._response = b, !1;
- case createjs.LoadQueue.JAVASCRIPT:
- return b = document.createElement("script"), b.text = this._response, this._rawResponse = this._response, this._response = b, !0;
- case createjs.LoadQueue.CSS:
- var c = document.getElementsByTagName("head")[0];
- if (c.appendChild(b), b.styleSheet)
- b.styleSheet.cssText = this._response;
- else {
- var d = document.createTextNode(this._response);
- b.appendChild(d)
- }
- return this._rawResponse = this._response, this._response = b, !0;
- case createjs.LoadQueue.XML:
- var e = this._parseXML(this._response, "text/xml");
- return this._rawResponse = this._response, this._response = e, !0;
- case createjs.LoadQueue.SVG:
- var e = this._parseXML(this._response, "image/svg+xml");
- return this._rawResponse = this._response, null != e.documentElement ? (b.appendChild(e.documentElement), this._response = b) : this._response = e, !0;
- case createjs.LoadQueue.JSON:
- case createjs.LoadQueue.MANIFEST:
- var f = {};
- try {
- f = JSON.parse(this._response)
- } catch (g) {
- f = g
- }
- return this._rawResponse = this._response, this._response = f, !0
- }
- return !0
- }, b._parseXML = function(a, b) {
- var c = null;
- try {
- if (window.DOMParser) {
- var d = new DOMParser;
- c = d.parseFromString(a, b)
- } else
- c = new ActiveXObject("Microsoft.XMLDOM"), c.async = !1, c.loadXML(a)
- } catch (e) {
- }
- return c
- }, b._handleTagReady = function() {
- this._sendComplete()
- }, b.toString = function() {
- return "[PreloadJS XHRLoader]"
- }, createjs.XHRLoader = a
- }(), "object" != typeof JSON && (JSON = {}), function() {
- "use strict";
- function f(a) {
- return 10 > a ? "0" + a : a
- }
- function quote(a) {
- return escapable.lastIndex = 0, escapable.test(a) ? '"' + a.replace(escapable, function(a) {
- var b = meta[a];
- return "string" == typeof b ? b : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4)
- }) + '"' : '"' + a + '"'
- }
- function str(a, b) {
- var c, d, e, f, g, h = gap, i = b[a];
- switch (i && "object" == typeof i && "function" == typeof i.toJSON && (i = i.toJSON(a)), "function" == typeof rep && (i = rep.call(b, a, i)), typeof i) {
- case "string":
- return quote(i);
- case "number":
- return isFinite(i) ? String(i) : "null";
- case "boolean":
- case "null":
- return String(i);
- case "object":
- if (!i)
- return "null";
- if (gap += indent, g = [], "[object Array]" === Object.prototype.toString.apply(i)) {
- for (f = i.length, c = 0; f > c; c += 1)
- g[c] = str(c, i) || "null";
- return e = 0 === g.length ? "[]" : gap ? "[\n" + gap + g.join(",\n" + gap) + "\n" + h + "]" : "[" + g.join(",") + "]", gap = h, e
- }
- if (rep && "object" == typeof rep)
- for (f = rep.length, c = 0; f > c; c += 1)
- "string" == typeof rep[c] && (d = rep[c], e = str(d, i), e && g.push(quote(d) + (gap ? ": " : ":") + e));
- else
- for (d in i)
- Object.prototype.hasOwnProperty.call(i, d) && (e = str(d, i), e && g.push(quote(d) + (gap ? ": " : ":") + e));
- return e = 0 === g.length ? "{}" : gap ? "{\n" + gap + g.join(",\n" + gap) + "\n" + h + "}" : "{" + g.join(",") + "}", gap = h, e
- }
- }
- "function" != typeof Date.prototype.toJSON && (Date.prototype.toJSON = function() {
- return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null
- }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function() {
- return this.valueOf()
- });
- var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = {"\b": "\\b"," ": "\\t","\n": "\\n","\f": "\\f","\r": "\\r",'"': '\\"',"\\": "\\\\"}, rep;
- "function" != typeof JSON.stringify && (JSON.stringify = function(a, b, c) {
- var d;
- if (gap = "", indent = "", "number" == typeof c)
- for (d = 0; c > d; d += 1)
- indent += " ";
- else
- "string" == typeof c && (indent = c);
- if (rep = b, b && "function" != typeof b && ("object" != typeof b || "number" != typeof b.length))
- throw new Error("JSON.stringify");
- return str("", {"": a})
- }), "function" != typeof JSON.parse && (JSON.parse = function(text, reviver) {
- function walk(a, b) {
- var c, d, e = a[b];
- if (e && "object" == typeof e)
- for (c in e)
- Object.prototype.hasOwnProperty.call(e, c) && (d = walk(e, c), void 0 !== d ? e[c] = d : delete e[c]);
- return reviver.call(a, b, e)
- }
- var j;
- if (text = String(text), cx.lastIndex = 0, cx.test(text) && (text = text.replace(cx, function(a) {
- return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4)
- })), /^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, "")))
- return j = eval("(" + text + ")"), "function" == typeof reviver ? walk({"": j}, "") : j;
- throw new SyntaxError("JSON.parse")
- })
- }(), this.createjs = this.createjs || {}, function() {
- var a = createjs.SoundJS = createjs.SoundJS || {};
- a.version = "0.5.2", a.buildDate = "Thu, 12 Dec 2013 23:33:37 GMT"
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function() {
- }, b = a.prototype;
- a.initialize = function(a) {
- a.addEventListener = b.addEventListener, a.on = b.on, a.removeEventListener = a.off = b.removeEventListener, a.removeAllEventListeners = b.removeAllEventListeners, a.hasEventListener = b.hasEventListener, a.dispatchEvent = b.dispatchEvent, a._dispatchEvent = b._dispatchEvent, a.willTrigger = b.willTrigger
- }, b._listeners = null, b._captureListeners = null, b.initialize = function() {
- }, b.addEventListener = function(a, b, c) {
- var d;
- d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {};
- var e = d[a];
- return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b
- }, b.on = function(a, b, c, d, e, f) {
- return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function(a) {
- b.call(c, a, e), d && a.remove()
- }, f)
- }, b.removeEventListener = function(a, b, c) {
- var d = c ? this._captureListeners : this._listeners;
- if (d) {
- var e = d[a];
- if (e)
- for (var f = 0, g = e.length; g > f; f++)
- if (e[f] == b) {
- 1 == g ? delete d[a] : e.splice(f, 1);
- break
- }
- }
- }, b.off = b.removeEventListener, b.removeAllEventListeners = function(a) {
- a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null
- }, b.dispatchEvent = function(a, b) {
- if ("string" == typeof a) {
- var c = this._listeners;
- if (!c || !c[a])
- return !1;
- a = new createjs.Event(a)
- }
- if (a.target = b || this, a.bubbles && this.parent) {
- for (var d = this, e = [d]; d.parent; )
- e.push(d = d.parent);
- var f, g = e.length;
- for (f = g - 1; f >= 0 && !a.propagationStopped; f--)
- e[f]._dispatchEvent(a, 1 + (0 == f));
- for (f = 1; g > f && !a.propagationStopped; f++)
- e[f]._dispatchEvent(a, 3)
- } else
- this._dispatchEvent(a, 2);
- return a.defaultPrevented
- }, b.hasEventListener = function(a) {
- var b = this._listeners, c = this._captureListeners;
- return !!(b && b[a] || c && c[a])
- }, b.willTrigger = function(a) {
- for (var b = this; b; ) {
- if (b.hasEventListener(a))
- return !0;
- b = b.parent
- }
- return !1
- }, b.toString = function() {
- return "[EventDispatcher]"
- }, b._dispatchEvent = function(a, b) {
- var c, d = 1 == b ? this._captureListeners : this._listeners;
- if (a && d) {
- var e = d[a.type];
- if (!e || !(c = e.length))
- return;
- a.currentTarget = this, a.eventPhase = b, a.removed = !1, e = e.slice();
- for (var f = 0; c > f && !a.immediatePropagationStopped; f++) {
- var g = e[f];
- g.handleEvent ? g.handleEvent(a) : g(a), a.removed && (this.off(a.type, g, 1 == b), a.removed = !1)
- }
- }
- }, createjs.EventDispatcher = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- var a = function(a, b, c) {
- this.initialize(a, b, c)
- }, b = a.prototype;
- b.type = null, b.target = null, b.currentTarget = null, b.eventPhase = 0, b.bubbles = !1, b.cancelable = !1, b.timeStamp = 0, b.defaultPrevented = !1, b.propagationStopped = !1, b.immediatePropagationStopped = !1, b.removed = !1, b.initialize = function(a, b, c) {
- this.type = a, this.bubbles = b, this.cancelable = c, this.timeStamp = (new Date).getTime()
- }, b.preventDefault = function() {
- this.defaultPrevented = !0
- }, b.stopPropagation = function() {
- this.propagationStopped = !0
- }, b.stopImmediatePropagation = function() {
- this.immediatePropagationStopped = this.propagationStopped = !0
- }, b.remove = function() {
- this.removed = !0
- }, b.clone = function() {
- return new a(this.type, this.bubbles, this.cancelable)
- }, b.toString = function() {
- return "[Event (type=" + this.type + ")]"
- }, createjs.Event = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- createjs.indexOf = function(a, b) {
- for (var c = 0, d = a.length; d > c; c++)
- if (b === a[c])
- return c;
- return -1
- }
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- createjs.proxy = function(a, b) {
- var c = Array.prototype.slice.call(arguments, 2);
- return function() {
- return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c))
- }
- }
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- function a() {
- throw "Sound cannot be instantiated"
- }
- function b(a, b) {
- this.init(a, b)
- }
- function c() {
- this.isDefault = !0, this.addEventListener = this.removeEventListener = this.removeAllEventListeners = this.dispatchEvent = this.hasEventListener = this._listeners = this._interrupt = this._playFailed = this.pause = this.resume = this.play = this._beginPlaying = this._cleanUp = this.stop = this.setMasterVolume = this.setVolume = this.mute = this.setMute = this.getMute = this.setPan = this.getPosition = this.setPosition = this.playFailed = function() {
- return !1
- }, this.getVolume = this.getPan = this.getDuration = function() {
- return 0
- }, this.playState = a.PLAY_FAILED, this.toString = function() {
- return "[Sound Default Sound Instance]"
- }
- }
- function d() {
- }
- var e = a;
- e.DELIMITER = "|", e.INTERRUPT_ANY = "any", e.INTERRUPT_EARLY = "early", e.INTERRUPT_LATE = "late", e.INTERRUPT_NONE = "none", e.PLAY_INITED = "playInited", e.PLAY_SUCCEEDED = "playSucceeded", e.PLAY_INTERRUPTED = "playInterrupted", e.PLAY_FINISHED = "playFinished", e.PLAY_FAILED = "playFailed", e.SUPPORTED_EXTENSIONS = ["mp3", "ogg", "mpeg", "wav", "m4a", "mp4", "aiff", "wma", "mid"], e.EXTENSION_MAP = {m4a: "mp4"}, e.FILE_PATTERN = /^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/, e.defaultInterruptBehavior = e.INTERRUPT_NONE, e.alternateExtensions = [], e._lastID = 0, e.activePlugin = null, e._pluginsRegistered = !1, e._masterVolume = 1, e._masterMute = !1, e._instances = [], e._idHash = {}, e._preloadHash = {}, e._defaultSoundInstance = null, e.addEventListener = null, e.removeEventListener = null, e.removeAllEventListeners = null, e.dispatchEvent = null, e.hasEventListener = null, e._listeners = null, createjs.EventDispatcher.initialize(e), e._sendFileLoadEvent = function(a) {
- if (e._preloadHash[a])
- for (var b = 0, c = e._preloadHash[a].length; c > b; b++) {
- var d = e._preloadHash[a][b];
- if (e._preloadHash[a][b] = !0, e.hasEventListener("fileload")) {
- var f = new createjs.Event("fileload");
- f.src = d.src, f.id = d.id, f.data = d.data, e.dispatchEvent(f)
- }
- }
- }, e.getPreloadHandlers = function() {
- return {callback: createjs.proxy(e.initLoad, e),types: ["sound"],extensions: e.SUPPORTED_EXTENSIONS}
- }, e.registerPlugin = function(a) {
- try {
- console.log("createjs.Sound.registerPlugin has been deprecated. Please use registerPlugins.")
- } catch (b) {
- }
- return e._registerPlugin(a)
- }, e._registerPlugin = function(a) {
- return e._pluginsRegistered = !0, null == a ? !1 : a.isSupported() ? (e.activePlugin = new a, !0) : !1
- }, e.registerPlugins = function(a) {
- for (var b = 0, c = a.length; c > b; b++) {
- var d = a[b];
- if (e._registerPlugin(d))
- return !0
- }
- return !1
- }, e.initializeDefaultPlugins = function() {
- return null != e.activePlugin ? !0 : e._pluginsRegistered ? !1 : e.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]) ? !0 : !1
- }, e.isReady = function() {
- return null != e.activePlugin
- }, e.getCapabilities = function() {
- return null == e.activePlugin ? null : e.activePlugin._capabilities
- }, e.getCapability = function(a) {
- return null == e.activePlugin ? null : e.activePlugin._capabilities[a]
- }, e.initLoad = function(a, b, c, d, f) {
- a = a.replace(f, "");
- var g = e.registerSound(a, c, d, !1, f);
- return null == g ? !1 : g
- }, e.registerSound = function(a, c, d, f, g) {
- if (!e.initializeDefaultPlugins())
- return !1;
- if (a instanceof Object && (g = c, c = a.id, d = a.data, a = a.src), e.alternateExtensions.length)
- var h = e._parsePath2(a, "sound", c, d);
- else
- var h = e._parsePath(a, "sound", c, d);
- if (null == h)
- return !1;
- null != g && (a = g + a, h.src = g + h.src), null != c && (e._idHash[c] = h.src);
- var i = null;
- null != d && (isNaN(d.channels) ? isNaN(d) || (i = parseInt(d)) : i = parseInt(d.channels));
- var j = e.activePlugin.register(h.src, i);
- if (null != j && (null != j.numChannels && (i = j.numChannels), b.create(h.src, i), null != d && isNaN(d) ? d.channels = h.data.channels = i || b.maxPerChannel() : d = h.data = i || b.maxPerChannel(), null != j.tag ? h.tag = j.tag : j.src && (h.src = j.src), null != j.completeHandler && (h.completeHandler = j.completeHandler), j.type && (h.type = j.type)), 0 != f)
- if (e._preloadHash[h.src] || (e._preloadHash[h.src] = []), e._preloadHash[h.src].push({src: a,id: c,data: d}), 1 == e._preloadHash[h.src].length)
- e.activePlugin.preload(h.src, j);
- else if (1 == e._preloadHash[h.src][0])
- return !0;
- return h
- }, e.registerManifest = function(a, b) {
- for (var c = [], d = 0, e = a.length; e > d; d++)
- c[d] = createjs.Sound.registerSound(a[d].src, a[d].id, a[d].data, a[d].preload, b);
- return c
- }, e.removeSound = function(a, c) {
- if (null == e.activePlugin)
- return !1;
- if (a instanceof Object && (a = a.src), a = e._getSrcById(a), e.alternateExtensions.length)
- var d = e._parsePath2(a);
- else
- var d = e._parsePath(a);
- if (null == d)
- return !1;
- null != c && (d.src = c + d.src), a = d.src;
- for (var f in e._idHash)
- e._idHash[f] == a && delete e._idHash[f];
- return b.removeSrc(a), delete e._preloadHash[a], e.activePlugin.removeSound(a), !0
- }, e.removeManifest = function(a, b) {
- for (var c = [], d = 0, e = a.length; e > d; d++)
- c[d] = createjs.Sound.removeSound(a[d].src, b);
- return c
- }, e.removeAllSounds = function() {
- e._idHash = {}, e._preloadHash = {}, b.removeAll(), e.activePlugin.removeAllSounds()
- }, e.loadComplete = function(a) {
- if (e.alternateExtensions.length)
- var b = e._parsePath2(a, "sound");
- else
- var b = e._parsePath(a, "sound");
- return a = e._getSrcById(b ? b.src : a), 1 == e._preloadHash[a][0]
- }, e._parsePath = function(a, b, c, d) {
- "string" != typeof a && (a = a.toString());
- var f = a.split(e.DELIMITER);
- if (f.length > 1)
- try {
- console.log('createjs.Sound.DELIMITER "|" loading approach has been deprecated. Please use the new alternateExtensions property.')
- } catch (g) {
- }
- for (var h = {type: b || "sound",id: c,data: d}, i = e.getCapabilities(), j = 0, k = f.length; k > j; j++) {
- var l = f[j], m = l.match(e.FILE_PATTERN);
- if (null == m)
- return !1;
- var n = m[4], o = m[5];
- if (i[o] && createjs.indexOf(e.SUPPORTED_EXTENSIONS, o) > -1)
- return h.name = n, h.src = l, h.extension = o, h
- }
- return null
- }, e._parsePath2 = function(a, b, c, d) {
- "string" != typeof a && (a = a.toString());
- var f = a.match(e.FILE_PATTERN);
- if (null == f)
- return !1;
- for (var g = f[4], h = f[5], i = e.getCapabilities(), j = 0; !i[h]; )
- if (h = e.alternateExtensions[j++], j > e.alternateExtensions.length)
- return null;
- a = a.replace("." + f[5], "." + h);
- var k = {type: b || "sound",id: c,data: d};
- return k.name = g, k.src = a, k.extension = h, k
- }, e.play = function(a, b, c, d, f, g, h) {
- var i = e.createInstance(a), j = e._playInstance(i, b, c, d, f, g, h);
- return j || i.playFailed(), i
- }, e.createInstance = function(c) {
- if (!e.initializeDefaultPlugins())
- return e._defaultSoundInstance;
- if (c = e._getSrcById(c), e.alternateExtensions.length)
- var d = e._parsePath2(c, "sound");
- else
- var d = e._parsePath(c, "sound");
- var f = null;
- return null != d && null != d.src ? (b.create(d.src), f = e.activePlugin.create(d.src)) : f = a._defaultSoundInstance, f.uniqueId = e._lastID++, f
- }, e.setVolume = function(a) {
- if (null == Number(a))
- return !1;
- if (a = Math.max(0, Math.min(1, a)), e._masterVolume = a, !this.activePlugin || !this.activePlugin.setVolume || !this.activePlugin.setVolume(a))
- for (var b = this._instances, c = 0, d = b.length; d > c; c++)
- b[c].setMasterVolume(a)
- }, e.getVolume = function() {
- return e._masterVolume
- }, e.setMute = function(a) {
- if (null == a || void 0 == a)
- return !1;
- if (this._masterMute = a, !this.activePlugin || !this.activePlugin.setMute || !this.activePlugin.setMute(a))
- for (var b = this._instances, c = 0, d = b.length; d > c; c++)
- b[c].setMasterMute(a);
- return !0
- }, e.getMute = function() {
- return this._masterMute
- }, e.stop = function() {
- for (var a = this._instances, b = a.length; b--; )
- a[b].stop()
- }, e._playInstance = function(a, b, c, d, f, g, h) {
- if (b instanceof Object && (c = b.delay, d = b.offset, f = b.loop, g = b.volume, h = b.pan, b = b.interrupt), b = b || e.defaultInterruptBehavior, null == c && (c = 0), null == d && (d = a.getPosition()), null == f && (f = 0), null == g && (g = a.volume), null == h && (h = a.pan), 0 == c) {
- var i = e._beginPlaying(a, b, d, f, g, h);
- if (!i)
- return !1
- } else {
- var j = setTimeout(function() {
- e._beginPlaying(a, b, d, f, g, h)
- }, c);
- a._delayTimeoutId = j
- }
- return this._instances.push(a), !0
- }, e._beginPlaying = function(a, c, d, e, f, g) {
- if (!b.add(a, c))
- return !1;
- var h = a._beginPlaying(d, e, f, g);
- if (!h) {
- var i = createjs.indexOf(this._instances, a);
- return i > -1 && this._instances.splice(i, 1), !1
- }
- return !0
- }, e._getSrcById = function(a) {
- return null == e._idHash || null == e._idHash[a] ? a : e._idHash[a]
- }, e._playFinished = function(a) {
- b.remove(a);
- var c = createjs.indexOf(this._instances, a);
- c > -1 && this._instances.splice(c, 1)
- }, createjs.Sound = a, b.channels = {}, b.create = function(a, c) {
- var d = b.get(a);
- return null == d ? (b.channels[a] = new b(a, c), !0) : !1
- }, b.removeSrc = function(a) {
- var c = b.get(a);
- return null == c ? !1 : (c.removeAll(), delete b.channels[a], !0)
- }, b.removeAll = function() {
- for (var a in b.channels)
- b.channels[a].removeAll();
- b.channels = {}
- }, b.add = function(a, c) {
- var d = b.get(a.src);
- return null == d ? !1 : d.add(a, c)
- }, b.remove = function(a) {
- var c = b.get(a.src);
- return null == c ? !1 : (c.remove(a), !0)
- }, b.maxPerChannel = function() {
- return f.maxDefault
- }, b.get = function(a) {
- return b.channels[a]
- };
- var f = b.prototype;
- f.src = null, f.max = null, f.maxDefault = 100, f.length = 0, f.init = function(a, b) {
- this.src = a, this.max = b || this.maxDefault, -1 == this.max && (this.max = this.maxDefault), this._instances = []
- }, f.get = function(a) {
- return this._instances[a]
- }, f.add = function(a, b) {
- return this.getSlot(b, a) ? (this._instances.push(a), this.length++, !0) : !1
- }, f.remove = function(a) {
- var b = createjs.indexOf(this._instances, a);
- return -1 == b ? !1 : (this._instances.splice(b, 1), this.length--, !0)
- }, f.removeAll = function() {
- for (var a = this.length - 1; a >= 0; a--)
- this._instances[a].stop()
- }, f.getSlot = function(b) {
- for (var c, d, e = 0, f = this.max; f > e; e++) {
- if (c = this.get(e), null == c)
- return !0;
- (b != a.INTERRUPT_NONE || c.playState == a.PLAY_FINISHED) && (0 != e ? c.playState == a.PLAY_FINISHED || c.playState == a.PLAY_INTERRUPTED || c.playState == a.PLAY_FAILED ? d = c : (b == a.INTERRUPT_EARLY && c.getPosition() < d.getPosition() || b == a.INTERRUPT_LATE && c.getPosition() > d.getPosition()) && (d = c) : d = c)
- }
- return null != d ? (d._interrupt(), this.remove(d), !0) : !1
- }, f.toString = function() {
- return "[Sound SoundChannel]"
- }, a._defaultSoundInstance = new c, d.init = function() {
- var a = window.navigator.userAgent;
- d.isFirefox = a.indexOf("Firefox") > -1, d.isOpera = null != window.opera, d.isChrome = a.indexOf("Chrome") > -1, d.isIOS = a.indexOf("iPod") > -1 || a.indexOf("iPhone") > -1 || a.indexOf("iPad") > -1, d.isAndroid = a.indexOf("Android") > -1, d.isBlackberry = a.indexOf("Blackberry") > -1
- }, d.init(), createjs.Sound.BrowserDetect = d
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- function a() {
- this._init()
- }
- var b = a;
- b._capabilities = null, b.isSupported = function() {
- var a = createjs.Sound.BrowserDetect.isIOS || createjs.Sound.BrowserDetect.isAndroid || createjs.Sound.BrowserDetect.isBlackberry;
- return "file:" != location.protocol || a || this._isFileXHRSupported() ? (b._generateCapabilities(), null == b.context ? !1 : !0) : !1
- }, b._isFileXHRSupported = function() {
- var a = !0, b = new XMLHttpRequest;
- try {
- b.open("GET", "fail.fail", !1)
- } catch (c) {
- return a = !1
- }
- b.onerror = function() {
- a = !1
- }, b.onload = function() {
- a = 404 == this.status || 200 == this.status || 0 == this.status && "" != this.response
- };
- try {
- b.send()
- } catch (c) {
- a = !1
- }
- return a
- }, b._generateCapabilities = function() {
- if (null == b._capabilities) {
- var a = document.createElement("audio");
- if (null == a.canPlayType)
- return null;
- if (window.webkitAudioContext)
- b.context = new webkitAudioContext;
- else {
- if (!window.AudioContext)
- return null;
- b.context = new AudioContext
- }
- b._compatibilitySetUp(), b.playEmptySound(), b._capabilities = {panning: !0,volume: !0,tracks: -1};
- for (var c = createjs.Sound.SUPPORTED_EXTENSIONS, d = createjs.Sound.EXTENSION_MAP, e = 0, f = c.length; f > e; e++) {
- var g = c[e], h = d[g] || g;
- b._capabilities[g] = "no" != a.canPlayType("audio/" + g) && "" != a.canPlayType("audio/" + g) || "no" != a.canPlayType("audio/" + h) && "" != a.canPlayType("audio/" + h)
- }
- b.context.destination.numberOfChannels < 2 && (b._capabilities.panning = !1), b.dynamicsCompressorNode = b.context.createDynamicsCompressor(), b.dynamicsCompressorNode.connect(b.context.destination), b.gainNode = b.context.createGain(), b.gainNode.connect(b.dynamicsCompressorNode)
- }
- }, b._compatibilitySetUp = function() {
- if (!b.context.createGain) {
- b.context.createGain = b.context.createGainNode;
- var a = b.context.createBufferSource();
- a.__proto__.start = a.__proto__.noteGrainOn, a.__proto__.stop = a.__proto__.noteOff, this._panningModel = 0
- }
- }, b.playEmptySound = function() {
- var a = this.context.createBuffer(1, 1, 22050), b = this.context.createBufferSource();
- b.buffer = a, b.connect(this.context.destination), b.start(0, 0, 0)
- };
- var c = a.prototype;
- c._capabilities = null, c._volume = 1, c.context = null, c._panningModel = "equalpower", c.dynamicsCompressorNode = null, c.gainNode = null, c._arrayBuffers = null, c._init = function() {
- this._capabilities = b._capabilities, this._arrayBuffers = {}, this.context = b.context, this.gainNode = b.gainNode, this.dynamicsCompressorNode = b.dynamicsCompressorNode
- }, c.register = function(a) {
- this._arrayBuffers[a] = !0;
- var b = new createjs.WebAudioPlugin.Loader(a, this);
- return {tag: b}
- }, c.isPreloadStarted = function(a) {
- return null != this._arrayBuffers[a]
- }, c.isPreloadComplete = function(a) {
- return !(null == this._arrayBuffers[a] || 1 == this._arrayBuffers[a])
- }, c.removeSound = function(a) {
- delete this._arrayBuffers[a]
- }, c.removeAllSounds = function() {
- this._arrayBuffers = {}
- }, c.addPreloadResults = function(a, b) {
- this._arrayBuffers[a] = b
- }, c._handlePreloadComplete = function() {
- createjs.Sound._sendFileLoadEvent(this.src)
- }, c.preload = function(a) {
- this._arrayBuffers[a] = !0;
- var b = new createjs.WebAudioPlugin.Loader(a, this);
- b.onload = this._handlePreloadComplete, b.load()
- }, c.create = function(a) {
- return this.isPreloadStarted(a) || this.preload(a), new createjs.WebAudioPlugin.SoundInstance(a, this)
- }, c.setVolume = function(a) {
- return this._volume = a, this._updateVolume(), !0
- }, c._updateVolume = function() {
- var a = createjs.Sound._masterMute ? 0 : this._volume;
- a != this.gainNode.gain.value && (this.gainNode.gain.value = a)
- }, c.getVolume = function() {
- return this._volume
- }, c.setMute = function() {
- return this._updateVolume(), !0
- }, c.toString = function() {
- return "[WebAudioPlugin]"
- }, createjs.WebAudioPlugin = a
- }(), function() {
- "use strict";
- function a(a, b) {
- this._init(a, b)
- }
- var b = a.prototype = new createjs.EventDispatcher;
- b.src = null, b.uniqueId = -1, b.playState = null, b._owner = null, b._offset = 0, b._delay = 0, b._volume = 1;
- try {
- Object.defineProperty(b, "volume", {get: function() {
- return this._volume
- },set: function(a) {
- return null == Number(a) ? !1 : (a = Math.max(0, Math.min(1, a)), this._volume = a, void this._updateVolume())
- }})
- } catch (c) {
- }
- b._pan = 0;
- try {
- Object.defineProperty(b, "pan", {get: function() {
- return this._pan
- },set: function(a) {
- return this._owner._capabilities.panning && null != Number(a) ? (a = Math.max(-1, Math.min(1, a)), this._pan = a, void this.panNode.setPosition(a, 0, -.5)) : !1
- }})
- } catch (c) {
- }
- b._duration = 0, b._remainingLoops = 0, b._delayTimeoutId = null, b._soundCompleteTimeout = null, b.gainNode = null, b.panNode = null, b.sourceNode = null, b._sourceNodeNext = null, b._muted = !1, b._paused = !1, b._startTime = 0, b._endedHandler = null, b._sendEvent = function(a) {
- var b = new createjs.Event(a);
- this.dispatchEvent(b)
- }, b._init = function(a, b) {
- this._owner = b, this.src = a, this.gainNode = this._owner.context.createGain(), this.panNode = this._owner.context.createPanner(), this.panNode.panningModel = this._owner._panningModel, this.panNode.connect(this.gainNode), this._owner.isPreloadComplete(this.src) && (this._duration = 1e3 * this._owner._arrayBuffers[this.src].duration), this._endedHandler = createjs.proxy(this._handleSoundComplete, this)
- }, b._cleanUp = function() {
- this.sourceNode && this.playState == createjs.Sound.PLAY_SUCCEEDED && (this.sourceNode = this._cleanUpAudioNode(this.sourceNode), this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext)), 0 != this.gainNode.numberOfOutputs && this.gainNode.disconnect(0), clearTimeout(this._delayTimeoutId), clearTimeout(this._soundCompleteTimeout), this._startTime = 0, null != window.createjs && createjs.Sound._playFinished(this)
- }, b._cleanUpAudioNode = function(a) {
- return a && (a.stop(0), a.disconnect(this.panNode), a = null), a
- }, b._interrupt = function() {
- this._cleanUp(), this.playState = createjs.Sound.PLAY_INTERRUPTED, this._paused = !1, this._sendEvent("interrupted")
- }, b._handleSoundReady = function() {
- if (null != window.createjs) {
- if (1e3 * this._offset > this.getDuration())
- return void this.playFailed();
- this._offset < 0 && (this._offset = 0), this.playState = createjs.Sound.PLAY_SUCCEEDED, this._paused = !1, this.gainNode.connect(this._owner.gainNode);
- var a = this._owner._arrayBuffers[this.src].duration;
- this.sourceNode = this._createAndPlayAudioNode(this._owner.context.currentTime - a, this._offset), this._duration = 1e3 * a, this._startTime = this.sourceNode.startTime - this._offset, this._soundCompleteTimeout = setTimeout(this._endedHandler, 1e3 * (a - this._offset)), 0 != this._remainingLoops && (this._sourceNodeNext = this._createAndPlayAudioNode(this._startTime, 0))
- }
- }, b._createAndPlayAudioNode = function(a, b) {
- var c = this._owner.context.createBufferSource();
- return c.buffer = this._owner._arrayBuffers[this.src], c.connect(this.panNode), this._owner.context.currentTime, c.startTime = a + c.buffer.duration, c.start(c.startTime, b, c.buffer.duration - b), c
- }, b.play = function(a, b, c, d, e, f) {
- this._cleanUp(), createjs.Sound._playInstance(this, a, b, c, d, e, f)
- }, b._beginPlaying = function(a, b, c, d) {
- return null != window.createjs && this.src ? (this._offset = a / 1e3, this._remainingLoops = b, this.volume = c, this.pan = d, this._owner.isPreloadComplete(this.src) ? (this._handleSoundReady(null), this._sendEvent("succeeded"), 1) : void this.playFailed()) : void 0
- }, b.pause = function() {
- return this._paused || this.playState != createjs.Sound.PLAY_SUCCEEDED ? !1 : (this._paused = !0, this._offset = this._owner.context.currentTime - this._startTime, this._cleanUpAudioNode(this.sourceNode), this._cleanUpAudioNode(this._sourceNodeNext), 0 != this.gainNode.numberOfOutputs && this.gainNode.disconnect(), clearTimeout(this._delayTimeoutId), clearTimeout(this._soundCompleteTimeout), !0)
- }, b.resume = function() {
- return this._paused ? (this._handleSoundReady(null), !0) : !1
- }, b.stop = function() {
- return this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, this._offset = 0, !0
- }, b.setVolume = function(a) {
- return this.volume = a, !0
- }, b._updateVolume = function() {
- var a = this._muted ? 0 : this._volume;
- return a != this.gainNode.gain.value ? (this.gainNode.gain.value = a, !0) : !1
- }, b.getVolume = function() {
- return this.volume
- }, b.setMute = function(a) {
- return null == a || void 0 == a ? !1 : (this._muted = a, this._updateVolume(), !0)
- }, b.getMute = function() {
- return this._muted
- }, b.setPan = function(a) {
- return this.pan = a, this.pan != a ? !1 : void 0
- }, b.getPan = function() {
- return this.pan
- }, b.getPosition = function() {
- if (this._paused || null == this.sourceNode)
- var a = this._offset;
- else
- var a = this._owner.context.currentTime - this._startTime;
- return 1e3 * a
- }, b.setPosition = function(a) {
- return this._offset = a / 1e3, this.sourceNode && this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._cleanUpAudioNode(this.sourceNode), this._cleanUpAudioNode(this._sourceNodeNext), clearTimeout(this._soundCompleteTimeout)), this._paused || this.playState != createjs.Sound.PLAY_SUCCEEDED || this._handleSoundReady(null), !0
- }, b.getDuration = function() {
- return this._duration
- }, b._handleSoundComplete = function() {
- return this._offset = 0, 0 != this._remainingLoops ? (this._remainingLoops--, this._sourceNodeNext ? (this._cleanUpAudioNode(this.sourceNode), this.sourceNode = this._sourceNodeNext, this._startTime = this.sourceNode.startTime, this._sourceNodeNext = this._createAndPlayAudioNode(this._startTime, 0), this._soundCompleteTimeout = setTimeout(this._endedHandler, this._duration)) : this._handleSoundReady(null), void this._sendEvent("loop")) : void (null != window.createjs && (this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, this._sendEvent("complete")))
- }, b.playFailed = function() {
- null != window.createjs && (this._cleanUp(), this.playState = createjs.Sound.PLAY_FAILED, this._sendEvent("failed"))
- }, b.toString = function() {
- return "[WebAudioPlugin SoundInstance]"
- }, createjs.WebAudioPlugin.SoundInstance = a
- }(), function() {
- "use strict";
- function a(a, b) {
- this._init(a, b)
- }
- var b = a.prototype;
- b.request = null, b.owner = null, b.progress = -1, b.src = null, b.originalSrc = null, b.result = null, b.onload = null, b.onprogress = null, b.onError = null, b._init = function(a, b) {
- this.src = a, this.originalSrc = a, this.owner = b
- }, b.load = function(a) {
- null != a && (this.src = a), this.request = new XMLHttpRequest, this.request.open("GET", this.src, !0), this.request.responseType = "arraybuffer", this.request.onload = createjs.proxy(this.handleLoad, this), this.request.onError = createjs.proxy(this.handleError, this), this.request.onprogress = createjs.proxy(this.handleProgress, this), this.request.send()
- }, b.handleProgress = function(a, b) {
- this.progress = a / b, null != this.onprogress && this.onprogress({loaded: a,total: b,progress: this.progress})
- }, b.handleLoad = function() {
- this.owner.context.decodeAudioData(this.request.response, createjs.proxy(this.handleAudioDecoded, this), createjs.proxy(this.handleError, this))
- }, b.handleAudioDecoded = function(a) {
- this.progress = 1, this.result = a, this.src = this.originalSrc, this.owner.addPreloadResults(this.src, this.result), this.onload && this.onload()
- }, b.handleError = function(a) {
- this.owner.removeSound(this.src), this.onerror && this.onerror(a)
- }, b.toString = function() {
- return "[WebAudioPlugin Loader]"
- }, createjs.WebAudioPlugin.Loader = a
- }(), this.createjs = this.createjs || {}, function() {
- "use strict";
- function a() {
- this._init()
- }
- var b = a;
- b.MAX_INSTANCES = 30, b._AUDIO_READY = "canplaythrough", b._AUDIO_ENDED = "ended", b._AUDIO_SEEKED = "seeked", b._AUDIO_STALLED = "stalled", b._capabilities = null, b.enableIOS = !1, b.isSupported = function() {
- if (createjs.Sound.BrowserDetect.isIOS && !b.enableIOS)
- return !1;
- b._generateCapabilities();
- var a = b.tag;
- return null == a || null == b._capabilities ? !1 : !0
- }, b._generateCapabilities = function() {
- if (null == b._capabilities) {
- var a = b.tag = document.createElement("audio");
- if (null == a.canPlayType)
- return null;
- b._capabilities = {panning: !0,volume: !0,tracks: -1};
- for (var c = createjs.Sound.SUPPORTED_EXTENSIONS, d = createjs.Sound.EXTENSION_MAP, e = 0, f = c.length; f > e; e++) {
- var g = c[e], h = d[g] || g;
- b._capabilities[g] = "no" != a.canPlayType("audio/" + g) && "" != a.canPlayType("audio/" + g) || "no" != a.canPlayType("audio/" + h) && "" != a.canPlayType("audio/" + h)
- }
- }
- };
- var c = a.prototype;
- c._capabilities = null, c._audioSources = null, c.defaultNumChannels = 2, c.loadedHandler = null, c._init = function() {
- this._capabilities = b._capabilities, this._audioSources = {}
- }, c.register = function(a, b) {
- this._audioSources[a] = !0;
- for (var c = createjs.HTMLAudioPlugin.TagPool.get(a), d = null, e = b || this.defaultNumChannels, f = 0; e > f; f++)
- d = this._createTag(a), c.add(d);
- if (d.id = a, this.loadedHandler = createjs.proxy(this._handleTagLoad, this), d.addEventListener && d.addEventListener("canplaythrough", this.loadedHandler), null == d.onreadystatechange)
- d.onreadystatechange = this.loadedHandler;
- else {
- var g = d.onreadystatechange;
- d.onreadystatechange = function() {
- g(), this.loadedHandler()
- }
- }
- return {tag: d,numChannels: e}
- }, c._handleTagLoad = function(a) {
- a.target.removeEventListener && a.target.removeEventListener("canplaythrough", this.loadedHandler), a.target.onreadystatechange = null, a.target.src != a.target.id && createjs.HTMLAudioPlugin.TagPool.checkSrc(a.target.id)
- }, c._createTag = function(a) {
- var b = document.createElement("audio");
- return b.autoplay = !1, b.preload = "none", b.src = a, b
- }, c.removeSound = function(a) {
- delete this._audioSources[a], createjs.HTMLAudioPlugin.TagPool.remove(a)
- }, c.removeAllSounds = function() {
- this._audioSources = {}, createjs.HTMLAudioPlugin.TagPool.removeAll()
- }, c.create = function(a) {
- if (!this.isPreloadStarted(a)) {
- var b = createjs.HTMLAudioPlugin.TagPool.get(a), c = this._createTag(a);
- c.id = a, b.add(c), this.preload(a, {tag: c})
- }
- return new createjs.HTMLAudioPlugin.SoundInstance(a, this)
- }, c.isPreloadStarted = function(a) {
- return null != this._audioSources[a]
- }, c.preload = function(a, b) {
- this._audioSources[a] = !0, new createjs.HTMLAudioPlugin.Loader(a, b.tag)
- }, c.toString = function() {
- return "[HTMLAudioPlugin]"
- }, createjs.HTMLAudioPlugin = a
- }(), function() {
- "use strict";
- function a(a, b) {
- this._init(a, b)
- }
- var b = a.prototype = new createjs.EventDispatcher;
- b.src = null, b.uniqueId = -1, b.playState = null, b._owner = null, b.loaded = !1, b._offset = 0, b._delay = 0, b._volume = 1;
- try {
- Object.defineProperty(b, "volume", {get: function() {
- return this._volume
- },set: function(a) {
- null != Number(a) && (a = Math.max(0, Math.min(1, a)), this._volume = a, this._updateVolume())
- }})
- } catch (c) {
- }
- b.pan = 0, b._duration = 0, b._remainingLoops = 0, b._delayTimeoutId = null, b.tag = null, b._muted = !1, b._paused = !1, b._endedHandler = null, b._readyHandler = null, b._stalledHandler = null, b.loopHandler = null, b._init = function(a, b) {
- this.src = a, this._owner = b, this._endedHandler = createjs.proxy(this._handleSoundComplete, this), this._readyHandler = createjs.proxy(this._handleSoundReady, this), this._stalledHandler = createjs.proxy(this._handleSoundStalled, this), this.loopHandler = createjs.proxy(this.handleSoundLoop, this)
- }, b._sendEvent = function(a) {
- var b = new createjs.Event(a);
- this.dispatchEvent(b)
- }, b._cleanUp = function() {
- var a = this.tag;
- if (null != a) {
- a.pause(), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this.loopHandler, !1);
- try {
- a.currentTime = 0
- } catch (b) {
- }
- createjs.HTMLAudioPlugin.TagPool.setInstance(this.src, a), this.tag = null
- }
- clearTimeout(this._delayTimeoutId), null != window.createjs && createjs.Sound._playFinished(this)
- }, b._interrupt = function() {
- null != this.tag && (this.playState = createjs.Sound.PLAY_INTERRUPTED, this._cleanUp(), this._paused = !1, this._sendEvent("interrupted"))
- }, b.play = function(a, b, c, d, e, f) {
- this._cleanUp(), createjs.Sound._playInstance(this, a, b, c, d, e, f)
- }, b._beginPlaying = function(a, b, c, d) {
- if (null == window.createjs)
- return -1;
- var e = this.tag = createjs.HTMLAudioPlugin.TagPool.getInstance(this.src);
- return null == e ? (this.playFailed(), -1) : (e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), this._offset = a, this.volume = c, this.pan = d, this._updateVolume(), this._remainingLoops = b, 4 !== e.readyState ? (e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, !1), e.preload = "auto", e.load()) : this._handleSoundReady(null), this._sendEvent("succeeded"), 1)
- }, b._handleSoundStalled = function() {
- this._cleanUp(), this._sendEvent("failed")
- }, b._handleSoundReady = function() {
- if (null != window.createjs) {
- if (this._duration = 1e3 * this.tag.duration, this.playState = createjs.Sound.PLAY_SUCCEEDED, this._paused = !1, this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), this._offset >= this.getDuration())
- return void this.playFailed();
- this._offset > 0 && (this.tag.currentTime = .001 * this._offset), -1 == this._remainingLoops && (this.tag.loop = !0), 0 != this._remainingLoops && (this.tag.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this.loopHandler, !1), this.tag.loop = !0), this.tag.play()
- }
- }, b.pause = function() {
- return this._paused || this.playState != createjs.Sound.PLAY_SUCCEEDED || null == this.tag ? !1 : (this._paused = !0, this.tag.pause(), clearTimeout(this._delayTimeoutId), !0)
- }, b.resume = function() {
- return this._paused && null != this.tag ? (this._paused = !1, this.tag.play(), !0) : !1
- }, b.stop = function() {
- return this._offset = 0, this.pause(), this.playState = createjs.Sound.PLAY_FINISHED, this._cleanUp(), !0
- }, b.setMasterVolume = function() {
- return this._updateVolume(), !0
- }, b.setVolume = function(a) {
- return this.volume = a, !0
- }, b._updateVolume = function() {
- if (null != this.tag) {
- var a = this._muted || createjs.Sound._masterMute ? 0 : this._volume * createjs.Sound._masterVolume;
- return a != this.tag.volume && (this.tag.volume = a), !0
- }
- return !1
- }, b.getVolume = function() {
- return this.volume
- }, b.setMasterMute = function() {
- return this._updateVolume(), !0
- }, b.setMute = function(a) {
- return null == a || void 0 == a ? !1 : (this._muted = a, this._updateVolume(), !0)
- }, b.getMute = function() {
- return this._muted
- }, b.setPan = function() {
- return !1
- }, b.getPan = function() {
- return 0
- }, b.getPosition = function() {
- return null == this.tag ? this._offset : 1e3 * this.tag.currentTime
- }, b.setPosition = function(a) {
- if (null == this.tag)
- this._offset = a;
- else {
- this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this.loopHandler, !1);
- try {
- this.tag.currentTime = .001 * a
- } catch (b) {
- return !1
- }
- this.tag.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this.loopHandler, !1)
- }
- return !0
- }, b.getDuration = function() {
- return this._duration
- }, b._handleSoundComplete = function() {
- this._offset = 0, null != window.createjs && (this.playState = createjs.Sound.PLAY_FINISHED, this._cleanUp(), this._sendEvent("complete"))
- }, b.handleSoundLoop = function() {
- this._offset = 0, this._remainingLoops--, 0 == this._remainingLoops && (this.tag.loop = !1, this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this.loopHandler, !1)), this._sendEvent("loop")
- }, b.playFailed = function() {
- null != window.createjs && (this.playState = createjs.Sound.PLAY_FAILED, this._cleanUp(), this._sendEvent("failed"))
- }, b.toString = function() {
- return "[HTMLAudioPlugin SoundInstance]"
- }, createjs.HTMLAudioPlugin.SoundInstance = a
- }(), function() {
- "use strict";
- function a(a, b) {
- this._init(a, b)
- }
- var b = a.prototype;
- b.src = null, b.tag = null, b.preloadTimer = null, b.loadedHandler = null, b._init = function(a, b) {
- if (this.src = a, this.tag = b, this.preloadTimer = setInterval(createjs.proxy(this.preloadTick, this), 200), this.loadedHandler = createjs.proxy(this.sendLoadedEvent, this), this.tag.addEventListener && this.tag.addEventListener("canplaythrough", this.loadedHandler), null == this.tag.onreadystatechange)
- this.tag.onreadystatechange = createjs.proxy(this.sendLoadedEvent, this);
- else {
- var c = this.tag.onreadystatechange;
- this.tag.onreadystatechange = function() {
- c(), this.tag.onreadystatechange = createjs.proxy(this.sendLoadedEvent, this)
- }
- }
- this.tag.preload = "auto", this.tag.load()
- }, b.preloadTick = function() {
- var a = this.tag.buffered, b = this.tag.duration;
- a.length > 0 && a.end(0) >= b - 1 && this.handleTagLoaded()
- }, b.handleTagLoaded = function() {
- clearInterval(this.preloadTimer)
- }, b.sendLoadedEvent = function() {
- this.tag.removeEventListener && this.tag.removeEventListener("canplaythrough", this.loadedHandler), this.tag.onreadystatechange = null, createjs.Sound._sendFileLoadEvent(this.src)
- }, b.toString = function() {
- return "[HTMLAudioPlugin Loader]"
- }, createjs.HTMLAudioPlugin.Loader = a
- }(), function() {
- "use strict";
- function a(a) {
- this._init(a)
- }
- var b = a;
- b.tags = {}, b.get = function(c) {
- var d = b.tags[c];
- return null == d && (d = b.tags[c] = new a(c)), d
- }, b.remove = function(a) {
- var c = b.tags[a];
- return null == c ? !1 : (c.removeAll(), delete b.tags[a], !0)
- }, b.removeAll = function() {
- for (var a in b.tags)
- b.tags[a].removeAll();
- b.tags = {}
- }, b.getInstance = function(a) {
- var c = b.tags[a];
- return null == c ? null : c.get()
- }, b.setInstance = function(a, c) {
- var d = b.tags[a];
- return null == d ? null : d.set(c)
- }, b.checkSrc = function(a) {
- var c = b.tags[a];
- return null == c ? null : void c.checkSrcChange()
- };
- var c = a.prototype;
- c.src = null, c.length = 0, c.available = 0, c.tags = null, c._init = function(a) {
- this.src = a, this.tags = []
- }, c.add = function(a) {
- this.tags.push(a), this.length++, this.available++
- }, c.removeAll = function() {
- for (; this.length--; )
- delete this.tags[this.length];
- this.src = null, this.tags.length = 0
- }, c.get = function() {
- if (0 == this.tags.length)
- return null;
- this.available = this.tags.length;
- var a = this.tags.pop();
- return null == a.parentNode && document.body.appendChild(a), a
- }, c.set = function(a) {
- var b = createjs.indexOf(this.tags, a);
- -1 == b && this.tags.push(a), this.available = this.tags.length
- }, c.checkSrcChange = function() {
- for (var a = this.tags.length - 1, b = this.tags[a].src; a--; )
- this.tags[a].src = b
- }, c.toString = function() {
- return "[HTMLAudioPlugin TagPool]"
- }, createjs.HTMLAudioPlugin.TagPool = a
- }();
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text1 = {id: "text1",count: 99,perRow: 9,normalPairs: [{x: 2128,y: 30,id: "0x1f9fb379"}, {x: 3057.5,y: 30,id: "0x1792e8cf"}, {x: 3455.5,y: 713,id: "0x1cf42472"}, {x: 2137,y: 1170,id: "0x1d30d7dc"}, {x: 64.5,y: 1363,id: "0x10dafa16"}, {x: 2001,y: 1398,id: "0x1f46e657"}, {x: 2582,y: 1625,id: "0x1196ba39"}, {x: 406,y: 2082,id: "0x140c2052"}, {x: 246.5,y: 2538,id: "0x117a05b6"}, {x: 1229,y: 3222,id: "0x14e73823"}, {x: 2200.5,y: 3222,id: "0x1fef82c3"}, {x: 3435.5,y: 3222,id: "0x1aab257c"}, {x: 425,y: 3449,id: "0x17b65ec6"}, {x: 2852,y: 3449,id: "0x1909add5"}, {x: 563,y: 3677,id: "0x14d3b092"}, {x: 658.5,y: 3906,id: "0x15bdbc24"}, {x: 1837.5,y: 4134,id: "0x184b0337"}, {x: 3140,y: 4590,id: "0x11d9f79d"}, {x: 658.5,y: 4818,id: "0x18258833"}, {x: 2633,y: 4818,id: "0x1084692a"}],monsterPairs: [{x: 2920,y: 257,id: "0x1d9e2f10"}, {x: 1991,y: 486,id: "0x1df72778"}, {x: 2614,y: 941,id: "0x12cf9ab4"}, {x: 1708,y: 1853,id: "0x1b394ebd"}, {x: 1503,y: 4361,id: "0x1d813341"}, {x: 543,y: 4590,id: "0x1d48bd67"}, {x: 1959,y: 5045,id: "0x11dc701a"}],smallWidth: 600,smallHeight: 763,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text2 = {id: "text2",count: 72,perRow: 9,normalPairs: [{x: 1247,y: 248,id: "0x2e24e354"}, {x: 626,y: 476,id: "0x26ea7859"}, {x: 2926.5,y: 932,id: "0x25f3701a"}, {x: 243.5,y: 1388,id: "0x2d8d68d7"}, {x: 3721.5,y: 1388,id: "0x21bfd3dd"}, {x: 1631.5,y: 1843,id: "0x262a1d34"}, {x: 2606,y: 2072,id: "0x2ece3666"}, {x: 378.5,y: 2300,id: "0x284d8a75"}, {x: 1609.5,y: 3212,id: "0x227941bb"}, {x: 2992.5,y: 3212,id: "0x23722108"}, {x: 388.5,y: 3440,id: "0x2bcc5941"}],monsterPairs: [{x: 1727.5,y: 19,id: "0x2c1d4403"}, {x: 2009.5,y: 247,id: "0x21b5d22d"}, {x: 3189.5,y: 247,id: "0x2e1f17fc"}, {x: 1852.5,y: 703,id: "0x219e6d8d"}, {x: 176.5,y: 931,id: "0x24824f31"}, {x: 2071.5,y: 931,id: "0x25ecfbd7"}, {x: 1504.5,y: 1160,id: "0x2e4d9ea5"}, {x: 2343.5,y: 1387,id: "0x2e3c0e2b"}, {x: 1882.5,y: 1615,id: "0x203be376"}, {x: 2615.5,y: 1844,id: "0x2e2d7017"}, {x: 555.5,y: 2072,id: "0x2ac61f16"}, {x: 1894,y: 2528,id: "0x2cf59789"}, {x: 2382.5,y: 2983,id: "0x2e794d1a"}, {x: 1975.5,y: 3212,id: "0x2d5b3f16"}, {x: 2636.5,y: 3212,id: "0x27286a14"}, {x: 96.5,y: 3440,id: "0x22600751"}],smallWidth: 600,smallHeight: 528,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text3 = {id: "text3",count: 72,perRow: 9,normalPairs: [{x: 1100.5,y: 486,id: "0x3409fe7f"}, {x: 1249.5,y: 942,id: "0x350f5999"}, {x: 404,y: 1625,id: "0x36017681"}, {x: 1450,y: 1853,id: "0x3ad8e0dd"}, {x: 1069,y: 2082,id: "0x3c76dfd9"}, {x: 3041.5,y: 2537,id: "0x357ead4b"}, {x: 201,y: 2766,id: "0x3f9a21d9"}, {x: 3022,y: 2766,id: "0x3d630d40"}, {x: 1107.5,y: 2960,id: "0x3c1a0c9a"}, {x: 3467,y: 2993,id: "0x3c9076e4"}, {x: 181.5,y: 3449,id: "0x3d2d3ddb"}],monsterPairs: [{x: 193,y: 30,id: "0x3abf441a"}, {x: 255.5,y: 257,id: "0x35f1b3e6"}, {x: 3277,y: 257,id: "0x3872e49a"}, {x: 488,y: 714,id: "0x3d751abf"}, {x: 656,y: 941,id: "0x303128d1"}, {x: 861.5,y: 1398,id: "0x3b5c90ec"}, {x: 2411,y: 1625,id: "0x37276145"}, {x: 2261,y: 1853,id: "0x3a63585b"}, {x: 728,y: 2309,id: "0x3fc2da23"}],smallWidth: 600,smallHeight: 529,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text4 = {id: "text4",count: 54,perRow: 9,normalPairs: [{x: 246.5,y: 30,id: "0x4641a81c"}, {x: 183,y: 942,id: "0x47919caf"}, {x: 1188,y: 1170,id: "0x43a8401f"}, {x: 406,y: 1626,id: "0x4d5dc7f8"}, {x: 1377.5,y: 1626,id: "0x48c1d5af"}, {x: 2612.5,y: 1626,id: "0x486cfee2"}, {x: 3562,y: 1626,id: "0x47319a94"}, {x: 2091.5,y: 1854,id: "0x42d87fa9"}, {x: 3169,y: 1854,id: "0x47c256a2"}, {x: 3478.5,y: 2081,id: "0x40be2822"}, {x: 152.5,y: 2538,id: "0x419bf6b5"}],monsterPairs: [{x: 173.5,y: 257,id: "0x4a3fdf42"}, {x: 1557,y: 486,id: "0x44b0e48b"}, {x: 881.5,y: 714,id: "0x47dc5b01"}],smallWidth: 600,smallHeight: 431,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text5 = {id: "text5",count: 108,perRow: 9,normalPairs: [{x: 2622,y: 486,id: "0x5c7ad96a"}, {x: 593,y: 1170,id: "0x5ea945f2"}, {x: 1639,y: 1170,id: "0x52ef587a"}, {x: 3021,y: 1170,id: "0x5c4de56a"}, {x: 151,y: 2993,id: "0x5bf5ad6c"}, {x: 1037,y: 2993,id: "0x5a5c3567"}, {x: 3337.5,y: 2993,id: "0x5eadf72d"}, {x: 3064.5,y: 3221,id: "0x524e43b9"}, {x: 3337,y: 3450,id: "0x5d251995"}, {x: 762,y: 3678,id: "0x5c57a34f"}, {x: 1182,y: 4134,id: "0x5484ae94"}, {x: 2178,y: 4134,id: "0x5f286ebe"}, {x: 1217.5,y: 4362,id: "0x552dcc9e"}, {x: 2453,y: 4362,id: "0x50976b5f"}, {x: 3610.5,y: 4590,id: "0x5f200aeb"}, {x: 1049,y: 4817,id: "0x53c24f56"}, {x: 1430.5,y: 5012,id: "0x5e22fcc9"}, {x: 593.5,y: 5045,id: "0x51ebc45e"}, {x: 1925.5,y: 5273,id: "0x5e53e11a"}],monsterPairs: [{x: 772,y: 30,id: "0x583fc0a6"}, {x: 498.5,y: 257,id: "0x57abb7a1"}, {x: 1806,y: 941,id: "0x59ee1a60"}, {x: 446.5,y: 1626,id: "0x53aefec4"}, {x: 350,y: 3222,id: "0x5b1f689b"}, {x: 1364,y: 4590,id: "0x55b57a0a"}, {x: 793.5,y: 5274,id: "0x5e648bea"}, {x: 1861.5,y: 5501,id: "0x5b8c3d34"}],smallWidth: 600,smallHeight: 863,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text6 = {id: "text6",count: 54,perRow: 9,normalPairs: [{x: 2716,y: 30,id: "0x65153ecf"}, {x: 159,y: 257,id: "0x6679b6e1"}, {x: 2684,y: 485,id: "0x6dba2c2e"}, {x: 160,y: 713,id: "0x6bd1fa37"}, {x: 1688.5,y: 1854,id: "0x67929a66"}, {x: 3222,y: 1854,id: "0x655b4a51"}, {x: 623.5,y: 2081,id: "0x6ab5bac4"}, {x: 201,y: 2309,id: "0x660bd3af"}, {x: 3567.5,y: 2309,id: "0x619fdde5"}, {x: 2599.5,y: 2538,id: "0x625f6b25"}],monsterPairs: [{x: 958.5,y: 30,id: "0x6a2a331d"}, {x: 2915,y: 713,id: "0x6cd6d378"}, {x: 1456,y: 941,id: "0x624181a5"}, {x: 3258.5,y: 1170,id: "0x6f12b302"}, {x: 187.5,y: 1854,id: "0x65dd318e"}, {x: 1753,y: 2310,id: "0x666738b4"}, {x: 969,y: 2766,id: "0x61e5775e"}, {x: 1754,y: 2766,id: "0x6709ce19"}],smallWidth: 600,smallHeight: 429,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- saemmelGame.tiles = saemmelGame.tiles || {}, saemmelGame.tiles.text7 = {id: "text7",count: 90,perRow: 9,normalPairs: [{x: 68.5,y: 27,id: "0x734ab78c"}, {x: 2315,y: 289,id: "0x79e27824"}, {x: 245,y: 745,id: "0x78f4c489"}, {x: 2991.5,y: 745,id: "0x7c384004"}, {x: 1288,y: 973,id: "0x76de0b0d"}, {x: 2522.5,y: 973,id: "0x72189300"}, {x: 361,y: 1200,id: "0x754c5865"}, {x: 3519,y: 1200,id: "0x7f6142bf"}, {x: 3138,y: 1428,id: "0x7c7bc1b0"}, {x: 922,y: 1657,id: "0x74524391"}, {x: 1267.5,y: 1657,id: "0x7928947e"}, {x: 3287.5,y: 1657,id: "0x73e7dd4d"}, {x: 235,y: 2112,id: "0x7916e545"}, {x: 974,y: 2341,id: "0x71f079dd"}, {x: 2693,y: 2341,id: "0x7ba3c853"}, {x: 3604,y: 2341,id: "0x731729c2"}, {x: 2927.5,y: 2796,id: "0x7ad27d4b"}, {x: 350,y: 3481,id: "0x7790df92"}, {x: 2981,y: 3709,id: "0x7235a1be"}, {x: 940,y: 3936,id: "0x7df30c1c"}, {x: 678,y: 4164,id: "0x799311ec"}, {x: 3043,y: 4164,id: "0x7134efc1"}, {x: 350,y: 4393,id: "0x7fee140a"}, {x: 1163,y: 4393,id: "0x77ebec1b"}, {x: 1954,y: 4393,id: "0x7a2e118e"}],monsterPairs: [{x: 3298,y: 61,id: "0x79b7b3f2"}, {x: 201,y: 2796,id: "0x773119d6"}, {x: 1276.5,y: 3025,id: "0x7376b156"}, {x: 1122,y: 4848,id: "0x71f049e6"}],smallWidth: 600,smallHeight: 739,zoom: 6.8333333333333};
- var saemmelGame = saemmelGame || {};
- !function() {
- JumpAnimation = function() {
- this.initialize()
- }, JumpAnimation._SpriteSheet = new createjs.SpriteSheet({images: ["img/jump-animation.png"],frames: [[0, 0, 190, 117, 0, 0, 0], [190, 0, 190, 117, 0, 0, 0], [380, 0, 190, 117, 0, 0, 0], [570, 0, 190, 117, 0, 0, 0], [760, 0, 190, 117, 0, 0, 0], [950, 0, 190, 117, 0, 0, 0], [1140, 0, 190, 117, 0, 0, 0], [1330, 0, 190, 117, 0, 0, 0], [1520, 0, 190, 117, 0, 0, 0], [1710, 0, 190, 117, 0, 0, 0], [0, 117, 190, 117, 0, 0, 0], [190, 117, 190, 117, 0, 0, 0], [380, 117, 190, 117, 0, 0, 0], [570, 117, 190, 117, 0, 0, 0], [760, 117, 190, 117, 0, 0, 0], [950, 117, 190, 117, 0, 0, 0], [1140, 117, 190, 117, 0, 0, 0], [1330, 117, 190, 117, 0, 0, 0], [1520, 117, 190, 117, 0, 0, 0], [1710, 117, 190, 117, 0, 0, 0], [0, 234, 190, 117, 0, 0, 0], [190, 234, 190, 117, 0, 0, 0], [380, 234, 190, 117, 0, 0, 0], [570, 234, 190, 117, 0, 0, 0], [760, 234, 190, 117, 0, 0, 0], [950, 234, 190, 117, 0, 0, 0], [1140, 234, 190, 117, 0, 0, 0], [1330, 234, 190, 117, 0, 0, 0], [1520, 234, 190, 117, 0, 0, 0], [1710, 234, 190, 117, 0, 0, 0], [0, 351, 190, 117, 0, 0, 0], [190, 351, 190, 117, 0, 0, 0], [380, 351, 190, 117, 0, 0, 0], [570, 351, 190, 117, 0, 0, 0], [760, 351, 190, 117, 0, 0, 0], [950, 351, 190, 117, 0, 0, 0], [1140, 351, 190, 117, 0, 0, 0], [1330, 351, 190, 117, 0, 0, 0], [1520, 351, 190, 117, 0, 0, 0], [1710, 351, 190, 117, 0, 0, 0], [0, 468, 190, 117, 0, 0, 0], [190, 468, 190, 117, 0, 0, 0], [380, 468, 190, 117, 0, 0, 0], [570, 468, 190, 117, 0, 0, 0], [760, 468, 190, 117, 0, 0, 0], [950, 468, 190, 117, 0, 0, 0], [1140, 468, 190, 117, 0, 0, 0], [1330, 468, 190, 117, 0, 0, 0], [1520, 468, 190, 117, 0, 0, 0], [1710, 468, 190, 117, 0, 0, 0], [0, 585, 190, 117, 0, 0, 0], [190, 585, 190, 117, 0, 0, 0], [380, 585, 190, 117, 0, 0, 0], [570, 585, 190, 117, 0, 0, 0], [760, 585, 190, 117, 0, 0, 0], [950, 585, 190, 117, 0, 0, 0], [1140, 585, 190, 117, 0, 0, 0], [1330, 585, 190, 117, 0, 0, 0], [1520, 585, 190, 117, 0, 0, 0], [1710, 585, 190, 117, 0, 0, 0], [0, 702, 190, 117, 0, 0, 0], [190, 702, 190, 117, 0, 0, 0], [380, 702, 190, 117, 0, 0, 0], [570, 702, 190, 117, 0, 0, 0], [760, 702, 190, 117, 0, 0, 0], [950, 702, 190, 117, 0, 0, 0], [1140, 702, 190, 117, 0, 0, 0], [1330, 702, 190, 117, 0, 0, 0], [1520, 702, 190, 117, 0, 0, 0], [1710, 702, 190, 117, 0, 0, 0], [0, 819, 190, 117, 0, 0, 0], [190, 819, 190, 117, 0, 0, 0], [380, 819, 190, 117, 0, 0, 0], [570, 819, 190, 117, 0, 0, 0], [760, 819, 190, 117, 0, 0, 0], [950, 819, 190, 117, 0, 0, 0], [1140, 819, 190, 117, 0, 0, 0], [1330, 819, 190, 117, 0, 0, 0], [1520, 819, 190, 117, 0, 0, 0], [1710, 819, 190, 117, 0, 0, 0], [0, 936, 190, 117, 0, 0, 0], [190, 936, 190, 117, 0, 0, 0], [380, 936, 190, 117, 0, 0, 0], [570, 936, 190, 117, 0, 0, 0], [760, 936, 190, 117, 0, 0, 0], [950, 936, 190, 117, 0, 0, 0], [1140, 936, 190, 117, 0, 0, 0], [1330, 936, 190, 117, 0, 0, 0], [1520, 936, 190, 117, 0, 0, 0], [1710, 936, 190, 117, 0, 0, 0], [0, 1053, 190, 117, 0, 0, 0], [190, 1053, 190, 117, 0, 0, 0], [380, 1053, 190, 117, 0, 0, 0], [570, 1053, 190, 117, 0, 0, 0], [760, 1053, 190, 117, 0, 0, 0], [950, 1053, 190, 117, 0, 0, 0], [1140, 1053, 190, 117, 0, 0, 0], [1330, 1053, 190, 117, 0, 0, 0], [1520, 1053, 190, 117, 0, 0, 0], [1710, 1053, 190, 117, 0, 0, 0], [0, 1170, 190, 117, 0, 0, 0], [190, 1170, 190, 117, 0, 0, 0], [380, 1170, 190, 117, 0, 0, 0], [570, 1170, 190, 117, 0, 0, 0], [760, 1170, 190, 117, 0, 0, 0], [950, 1170, 190, 117, 0, 0, 0], [1140, 1170, 190, 117, 0, 0, 0], [1330, 1170, 190, 117, 0, 0, 0], [1520, 1170, 190, 117, 0, 0, 0], [1710, 1170, 190, 117, 0, 0, 0], [0, 1287, 190, 117, 0, 0, 0], [190, 1287, 190, 117, 0, 0, 0], [380, 1287, 190, 117, 0, 0, 0], [570, 1287, 190, 117, 0, 0, 0], [760, 1287, 190, 117, 0, 0, 0], [950, 1287, 190, 117, 0, 0, 0], [1140, 1287, 190, 117, 0, 0, 0], [1330, 1287, 190, 117, 0, 0, 0], [1520, 1287, 190, 117, 0, 0, 0], [1710, 1287, 190, 117, 0, 0, 0], [0, 1404, 190, 117, 0, 0, 0], [190, 1404, 190, 117, 0, 0, 0], [380, 1404, 190, 117, 0, 0, 0], [570, 1404, 190, 117, 0, 0, 0], [760, 1404, 190, 117, 0, 0, 0], [950, 1404, 190, 117, 0, 0, 0], [1140, 1404, 190, 117, 0, 0, 0], [1330, 1404, 190, 117, 0, 0, 0], [1520, 1404, 190, 117, 0, 0, 0], [1710, 1404, 190, 117, 0, 0, 0], [0, 1521, 190, 117, 0, 0, 0], [190, 1521, 190, 117, 0, 0, 0], [380, 1521, 190, 117, 0, 0, 0], [570, 1521, 190, 117, 0, 0, 0], [760, 1521, 190, 117, 0, 0, 0], [950, 1521, 190, 117, 0, 0, 0]]});
- var a = JumpAnimation.prototype = new createjs.Sprite;
- a.Sprite_initialize = a.initialize, a.initialize = function() {
- this.Sprite_initialize(JumpAnimation._SpriteSheet), this.paused = !1
- }, saemmelGame.JumpAnimation = JumpAnimation
- }();
- var saemmelGame = saemmelGame || {};
- saemmelGame.data = saemmelGame.data || {}, saemmelGame.data.images = saemmelGame.data.images || {}, function(a, b) {
- var c, d = 15, e = 19;
- (a.ScoreAnimation = function() {
- this.initialize(), this.instance = new a.scoreanimation, this.instance.setTransform(354, 288, 1, 1, 0, 0, 0, 84, 97), this.addChild(this.instance)
- }).prototype = c = new b.Container, c.nominalBounds = new b.Rectangle(463.6, 319, 179.4, 146), (a.animationscore = function() {
- this.initialize(saemmelGame.Assets.getBaseImage("img_base_animation_score"))
- }).prototype = c = new b.Bitmap, c.nominalBounds = new b.Rectangle(0, 0, 168, 118), (a.animationstar = function() {
- this.initialize(saemmelGame.Assets.getBaseImage("img_base_animation_star"))
- }).prototype = c = new b.Bitmap, c.nominalBounds = new b.Rectangle(0, 0, 70, 68), (a.AnimationStar = function() {
- this.initialize(), this.instance = new a.animationstar, this.addChild(this.instance)
- }).prototype = c = new b.Container, c.nominalBounds = new b.Rectangle(0, 0, 70, 68), (a.AnimationScore = function() {
- this.initialize(), this.instance = new a.animationscore, this.addChild(this.instance)
- }).prototype = c = new b.Container, c.nominalBounds = new b.Rectangle(0, 0, 168, 118), (a.scoreanimation = function(c, f, g) {
- null == g && (g = !1), this.initialize(c, f, g, {}), this.instance = new a.AnimationScore, this.instance.setTransform(14, 15, 1, 1, 0, 0, 0, 84, 59), this.timeline.addTween(b.Tween.get(this.instance).to({y: -95,alpha: 0}, e, b.Ease.get(1)).wait(1)), this.instance_1 = new a.AnimationStar, this.instance_1.setTransform(-13.4, 56, .529, .529, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_1).to({x: -150.4,y: 184,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_2 = new a.AnimationStar, this.instance_2.setTransform(-50.5, 38, .529, .529, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_2).to({x: -227.2,y: 22,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_3 = new a.AnimationStar, this.instance_3.setTransform(-56.7, -8, .706, .706, 0, 0, 0, 34.9, 34), this.timeline.addTween(b.Tween.get(this.instance_3).to({x: -193.7,y: -165,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_4 = new a.AnimationStar, this.instance_4.setTransform(35, 40, 1, 1, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_4).to({x: 133,y: 205,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_5 = new a.AnimationStar, this.instance_5.setTransform(61, 7, .588, .588, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_5).to({x: 258,y: 54,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_6 = new a.AnimationStar, this.instance_6.setTransform(25.4, -23, 1, 1, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_6).to({x: 184.6,y: -151,alpha: 0}, d, b.Ease.get(1)).wait(11)), this.instance_7 = new a.AnimationStar, this.instance_7.setTransform(-9, -38, 1, 1, 0, 0, 0, 35, 34), this.timeline.addTween(b.Tween.get(this.instance_7).to({x: -10,y: -206,alpha: 0}, d, b.Ease.get(1)).wait(11))
- }).prototype = c = new b.MovieClip, c.nominalBounds = new b.Rectangle(-81.4, -72, 179.4, 146)
- }(saemmelGame, createjs);
- var saemmelGame = saemmelGame || {};
- !function() {
- function a(a) {
- this.initialize(a || {})
- }
- var b = a.prototype = new createjs.Container;
- b.Container_initialize = b.initialize, b.initialize = function(a) {
- this.Container_initialize(), this.mouseChildren = !1;
- var b = a.color || "#000", c = a.width || 10, d = a.width || 10, e = a.gap || 10, f = new createjs.Shape;
- f.graphics.beginFill(b).drawRect(0, 0, c, d), f.x = .5 * -(c + e), this.addChild(f);
- var g = new createjs.Shape;
- g.graphics.beginFill(b).drawRect(0, 0, c, d), g.x = .5 * (c + e), this.addChild(g)
- }, saemmelGame.DotPair = a
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a, b, c, d, e = function(a) {
- this.initialize(a || {})
- }, f = e.prototype = new createjs.Container;
- e.prototype.Container_initialize = f.initialize, e.prototype.initialize = function(a) {
- this.Container_initialize();
- var e = new createjs.Shape;
- e.graphics.beginFill("#F00").drawRect(0, 0, a.width || 0, a.height || 0), this.addChild(e), b = new createjs.Text("Punkte:", "30px DBSansBold", "#FFF"), b.x = 26, b.y = 26, this.addChild(b), this.setScore(a.score || 0), c = new saemmelGame.HelpButton("?", "40px DBSansBold", "#FFF", "#F00"), c.x = 665, c.y = 16, this.addChild(c), d = new saemmelGame.ToggleButton(new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_sound_button_on")), new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_sound_button_off")), !0), d.x = 580, d.y = 32, d.on("enable", function() {
- saemmelGame.SoundService.enableAllSounds()
- }), d.on("disable", function() {
- saemmelGame.SoundService.disableAllSounds()
- }), this.addChild(d)
- }, e.prototype.setScore = function(c) {
- a = c, b.text = "Punkte: " + a
- }, e.prototype.getScore = function() {
- return a
- }, e.prototype.getSoundButton = function() {
- return d
- }, saemmelGame.Header = e
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a = !1, b = function(a) {
- this.initialize(a || {})
- }, c = b.prototype = new createjs.Container;
- b.prototype.Container_initialize = c.initialize, b.prototype.initialize = function() {
- this.Container_initialize(), this.textContainer = new createjs.Container, this.dotContainer = new createjs.Container, this.addChild(this.textContainer), this.addChild(this.dotContainer)
- }, b.prototype.addText = function(a) {
- this.textContainer.addChild(a)
- }, b.prototype.removeText = function(a) {
- this.textContainer.removeChild(a)
- }, b.prototype.addDot = function(a) {
- this.dotContainer.addChild(a)
- }, b.prototype.removeDot = function(a) {
- this.dotContainer.removeChild(a)
- }, b.prototype.setOffsetX = function(a) {
- this.dotContainer.x = a, this.textContainer.x = a
- }, b.prototype.setOffsetY = function(a) {
- this.dotContainer.y = a, this.textContainer.y = a
- }, b.prototype.dispose = function() {
- a || (this.dotContainer.removeAllChildren(), this.dotContainer.removeAllEventListeners(), this.dotContainer = null, this.textContainer.removeAllChildren(), this.textContainer.removeAllEventListeners(), this.textContainer = null, this.removeAllChildren(), a = !0)
- }, saemmelGame.TextContainer = b
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a(d) {
- k > 0 && (d.delta -= k / 1e3, k = 0), e += d.delta / 1e3, h = 360 * e / c, b(h), e >= c && (createjs.Ticker.removeEventListener("tick", a), i && i.call())
- }
- function b(a) {
- f.graphics.clear(), f.graphics.lineWidth = 1, f.graphics.moveTo(0, 0), f.graphics.beginFill("#FFF");
- var b;
- for (b = 0; a >= b; b++)
- f.graphics.lineTo(d * Math.sin(b * Math.PI / 180), -d * Math.cos(b * Math.PI / 180));
- f.graphics.lineTo(0, 0), f.graphics.endFill()
- }
- var c, d, e, f, g, h, i, j, k, l = function(a) {
- this.initialize(a || {})
- }, m = l.prototype = new createjs.Container;
- m.Container_initialize = m.initialize, m.initialize = function(a) {
- this.Container_initialize(), c = a.duration || 0, d = a.radius || 25, f = new createjs.Shape, f.graphics.lineWidth = 1, f.graphics.moveTo(0, 0), f.graphics.lineTo(d, 0), f.x = 0, f.y = 0, this.addChild(f), g = new createjs.Shape, g.graphics.beginFill("#F00").drawCircle(0, 0, d / 2).endFill(), this.addChild(g)
- }, m.getDuration = function() {
- return c
- }, m.start = function(d, f) {
- b(0), i = f, e = 0, h = 0, c = d, createjs.Ticker.addEventListener("tick", a)
- }, m.pause = function() {
- j = (new Date).getTime(), createjs.Ticker.removeEventListener("tick", a)
- }, m.resume = function() {
- k = (new Date).getTime() - j, createjs.Ticker.addEventListener("tick", a)
- }, saemmelGame.Timer = l
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a, b, c = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, d = c.prototype = new createjs.Container;
- d.Container_initialize = d.initialize, d.initialize = function(c, d, e, f) {
- this.Container_initialize(), a = new createjs.Text(c, d, e), this.addChild(a), b = new createjs.Text(c, d, f), b.outline = !0, this.addChild(b)
- }, d.setText = function(c) {
- b.text = a.text = c
- }, d.getMeasuredWidth = function() {
- return a.getMeasuredWidth()
- }, d.getMeasuredLineHeight = function() {
- return a.getMeasuredLineHeight()
- }, saemmelGame.OutlinedLabel = c
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- saemmelGame.PostMessageService.post("onShowHelp", {})
- }
- var b, c, d = function(a, b, c, d) {
- this.initialize(a, b, c, d)
- }, e = d.prototype = new createjs.Container;
- e.Container_initialize = e.initialize, e.initialize = function(d, e, f, g) {
- this.Container_initialize();
- var h = new createjs.Rectangle(0, 0, 50, 50);
- b = new createjs.Shape, b.graphics.beginFill(g).drawRect(h.x, h.y, h.width, h.height).endFill(), this.addChild(b), c = new createjs.Text(d, e, f), c.mouseEnabled = !1, c.x = (h.width - c.getMeasuredWidth()) / 2, c.y = (h.height - c.getMeasuredLineHeight()) / 2, this.addChild(c), this.cursor = "pointer", this.addEventListener("click", a)
- }, saemmelGame.HelpButton = d
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- d--, c.text = d.toString()
- }
- function b() {
- a(), 0 === d ? (saemmelGame.SoundService.playCountDown("go"), clearInterval(e), f && f.call()) : saemmelGame.SoundService.playCountDown(d)
- }
- var c, d, e, f, g = function(a, b) {
- this.initialize(a, b)
- }, h = g.prototype = new createjs.Container;
- h.Container_initialize = h.initialize, h.initialize = function(a, b) {
- this.Container_initialize(), c = new createjs.Text("0", a, b), c.visible = !1, this.addChild(c)
- }, h.startBy = function(a, g) {
- f = g, c.visible = !0, d = a, c.text = d.toString(), saemmelGame.SoundService.playCountDown(d), e = setInterval(b, 1e3)
- }, h.getMeasuredWidth = function() {
- return c.getMeasuredWidth()
- }, h.getMeasuredLineHeight = function() {
- return c.getMeasuredLineHeight()
- }, saemmelGame.CountDown = g
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a, b = function() {
- this.initialize()
- }, c = b.prototype = new createjs.Container;
- c.Container_initialize = c.initialize, c.id = null, c.index = null, c.isHit = !1, c.isValidDot = !1, c.initialize = function() {
- this.Container_initialize(), a = new saemmelGame.JumpAnimation, a.x = -Math.round(95), a.y = -Math.round(58.5), this.cursor = "pointer", this.mouseChildren = !1, this.addChild(a)
- }, saemmelGame.Monster = b
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- i.toggle()
- }
- var b, c, d, e, f, g, h = function(a, e, f) {
- b = a, c = e, d = f ? !0 : !1, this.initialize()
- }, i = h.prototype = new createjs.Container;
- i.Container_initialize = i.initialize, i.initialize = function() {
- this.Container_initialize(), this.addChild(c), this.addChild(b), this.cursor = "pointer", d ? this.enable() : this.disable(), this.addEventListener("click", a)
- }, i.enable = function() {
- b.visible = !0, c.visible = !1, d = !0, e && e.call()
- }, i.disable = function() {
- b.visible = !1, c.visible = !0, d = !1, f && f.call()
- }, i.toggle = function() {
- d ? i.disable() : i.enable(), g && g.call()
- }, i.on = function(a, b) {
- switch (a) {
- case "enable":
- e = b;
- break;
- case "disable":
- f = b;
- break;
- case "toggle":
- g = b
- }
- }, i.isEnabled = function() {
- return d
- }, saemmelGame.ToggleButton = h
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a(c) {
- l > 0 && (c.delta -= l / 1e3, l = 0), g += c.delta / 1e3, i = 360 * g / e, b(i), g >= e && (createjs.Ticker.removeEventListener("tick", a), j && j.call())
- }
- function b(a) {
- h.graphics.clear(), h.graphics.lineWidth = 1, h.graphics.moveTo(0, 0), h.graphics.beginFill("#F00");
- var b;
- for (b = 0; a >= b; b++)
- h.graphics.lineTo(f * Math.sin(b * Math.PI / 180), -f * Math.cos(b * Math.PI / 180));
- h.graphics.lineTo(0, 0), h.graphics.endFill(), h.alpha = 0
- }
- var c, d, e, f, g, h, i, j, k, l, m = function(a) {
- this.initialize(a || {})
- }, n = m.prototype = new createjs.Container;
- n.Container_initialize = n.initialize, n.initialize = function(a) {
- this.Container_initialize(), c = new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_magnifier_red")), d = new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_magnifier")), this.addChild(c), this.addChild(d), e = a.duration || 0, f = d.image.width / 2, h = new createjs.Shape, h.graphics.lineWidth = 1, h.graphics.moveTo(0, 0), h.graphics.lineTo(f, 0), h.x = f, h.y = f, this.addChild(h), d.mask = h
- }, n.getDuration = function() {
- return e
- }, n.start = function(c, d) {
- b(0), j = d, g = 0, i = 0, e = c, createjs.Ticker.addEventListener("tick", a)
- }, n.pause = function() {
- k = (new Date).getTime(), createjs.Ticker.removeEventListener("tick", a)
- }, n.resume = function() {
- l = (new Date).getTime() - k, createjs.Ticker.addEventListener("tick", a)
- }, n.getWidth = function() {
- return c.image.width
- }, saemmelGame.Magnifier = m
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a, b, c = {x: 0,y: 0}, d = null, e = {x: 0,y: 0}, f = 1, g = 0, h = 0, i = .75, j = .75, k = function() {
- };
- k.prototype.initialize = function(c, d, i, j, k, l) {
- a = c, b = d, f = i, g = j, h = k, e = l || {x: 0,y: 0}, b.x -= 200
- }, k.prototype.onMove = function(e) {
- null === d && (d = {x: e.stageX - a.x,y: e.stageY - a.y}), c.x = a.x, c.y = a.y, a.x = e.stageX - d.x, a.y = e.stageY - d.y, b.x -= (c.x - a.x) * f, b.y -= (c.y - a.y) * f, (a.x < -g * i * .5 || a.x > g * i) && (b.x += (c.x - a.x) * f, a.x = c.x), (a.y < -h * j || a.y > h * j) && (b.y += (c.y - a.y) * f, a.y = c.y)
- }, k.prototype.onPressUp = function() {
- d = null
- }, k.prototype.reset = function() {
- a = null, b = null, c = {x: 0,y: 0}, d = null, e = {x: 0,y: 0}, f = 1, g = 0, h = 0
- }, saemmelGame.MoveBackgroundAdapter = k
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- var a = null, b = null, c = null, d = null, e = null, f = {x: 0,y: 0}, g = {x: 0,y: 0}, h = {x: 0,y: 0}, i = 1, j = 0, k = 0, l = 0, m = 0, n = function() {
- };
- n.prototype.initialize = function(e, h, n, o, p, q, r, s, t) {
- b = e, c = h, d = n, a = o, f = t, i = p, j = q, k = r, l = s, g = {x: f.x * i - (j * i - j),y: f.y * i - (k * i - k)}, m = k - l
- }, n.prototype.onMove = function(f) {
- null === e && (e = {x: f.stageX - b.x,y: f.stageY - b.y}), h.x = b.x, h.y = b.y, b.x = f.stageX - e.x, b.y = f.stageY - e.y, c.x = b.x + .5 * saemmelGame.Assets.getBaseImage("img_base_magnifier").height, c.y = b.y + .5 * saemmelGame.Assets.getBaseImage("img_base_magnifier").width, d.x = c.x, d.y = c.y, a.x = g.x * c.x / j, a.y = g.y * c.y / m
- }, n.prototype.onPressUp = function() {
- e = null
- }, n.prototype.reset = function() {
- a = null, b = null, c = null, d = null, e = null, f = {x: 0,y: 0}, g = {x: 0,y: 0}, h = {x: 0,y: 0}, i = 1, j = 0, k = 0, l = 0, m = 0
- }, saemmelGame.MoveMagnifierAdapter = n
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- c = [];
- var a, b;
- for (a = 0; d > a; a++)
- for (c[a] = [], b = 0; e > b; b++)
- c[a][b] = null
- }
- var b, c, d, e, f = function(c, f) {
- e = f, d = c, b = !1, a()
- };
- f.prototype.getItemAt = function(a, b) {
- return c[a][b]
- }, f.prototype.setItemAt = function(a, b, d) {
- c[a][b] = d
- }, f.prototype.dispose = function() {
- if (!b) {
- var a, f;
- for (a = 0; d > a; a++)
- for (f = 0; e > f; f++)
- c[a][f] = null;
- c = null, b = !0
- }
- }, saemmelGame.Grid = f
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- }
- var b = navigator.userAgent || navigator.vendor || window.opera;
- a.isMobile = function() {
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(b) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0, 4))
- }, a.isIPad = function() {
- return b.match(/iPad/i)
- }, saemmelGame.DeviceDetector = a
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a(a, b, c) {
- var d, e = b.split(c), f = a;
- for (d in e)
- f = f[e[d]];
- return f
- }
- function b() {
- }
- var c = {game: {frameRate: 30,pairScore: 2,duration: 60,maxScore: 500},dots: {width: 2.5,height: 3,gap: 2.5},label: {position: {x: null,y: null},offset: {x: 66,y: 40}},magnifier: {radius: 214,pctX: .5,pctY: null,y: 100},score: {level: null,start: null},pairs: [],tiles: {id: null,width: 512,height: 512,total: null,numCols: null,numRows: null},zoomedIn: {width: null,height: null},zoomedOut: {width: 733,height: null},zoomFactor: null};
- b.prototype.getValue = function(b) {
- return a(c, b, ".")
- }, b.prototype.importLevelConfig = function(a) {
- c.score.level = 0, c.score.start = a.startScore, c.tiles.id = a.tiles.id, c.tiles.total = a.tiles.count, c.tiles.numCols = a.tiles.perRow, c.tiles.numRows = a.tiles.count / a.tiles.perRow, c.pairs = [];
- var b, d;
- for (b = 0; b < a.tiles.monsterPairs.length; b++)
- d = a.tiles.monsterPairs[b], d.isValidDot = !1, c.pairs.push(d);
- for (b = 0; b < a.tiles.normalPairs.length; b++)
- d = a.tiles.normalPairs[b], d.isValidDot = !0, c.pairs.push(d);
- c.zoomFactor = a.tiles.zoom, c.zoomedIn.width = a.tiles.width * a.tiles.perRow, c.zoomedIn.height = saemmelGame.data.imagesLevel.img_level_small.height * a.tiles.zoom, c.zoomedOut.width = 733, c.zoomedOut.height = c.zoomedIn.height / a.tiles.zoom, c.magnifier.pctY = (c.magnifier.y + .5 * saemmelGame.data.imagesBase.img_base_magnifier.height) / c.zoomedOut.height
- }, saemmelGame.GameModel = b
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- }
- a.post = function(a, b) {
- window.parent.postMessage(JSON.stringify({type: a,data: b}), "*")
- }, saemmelGame.PostMessageService = a
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a(a) {
- return d !== !1 ? createjs.Sound.play(a) : void 0
- }
- function b() {
- }
- var c, d = !0;
- b.playBgLoop = function() {
- if (d) {
- if (c)
- return void c.play();
- c = createjs.Sound.play("snd_bg"), c.addEventListener("complete", function() {
- c.setPosition(0), c.play()
- })
- }
- }, b.pauseBgLoop = function() {
- c && c.pause()
- }, b.playRandomReaction = function() {
- var b = Math.round(1 + 3 * Math.random());
- a("snd_reaction_" + b)
- }, b.playResult = function(b) {
- var c = 1 / 3 >= b ? 1 : .75 >= b ? 2 : 3;
- a("snd_result_" + c)
- }, b.playCountDown = function(b) {
- ["1", "2", "3", "go"].indexOf(b.toString()) < 0 || a("snd_countdown_" + b)
- }, b.enableAllSounds = function() {
- d = !0, b.playBgLoop()
- }, b.disableAllSounds = function() {
- d = !1, b.pauseBgLoop()
- }, saemmelGame.SoundService = b
- }();
- var saemmelGame = saemmelGame || {};
- saemmelGame.data = {tiles: {}}, function() {
- function a() {
- var a = [];
- for (var b in e)
- d.indexOf(e[b].id) < 0 && (a[b] = e[b]);
- return a
- }
- function b(a) {
- d.push(a.item.id);
- var b = a.item.id.split("_");
- switch (a.item.type) {
- case "image":
- "img" === b[0] && ("base" === b[1] ? g[a.item.id] = a.result : "level" === b[1] && (f[a.item.id] = a.result))
- }
- }
- function c() {
- }
- var d = [], e = [{id: "snd_bg",src: "audio/bg.mp3"}, {id: "snd_reaction_1",src: "audio/reaction_1.mp3"}, {id: "snd_reaction_2",src: "audio/reaction_2.mp3"}, {id: "snd_reaction_3",src: "audio/reaction_3.mp3"}, {id: "snd_reaction_4",src: "audio/reaction_4.mp3"}, {id: "snd_countdown_go",src: "audio/countdown_go.mp3"}, {id: "snd_countdown_1",src: "audio/countdown_1.mp3"}, {id: "snd_countdown_2",src: "audio/countdown_2.mp3"}, {id: "snd_countdown_3",src: "audio/countdown_3.mp3"}, {id: "snd_result_1",src: "audio/result_1.mp3"}, {id: "snd_result_2",src: "audio/result_2.mp3"}, {id: "snd_result_3",src: "audio/result_3.mp3"}, {id: "img_base_animation_star",src: "img/animation-star.png"}, {id: "img_base_animation_score",src: "img/animation-score.png"}, {id: "img_base_background",src: "img/bg.jpg"}, {id: "img_base_magnifier_bg",src: "img/magnifier-bg.png"}, {id: "img_base_magnifier",src: "img/magnifier.png"}, {id: "img_base_magnifier_red",src: "img/magnifier-red.png"}, {id: "img_base_sound_button_on",src: "img/sound-button-on.png"}, {id: "img_base_sound_button_off",src: "img/sound-button-off.png"}], f = {}, g = {};
- c.loadRandomLevelAssets = function(a) {
- this.loadLevelAssets("text" + (1 + Math.round(Math.random() * (Object.keys(saemmelGame.tiles).length - 1))), a)
- }, c.loadLevelAssets = function(c, d) {
- f = {}, saemmelGame.data.tiles = saemmelGame.tiles[c];
- var e = a();
- e.push({id: "img_level_small",src: "img/texts/" + c + "/small.png"});
- var g = new createjs.LoadQueue;
- createjs.Sound.alternateExtensions = ["mp3"], g.installPlugin(createjs.Sound), g.on("fileload", b), g.on("complete", d), g.loadManifest(e)
- }, c.getBaseImage = function(a) {
- return g[a]
- }, c.getLevelImage = function(a) {
- return f[a]
- }, saemmelGame.Assets = c
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- var a;
- for (a = 0; a < G.text.tiles.pairs.length; a++)
- G.text.tiles.pairs[a].isHit = !1
- }
- function b() {
- L.mouseMoveOutside = !0, L.enableMouseOver(), createjs.Touch.enable(L), C = new createjs.Container, C.y = 91, L.addChild(C), C.addChild(new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_background"))), x = new saemmelGame.TextContainer, x.x = G.text.position.x + G.text.offset.x, x.y = G.text.position.y + G.text.offset.y, x.mouseEnabled = !1, x.addText(new createjs.Bitmap(saemmelGame.Assets.getLevelImage("img_level_small"))), C.addChild(x);
- var a = new createjs.Bitmap(saemmelGame.Assets.getBaseImage("img_base_magnifier_bg"));
- a.x = .5 * -a.image.width, a.y = .5 * -a.image.height, z = new createjs.Container, z.addChild(a), z.x = v * G.magnifier.pctX, z.y = G.magnifier.y + .5 * saemmelGame.Assets.getBaseImage("img_base_magnifier").height, C.addChild(z), D = new saemmelGame.CountDown("bold 252px Arial", "#333"), D.x = z.x - D.getMeasuredWidth() / 2, D.y = z.y - D.getMeasuredLineHeight() / 2, C.addChild(D), F = new saemmelGame.Grid(G.text.tiles.numRows, G.text.tiles.numCols), y = new saemmelGame.TextContainer, y.x = G.text.position.x * G.magnifier.zoom + (v - t) * G.magnifier.pctX, y.y = G.text.position.y * G.magnifier.zoom + (w - u) * G.magnifier.pctY, y.visible = !1, y.setOffsetX(G.text.offset.x * G.magnifier.zoom), y.setOffsetY(G.text.offset.y * G.magnifier.zoom), C.addChild(y);
- var b, c, d, e, f = G.text.tiles.pairs.length;
- for (d = 0; f > d; d++)
- e = G.text.tiles.pairs[d], c = new saemmelGame.Monster, c.id = e.id, c.x = e.x, c.y = e.y - 16, c.index = d, c.isValidDot = e.isValidDot, c.isHit = !1, c.scaleX = c.scaleY = .6, y.addDot(c), b = new saemmelGame.DotPair({color: "#F00",width: G.dotWidth,height: G.dotHeight,gap: G.dotWidth}), b.x = e.x / G.magnifier.zoom - 1, b.y = e.y / G.magnifier.zoom - 1, x.addDot(b), M.push(b);
- A = new createjs.Shape, A.graphics.beginFill("#000000").drawCircle(0, 0, G.magnifier.radius), A.x = z.x, A.y = z.y, A.alpha = .01, A.mouseEnabled = !1, C.addChild(A), E = new saemmelGame.Magnifier, E.x = (v - E.getWidth()) * G.magnifier.pctX, E.y = G.magnifier.y, E.mouseEnabled = !1, C.addChild(E), y.mask = A, i(), B = new saemmelGame.Header({score: J,width: v,height: 91}), L.addChild(B), L.update()
- }
- function c() {
- M = [], I = [], J = 0, K = 0, u = 0, t = 0, w = 0, v = 0, F && (F.dispose(), F = null), x && (x.dispose(), x = null), y && (y.dispose(), y = null), H && H.reset()
- }
- function d(a, b, c) {
- var d = Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));
- return c >= d
- }
- function e(a) {
- var b = new saemmelGame.ScoreAnimation;
- b.x = z.x - 270, b.y = z.y - 191, L.addChild(b), setTimeout(a, 500)
- }
- function f(a, b) {
- createjs.Tween.get(a).to({scaleX: .2,scaleY: .2,alpha: 0}, 350, createjs.Ease.backIn).call(function() {
- y.removeDot(a), b && b.call()
- })
- }
- function g(a) {
- var b = M[a], c = new saemmelGame.DotPair({color: "#333",width: G.dotWidth,height: G.dotHeight,gap: G.dotWidth});
- c.x = b.x, c.y = b.y, x.removeDot(b), x.addDot(c), M[a] = c
- }
- function h() {
- var a, b = 0, c = G.text.tiles.pairs.length;
- for (a = 0; c > a; a++)
- G.text.tiles.pairs[a].isHit === !1 && b++;
- return b
- }
- function i() {
- var a, b, c, e, f = {x: z.x,y: z.y}, g = Math.sqrt(Math.pow(G.text.tiles.width / 2, 2) + Math.pow(G.text.tiles.height / 2, 2)), h = g + G.magnifier.radius, i = 1;
- for (a = 0; a < G.text.tiles.numRows; a++)
- for (b = 0; b < G.text.tiles.numCols; b++)
- e = F.getItemAt(a, b), c = {x: y.x + G.text.tiles.width * b + G.text.tiles.width / 2 + G.text.offset.x * G.magnifier.zoom,y: y.y + G.text.tiles.height * a + G.text.tiles.height / 2 + G.text.offset.y * G.magnifier.zoom}, d(f, c, h) ? (null === e && (e = new createjs.Bitmap("img/texts/" + G.text.tiles.id + "/tile" + i + ".png"), e.x = G.text.tiles.width * b, e.y = G.text.tiles.width * a, e.mouseEnabled = !1, F.setItemAt(a, b, e)), y.addText(e)) : y.removeText(e), i++
- }
- function j(a) {
- J = a;
- var b = K + J;
- B.setScore(b > G.maxScore ? G.maxScore : b)
- }
- function k() {
- return J / (G.text.tiles.pairs.length * G.pairScore)
- }
- function l(a) {
- a.target instanceof saemmelGame.Monster && m(a.target)
- }
- function m(a) {
- if (!a.isHit) {
- a.isHit = !0, I.push(a.id);
- var b = a.isValidDot, c = a.index;
- b ? g(c) : x.removeDot(M[c]), f(a, function() {
- if (b) {
- var a = G.text.tiles.pairs[c], d = new saemmelGame.DotPair({color: "#333",width: G.dotWidth * G.magnifier.zoom,height: G.dotHeight * G.magnifier.zoom,gap: G.dotWidth * G.magnifier.zoom});
- d.x = a.x - 1.5 * G.magnifier.zoom, d.y = a.y - G.magnifier.zoom, y.addDot(d)
- }
- }), j(J + G.pairScore), e(), G.text.tiles.pairs[c].isHit = !0, saemmelGame.SoundService.playRandomReaction(), 0 === h() && q()
- }
- }
- function n(a) {
- H.onMove(a), i()
- }
- function o() {
- L.update()
- }
- function p() {
- O.pause(), setTimeout(function() {
- O.stopStageUpdate()
- }, 2e3), s2=[], $.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }),$.each(G.text.tiles.pairs, function(ind, a){s2.push( a.id); }), saemmelGame.PostMessageService.post("onTimeUp", {ids: s2,levelScore: s2.length*G.pairScore,totalScore: s2.length*G.pairScore + K,ratio: k(),maxLevelScore: G.text.tiles.pairs.length * G.pairScore}), saemmelGame.SoundService.playResult(k()), saemmelGame.SoundService.pauseBgLoop()
- }
- function q() {
- }
- function r(a) {
- G.text.tiles.id = a.tiles.id, G.text.tiles.total = a.tiles.count, G.text.tiles.pairs = [], G.text.tiles.numCols = a.tiles.perRow, G.text.tiles.numRows = a.tiles.count / a.tiles.perRow;
- var b, c;
- for (b = 0; b < a.tiles.monsterPairs.length; b++)
- c = a.tiles.monsterPairs[b], c.isValidDot = !1, G.text.tiles.pairs.push(c);
- for (b = 0; b < a.tiles.normalPairs.length; b++)
- c = a.tiles.normalPairs[b], c.isValidDot = !0, G.text.tiles.pairs.push(c);
- G.magnifier.zoom = a.tiles.zoom, t = G.text.tiles.width * G.text.tiles.numCols, u = saemmelGame.Assets.getLevelImage("img_level_small").height * G.magnifier.zoom, v = 733, w = u / G.magnifier.zoom, G.magnifier.pctY = (G.magnifier.y + saemmelGame.Assets.getBaseImage("img_base_magnifier").height / 2) / w
- }
- function s() {
- saemmelGame.DeviceDetector.isMobile() || saemmelGame.DeviceDetector.isIPad() ? (H = new saemmelGame.MoveBackgroundAdapter, H.initialize(x, y, saemmelGame.data.tiles.zoom, v, w + G.text.offset.y, G.text.offset)) : (H = new saemmelGame.MoveMagnifierAdapter, H.initialize(E, z, A, y, saemmelGame.data.tiles.zoom, v, w + G.text.offset.y, G.text.offset.y, {x: x.x,y: x.y}))
- }
- var t, u, v, w, x, y, z, A, B, C, D, E, F, G = {frameRate: 30,pairScore: 2,dotWidth: 2.5,dotHeight: 3,duration: 3,maxScore: 700,text: {position: {x: 0,y: 0},offset: {x: 66,y: 40},tiles: {id: null,width: 512,height: 512,total: 0,pairs: [],numCols: 0,numRows: 0}},magnifier: {radius: 214,pctX: .5,pctY: 0,y: 100,zoom: 1}}, H = null, I = [], J = 0, K = 0, L = new createjs.Stage("gameCanvas"), M = [], N = function() {
- }, O = N.prototype;
- O.init = function(d) {
- c(), r(d), a(), b(), s(), createjs.Ticker.setFPS(G.frameRate), createjs.Ticker.addEventListener("tick", o)
- }, O.start = function() {
- D.startBy(3, function() {
- y.visible = !0, E.start(G.duration, p), C.removeChild(D), C.addEventListener("pressmove", n), C.addEventListener("pressup", H.onPressUp), C.addEventListener("click", l), saemmelGame.SoundService.playBgLoop()
- })
- }, O.pause = function() {
- E.pause(), C.removeEventListener("pressmove", n), C.removeEventListener("pressup", H.onPressUp), C.removeEventListener("click", l)
- }, O.stopStageUpdate = function() {
- createjs.Ticker.removeEventListener("tick", o)
- }, O.resume = function() {
- E.resume(), createjs.Ticker.addEventListener("tick", o), C.addEventListener("pressmove", n), C.addEventListener("pressup", H.onPressUp), C.addEventListener("click", l)
- }, O.setStartScore = function(a) {
- K = a, j(0)
- }, saemmelGame.Game = N
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- g = !0, d(), f.init(saemmelGame.data), h && (f.start(), f.setStartScore(i))
- }
- function b(a) {
- var b = JSON.parse(a.data);
- switch (b.type) {
- case "onStart":
- h = !0, i = b.data.score, g && (f.start(), f.setStartScore(i));
- break;
- case "onRestart":
- saemmelGame.Assets.loadRandomLevelAssets(function() {
- d(), f.init(saemmelGame.data), f.start(), f.setStartScore(b.data.score)
- });
- break;
- case "onPause":
- f.pause();
- break;
- case "onResume":
- f.resume()
- }
- }
- function c() {
- var a = jQuery("#gameCanvas").height();
- saemmelGame.PostMessageService.post("onResize", {height: a})
- }
- function d() {
- var a = saemmelGame.data.tiles.smallHeight + 91 + 40;
- j > a && (a = j), e.attr("height", a), saemmelGame.PostMessageService.post("onResize", {height: e.height()})
- }
- var e = jQuery("#gameCanvas"), f = new saemmelGame.Game, g = !1, h = !1, i = 0, j = 700, k = function() {
- };
- k.prototype.run = function() {
- jQuery(window).resize(c);
- var d = window.addEventListener ? "addEventListener" : "attachEvent", e = window[d], f = "attachEvent" == d ? "onmessage" : "message";
- e(f, b, !1), saemmelGame.Assets.loadRandomLevelAssets(a)
- }, saemmelGame.IFrameLauncher = k
- }();
- var saemmelGame = saemmelGame || {};
- !function() {
- function a() {
- b(), c.init(saemmelGame.data), c.start()
- }
- function b() {
- var a = saemmelGame.data.tiles.smallHeight + 91 + 40;
- e > a && (a = e), d.attr("height", a)
- }
- var c, d = jQuery("#gameCanvas"), e = 700, f = function() {
- };
- f.prototype.run = function() {
- c = new saemmelGame.Game, saemmelGame.Assets.loadRandomLevelAssets(a)
- }, saemmelGame.StandaloneLauncher = f
- }();
- var console = console || {log: function() {
- }}, saemmelGame = saemmelGame || {};
- !function() {
- var a, b = window !== window.top;
- b ? (a = new saemmelGame.IFrameLauncher, a.run()) : (a = new saemmelGame.StandaloneLauncher, a.run())
- }();
Add Comment
Please, Sign In to add comment