Overview

URL 30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/
IP50.18.217.93
ASNAS16509 Amazon.com, Inc.
Location United States
Report completed2018-11-08 21:26:55 CET
StatusLoading report..
urlQuery Alerts No alerts detected


Settings

UserAgentMozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Referer
Pool
Access Level


Intrusion Detection Systems

Suricata /w Emerging Threats Pro  No alerts detected


Blacklists

MDL  No alerts detected
OpenPhish  No alerts detected
PhishTank  No alerts detected
Fortinet's Web Filter  No alerts detected
DNS-BH  No alerts detected
mnemonic secure dns  No alerts detected


Recent reports on same IP/ASN/Domain

Last 10 reports on IP: 50.18.217.93

Date UQ / IDS / BL URL IP
2018-11-04 23:58:51 +0100
0 - 0 - 2 1ibpz7namvc8194z9hkj37ali.designmysite.pro/ 50.18.217.93
2018-10-27 14:06:53 +0200
0 - 0 - 2 b6ezxzygca3mnw423mfwqv81e.designmysite.pro/ 50.18.217.93
2018-10-05 04:31:14 +0200
0 - 0 - 3 6nrl1u6r7a83jgczxcb5aub04.designmysite.pro/ 50.18.217.93
2018-09-05 23:11:21 +0200
0 - 0 - 0 k1b4eg4dmbsacsem51p7z698.designmysite.pro/ 50.18.217.93
2018-09-05 23:10:38 +0200
0 - 0 - 0 k1b4eg4dmbsacsem51p7z698.designmysite.pro/ 50.18.217.93
2018-08-24 21:14:52 +0200
0 - 0 - 1 www.francksala.com/l!ty/0.k/3c7ca2923d402cc8d (...) 50.18.217.93
2018-08-23 00:08:07 +0200
0 - 0 - 0 1vfa4c94mqrdh2u8a1u10x5dc.designmysite.pro 50.18.217.93
2018-08-22 21:49:32 +0200
0 - 0 - 0 1vfa4c94mqrdh2u8a1u10x5dc.designmysite.pro 50.18.217.93
2018-08-15 16:52:21 +0200
0 - 0 - 0 526h2hj50u9dse9gz8r31zxhd.designmysite.pro/ 50.18.217.93
2018-08-15 16:45:19 +0200
0 - 0 - 0 526h2hj50u9dse9gz8r31zxhd.designmysite.pro/ 50.18.217.93

Last 10 reports on ASN: AS16509 Amazon.com, Inc.

Date UQ / IDS / BL URL IP
2018-11-16 23:43:59 +0100
0 - 1 - 0 https://outgoing.prod.mozaws.net/v1/4cb89ac4a (...) 52.27.118.86
2018-11-16 23:42:53 +0100
0 - 1 - 0 https://outgoing.prod.mozaws.net/v1/4cb89ac4a (...) 52.10.200.60
2018-11-16 23:19:00 +0100
0 - 0 - 0 paracom.paramountcommunication.com/ct/4988488 (...) 52.89.26.162
2018-11-16 23:05:06 +0100
0 - 0 - 1 revolutionneed.site/c1 52.28.13.83
2018-11-16 22:50:55 +0100
0 - 0 - 1 www.picluck.net/ 54.69.34.58
2018-11-16 22:43:30 +0100
0 - 0 - 1 mazibatradingcentre.com/wp-includes/js/plupz/ (...) 54.72.130.67
2018-11-16 22:32:45 +0100
0 - 0 - 0 https://www.teevipz.com/email/unsubscribe/5be (...) 52.26.11.250
2018-11-16 21:48:13 +0100
0 - 2 - 0 transforxd.top/ 54.72.9.51
2018-11-16 21:32:15 +0100
0 - 0 - 0 ethosfdn.com 54.72.11.253
2018-11-16 20:12:51 +0100
0 - 0 - 0 email.invite.jaanuu.com/c/eJxNjrtuxCAURL_GdLZ (...) 52.25.253.172

No other reports on domain: designmysite.pro



JavaScript

Executed Scripts (17)


Executed Evals (15)

#1 JavaScript::Eval (size: 34, repeated: 1) - SHA256: fd9ead08b8e181fcd34deb864a7bf9a18e5c4db0ed589ace36c8a617108bbab7

                                        (function() {
    bk$ = $;
}());
                                    

#2 JavaScript::Eval (size: 15760, repeated: 1) - SHA256: 5c19dd1fbf3be59dbf9138b8e9a3d974118f23e3c1d091500a2832fa5104a676

                                        /*     Underscore.js 1.6.0
     http://underscorejs.org
     (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
     Underscore may be freely distributed under the MIT license.
Copyright (c) 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative
Reporters & Editors

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/
(function() {
    var n = this,
        t = n._,
        r = {},
        e = Array.prototype,
        u = Object.prototype,
        i = Function.prototype,
        a = e.push,
        o = e.slice,
        c = e.concat,
        l = u.toString,
        f = u.hasOwnProperty,
        s = e.forEach,
        p = e.map,
        h = e.reduce,
        v = e.reduceRight,
        g = e.filter,
        d = e.every,
        m = e.some,
        y = e.indexOf,
        b = e.lastIndexOf,
        x = Array.isArray,
        w = Object.keys,
        _ = i.bind,
        j = function(n) {
            return n instanceof j ? n : this instanceof j ? void(this._wrapped = n) : new j(n)
        };
    "undefined" != typeof exports ? ("undefined" != typeof module && module.exports && (exports = module.exports = j), exports._ = j) : n._ = j, j.VERSION = "1.6.0";
    var A = j.each = j.forEach = function(n, t, e) {
        if (null == n) return n;
        if (s && n.forEach === s) n.forEach(t, e);
        else if (n.length === +n.length) {
            for (var u = 0, i = n.length; i > u; u++)
                if (t.call(e, n[u], u, n) === r) return
        } else
            for (var a = j.keys(n), u = 0, i = a.length; i > u; u++)
                if (t.call(e, n[a[u]], a[u], n) === r) return; return n
    };
    j.map = j.collect = function(n, t, r) {
        var e = [];
        return null == n ? e : p && n.map === p ? n.map(t, r) : (A(n, function(n, u, i) {
            e.push(t.call(r, n, u, i))
        }), e)
    };
    var O = "Reduce of empty array with no initial value";
    j.reduce = j.foldl = j.inject = function(n, t, r, e) {
        var u = arguments.length > 2;
        if (null == n && (n = []), h && n.reduce === h) return e && (t = j.bind(t, e)), u ? n.reduce(t, r) : n.reduce(t);
        if (A(n, function(n, i, a) {
                u ? r = t.call(e, r, n, i, a) : (r = n, u = !0)
            }), !u) throw new TypeError(O);
        return r
    }, j.reduceRight = j.foldr = function(n, t, r, e) {
        var u = arguments.length > 2;
        if (null == n && (n = []), v && n.reduceRight === v) return e && (t = j.bind(t, e)), u ? n.reduceRight(t, r) : n.reduceRight(t);
        var i = n.length;
        if (i !== +i) {
            var a = j.keys(n);
            i = a.length
        }
        if (A(n, function(o, c, l) {
                c = a ? a[--i] : --i, u ? r = t.call(e, r, n[c], c, l) : (r = n[c], u = !0)
            }), !u) throw new TypeError(O);
        return r
    }, j.find = j.detect = function(n, t, r) {
        var e;
        return k(n, function(n, u, i) {
            return t.call(r, n, u, i) ? (e = n, !0) : void 0
        }), e
    }, j.filter = j.select = function(n, t, r) {
        var e = [];
        return null == n ? e : g && n.filter === g ? n.filter(t, r) : (A(n, function(n, u, i) {
            t.call(r, n, u, i) && e.push(n)
        }), e)
    }, j.reject = function(n, t, r) {
        return j.filter(n, function(n, e, u) {
            return !t.call(r, n, e, u)
        }, r)
    }, j.every = j.all = function(n, t, e) {
        t || (t = j.identity);
        var u = !0;
        return null == n ? u : d && n.every === d ? n.every(t, e) : (A(n, function(n, i, a) {
            return (u = u && t.call(e, n, i, a)) ? void 0 : r
        }), !!u)
    };
    var k = j.some = j.any = function(n, t, e) {
        t || (t = j.identity);
        var u = !1;
        return null == n ? u : m && n.some === m ? n.some(t, e) : (A(n, function(n, i, a) {
            return u || (u = t.call(e, n, i, a)) ? r : void 0
        }), !!u)
    };
    j.contains = j.include = function(n, t) {
        return null == n ? !1 : y && n.indexOf === y ? n.indexOf(t) != -1 : k(n, function(n) {
            return n === t
        })
    }, j.invoke = function(n, t) {
        var r = o.call(arguments, 2),
            e = j.isFunction(t);
        return j.map(n, function(n) {
            return (e ? t : n[t]).apply(n, r)
        })
    }, j.pluck = function(n, t) {
        return j.map(n, j.property(t))
    }, j.where = function(n, t) {
        return j.filter(n, j.matches(t))
    }, j.findWhere = function(n, t) {
        return j.find(n, j.matches(t))
    }, j.max = function(n, t, r) {
        if (!t && j.isArray(n) && n[0] === +n[0] && n.length < 65535) return Math.max.apply(Math, n);
        var e = -1 / 0,
            u = -1 / 0;
        return A(n, function(n, i, a) {
            var o = t ? t.call(r, n, i, a) : n;
            o > u && (e = n, u = o)
        }), e
    }, j.min = function(n, t, r) {
        if (!t && j.isArray(n) && n[0] === +n[0] && n.length < 65535) return Math.min.apply(Math, n);
        var e = 1 / 0,
            u = 1 / 0;
        return A(n, function(n, i, a) {
            var o = t ? t.call(r, n, i, a) : n;
            u > o && (e = n, u = o)
        }), e
    }, j.shuffle = function(n) {
        var t, r = 0,
            e = [];
        return A(n, function(n) {
            t = j.random(r++), e[r - 1] = e[t], e[t] = n
        }), e
    }, j.sample = function(n, t, r) {
        return null == t || r ? (n.length !== +n.length && (n = j.values(n)), n[j.random(n.length - 1)]) : j.shuffle(n).slice(0, Math.max(0, t))
    };
    var E = function(n) {
        return null == n ? j.identity : j.isFunction(n) ? n : j.property(n)
    };
    j.sortBy = function(n, t, r) {
        return t = E(t), j.pluck(j.map(n, function(n, e, u) {
            return {
                value: n,
                index: e,
                criteria: t.call(r, n, e, u)
            }
        }).sort(function(n, t) {
            var r = n.criteria,
                e = t.criteria;
            if (r !== e) {
                if (r > e || r === void 0) return 1;
                if (e > r || e === void 0) return -1
            }
            return n.index - t.index
        }), "value")
    };
    var F = function(n) {
        return function(t, r, e) {
            var u = {};
            return r = E(r), A(t, function(i, a) {
                var o = r.call(e, i, a, t);
                n(u, o, i)
            }), u
        }
    };
    j.groupBy = F(function(n, t, r) {
        j.has(n, t) ? n[t].push(r) : n[t] = [r]
    }), j.indexBy = F(function(n, t, r) {
        n[t] = r
    }), j.countBy = F(function(n, t) {
        j.has(n, t) ? n[t] ++ : n[t] = 1
    }), j.sortedIndex = function(n, t, r, e) {
        r = E(r);
        for (var u = r.call(e, t), i = 0, a = n.length; a > i;) {
            var o = i + a >>> 1;
            r.call(e, n[o]) < u ? i = o + 1 : a = o
        }
        return i
    }, j.toArray = function(n) {
        return n ? j.isArray(n) ? o.call(n) : n.length === +n.length ? j.map(n, j.identity) : j.values(n) : []
    }, j.size = function(n) {
        return null == n ? 0 : n.length === +n.length ? n.length : j.keys(n).length
    }, j.first = j.head = j.take = function(n, t, r) {
        return null == n ? void 0 : null == t || r ? n[0] : 0 > t ? [] : o.call(n, 0, t)
    }, j.initial = function(n, t, r) {
        return o.call(n, 0, n.length - (null == t || r ? 1 : t))
    }, j.last = function(n, t, r) {
        return null == n ? void 0 : null == t || r ? n[n.length - 1] : o.call(n, Math.max(n.length - t, 0))
    }, j.rest = j.tail = j.drop = function(n, t, r) {
        return o.call(n, null == t || r ? 1 : t)
    }, j.compact = function(n) {
        return j.filter(n, j.identity)
    };
    var M = function(n, t, r) {
        return t && j.every(n, j.isArray) ? c.apply(r, n) : (A(n, function(n) {
            j.isArray(n) || j.isArguments(n) ? t ? a.apply(r, n) : M(n, t, r) : r.push(n)
        }), r)
    };
    j.flatten = function(n, t) {
        return M(n, t, [])
    }, j.without = function(n) {
        return j.difference(n, o.call(arguments, 1))
    }, j.partition = function(n, t) {
        var r = [],
            e = [];
        return A(n, function(n) {
            (t(n) ? r : e).push(n)
        }), [r, e]
    }, j.uniq = j.unique = function(n, t, r, e) {
        j.isFunction(t) && (e = r, r = t, t = !1);
        var u = r ? j.map(n, r, e) : n,
            i = [],
            a = [];
        return A(u, function(r, e) {
            (t ? e && a[a.length - 1] === r : j.contains(a, r)) || (a.push(r), i.push(n[e]))
        }), i
    }, j.union = function() {
        return j.uniq(j.flatten(arguments, !0))
    }, j.intersection = function(n) {
        var t = o.call(arguments, 1);
        return j.filter(j.uniq(n), function(n) {
            return j.every(t, function(t) {
                return j.contains(t, n)
            })
        })
    }, j.difference = function(n) {
        var t = c.apply(e, o.call(arguments, 1));
        return j.filter(n, function(n) {
            return !j.contains(t, n)
        })
    }, j.zip = function() {
        for (var n = j.max(j.pluck(arguments, "length").concat(0)), t = new Array(n), r = 0; n > r; r++) t[r] = j.pluck(arguments, "" + r);
        return t
    }, j.object = function(n, t) {
        if (null == n) return {};
        for (var r = {}, e = 0, u = n.length; u > e; e++) t ? r[n[e]] = t[e] : r[n[e][0]] = n[e][1];
        return r
    }, j.indexOf = function(n, t, r) {
        if (null == n) return -1;
        var e = 0,
            u = n.length;
        if (r) {
            if ("number" != typeof r) return e = j.sortedIndex(n, t), n[e] === t ? e : -1;
            e = 0 > r ? Math.max(0, u + r) : r
        }
        if (y && n.indexOf === y) return n.indexOf(t, r);
        for (; u > e; e++)
            if (n[e] === t) return e;
        return -1
    }, j.lastIndexOf = function(n, t, r) {
        if (null == n) return -1;
        var e = null != r;
        if (b && n.lastIndexOf === b) return e ? n.lastIndexOf(t, r) : n.lastIndexOf(t);
        for (var u = e ? r : n.length; u--;)
            if (n[u] === t) return u;
        return -1
    }, j.range = function(n, t, r) {
        arguments.length <= 1 && (t = n || 0, n = 0), r = arguments[2] || 1;
        for (var e = Math.max(Math.ceil((t - n) / r), 0), u = 0, i = new Array(e); e > u;) i[u++] = n, n += r;
        return i
    };
    var R = function() {};
    j.bind = function(n, t) {
        var r, e;
        if (_ && n.bind === _) return _.apply(n, o.call(arguments, 1));
        if (!j.isFunction(n)) throw new TypeError;
        return r = o.call(arguments, 2), e = function() {
            if (!(this instanceof e)) return n.apply(t, r.concat(o.call(arguments)));
            R.prototype = n.prototype;
            var u = new R;
            R.prototype = null;
            var i = n.apply(u, r.concat(o.call(arguments)));
            return Object(i) === i ? i : u
        }
    }, j.partial = function(n) {
        var t = o.call(arguments, 1);
        return function() {
            for (var r = 0, e = t.slice(), u = 0, i = e.length; i > u; u++) e[u] === j && (e[u] = arguments[r++]);
            for (; r < arguments.length;) e.push(arguments[r++]);
            return n.apply(this, e)
        }
    }, j.bindAll = function(n) {
        var t = o.call(arguments, 1);
        if (0 === t.length) throw new Error("bindAll must be passed function names");
        return A(t, function(t) {
            n[t] = j.bind(n[t], n)
        }), n
    }, j.memoize = function(n, t) {
        var r = {};
        return t || (t = j.identity),
            function() {
                var e = t.apply(this, arguments);
                return j.has(r, e) ? r[e] : r[e] = n.apply(this, arguments)
            }
    }, j.delay = function(n, t) {
        var r = o.call(arguments, 2);
        return setTimeout(function() {
            return n.apply(null, r)
        }, t)
    }, j.defer = function(n) {
        return j.delay.apply(j, [n, 1].concat(o.call(arguments, 1)))
    }, j.throttle = function(n, t, r) {
        var e, u, i, a = null,
            o = 0;
        r || (r = {});
        var c = function() {
            o = r.leading === !1 ? 0 : j.now(), a = null, i = n.apply(e, u), e = u = null
        };
        return function() {
            var l = j.now();
            o || r.leading !== !1 || (o = l);
            var f = t - (l - o);
            return e = this, u = arguments, 0 >= f ? (clearTimeout(a), a = null, o = l, i = n.apply(e, u), e = u = null) : a || r.trailing === !1 || (a = setTimeout(c, f)), i
        }
    }, j.debounce = function(n, t, r) {
        var e, u, i, a, o, c = function() {
            var l = j.now() - a;
            t > l ? e = setTimeout(c, t - l) : (e = null, r || (o = n.apply(i, u), i = u = null))
        };
        return function() {
            i = this, u = arguments, a = j.now();
            var l = r && !e;
            return e || (e = setTimeout(c, t)), l && (o = n.apply(i, u), i = u = null), o
        }
    }, j.once = function(n) {
        var t, r = !1;
        return function() {
            return r ? t : (r = !0, t = n.apply(this, arguments), n = null, t)
        }
    }, j.wrap = function(n, t) {
        return j.partial(t, n)
    }, j.compose = function() {
        var n = arguments;
        return function() {
            for (var t = arguments, r = n.length - 1; r >= 0; r--) t = [n[r].apply(this, t)];
            return t[0]
        }
    }, j.after = function(n, t) {
        return function() {
            return --n < 1 ? t.apply(this, arguments) : void 0
        }
    }, j.keys = function(n) {
        if (!j.isObject(n)) return [];
        if (w) return w(n);
        var t = [];
        for (var r in n) j.has(n, r) && t.push(r);
        return t
    }, j.values = function(n) {
        for (var t = j.keys(n), r = t.length, e = new Array(r), u = 0; r > u; u++) e[u] = n[t[u]];
        return e
    }, j.pairs = function(n) {
        for (var t = j.keys(n), r = t.length, e = new Array(r), u = 0; r > u; u++) e[u] = [t[u], n[t[u]]];
        return e
    }, j.invert = function(n) {
        for (var t = {}, r = j.keys(n), e = 0, u = r.length; u > e; e++) t[n[r[e]]] = r[e];
        return t
    }, j.functions = j.methods = function(n) {
        var t = [];
        for (var r in n) j.isFunction(n[r]) && t.push(r);
        return t.sort()
    }, j.extend = function(n) {
        return A(o.call(arguments, 1), function(t) {
            if (t)
                for (var r in t) n[r] = t[r]
        }), n
    }, j.pick = function(n) {
        var t = {},
            r = c.apply(e, o.call(arguments, 1));
        return A(r, function(r) {
            r in n && (t[r] = n[r])
        }), t
    }, j.omit = function(n) {
        var t = {},
            r = c.apply(e, o.call(arguments, 1));
        for (var u in n) j.contains(r, u) || (t[u] = n[u]);
        return t
    }, j.defaults = function(n) {
        return A(o.call(arguments, 1), function(t) {
            if (t)
                for (var r in t) n[r] === void 0 && (n[r] = t[r])
        }), n
    }, j.clone = function(n) {
        return j.isObject(n) ? j.isArray(n) ? n.slice() : j.extend({}, n) : n
    }, j.tap = function(n, t) {
        return t(n), n
    };
    var S = function(n, t, r, e) {
        if (n === t) return 0 !== n || 1 / n == 1 / t;
        if (null == n || null == t) return n === t;
        n instanceof j && (n = n._wrapped), t instanceof j && (t = t._wrapped);
        var u = l.call(n);
        if (u != l.call(t)) return !1;
        switch (u) {
            case "[object String]":
                return n == String(t);
            case "[object Number]":
                return n != +n ? t != +t : 0 == n ? 1 / n == 1 / t : n == +t;
            case "[object Date]":
            case "[object Boolean]":
                return +n == +t;
            case "[object RegExp]":
                return n.source == t.source && n.global == t.global && n.multiline == t.multiline && n.ignoreCase == t.ignoreCase
        }
        if ("object" != typeof n || "object" != typeof t) return !1;
        for (var i = r.length; i--;)
            if (r[i] == n) return e[i] == t;
        var a = n.constructor,
            o = t.constructor;
        if (a !== o && !(j.isFunction(a) && a instanceof a && j.isFunction(o) && o instanceof o) && "constructor" in n && "constructor" in t) return !1;
        r.push(n), e.push(t);
        var c = 0,
            f = !0;
        if ("[object Array]" == u) {
            if (c = n.length, f = c == t.length)
                for (; c-- && (f = S(n[c], t[c], r, e)););
        } else {
            for (var s in n)
                if (j.has(n, s) && (c++, !(f = j.has(t, s) && S(n[s], t[s], r, e)))) break;
            if (f) {
                for (s in t)
                    if (j.has(t, s) && !c--) break;
                f = !c
            }
        }
        return r.pop(), e.pop(), f
    };
    j.isEqual = function(n, t) {
        return S(n, t, [], [])
    }, j.isEmpty = function(n) {
        if (null == n) return !0;
        if (j.isArray(n) || j.isString(n)) return 0 === n.length;
        for (var t in n)
            if (j.has(n, t)) return !1;
        return !0
    }, j.isElement = function(n) {
        return !(!n || 1 !== n.nodeType)
    }, j.isArray = x || function(n) {
        return "[object Array]" == l.call(n)
    }, j.isObject = function(n) {
        return n === Object(n)
    }, A(["Arguments", "Function", "String", "Number", "Date", "RegExp"], function(n) {
        j["is" + n] = function(t) {
            return l.call(t) == "[object " + n + "]"
        }
    }), j.isArguments(arguments) || (j.isArguments = function(n) {
        return !(!n || !j.has(n, "callee"))
    }), "function" != typeof /./ && (j.isFunction = function(n) {
        return "function" == typeof n
    }), j.isFinite = function(n) {
        return isFinite(n) && !isNaN(parseFloat(n))
    }, j.isNaN = function(n) {
        return j.isNumber(n) && n != +n
    }, j.isBoolean = function(n) {
        return n === !0 || n === !1 || "[object Boolean]" == l.call(n)
    }, j.isNull = function(n) {
        return null === n
    }, j.isUndefined = function(n) {
        return n === void 0
    }, j.has = function(n, t) {
        return f.call(n, t)
    }, j.noConflict = function() {
        return n._ = t, this
    }, j.identity = function(n) {
        return n
    }, j.constant = function(n) {
        return function() {
            return n
        }
    }, j.property = function(n) {
        return function(t) {
            return t[n]
        }
    }, j.matches = function(n) {
        return function(t) {
            if (t === n) return !0;
            for (var r in n)
                if (n[r] !== t[r]) return !1;
            return !0
        }
    }, j.times = function(n, t, r) {
        for (var e = Array(Math.max(0, n)), u = 0; n > u; u++) e[u] = t.call(r, u);
        return e
    }, j.random = function(n, t) {
        return null == t && (t = n, n = 0), n + Math.floor(Math.random() * (t - n + 1))
    }, j.now = Date.now || function() {
        return (new Date).getTime()
    };
    var T = {
        escape: {
            "&": "&amp;",
            "<": "&lt;",
            ">": "&gt;",
            '"': "&quot;",
            "'": "&#x27;"
        }
    };
    T.unescape = j.invert(T.escape);
    var I = {
        escape: new RegExp("[" + j.keys(T.escape).join("") + "]", "g"),
        unescape: new RegExp("(" + j.keys(T.unescape).join("|") + ")", "g")
    };
    j.each(["escape", "unescape"], function(n) {
        j[n] = function(t) {
            return null == t ? "" : ("" + t).replace(I[n], function(t) {
                return T[n][t]
            })
        }
    }), j.result = function(n, t) {
        if (null == n) return void 0;
        var r = n[t];
        return j.isFunction(r) ? r.call(n) : r
    }, j.mixin = function(n) {
        A(j.functions(n), function(t) {
            var r = j[t] = n[t];
            j.prototype[t] = function() {
                var n = [this._wrapped];
                return a.apply(n, arguments), z.call(this, r.apply(j, n))
            }
        })
    };
    var N = 0;
    j.uniqueId = function(n) {
        var t = ++N + "";
        return n ? n + t : t
    }, j.templateSettings = {
        evaluate: /<%([\s\S]+?)%>/g,
        interpolate: /<%=([\s\S]+?)%>/g,
        escape: /<%-([\s\S]+?)%>/g
    };
    var q = /(.)^/,
        B = {
            "'": "'",
            "\\": "\\",
            "\r": "r",
            "\n": "n",
            "    ": "t",
            "\u2028": "u2028",
            "\u2029": "u2029"
        },
        D = /\\|'|\r|\n|\t|\u2028|\u2029/g;
    j.template = function(n, t, r) {
        var e;
        r = j.defaults({}, r, j.templateSettings);
        var u = new RegExp([(r.escape || q).source, (r.interpolate || q).source, (r.evaluate || q).source].join("|") + "|$", "g"),
            i = 0,
            a = "__p+='";
        n.replace(u, function(t, r, e, u, o) {
            return a += n.slice(i, o).replace(D, function(n) {
                return "\\" + B[n]
            }), r && (a += "'+\n((__t=(" + r + "))==null?'':_.escape(__t))+\n'"), e && (a += "'+\n((__t=(" + e + "))==null?'':__t)+\n'"), u && (a += "';\n" + u + "\n__p+='"), i = o + t.length, t
        }), a += "';\n", r.variable || (a = "with(obj||{}){\n" + a + "}\n"), a = "var __t,__p='',__j=Array.prototype.join," + "print=function(){__p+=__j.call(arguments,'');};\n" + a + "return __p;\n";
        try {
            e = new Function(r.variable || "obj", "_", a)
        } catch (o) {
            throw o.source = a, o
        }
        if (t) return e(t, j);
        var c = function(n) {
            return e.call(this, n, j)
        };
        return c.source = "function(" + (r.variable || "obj") + "){\n" + a + "}", c
    }, j.chain = function(n) {
        return j(n).chain()
    };
    var z = function(n) {
        return this._chain ? j(n).chain() : n
    };
    j.mixin(j), A(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(n) {
        var t = e[n];
        j.prototype[n] = function() {
            var r = this._wrapped;
            return t.apply(r, arguments), "shift" != n && "splice" != n || 0 !== r.length || delete r[0], z.call(this, r)
        }
    }), A(["concat", "join", "slice"], function(n) {
        var t = e[n];
        j.prototype[n] = function() {
            return z.call(this, t.apply(this._wrapped, arguments))
        }
    }), j.extend(j.prototype, {
        chain: function() {
            return this._chain = !0, this
        },
        value: function() {
            return this._wrapped
        }
    }), "function" == typeof define && define.amd && define("underscore", [], function() {
        return j
    })
}).call(this);
                                    

#3 JavaScript::Eval (size: 10578, repeated: 1) - SHA256: 1c9b28ec5581fc8fef821beac5d1757f057b4b17b4acd7e758716317ff7b736b

                                        /* Copyright (c) 2010 Noah Sloan, http://github.com/iamnoah/writeCapturePermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.*/
(function(E, a) {
    var j = a.document;

    function A(Q) {
        var Z = j.createElement("div");
        j.body.insertBefore(Z, null);
        E.replaceWith(Z, '<script type="text/javascript">' + Q + "<\/script>")
    }
    E = E || (function(Q) {
        return {
            ajax: Q.ajax,
            $: function(Z) {
                return Q(Z)[0]
            },
            replaceWith: function(Z, ad) {
                var ac = Q(Z)[0];
                var ab = ac.nextSibling,
                    aa = ac.parentNode;
                Q(ac).remove();
                if (ab) {
                    Q(ab).before(ad)
                } else {
                    Q(aa).append(ad)
                }
            },
            onLoad: function(Z) {
                Q(Z)
            },
            copyAttrs: function(af, ab) {
                var ad = Q(ab),
                    aa = af.attributes;
                for (var ac = 0, Z = aa.length; ac < Z; ac++) {
                    if (aa[ac] && aa[ac].value) {
                        try {
                            ad.attr(aa[ac].name, aa[ac].value)
                        } catch (ae) {}
                    }
                }
            }
        }
    })(a.jQuery);
    E.copyAttrs = E.copyAttrs || function() {};
    E.onLoad = E.onLoad || function() {
        throw "error: autoAsync cannot be used without jQuery or defining writeCaptureSupport.onLoad"
    };

    function P(ab, aa) {
        for (var Z = 0, Q = ab.length; Z < Q; Z++) {
            if (aa(ab[Z]) === false) {
                return
            }
        }
    }

    function v(Q) {
        return Object.prototype.toString.call(Q) === "[object Function]"
    }

    function p(Q) {
        return Object.prototype.toString.call(Q) === "[object String]"
    }

    function u(aa, Z, Q) {
        return Array.prototype.slice.call(aa, Z || 0, Q || aa && aa.length)
    }

    function D(ab, aa) {
        var Q = false;
        P(ab, Z);

        function Z(ac) {
            return !(Q = aa(ac))
        }
        return Q
    }

    function L(Q) {
        this._queue = [];
        this._children = [];
        this._parent = Q;
        if (Q) {
            Q._addChild(this)
        }
    }
    L.prototype = {
        _addChild: function(Q) {
            this._children.push(Q)
        },
        push: function(Q) {
            this._queue.push(Q);
            this._bubble("_doRun")
        },
        pause: function() {
            this._bubble("_doPause")
        },
        resume: function() {
            this._bubble("_doResume")
        },
        _bubble: function(Z) {
            var Q = this;
            while (!Q[Z]) {
                Q = Q._parent
            }
            return Q[Z]()
        },
        _next: function() {
            if (D(this._children, Q)) {
                return true
            }

            function Q(aa) {
                return aa._next()
            }
            var Z = this._queue.shift();
            if (Z) {
                Z()
            }
            return !!Z
        }
    };

    function i(Q) {
        if (Q) {
            return new L(Q)
        }
        L.call(this);
        this.paused = 0
    }
    i.prototype = (function() {
        function Q() {}
        Q.prototype = L.prototype;
        return new Q()
    })();
    i.prototype._doRun = function() {
        if (!this.running) {
            this.running = true;
            try {
                while (this.paused < 1 && this._next()) {}
            } finally {
                this.running = false
            }
        }
    };
    i.prototype._doPause = function() {
        this.paused++
    };
    i.prototype._doResume = function() {
        this.paused--;
        this._doRun()
    };

    function M() {}
    M.prototype = {
        _html: "",
        open: function() {
            this._opened = true;
            if (this._delegate) {
                this._delegate.open()
            }
        },
        write: function(Q) {
            if (this._closed) {
                return
            }
            this._written = true;
            if (this._delegate) {
                this._delegate.write(Q)
            } else {
                this._html += Q
            }
        },
        writeln: function(Q) {
            this.write(Q + "\n")
        },
        close: function() {
            this._closed = true;
            if (this._delegate) {
                this._delegate.close()
            }
        },
        copyTo: function(Q) {
            this._delegate = Q;
            Q.foobar = true;
            if (this._opened) {
                Q.open()
            }
            if (this._written) {
                Q.write(this._html)
            }
            if (this._closed) {
                Q.close()
            }
        }
    };
    var e = (function() {
        var Q = {
            f: j.getElementById
        };
        try {
            Q.f.call(j, "abc");
            return true
        } catch (Z) {
            return false
        }
    })();

    function I(Q) {
        P(Q, function(Z) {
            var aa = j.getElementById(Z.id);
            if (!aa) {
                l("<proxyGetElementById - finish>", "no element in writen markup with id " + Z.id);
                return
            }
            P(Z.el.childNodes, function(ab) {
                aa.appendChild(ab)
            });
            if (aa.contentWindow) {
                a.setTimeout(function() {
                    Z.el.contentWindow.document.copyTo(aa.contentWindow.document)
                }, 1)
            }
            E.copyAttrs(Z.el, aa)
        })
    }

    function s(Z, Q) {
        if (Q && Q[Z] === false) {
            return false
        }
        return Q && Q[Z] || o[Z]
    }

    function x(Z, ai) {
        var ae = [],
            ad = s("proxyGetElementById", ai),
            ag = s("writeOnGetElementById", ai),
            Q = {
                write: j.write,
                writeln: j.writeln,
                finish: function() {},
                out: ""
            };
        Z.state = Q;
        j.write = ah;
        j.writeln = aa;
        if (ad || ag) {
            Q.getEl = j.getElementById;
            j.getElementById = ab;
            if (ag) {
                findEl = af
            } else {
                findEl = ac;
                Q.finish = function() {
                    I(ae)
                }
            }
        }

        function ah(aj) {
            Q.out += aj
        }

        function aa(aj) {
            Q.out += aj + "\n"
        }

        function ac(ak) {
            var aj = j.createElement("div");
            ae.push({
                id: ak,
                el: aj
            });
            aj.contentWindow = {
                document: new M()
            };
            return aj
        }

        function af(al) {
            var aj = E.$(Z.target);
            var ak = j.createElement("div");
            aj.parentNode.insertBefore(ak, aj);
            E.replaceWith(ak, Q.out);
            Q.out = "";
            return e ? Q.getEl.call(j, al) : Q.getEl(al)
        }

        function ab(ak) {
            var aj = e ? Q.getEl.call(j, ak) : Q.getEl(ak);
            return aj || findEl(ak)
        }
        return Q
    }

    function V(Q) {
        j.write = Q.write;
        j.writeln = Q.writeln;
        if (Q.getEl) {
            j.getElementById = Q.getEl
        }
        return Q.out
    }

    function N(Q) {
        return Q && Q.replace(/^\s*<!(\[CDATA\[|--)/, "").replace(/(\]\]|--)>\s*$/, "")
    }

    function b() {}

    function d(Z, Q) {
        console.error("Error", Q, "executing code:", Z)
    }
    var l = v(a.console && console.error) ? d : b;

    function S(aa, Z, Q) {
        var ab = x(Z, Q);
        try {
            A(N(aa))
        } catch (ac) {
            l(aa, ac)
        } finally {
            V(ab)
        }
        return ab
    }

    function O(Z) {
        var Q = /^(\w+:)?\/\/([^\/?#]+)/.exec(Z);
        return Q && (Q[1] && Q[1] != location.protocol || Q[2] != location.host)
    }

    function T(Q) {
        return new RegExp(Q + "=(?:([\"'])([\\s\\S]*?)\\1|([^\\s>]+))", "i")
    }

    function k(Q) {
        var Z = T(Q);
        return function(aa) {
            var ab = Z.exec(aa) || [];
            return ab[2] || ab[3]
        }
    }
    var r = /(<script[\s\S]*?>)([\s\S]*?)<\/script>/ig,
        n = T("src"),
        X = k("src"),
        q = k("type"),
        Y = k("language"),
        C = "__document_write_ajax_callbacks__",
        B = "__document_write_ajax_div-",
        g = "window['" + C + "']['%d']();",
        m = a[C] = {},
        w = '<script type="text/javascript">' + g + "<\/script>",
        H = 0;

    function c() {
        return (++H).toString()
    }

    function G(Z, aa) {
        var Q;
        if (v(Z)) {
            Q = Z;
            Z = null
        }
        Z = Z || {};
        Q = Q || Z && Z.done;
        Z.done = aa ? function() {
            aa(Q)
        } : Q;
        return Z
    }
    var z = new i();
    var y = [];
    var f = window._debugWriteCapture ? function() {} : function(Q, aa, Z) {
        y.push({
            type: Q,
            src: aa,
            data: Z
        })
    };
    var K = window._debugWriteCapture ? function() {} : function() {
        y.push(arguments)
    };

    function W(Q) {
        var Z = c();
        m[Z] = function() {
            Q();
            delete m[Z]
        };
        return Z
    }

    function J(Q) {
        return w.replace(/%d/, W(Q))
    }

    function R(ac, ag, aa, ae) {
        var ad = aa && new i(aa) || z;
        ag = G(ag);
        var ab = s("done", ag);
        var Q = "";
        var Z = s("fixUrls", ag);
        if (!v(Z)) {
            Z = function(ah) {
                return ah
            }
        }
        if (v(ab)) {
            Q = J(function() {
                ad.push(ab)
            })
        }
        return ac.replace(r, af) + Q;

        function af(aj, av, ai) {
            var an = X(av),
                am = q(av) || "",
                aB = Y(av) || "",
                aA = (!am && !aB) || am.toLowerCase().indexOf("javascript") !== -1 || aB.toLowerCase().indexOf("javascript") !== -1;
            f("replace", an, aj);
            if (!aA) {
                return aj
            }
            var aw = W(ap),
                ao = B + aw,
                au, al = {
                    target: "#" + ao,
                    parent: ae
                };

            function ap() {
                ad.push(au)
            }
            if (an) {
                an = Z(an);
                av = av.replace(n, "");
                if (O(an)) {
                    au = az
                } else {
                    if (s("asyncAll", ag)) {
                        au = ay()
                    } else {
                        au = at
                    }
                }
            } else {
                au = ax
            }

            function ax() {
                ah(ai)
            }

            function at() {
                E.ajax({
                    url: an,
                    type: "GET",
                    dataType: "text",
                    async: false,
                    success: function(aC) {
                        ah(aC)
                    }
                })
            }

            function ak(aE, aC, aD) {
                l("<XHR for " + an + ">", aD);
                ad.resume()
            }

            function aq() {
                return J(function() {
                    ad.resume()
                })
            }

            function ay() {
                var aE, aD;

                function aC(aG, aF) {
                    if (!aE) {
                        aD = aG;
                        return
                    }
                    try {
                        ah(aG, aq())
                    } catch (aH) {
                        l(aG, aH)
                    }
                }
                E.ajax({
                    url: an,
                    type: "GET",
                    dataType: "text",
                    async: true,
                    success: aC,
                    error: ak
                });
                return function() {
                    aE = true;
                    if (aD) {
                        ah(aD)
                    } else {
                        ad.pause()
                    }
                }
            }

            function az(aC) {
                var aE = x(al, ag);
                ad.pause();
                f("pause", an);
                E.ajax({
                    url: an,
                    type: "GET",
                    dataType: "script",
                    success: aD,
                    error: ak
                });

                function aD(aH, aG, aF) {
                    f("out", an, aE.out);
                    ar(V(aE), J(aE.finish) + aq());
                    f("resume", an)
                }
            }

            function ah(aD, aC) {
                var aE = S(aD, al, ag);
                aC = J(aE.finish) + (aC || "");
                ar(aE.out, aC)
            }

            function ar(aD, aC) {
                E.replaceWith(al.target, R(aD, null, ad, al) + (aC || ""))
            }
            return '<div style="display: none" id="' + ao + '"></div>' + av + g.replace(/%d/, aw) + "<\/script>"
        }
    }

    function F(Z, aa) {
        var Q = z;
        P(Z, function(ab) {
            Q.push(ac);

            function ac() {
                ab.action(R(ab.html, ab.options, Q), ab)
            }
        });
        if (aa) {
            Q.push(aa)
        }
    }

    function U(Q) {
        var Z = Q;
        while (Z && Z.nodeType === 1) {
            Q = Z;
            Z = Z.lastChild;
            while (Z && Z.nodeType !== 1) {
                Z = Z.previousSibling
            }
        }
        return Q
    }

    function h(Q) {
        var aa = j.write,
            ad = j.writeln,
            Z, ab = [];
        j.writeln = function(ae) {
            j.write(ae + "\n")
        };
        var ac;
        j.write = function(af) {
            var ae = U(j.body);
            if (ae !== Z) {
                Z = ae;
                ab.push(ac = {
                    el: ae,
                    out: []
                })
            }
            ac.out.push(af)
        };
        E.onLoad(function() {
            var ah, ak, af, aj, ai;
            Q = G(Q);
            ai = Q.done;
            Q.done = function() {
                j.write = aa;
                j.writeln = ad;
                if (ai) {
                    ai()
                }
            };
            for (var ag = 0, ae = ab.length; ag < ae; ag++) {
                ah = ab[ag].el;
                ak = j.createElement("div");
                ah.parentNode.insertBefore(ak, ah.nextSibling);
                af = ab[ag].out.join("");
                aj = ae - ag === 1 ? R(af, Q) : R(af);
                E.replaceWith(ak, aj)
            }
        })
    }
    var t = "writeCapture";
    var o = a[t] = {
        _original: a[t],
        fixUrls: function(Q) {
            return Q.replace(/&amp;/g, "&")
        },
        noConflict: function() {
            a[t] = this._original;
            return this
        },
        debug: y,
        proxyGetElementById: false,
        _forTest: {
            Q: i,
            GLOBAL_Q: z,
            $: E,
            matchAttr: k,
            slice: u,
            capture: x,
            uncapture: V,
            captureWrite: S
        },
        replaceWith: function(Q, aa, Z) {
            E.replaceWith(Q, R(aa, Z))
        },
        html: function(Q, ab, Z) {
            var aa = E.$(Q);
            aa.innerHTML = "<span/>";
            E.replaceWith(aa.firstChild, R(ab, Z))
        },
        load: function(Q, aa, Z) {
            E.ajax({
                url: aa,
                dataType: "text",
                type: "GET",
                success: function(ab) {
                    o.html(Q, ab, Z)
                }
            })
        },
        autoAsync: h,
        sanitize: R,
        sanitizeSerial: F
    }
})(this.writeCaptureSupport, this);
(function(g, d, n) {
    var c = {
        html: h
    };
    g.each(["append", "prepend", "after", "before", "wrap", "wrapAll", "replaceWith", "wrapInner"], function() {
        c[this] = i(this)
    });

    function a(q) {
        return Object.prototype.toString.call(q) == "[object String]"
    }

    function p(u, t, s, r) {
        if (arguments.length == 0) {
            return o.call(this)
        }
        var q = c[u];
        if (u == "load") {
            return l.call(this, t, s, r)
        }
        if (!q) {
            j(u)
        }
        return b.call(this, t, s, q)
    }
    g.fn.writeCapture = p;
    var k = "__writeCaptureJsProxied-fghebd__";

    function o() {
        if (this[k]) {
            return this
        }
        var r = this;

        function q() {
            var t = this,
                s = false;
            this[k] = true;
            g.each(c, function(v) {
                var u = r[v];
                if (!u) {
                    return
                }
                t[v] = function(y, x, w) {
                    if (!s && a(y)) {
                        try {
                            s = true;
                            return p.call(t, v, y, x, w)
                        } finally {
                            s = false
                        }
                    }
                    return u.apply(t, arguments)
                }
            });
            this.pushStack = function() {
                return o.call(r.pushStack.apply(t, arguments))
            };
            this.endCapture = function() {
                return r
            }
        }
        q.prototype = r;
        return new q()
    }

    function b(t, s, u) {
        var q, r = this;
        if (s && s.done) {
            q = s.done;
            delete s.done
        } else {
            if (g.isFunction(s)) {
                q = s;
                s = null
            }
        }
        d.sanitizeSerial(g.map(this, function(v) {
            return {
                html: t,
                options: s,
                action: function(w) {
                    u.call(v, w)
                }
            }
        }), q && function() {
            q.call(r)
        } || q);
        return this
    }

    function h(q) {
        g(this).html(q)
    }

    function i(q) {
        return function(r) {
            g(this)[q](r)
        }
    }

    function l(t, s, v) {
        var r = this,
            q, u = t.indexOf(" ");
        if (u >= 0) {
            q = t.slice(u, t.length);
            t = t.slice(0, u)
        }
        if (g.isFunction(v)) {
            s = s || {};
            s.done = v
        }
        return g.ajax({
            url: t,
            type: s && s.type || "GET",
            dataType: "html",
            data: s && s.params,
            complete: f(r, s, q)
        })
    }

    function f(r, s, q) {
        return function(u, t) {
            if (t == "success" || t == "notmodified") {
                var v = m(u.responseText, q);
                b.call(r, v, s, h)
            }
        }
    }
    var e = /jquery-writeCapture-script-placeholder-(\d+)-wc/g;

    function m(s, r) {
        if (!r || !s) {
            return s
        }
        var t = 0,
            q = {};
        return g("<div/>").append(s.replace(/<script(.|\s)*?\/script>/g, function(u) {
            q[t] = u;
            return "jquery-writeCapture-script-placeholder-" + (t++) + "-wc"
        })).find(r).html().replace(e, function(u, v) {
            return q[v]
        })
    }

    function j(q) {
        throw "invalid method parameter " + q
    }
    g.writeCapture = d
})(jQuery, writeCapture.noConflict());
                                    

#4 JavaScript::Eval (size: 21109, repeated: 1) - SHA256: 3ab9cbf203f284f3fe32670048d3af0386d8bfa587732fb16c8e353cfc7690c9

                                        /* Copyright (c) 2010-2016 Jeremy Ashkenas, DocumentCloudPermission is hereby granted, free of charge, to any personobtaining a copy of this software and associated documentationfiles (the "Software"), to deal in the Software withoutrestriction, including without limitation the rights to use,    copy, modify, merge, publish, distribute, sublicense, and/or sell    copies of the Software, and to permit persons to whom the    Software is furnished to do so, subject to the following    conditions:    The above copyright notice and this permission notice shall be    included in all copies or substantial portions of the Software.    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR    OTHER DEALINGS IN THE SOFTWARE. */
(function(t, e) {
    if (typeof define === "function" && define.amd) {
        define(["underscore", "jquery", "exports"], function(i, r, s) {
            t.Backbone = e(t, s, i, r)
        })
    } else if (typeof exports !== "undefined") {
        var i = require("underscore"),
            r;
        try {
            r = require("jquery")
        } catch (s) {}
        e(t, exports, i, r)
    } else {
        t.Backbone = e(t, {}, t._, t.jQuery || t.Zepto || t.ender || t.$)
    }
})(this, function(t, e, i, r) {
    var s = t.Backbone;
    var n = [];
    var a = n.push;
    var o = n.slice;
    var h = n.splice;
    e.VERSION = "1.1.1";
    e.$ = r;
    e.noConflict = function() {
        t.Backbone = s;
        return this
    };
    e.emulateHTTP = false;
    e.emulateJSON = false;
    var u = e.Events = {
        on: function(t, e, i) {
            if (!c(this, "on", t, [e, i]) || !e) return this;
            this._events || (this._events = {});
            var r = this._events[t] || (this._events[t] = []);
            r.push({
                callback: e,
                context: i,
                ctx: i || this
            });
            return this
        },
        once: function(t, e, r) {
            if (!c(this, "once", t, [e, r]) || !e) return this;
            var s = this;
            var n = i.once(function() {
                s.off(t, n);
                e.apply(this, arguments)
            });
            n._callback = e;
            return this.on(t, n, r)
        },
        off: function(t, e, r) {
            var s, n, a, o, h, u, l, f;
            if (!this._events || !c(this, "off", t, [e, r])) return this;
            if (!t && !e && !r) {
                this._events = void 0;
                return this
            }
            o = t ? [t] : i.keys(this._events);
            for (h = 0, u = o.length; h < u; h++) {
                t = o[h];
                if (a = this._events[t]) {
                    this._events[t] = s = [];
                    if (e || r) {
                        for (l = 0, f = a.length; l < f; l++) {
                            n = a[l];
                            if (e && e !== n.callback && e !== n.callback._callback || r && r !== n.context) {
                                s.push(n)
                            }
                        }
                    }
                    if (!s.length) delete this._events[t]
                }
            }
            return this
        },
        trigger: function(t) {
            if (!this._events) return this;
            var e = o.call(arguments, 1);
            if (!c(this, "trigger", t, e)) return this;
            var i = this._events[t];
            var r = this._events.all;
            if (i) f(i, e);
            if (r) f(r, arguments);
            return this
        },
        stopListening: function(t, e, r) {
            var s = this._listeningTo;
            if (!s) return this;
            var n = !e && !r;
            if (!r && typeof e === "object") r = this;
            if (t)(s = {})[t._listenId] = t;
            for (var a in s) {
                t = s[a];
                t.off(e, r, this);
                if (n || i.isEmpty(t._events)) delete this._listeningTo[a]
            }
            return this
        }
    };
    var l = /\s+/;
    var c = function(t, e, i, r) {
        if (!i) return true;
        if (typeof i === "object") {
            for (var s in i) {
                t[e].apply(t, [s, i[s]].concat(r))
            }
            return false
        }
        if (l.test(i)) {
            var n = i.split(l);
            for (var a = 0, o = n.length; a < o; a++) {
                t[e].apply(t, [n[a]].concat(r))
            }
            return false
        }
        return true
    };
    var f = function(t, e) {
        var i, r = -1,
            s = t.length,
            n = e[0],
            a = e[1],
            o = e[2];
        switch (e.length) {
            case 0:
                while (++r < s)(i = t[r]).callback.call(i.ctx);
                return;
            case 1:
                while (++r < s)(i = t[r]).callback.call(i.ctx, n);
                return;
            case 2:
                while (++r < s)(i = t[r]).callback.call(i.ctx, n, a);
                return;
            case 3:
                while (++r < s)(i = t[r]).callback.call(i.ctx, n, a, o);
                return;
            default:
                while (++r < s)(i = t[r]).callback.apply(i.ctx, e);
                return
        }
    };
    var d = {
        listenTo: "on",
        listenToOnce: "once"
    };
    i.each(d, function(t, e) {
        u[e] = function(e, r, s) {
            var n = this._listeningTo || (this._listeningTo = {});
            var a = e._listenId || (e._listenId = i.uniqueId("l"));
            n[a] = e;
            if (!s && typeof r === "object") s = this;
            e[t](r, s, this);
            return this
        }
    });
    u.bind = u.on;
    u.unbind = u.off;
    i.extend(e, u);
    var p = e.Model = function(t, e) {
        var r = t || {};
        e || (e = {});
        this.cid = i.uniqueId("c");
        this.attributes = {};
        if (e.collection) this.collection = e.collection;
        if (e.parse) r = this.parse(r, e) || {};
        r = i.defaults({}, r, i.result(this, "defaults"));
        this.set(r, e);
        this.changed = {};
        this.initialize.apply(this, arguments)
    };
    i.extend(p.prototype, u, {
        changed: null,
        validationError: null,
        idAttribute: "id",
        initialize: function() {},
        toJSON: function(t) {
            return i.clone(this.attributes)
        },
        sync: function() {
            return e.sync.apply(this, arguments)
        },
        get: function(t) {
            return this.attributes[t]
        },
        escape: function(t) {
            return i.escape(this.get(t))
        },
        has: function(t) {
            return this.get(t) != null
        },
        set: function(t, e, r) {
            var s, n, a, o, h, u, l, c;
            if (t == null) return this;
            if (typeof t === "object") {
                n = t;
                r = e
            } else {
                (n = {})[t] = e
            }
            r || (r = {});
            if (!this._validate(n, r)) return false;
            a = r.unset;
            h = r.silent;
            o = [];
            u = this._changing;
            this._changing = true;
            if (!u) {
                this._previousAttributes = i.clone(this.attributes);
                this.changed = {}
            }
            c = this.attributes, l = this._previousAttributes;
            if (this.idAttribute in n) this.id = n[this.idAttribute];
            for (s in n) {
                e = n[s];
                if (!i.isEqual(c[s], e)) o.push(s);
                if (!i.isEqual(l[s], e)) {
                    this.changed[s] = e
                } else {
                    delete this.changed[s]
                }
                a ? delete c[s] : c[s] = e
            }
            if (!h) {
                if (o.length) this._pending = r;
                for (var f = 0, d = o.length; f < d; f++) {
                    this.trigger("change:" + o[f], this, c[o[f]], r)
                }
            }
            if (u) return this;
            if (!h) {
                while (this._pending) {
                    r = this._pending;
                    this._pending = false;
                    this.trigger("change", this, r)
                }
            }
            this._pending = false;
            this._changing = false;
            return this
        },
        unset: function(t, e) {
            return this.set(t, void 0, i.extend({}, e, {
                unset: true
            }))
        },
        clear: function(t) {
            var e = {};
            for (var r in this.attributes) e[r] = void 0;
            return this.set(e, i.extend({}, t, {
                unset: true
            }))
        },
        hasChanged: function(t) {
            if (t == null) return !i.isEmpty(this.changed);
            return i.has(this.changed, t)
        },
        changedAttributes: function(t) {
            if (!t) return this.hasChanged() ? i.clone(this.changed) : false;
            var e, r = false;
            var s = this._changing ? this._previousAttributes : this.attributes;
            for (var n in t) {
                if (i.isEqual(s[n], e = t[n])) continue;
                (r || (r = {}))[n] = e
            }
            return r
        },
        previous: function(t) {
            if (t == null || !this._previousAttributes) return null;
            return this._previousAttributes[t]
        },
        previousAttributes: function() {
            return i.clone(this._previousAttributes)
        },
        fetch: function(t) {
            t = t ? i.clone(t) : {};
            if (t.parse === void 0) t.parse = true;
            var e = this;
            var r = t.success;
            t.success = function(i) {
                if (!e.set(e.parse(i, t), t)) return false;
                if (r) r(e, i, t);
                e.trigger("sync", e, i, t)
            };
            M(this, t);
            return this.sync("read", this, t)
        },
        save: function(t, e, r) {
            var s, n, a, o = this.attributes;
            if (t == null || typeof t === "object") {
                s = t;
                r = e
            } else {
                (s = {})[t] = e
            }
            r = i.extend({
                validate: true
            }, r);
            if (s && !r.wait) {
                if (!this.set(s, r)) return false
            } else {
                if (!this._validate(s, r)) return false
            }
            if (s && r.wait) {
                this.attributes = i.extend({}, o, s)
            }
            if (r.parse === void 0) r.parse = true;
            var h = this;
            var u = r.success;
            r.success = function(t) {
                h.attributes = o;
                var e = h.parse(t, r);
                if (r.wait) e = i.extend(s || {}, e);
                if (i.isObject(e) && !h.set(e, r)) {
                    return false
                }
                if (u) u(h, t, r);
                h.trigger("sync", h, t, r)
            };
            M(this, r);
            n = this.isNew() ? "create" : r.patch ? "patch" : "update";
            if (n === "patch") r.attrs = s;
            a = this.sync(n, this, r);
            if (s && r.wait) this.attributes = o;
            return a
        },
        destroy: function(t) {
            t = t ? i.clone(t) : {};
            var e = this;
            var r = t.success;
            var s = function() {
                e.trigger("destroy", e, e.collection, t)
            };
            t.success = function(i) {
                if (t.wait || e.isNew()) s();
                if (r) r(e, i, t);
                if (!e.isNew()) e.trigger("sync", e, i, t)
            };
            if (this.isNew()) {
                t.success();
                return false
            }
            M(this, t);
            var n = this.sync("delete", this, t);
            if (!t.wait) s();
            return n
        },
        url: function() {
            var t = i.result(this, "urlRoot") || i.result(this.collection, "url") || q();
            if (this.isNew()) return t;
            return t.replace(/([^\/])$/, "$1/") + encodeURIComponent(this.id)
        },
        parse: function(t, e) {
            return t
        },
        clone: function() {
            return new this.constructor(this.attributes)
        },
        isNew: function() {
            return !this.has(this.idAttribute)
        },
        isValid: function(t) {
            return this._validate({}, i.extend(t || {}, {
                validate: true
            }))
        },
        _validate: function(t, e) {
            if (!e.validate || !this.validate) return true;
            t = i.extend({}, this.attributes, t);
            var r = this.validationError = this.validate(t, e) || null;
            if (!r) return true;
            this.trigger("invalid", this, r, i.extend(e, {
                validationError: r
            }));
            return false
        }
    });
    var v = ["keys", "values", "pairs", "invert", "pick", "omit"];
    i.each(v, function(t) {
        p.prototype[t] = function() {
            var e = o.call(arguments);
            e.unshift(this.attributes);
            return i[t].apply(i, e)
        }
    });
    var g = e.Collection = function(t, e) {
        e || (e = {});
        if (e.model) this.model = e.model;
        if (e.comparator !== void 0) this.comparator = e.comparator;
        this._reset();
        this.initialize.apply(this, arguments);
        if (t) this.reset(t, i.extend({
            silent: true
        }, e))
    };
    var m = {
        add: true,
        remove: true,
        merge: true
    };
    var y = {
        add: true,
        remove: false
    };
    i.extend(g.prototype, u, {
        model: p,
        initialize: function() {},
        toJSON: function(t) {
            return this.map(function(e) {
                return e.toJSON(t)
            })
        },
        sync: function() {
            return e.sync.apply(this, arguments)
        },
        add: function(t, e) {
            return this.set(t, i.extend({
                merge: false
            }, e, y))
        },
        remove: function(t, e) {
            var r = !i.isArray(t);
            t = r ? [t] : i.clone(t);
            e || (e = {});
            var s, n, a, o;
            for (s = 0, n = t.length; s < n; s++) {
                o = t[s] = this.get(t[s]);
                if (!o) continue;
                delete this._byId[o.id];
                delete this._byId[o.cid];
                a = this.indexOf(o);
                this.models.splice(a, 1);
                this.length--;
                if (!e.silent) {
                    e.index = a;
                    o.trigger("remove", o, this, e)
                }
                this._removeReference(o, e)
            }
            return r ? t[0] : t
        },
        set: function(t, e) {
            e = i.defaults({}, e, m);
            if (e.parse) t = this.parse(t, e);
            var r = !i.isArray(t);
            t = r ? t ? [t] : [] : i.clone(t);
            var s, n, a, o, h, u, l;
            var c = e.at;
            var f = this.model;
            var d = this.comparator && c == null && e.sort !== false;
            var v = i.isString(this.comparator) ? this.comparator : null;
            var g = [],
                y = [],
                _ = {};
            var b = e.add,
                w = e.merge,
                x = e.remove;
            var E = !d && b && x ? [] : false;
            for (s = 0, n = t.length; s < n; s++) {
                h = t[s] || {};
                if (h instanceof p) {
                    a = o = h
                } else {
                    a = h[f.prototype.idAttribute || "id"]
                }
                if (u = this.get(a)) {
                    if (x) _[u.cid] = true;
                    if (w) {
                        h = h === o ? o.attributes : h;
                        if (e.parse) h = u.parse(h, e);
                        u.set(h, e);
                        if (d && !l && u.hasChanged(v)) l = true
                    }
                    t[s] = u
                } else if (b) {
                    o = t[s] = this._prepareModel(h, e);
                    if (!o) continue;
                    g.push(o);
                    this._addReference(o, e)
                }
                o = u || o;
                if (E && (o.isNew() || !_[o.id])) E.push(o);
                _[o.id] = true
            }
            if (x) {
                for (s = 0, n = this.length; s < n; ++s) {
                    if (!_[(o = this.models[s]).cid]) y.push(o)
                }
                if (y.length) this.remove(y, e)
            }
            if (g.length || E && E.length) {
                if (d) l = true;
                this.length += g.length;
                if (c != null) {
                    for (s = 0, n = g.length; s < n; s++) {
                        this.models.splice(c + s, 0, g[s])
                    }
                } else {
                    if (E) this.models.length = 0;
                    var k = E || g;
                    for (s = 0, n = k.length; s < n; s++) {
                        this.models.push(k[s])
                    }
                }
            }
            if (l) this.sort({
                silent: true
            });
            if (!e.silent) {
                for (s = 0, n = g.length; s < n; s++) {
                    (o = g[s]).trigger("add", o, this, e)
                }
                if (l || E && E.length) this.trigger("sort", this, e)
            }
            return r ? t[0] : t
        },
        reset: function(t, e) {
            e || (e = {});
            for (var r = 0, s = this.models.length; r < s; r++) {
                this._removeReference(this.models[r], e)
            }
            e.previousModels = this.models;
            this._reset();
            t = this.add(t, i.extend({
                silent: true
            }, e));
            if (!e.silent) this.trigger("reset", this, e);
            return t
        },
        push: function(t, e) {
            return this.add(t, i.extend({
                at: this.length
            }, e))
        },
        pop: function(t) {
            var e = this.at(this.length - 1);
            this.remove(e, t);
            return e
        },
        unshift: function(t, e) {
            return this.add(t, i.extend({
                at: 0
            }, e))
        },
        shift: function(t) {
            var e = this.at(0);
            this.remove(e, t);
            return e
        },
        slice: function() {
            return o.apply(this.models, arguments)
        },
        get: function(t) {
            if (t == null) return void 0;
            return this._byId[t] || this._byId[t.id] || this._byId[t.cid]
        },
        at: function(t) {
            return this.models[t]
        },
        where: function(t, e) {
            if (i.isEmpty(t)) return e ? void 0 : [];
            return this[e ? "find" : "filter"](function(e) {
                for (var i in t) {
                    if (t[i] !== e.get(i)) return false
                }
                return true
            })
        },
        findWhere: function(t) {
            return this.where(t, true)
        },
        sort: function(t) {
            if (!this.comparator) throw new Error("Cannot sort a set without a comparator");
            t || (t = {});
            if (i.isString(this.comparator) || this.comparator.length === 1) {
                this.models = this.sortBy(this.comparator, this)
            } else {
                this.models.sort(i.bind(this.comparator, this))
            }
            if (!t.silent) this.trigger("sort", this, t);
            return this
        },
        pluck: function(t) {
            return i.invoke(this.models, "get", t)
        },
        fetch: function(t) {
            t = t ? i.clone(t) : {};
            if (t.parse === void 0) t.parse = true;
            var e = t.success;
            var r = this;
            t.success = function(i) {
                var s = t.reset ? "reset" : "set";
                r[s](i, t);
                if (e) e(r, i, t);
                r.trigger("sync", r, i, t)
            };
            M(this, t);
            return this.sync("read", this, t)
        },
        create: function(t, e) {
            e = e ? i.clone(e) : {};
            if (!(t = this._prepareModel(t, e))) return false;
            if (!e.wait) this.add(t, e);
            var r = this;
            var s = e.success;
            e.success = function(t, i) {
                if (e.wait) r.add(t, e);
                if (s) s(t, i, e)
            };
            t.save(null, e);
            return t
        },
        parse: function(t, e) {
            return t
        },
        clone: function() {
            return new this.constructor(this.models)
        },
        _reset: function() {
            this.length = 0;
            this.models = [];
            this._byId = {}
        },
        _prepareModel: function(t, e) {
            if (t instanceof p) return t;
            e = e ? i.clone(e) : {};
            e.collection = this;
            var r = new this.model(t, e);
            if (!r.validationError) return r;
            this.trigger("invalid", this, r.validationError, e);
            return false
        },
        _addReference: function(t, e) {
            this._byId[t.cid] = t;
            if (t.id != null) this._byId[t.id] = t;
            if (!t.collection) t.collection = this;
            t.on("all", this._onModelEvent, this)
        },
        _removeReference: function(t, e) {
            if (this === t.collection) delete t.collection;
            t.off("all", this._onModelEvent, this)
        },
        _onModelEvent: function(t, e, i, r) {
            if ((t === "add" || t === "remove") && i !== this) return;
            if (t === "destroy") this.remove(e, r);
            if (e && t === "change:" + e.idAttribute) {
                delete this._byId[e.previous(e.idAttribute)];
                if (e.id != null) this._byId[e.id] = e
            }
            this.trigger.apply(this, arguments)
        }
    });
    var _ = ["forEach", "each", "map", "collect", "reduce", "foldl", "inject", "reduceRight", "foldr", "find", "detect", "filter", "select", "reject", "every", "all", "some", "any", "include", "contains", "invoke", "max", "min", "toArray", "size", "first", "head", "take", "initial", "rest", "tail", "drop", "last", "without", "difference", "indexOf", "shuffle", "lastIndexOf", "isEmpty", "chain", "sample"];
    i.each(_, function(t) {
        g.prototype[t] = function() {
            var e = o.call(arguments);
            e.unshift(this.models);
            return i[t].apply(i, e)
        }
    });
    var b = ["groupBy", "countBy", "sortBy", "indexBy"];
    i.each(b, function(t) {
        g.prototype[t] = function(e, r) {
            var s = i.isFunction(e) ? e : function(t) {
                return t.get(e)
            };
            return i[t](this.models, s, r)
        }
    });
    var w = e.View = function(t) {
        this.cid = i.uniqueId("view");
        t || (t = {});
        i.extend(this, i.pick(t, E));
        this._ensureElement();
        this.initialize.apply(this, arguments);
        this.delegateEvents()
    };
    var x = /^(\S+)\s*(.*)$/;
    var E = ["model", "collection", "el", "id", "attributes", "className", "tagName", "events"];
    i.extend(w.prototype, u, {
        tagName: "div",
        $: function(t) {
            return this.$el.find(t)
        },
        initialize: function() {},
        render: function() {
            return this
        },
        remove: function() {
            this.$el.remove();
            this.stopListening();
            return this
        },
        setElement: function(t, i) {
            if (this.$el) this.undelegateEvents();
            this.$el = t instanceof e.$ ? t : e.$(t);
            this.el = this.$el[0];
            if (i !== false) this.delegateEvents();
            return this
        },
        delegateEvents: function(t) {
            if (!(t || (t = i.result(this, "events")))) return this;
            this.undelegateEvents();
            for (var e in t) {
                var r = t[e];
                if (!i.isFunction(r)) r = this[t[e]];
                if (!r) continue;
                var s = e.match(x);
                var n = s[1],
                    a = s[2];
                r = i.bind(r, this);
                n += ".delegateEvents" + this.cid;
                if (a === "") {
                    this.$el.on(n, r)
                } else {
                    this.$el.on(n, a, r)
                }
            }
            return this
        },
        undelegateEvents: function() {
            this.$el.off(".delegateEvents" + this.cid);
            return this
        },
        _ensureElement: function() {
            if (!this.el) {
                var t = i.extend({}, i.result(this, "attributes"));
                if (this.id) t.id = i.result(this, "id");
                if (this.className) t["class"] = i.result(this, "className");
                var r = e.$("<" + i.result(this, "tagName") + ">").attr(t);
                this.setElement(r, false)
            } else {
                this.setElement(i.result(this, "el"), false)
            }
        }
    });
    e.sync = function(t, r, s) {
        var n = T[t];
        i.defaults(s || (s = {}), {
            emulateHTTP: e.emulateHTTP,
            emulateJSON: e.emulateJSON
        });
        var a = {
            type: n,
            dataType: "json"
        };
        if (!s.url) {
            a.url = i.result(r, "url") || q()
        }
        if (s.data == null && r && (t === "create" || t === "update" || t === "patch")) {
            a.contentType = "application/json";
            a.data = JSON.stringify(s.attrs || r.toJSON(s))
        }
        if (s.emulateJSON) {
            a.contentType = "application/x-www-form-urlencoded";
            a.data = a.data ? {
                model: a.data
            } : {}
        }
        if (s.emulateHTTP && (n === "PUT" || n === "DELETE" || n === "PATCH")) {
            a.type = "POST";
            if (s.emulateJSON) a.data._method = n;
            var o = s.beforeSend;
            s.beforeSend = function(t) {
                t.setRequestHeader("X-HTTP-Method-Override", n);
                if (o) return o.apply(this, arguments)
            }
        }
        if (a.type !== "GET" && !s.emulateJSON) {
            a.processData = false
        }
        if (a.type === "PATCH" && k) {
            a.xhr = function() {
                return new ActiveXObject("Microsoft.XMLHTTP")
            }
        }
        var h = s.xhr = e.ajax(i.extend(a, s));
        r.trigger("request", r, h, s);
        return h
    };
    var k = typeof window !== "undefined" && !!window.ActiveXObject && !(window.XMLHttpRequest && (new XMLHttpRequest).dispatchEvent);
    var T = {
        create: "POST",
        update: "PUT",
        patch: "PATCH",
        "delete": "DELETE",
        read: "GET"
    };
    e.ajax = function() {
        return e.$.ajax.apply(e.$, arguments)
    };
    var $ = e.Router = function(t) {
        t || (t = {});
        if (t.routes) this.routes = t.routes;
        this._bindRoutes();
        this.initialize.apply(this, arguments)
    };
    var S = /\((.*?)\)/g;
    var H = /(\(\?)?:\w+/g;
    var A = /\*\w+/g;
    var I = /[\-{}\[\]+?.,\\\^$|#\s]/g;
    i.extend($.prototype, u, {
        initialize: function() {},
        route: function(t, r, s) {
            if (!i.isRegExp(t)) t = this._routeToRegExp(t);
            if (i.isFunction(r)) {
                s = r;
                r = ""
            }
            if (!s) s = this[r];
            var n = this;
            e.history.route(t, function(i) {
                var a = n._extractParameters(t, i);
                n.execute(s, a);
                n.trigger.apply(n, ["route:" + r].concat(a));
                n.trigger("route", r, a);
                e.history.trigger("route", n, r, a)
            });
            return this
        },
        execute: function(t, e) {
            if (t) t.apply(this, e)
        },
        navigate: function(t, i) {
            e.history.navigate(t, i);
            return this
        },
        _bindRoutes: function() {
            if (!this.routes) return;
            this.routes = i.result(this, "routes");
            var t, e = i.keys(this.routes);
            while ((t = e.pop()) != null) {
                this.route(t, this.routes[t])
            }
        },
        _routeToRegExp: function(t) {
            t = t.replace(I, "\\$&").replace(S, "(?:$1)?").replace(H, function(t, e) {
                return e ? t : "([^/?]+)"
            }).replace(A, "([^?]*?)");
            return new RegExp("^" + t + "(?:\\?(.*))?$")
        },
        _extractParameters: function(t, e) {
            var r = t.exec(e).slice(1);
            return i.map(r, function(t, e) {
                if (e === r.length - 1) return t || null;
                return t ? decodeURIComponent(t) : null
            })
        }
    });
    var N = e.History = function() {
        this.handlers = [];
        i.bindAll(this, "checkUrl");
        if (typeof window !== "undefined") {
            this.location = window.location;
            this.history = window.history
        }
    };
    var R = /^[#\/]|\s+$/g;
    var O = /^\/+|\/+$/g;
    var P = /msie [\w.]+/;
    var j = /\/$/;
    var C = /#.*$/;
    N.started = false;
    i.extend(N.prototype, u, {
        interval: 50,
        atRoot: function() {
            return this.location.pathname.replace(/[^\/]$/, "$&/") === this.root
        },
        getHash: function(t) {
            var e = (t || this).location.href.match(/#(.*)$/);
            return e ? e[1] : ""
        },
        getFragment: function(t, e) {
            if (t == null) {
                if (this._hasPushState || !this._wantsHashChange || e) {
                    t = decodeURI(this.location.pathname + this.location.search);
                    var i = this.root.replace(j, "");
                    if (!t.indexOf(i)) t = t.slice(i.length)
                } else {
                    t = this.getHash()
                }
            }
            return t.replace(R, "")
        },
        start: function(t) {
            if (N.started) throw new Error("Backbone.history has already been started");
            N.started = true;
            this.options = i.extend({
                root: "/"
            }, this.options, t);
            this.root = this.options.root;
            this._wantsHashChange = this.options.hashChange !== false;
            this._wantsPushState = !!this.options.pushState;
            this._hasPushState = !!(this.options.pushState && this.history && this.history.pushState);
            var r = this.getFragment();
            var s = document.documentMode;
            var n = P.exec(navigator.userAgent.toLowerCase()) && (!s || s <= 7);
            this.root = ("/" + this.root + "/").replace(O, "/");
            if (n && this._wantsHashChange) {
                var a = e.$('<iframe src="javascript:0" tabindex="-1">');
                this.iframe = a.hide().appendTo("body")[0].contentWindow;
                this.navigate(r)
            }
            if (this._hasPushState) {
                e.$(window).on("popstate", this.checkUrl)
            } else if (this._wantsHashChange && "onhashchange" in window && !n) {
                e.$(window).on("hashchange", this.checkUrl)
            } else if (this._wantsHashChange) {
                this._checkUrlInterval = setInterval(this.checkUrl, this.interval)
            }
            this.fragment = r;
            var o = this.location;
            if (this._wantsHashChange && this._wantsPushState) {
                if (!this._hasPushState && !this.atRoot()) {
                    this.fragment = this.getFragment(null, true);
                    this.location.replace(this.root + "#" + this.fragment);
                    return true
                } else if (this._hasPushState && this.atRoot() && o.hash) {
                    this.fragment = this.getHash().replace(R, "");
                    this.history.replaceState({}, document.title, this.root + this.fragment)
                }
            }
            if (!this.options.silent) return this.loadUrl()
        },
        stop: function() {
            e.$(window).off("popstate", this.checkUrl).off("hashchange", this.checkUrl);
            clearInterval(this._checkUrlInterval);
            N.started = false
        },
        route: function(t, e) {
            this.handlers.unshift({
                route: t,
                callback: e
            })
        },
        checkUrl: function(t) {
            var e = this.getFragment();
            if (e === this.fragment && this.iframe) {
                e = this.getFragment(this.getHash(this.iframe))
            }
            if (e === this.fragment) return false;
            if (this.iframe) this.navigate(e);
            this.loadUrl()
        },
        loadUrl: function(t) {
            t = this.fragment = this.getFragment(t);
            return i.any(this.handlers, function(e) {
                if (e.route.test(t)) {
                    e.callback(t);
                    return true
                }
            })
        },
        navigate: function(t, e) {
            if (!N.started) return false;
            if (!e || e === true) e = {
                trigger: !!e
            };
            var i = this.root + (t = this.getFragment(t || ""));
            t = t.replace(C, "");
            if (this.fragment === t) return;
            this.fragment = t;
            if (t === "" && i !== "/") i = i.slice(0, -1);
            if (this._hasPushState) {
                this.history[e.replace ? "replaceState" : "pushState"]({}, document.title, i)
            } else if (this._wantsHashChange) {
                this._updateHash(this.location, t, e.replace);
                if (this.iframe && t !== this.getFragment(this.getHash(this.iframe))) {
                    if (!e.replace) this.iframe.document.open().close();
                    this._updateHash(this.iframe.location, t, e.replace)
                }
            } else {
                return this.location.assign(i)
            }
            if (e.trigger) return this.loadUrl(t)
        },
        _updateHash: function(t, e, i) {
            if (i) {
                var r = t.href.replace(/(javascript:|#).*$/, "");
                t.replace(r + "#" + e)
            } else {
                t.hash = "#" + e
            }
        }
    });
    e.history = new N;
    var U = function(t, e) {
        var r = this;
        var s;
        if (t && i.has(t, "constructor")) {
            s = t.constructor
        } else {
            s = function() {
                return r.apply(this, arguments)
            }
        }
        i.extend(s, r, e);
        var n = function() {
            this.constructor = s
        };
        n.prototype = r.prototype;
        s.prototype = new n;
        if (t) i.extend(s.prototype, t);
        s.__super__ = r.prototype;
        return s
    };
    p.extend = g.extend = $.extend = w.extend = N.extend = U;
    var q = function() {
        throw new Error('A "url" property or function must be specified')
    };
    var M = function(t, e) {
        var i = e.error;
        e.error = function(r) {
            if (i) i(t, r, e);
            t.trigger("error", t, r, e)
        }
    };
    return e
});
                                    

#5 JavaScript::Eval (size: 120010, repeated: 1) - SHA256: e8015dce055d09855cf0441d8c00cb7960e5fea33d37c63782438effa7de42b0

                                        /* MarionetteJS (Backbone.Marionette)
 ----------------------------------
 v2.3.0

 Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
 Distributed under MIT license

 http://marionettejs.com
Copyright � 2016 Muted Solutions, LLC <derick@mutedsolutions.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 * Includes BabySitter
 * https://github.com/marionettejs/backbone.babysitter/
 *
 * Includes Wreqr
 * https://github.com/marionettejs/backbone.wreqr/
*/


(function(root, factory) {

    /* istanbul ignore next */
    if (typeof define === 'function' && define.amd) {
        define(['backbone', 'underscore'], function(Backbone, _) {
            return (root.Marionette = root.Mn = factory(root, Backbone, _));
        });
    } else if (typeof exports !== 'undefined') {
        var Backbone = require('backbone');
        var _ = require('underscore');
        module.exports = factory(root, Backbone, _);
    } else {
        root.Marionette = root.Mn = factory(root, root.Backbone, root._);
    }

}(this, function(root, Backbone, _) {
    'use strict';

    /* istanbul ignore next */
    // Backbone.BabySitter
    // -------------------
    // v0.1.4
    //
    // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
    // Distributed under MIT license
    //
    // http://github.com/marionettejs/backbone.babysitter
    (function(Backbone, _) {
        "use strict";
        var previousChildViewContainer = Backbone.ChildViewContainer;
        // BabySitter.ChildViewContainer
        // -----------------------------
        //
        // Provide a container to store, retrieve and
        // shut down child views.
        Backbone.ChildViewContainer = function(Backbone, _) {
            // Container Constructor
            // ---------------------
            var Container = function(views) {
                this._views = {};
                this._indexByModel = {};
                this._indexByCustom = {};
                this._updateLength();
                _.each(views, this.add, this);
            };
            // Container Methods
            // -----------------
            _.extend(Container.prototype, {
                // Add a view to this container. Stores the view
                // by `cid` and makes it searchable by the model
                // cid (and model itself). Optionally specify
                // a custom key to store an retrieve the view.
                add: function(view, customIndex) {
                    var viewCid = view.cid;
                    // store the view
                    this._views[viewCid] = view;
                    // index it by model
                    if (view.model) {
                        this._indexByModel[view.model.cid] = viewCid;
                    }
                    // index by custom
                    if (customIndex) {
                        this._indexByCustom[customIndex] = viewCid;
                    }
                    this._updateLength();
                    return this;
                },
                // Find a view by the model that was attached to
                // it. Uses the model's `cid` to find it.
                findByModel: function(model) {
                    return this.findByModelCid(model.cid);
                },
                // Find a view by the `cid` of the model that was attached to
                // it. Uses the model's `cid` to find the view `cid` and
                // retrieve the view using it.
                findByModelCid: function(modelCid) {
                    var viewCid = this._indexByModel[modelCid];
                    return this.findByCid(viewCid);
                },
                // Find a view by a custom indexer.
                findByCustom: function(index) {
                    var viewCid = this._indexByCustom[index];
                    return this.findByCid(viewCid);
                },
                // Find by index. This is not guaranteed to be a
                // stable index.
                findByIndex: function(index) {
                    return _.values(this._views)[index];
                },
                // retrieve a view by its `cid` directly
                findByCid: function(cid) {
                    return this._views[cid];
                },
                // Remove a view
                remove: function(view) {
                    var viewCid = view.cid;
                    // delete model index
                    if (view.model) {
                        delete this._indexByModel[view.model.cid];
                    }
                    // delete custom index
                    _.any(this._indexByCustom, function(cid, key) {
                        if (cid === viewCid) {
                            delete this._indexByCustom[key];
                            return true;
                        }
                    }, this);
                    // remove the view from the container
                    delete this._views[viewCid];
                    // update the length
                    this._updateLength();
                    return this;
                },
                // Call a method on every view in the container,
                // passing parameters to the call method one at a
                // time, like `function.call`.
                call: function(method) {
                    this.apply(method, _.tail(arguments));
                },
                // Apply a method on every view in the container,
                // passing parameters to the call method one at a
                // time, like `function.apply`.
                apply: function(method, args) {
                    _.each(this._views, function(view) {
                        if (_.isFunction(view[method])) {
                            view[method].apply(view, args || []);
                        }
                    });
                },
                // Update the `.length` attribute on this container
                _updateLength: function() {
                    this.length = _.size(this._views);
                }
            });
            // Borrowing this code from Backbone.Collection:
            // http://backbonejs.org/docs/backbone.html#section-106
            //
            // Mix in methods from Underscore, for iteration, and other
            // collection related features.
            var methods = ["forEach", "each", "map", "find", "detect", "filter", "select", "reject", "every", "all", "some", "any", "include", "contains", "invoke", "toArray", "first", "initial", "rest", "last", "without", "isEmpty", "pluck"];
            _.each(methods, function(method) {
                Container.prototype[method] = function() {
                    var views = _.values(this._views);
                    var args = [views].concat(_.toArray(arguments));
                    return _[method].apply(_, args);
                };
            });
            // return the public API
            return Container;
        }(Backbone, _);
        Backbone.ChildViewContainer.VERSION = "0.1.4";
        Backbone.ChildViewContainer.noConflict = function() {
            Backbone.ChildViewContainer = previousChildViewContainer;
            return this;
        };
        return Backbone.ChildViewContainer;
    })(Backbone, _);

    /* istanbul ignore next */
    // Backbone.Wreqr (Backbone.Marionette)
    // ----------------------------------
    // v1.3.1
    //
    // Copyright (c)2014 Derick Bailey, Muted Solutions, LLC.
    // Distributed under MIT license
    //
    // http://github.com/marionettejs/backbone.wreqr
    (function(Backbone, _) {
        "use strict";
        var previousWreqr = Backbone.Wreqr;
        var Wreqr = Backbone.Wreqr = {};
        Backbone.Wreqr.VERSION = "1.3.1";
        Backbone.Wreqr.noConflict = function() {
            Backbone.Wreqr = previousWreqr;
            return this;
        };
        // Handlers
        // --------
        // A registry of functions to call, given a name
        Wreqr.Handlers = function(Backbone, _) {
            "use strict";
            // Constructor
            // -----------
            var Handlers = function(options) {
                this.options = options;
                this._wreqrHandlers = {};
                if (_.isFunction(this.initialize)) {
                    this.initialize(options);
                }
            };
            Handlers.extend = Backbone.Model.extend;
            // Instance Members
            // ----------------
            _.extend(Handlers.prototype, Backbone.Events, {
                // Add multiple handlers using an object literal configuration
                setHandlers: function(handlers) {
                    _.each(handlers, function(handler, name) {
                        var context = null;
                        if (_.isObject(handler) && !_.isFunction(handler)) {
                            context = handler.context;
                            handler = handler.callback;
                        }
                        this.setHandler(name, handler, context);
                    }, this);
                },
                // Add a handler for the given name, with an
                // optional context to run the handler within
                setHandler: function(name, handler, context) {
                    var config = {
                        callback: handler,
                        context: context
                    };
                    this._wreqrHandlers[name] = config;
                    this.trigger("handler:add", name, handler, context);
                },
                // Determine whether or not a handler is registered
                hasHandler: function(name) {
                    return !!this._wreqrHandlers[name];
                },
                // Get the currently registered handler for
                // the specified name. Throws an exception if
                // no handler is found.
                getHandler: function(name) {
                    var config = this._wreqrHandlers[name];
                    if (!config) {
                        return;
                    }
                    return function() {
                        var args = Array.prototype.slice.apply(arguments);
                        return config.callback.apply(config.context, args);
                    };
                },
                // Remove a handler for the specified name
                removeHandler: function(name) {
                    delete this._wreqrHandlers[name];
                },
                // Remove all handlers from this registry
                removeAllHandlers: function() {
                    this._wreqrHandlers = {};
                }
            });
            return Handlers;
        }(Backbone, _);
        // Wreqr.CommandStorage
        // --------------------
        //
        // Store and retrieve commands for execution.
        Wreqr.CommandStorage = function() {
            "use strict";
            // Constructor function
            var CommandStorage = function(options) {
                this.options = options;
                this._commands = {};
                if (_.isFunction(this.initialize)) {
                    this.initialize(options);
                }
            };
            // Instance methods
            _.extend(CommandStorage.prototype, Backbone.Events, {
                // Get an object literal by command name, that contains
                // the `commandName` and the `instances` of all commands
                // represented as an array of arguments to process
                getCommands: function(commandName) {
                    var commands = this._commands[commandName];
                    // we don't have it, so add it
                    if (!commands) {
                        // build the configuration
                        commands = {
                            command: commandName,
                            instances: []
                        };
                        // store it
                        this._commands[commandName] = commands;
                    }
                    return commands;
                },
                // Add a command by name, to the storage and store the
                // args for the command
                addCommand: function(commandName, args) {
                    var command = this.getCommands(commandName);
                    command.instances.push(args);
                },
                // Clear all commands for the given `commandName`
                clearCommands: function(commandName) {
                    var command = this.getCommands(commandName);
                    command.instances = [];
                }
            });
            return CommandStorage;
        }();
        // Wreqr.Commands
        // --------------
        //
        // A simple command pattern implementation. Register a command
        // handler and execute it.
        Wreqr.Commands = function(Wreqr) {
            "use strict";
            return Wreqr.Handlers.extend({
                // default storage type
                storageType: Wreqr.CommandStorage,
                constructor: function(options) {
                    this.options = options || {};
                    this._initializeStorage(this.options);
                    this.on("handler:add", this._executeCommands, this);
                    var args = Array.prototype.slice.call(arguments);
                    Wreqr.Handlers.prototype.constructor.apply(this, args);
                },
                // Execute a named command with the supplied args
                execute: function(name, args) {
                    name = arguments[0];
                    args = Array.prototype.slice.call(arguments, 1);
                    if (this.hasHandler(name)) {
                        this.getHandler(name).apply(this, args);
                    } else {
                        this.storage.addCommand(name, args);
                    }
                },
                // Internal method to handle bulk execution of stored commands
                _executeCommands: function(name, handler, context) {
                    var command = this.storage.getCommands(name);
                    // loop through and execute all the stored command instances
                    _.each(command.instances, function(args) {
                        handler.apply(context, args);
                    });
                    this.storage.clearCommands(name);
                },
                // Internal method to initialize storage either from the type's
                // `storageType` or the instance `options.storageType`.
                _initializeStorage: function(options) {
                    var storage;
                    var StorageType = options.storageType || this.storageType;
                    if (_.isFunction(StorageType)) {
                        storage = new StorageType();
                    } else {
                        storage = StorageType;
                    }
                    this.storage = storage;
                }
            });
        }(Wreqr);
        // Wreqr.RequestResponse
        // ---------------------
        //
        // A simple request/response implementation. Register a
        // request handler, and return a response from it
        Wreqr.RequestResponse = function(Wreqr) {
            "use strict";
            return Wreqr.Handlers.extend({
                request: function() {
                    var name = arguments[0];
                    var args = Array.prototype.slice.call(arguments, 1);
                    if (this.hasHandler(name)) {
                        return this.getHandler(name).apply(this, args);
                    }
                }
            });
        }(Wreqr);
        // Event Aggregator
        // ----------------
        // A pub-sub object that can be used to decouple various parts
        // of an application through event-driven architecture.
        Wreqr.EventAggregator = function(Backbone, _) {
            "use strict";
            var EA = function() {};
            // Copy the `extend` function used by Backbone's classes
            EA.extend = Backbone.Model.extend;
            // Copy the basic Backbone.Events on to the event aggregator
            _.extend(EA.prototype, Backbone.Events);
            return EA;
        }(Backbone, _);
        // Wreqr.Channel
        // --------------
        //
        // An object that wraps the three messaging systems:
        // EventAggregator, RequestResponse, Commands
        Wreqr.Channel = function(Wreqr) {
            "use strict";
            var Channel = function(channelName) {
                this.vent = new Backbone.Wreqr.EventAggregator();
                this.reqres = new Backbone.Wreqr.RequestResponse();
                this.commands = new Backbone.Wreqr.Commands();
                this.channelName = channelName;
            };
            _.extend(Channel.prototype, {
                // Remove all handlers from the messaging systems of this channel
                reset: function() {
                    this.vent.off();
                    this.vent.stopListening();
                    this.reqres.removeAllHandlers();
                    this.commands.removeAllHandlers();
                    return this;
                },
                // Connect a hash of events; one for each messaging system
                connectEvents: function(hash, context) {
                    this._connect("vent", hash, context);
                    return this;
                },
                connectCommands: function(hash, context) {
                    this._connect("commands", hash, context);
                    return this;
                },
                connectRequests: function(hash, context) {
                    this._connect("reqres", hash, context);
                    return this;
                },
                // Attach the handlers to a given message system `type`
                _connect: function(type, hash, context) {
                    if (!hash) {
                        return;
                    }
                    context = context || this;
                    var method = type === "vent" ? "on" : "setHandler";
                    _.each(hash, function(fn, eventName) {
                        this[type][method](eventName, _.bind(fn, context));
                    }, this);
                }
            });
            return Channel;
        }(Wreqr);
        // Wreqr.Radio
        // --------------
        //
        // An object that lets you communicate with many channels.
        Wreqr.radio = function(Wreqr) {
            "use strict";
            var Radio = function() {
                this._channels = {};
                this.vent = {};
                this.commands = {};
                this.reqres = {};
                this._proxyMethods();
            };
            _.extend(Radio.prototype, {
                channel: function(channelName) {
                    if (!channelName) {
                        throw new Error("Channel must receive a name");
                    }
                    return this._getChannel(channelName);
                },
                _getChannel: function(channelName) {
                    var channel = this._channels[channelName];
                    if (!channel) {
                        channel = new Wreqr.Channel(channelName);
                        this._channels[channelName] = channel;
                    }
                    return channel;
                },
                _proxyMethods: function() {
                    _.each(["vent", "commands", "reqres"], function(system) {
                        _.each(messageSystems[system], function(method) {
                            this[system][method] = proxyMethod(this, system, method);
                        }, this);
                    }, this);
                }
            });
            var messageSystems = {
                vent: ["on", "off", "trigger", "once", "stopListening", "listenTo", "listenToOnce"],
                commands: ["execute", "setHandler", "setHandlers", "removeHandler", "removeAllHandlers"],
                reqres: ["request", "setHandler", "setHandlers", "removeHandler", "removeAllHandlers"]
            };
            var proxyMethod = function(radio, system, method) {
                return function(channelName) {
                    var messageSystem = radio._getChannel(channelName)[system];
                    var args = Array.prototype.slice.call(arguments, 1);
                    return messageSystem[method].apply(messageSystem, args);
                };
            };
            return new Radio();
        }(Wreqr);
        return Backbone.Wreqr;
    })(Backbone, _);

    var previousMarionette = root.Marionette;

    var Marionette = Backbone.Marionette = {};

    Marionette.VERSION = '2.3.0';

    Marionette.noConflict = function() {
        root.Marionette = previousMarionette;
        return this;
    };

    Backbone.Marionette = Marionette;

    // Get the Deferred creator for later use
    Marionette.Deferred = Backbone.$.Deferred;

    /* jshint unused: false */
    /* global console */

    // Helpers
    // -------

    // Marionette.extend
    // -----------------

    // Borrow the Backbone `extend` method so we can use it as needed
    Marionette.extend = Backbone.Model.extend;

    // Marionette.isNodeAttached
    // -------------------------

    // Determine if `el` is a child of the document
    Marionette.isNodeAttached = function(el) {
        return Backbone.$.contains(document.documentElement, el);
    };


    // Marionette.getOption
    // --------------------

    // Retrieve an object, function or other value from a target
    // object or its `options`, with `options` taking precedence.
    Marionette.getOption = function(target, optionName) {
        if (!target || !optionName) {
            return;
        }
        if (target.options && (target.options[optionName] !== undefined)) {
            return target.options[optionName];
        } else {
            return target[optionName];
        }
    };

    // Proxy `Marionette.getOption`
    Marionette.proxyGetOption = function(optionName) {
        return Marionette.getOption(this, optionName);
    };

    // Marionette.normalizeMethods
    // ----------------------

    // Pass in a mapping of events => functions or function names
    // and return a mapping of events => functions
    Marionette.normalizeMethods = function(hash) {
        return _.reduce(hash, function(normalizedHash, method, name) {
            if (!_.isFunction(method)) {
                method = this[method];
            }
            if (method) {
                normalizedHash[name] = method;
            }
            return normalizedHash;
        }, {}, this);
    };

    // utility method for parsing @ui. syntax strings
    // into associated selector
    Marionette.normalizeUIString = function(uiString, ui) {
        return uiString.replace(/@ui\.[a-zA-Z_$0-9]*/g, function(r) {
            return ui[r.slice(4)];
        });
    };

    // allows for the use of the @ui. syntax within
    // a given key for triggers and events
    // swaps the @ui with the associated selector.
    // Returns a new, non-mutated, parsed events hash.
    Marionette.normalizeUIKeys = function(hash, ui) {
        return _.reduce(hash, function(memo, val, key) {
            var normalizedKey = Marionette.normalizeUIString(key, ui);
            memo[normalizedKey] = val;
            return memo;
        }, {});
    };

    // allows for the use of the @ui. syntax within
    // a given value for regions
    // swaps the @ui with the associated selector
    Marionette.normalizeUIValues = function(hash, ui) {
        _.each(hash, function(val, key) {
            if (_.isString(val)) {
                hash[key] = Marionette.normalizeUIString(val, ui);
            }
        });
        return hash;
    };

    // Mix in methods from Underscore, for iteration, and other
    // collection related features.
    // Borrowing this code from Backbone.Collection:
    // http://backbonejs.org/docs/backbone.html#section-121
    Marionette.actAsCollection = function(object, listProperty) {
        var methods = ['forEach', 'each', 'map', 'find', 'detect', 'filter',
            'select', 'reject', 'every', 'all', 'some', 'any', 'include',
            'contains', 'invoke', 'toArray', 'first', 'initial', 'rest',
            'last', 'without', 'isEmpty', 'pluck'
        ];

        _.each(methods, function(method) {
            object[method] = function() {
                var list = _.values(_.result(this, listProperty));
                var args = [list].concat(_.toArray(arguments));
                return _[method].apply(_, args);
            };
        });
    };

    var deprecate = Marionette.deprecate = function(message, test) {
        if (_.isObject(message)) {
            message = (
                message.prev + ' is going to be removed in the future. ' +
                'Please use ' + message.next + ' instead.' +
                (message.url ? ' See: ' + message.url : '')
            );
        }

        if ((test === undefined || !test) && !deprecate._cache[message]) {
            deprecate._warn('Deprecation warning: ' + message);
            deprecate._cache[message] = true;
        }
    };

    deprecate._warn = typeof console !== 'undefined' && (console.warn || console.log) || function() {};
    deprecate._cache = {};

    /* jshint maxstatements: 14, maxcomplexity: 7 */

    // Trigger Method
    // --------------


    Marionette._triggerMethod = (function() {
        // split the event name on the ":"
        var splitter = /(^|:)(\w)/gi;

        // take the event section ("section1:section2:section3")
        // and turn it in to uppercase name
        function getEventName(match, prefix, eventName) {
            return eventName.toUpperCase();
        }

        return function(context, event, args) {
            var noEventArg = arguments.length < 3;
            if (noEventArg) {
                args = event;
                event = args[0];
            }

            // get the method name from the event name
            var methodName = 'on' + event.replace(splitter, getEventName);
            var method = context[methodName];
            var result;

            // call the onMethodName if it exists
            if (_.isFunction(method)) {
                // pass all args, except the event name
                result = method.apply(context, noEventArg ? _.rest(args) : args);
            }

            // trigger the event, if a trigger method exists
            if (_.isFunction(context.trigger)) {
                if (noEventArg + args.length > 1) {
                    context.trigger.apply(context, noEventArg ? args : [event].concat(_.rest(args, 0)));
                } else {
                    context.trigger(event);
                }
            }

            return result;
        };
    })();

    // Trigger an event and/or a corresponding method name. Examples:
    //
    // `this.triggerMethod("foo")` will trigger the "foo" event and
    // call the "onFoo" method.
    //
    // `this.triggerMethod("foo:bar")` will trigger the "foo:bar" event and
    // call the "onFooBar" method.
    Marionette.triggerMethod = function(event) {
        return Marionette._triggerMethod(this, arguments);
    };

    // triggerMethodOn invokes triggerMethod on a specific context
    //
    // e.g. `Marionette.triggerMethodOn(view, 'show')`
    // will trigger a "show" event or invoke onShow the view.
    Marionette.triggerMethodOn = function(context) {
        var fnc = _.isFunction(context.triggerMethod) ?
            context.triggerMethod :
            Marionette.triggerMethod;

        return fnc.apply(context, _.rest(arguments));
    };

    // DOM Refresh
    // -----------

    // Monitor a view's state, and after it has been rendered and shown
    // in the DOM, trigger a "dom:refresh" event every time it is
    // re-rendered.

    Marionette.MonitorDOMRefresh = function(view) {

        // track when the view has been shown in the DOM,
        // using a Marionette.Region (or by other means of triggering "show")
        function handleShow() {
            view._isShown = true;
            triggerDOMRefresh();
        }

        // track when the view has been rendered
        function handleRender() {
            view._isRendered = true;
            triggerDOMRefresh();
        }

        // Trigger the "dom:refresh" event and corresponding "onDomRefresh" method
        function triggerDOMRefresh() {
            if (view._isShown && view._isRendered && Marionette.isNodeAttached(view.el)) {
                if (_.isFunction(view.triggerMethod)) {
                    view.triggerMethod('dom:refresh');
                }
            }
        }

        view.on({
            show: handleShow,
            render: handleRender
        });
    };

    /* jshint maxparams: 5 */

    // Bind Entity Events & Unbind Entity Events
    // -----------------------------------------
    //
    // These methods are used to bind/unbind a backbone "entity" (collection/model)
    // to methods on a target object.
    //
    // The first parameter, `target`, must have a `listenTo` method from the
    // EventBinder object.
    //
    // The second parameter is the entity (Backbone.Model or Backbone.Collection)
    // to bind the events from.
    //
    // The third parameter is a hash of { "event:name": "eventHandler" }
    // configuration. Multiple handlers can be separated by a space. A
    // function can be supplied instead of a string handler name.

    (function(Marionette) {
        'use strict';

        // Bind the event to handlers specified as a string of
        // handler names on the target object
        function bindFromStrings(target, entity, evt, methods) {
            var methodNames = methods.split(/\s+/);

            _.each(methodNames, function(methodName) {

                var method = target[methodName];
                if (!method) {
                    throw new Marionette.Error('Method "' + methodName +
                        '" was configured as an event handler, but does not exist.');
                }

                target.listenTo(entity, evt, method);
            });
        }

        // Bind the event to a supplied callback function
        function bindToFunction(target, entity, evt, method) {
            target.listenTo(entity, evt, method);
        }

        // Bind the event to handlers specified as a string of
        // handler names on the target object
        function unbindFromStrings(target, entity, evt, methods) {
            var methodNames = methods.split(/\s+/);

            _.each(methodNames, function(methodName) {
                var method = target[methodName];
                target.stopListening(entity, evt, method);
            });
        }

        // Bind the event to a supplied callback function
        function unbindToFunction(target, entity, evt, method) {
            target.stopListening(entity, evt, method);
        }


        // generic looping function
        function iterateEvents(target, entity, bindings, functionCallback, stringCallback) {
            if (!entity || !bindings) {
                return;
            }

            // type-check bindings
            if (!_.isFunction(bindings) && !_.isObject(bindings)) {
                throw new Marionette.Error({
                    message: 'Bindings must be an object or function.',
                    url: 'marionette.functions.html#marionettebindentityevents'
                });
            }

            // allow the bindings to be a function
            if (_.isFunction(bindings)) {
                bindings = bindings.call(target);
            }

            // iterate the bindings and bind them
            _.each(bindings, function(methods, evt) {

                // allow for a function as the handler,
                // or a list of event names as a string
                if (_.isFunction(methods)) {
                    functionCallback(target, entity, evt, methods);
                } else {
                    stringCallback(target, entity, evt, methods);
                }

            });
        }

        // Export Public API
        Marionette.bindEntityEvents = function(target, entity, bindings) {
            iterateEvents(target, entity, bindings, bindToFunction, bindFromStrings);
        };

        Marionette.unbindEntityEvents = function(target, entity, bindings) {
            iterateEvents(target, entity, bindings, unbindToFunction, unbindFromStrings);
        };

        // Proxy `bindEntityEvents`
        Marionette.proxyBindEntityEvents = function(entity, bindings) {
            return Marionette.bindEntityEvents(this, entity, bindings);
        };

        // Proxy `unbindEntityEvents`
        Marionette.proxyUnbindEntityEvents = function(entity, bindings) {
            return Marionette.unbindEntityEvents(this, entity, bindings);
        };
    })(Marionette);


    // Error
    // -----

    var errorProps = ['description', 'fileName', 'lineNumber', 'name', 'message', 'number'];

    Marionette.Error = Marionette.extend.call(Error, {
        urlRoot: 'http://marionettejs.com/docs/v' + Marionette.VERSION + '/',

        constructor: function(message, options) {
            if (_.isObject(message)) {
                options = message;
                message = options.message;
            } else if (!options) {
                options = {};
            }

            var error = Error.call(this, message);
            _.extend(this, _.pick(error, errorProps), _.pick(options, errorProps));

            this.captureStackTrace();

            if (options.url) {
                this.url = this.urlRoot + options.url;
            }
        },

        captureStackTrace: function() {
            if (Error.captureStackTrace) {
                Error.captureStackTrace(this, Marionette.Error);
            }
        },

        toString: function() {
            return this.name + ': ' + this.message + (this.url ? ' See: ' + this.url : '');
        }
    });

    Marionette.Error.extend = Marionette.extend;

    // Callbacks
    // ---------

    // A simple way of managing a collection of callbacks
    // and executing them at a later point in time, using jQuery's
    // `Deferred` object.
    Marionette.Callbacks = function() {
        this._deferred = Marionette.Deferred();
        this._callbacks = [];
    };

    _.extend(Marionette.Callbacks.prototype, {

        // Add a callback to be executed. Callbacks added here are
        // guaranteed to execute, even if they are added after the
        // `run` method is called.
        add: function(callback, contextOverride) {
            var promise = _.result(this._deferred, 'promise');

            this._callbacks.push({
                cb: callback,
                ctx: contextOverride
            });

            promise.then(function(args) {
                if (contextOverride) {
                    args.context = contextOverride;
                }
                callback.call(args.context, args.options);
            });
        },

        // Run all registered callbacks with the context specified.
        // Additional callbacks can be added after this has been run
        // and they will still be executed.
        run: function(options, context) {
            this._deferred.resolve({
                options: options,
                context: context
            });
        },

        // Resets the list of callbacks to be run, allowing the same list
        // to be run multiple times - whenever the `run` method is called.
        reset: function() {
            var callbacks = this._callbacks;
            this._deferred = Marionette.Deferred();
            this._callbacks = [];

            _.each(callbacks, function(cb) {
                this.add(cb.cb, cb.ctx);
            }, this);
        }
    });

    // Controller
    // ----------

    // A multi-purpose object to use as a controller for
    // modules and routers, and as a mediator for workflow
    // and coordination of other objects, views, and more.
    Marionette.Controller = function(options) {
        this.options = options || {};

        if (_.isFunction(this.initialize)) {
            this.initialize(this.options);
        }
    };

    Marionette.Controller.extend = Marionette.extend;

    // Controller Methods
    // --------------

    // Ensure it can trigger events with Backbone.Events
    _.extend(Marionette.Controller.prototype, Backbone.Events, {
        destroy: function() {
            Marionette._triggerMethod(this, 'before:destroy', arguments);
            Marionette._triggerMethod(this, 'destroy', arguments);

            this.stopListening();
            this.off();
            return this;
        },

        // import the `triggerMethod` to trigger events with corresponding
        // methods if the method exists
        triggerMethod: Marionette.triggerMethod,

        // Proxy `getOption` to enable getting options from this or this.options by name.
        getOption: Marionette.proxyGetOption

    });

    // Object
    // ------

    // A Base Class that other Classes should descend from.
    // Object borrows many conventions and utilities from Backbone.
    Marionette.Object = function(options) {
        this.options = _.extend({}, _.result(this, 'options'), options);

        this.initialize.apply(this, arguments);
    };

    Marionette.Object.extend = Marionette.extend;

    // Object Methods
    // --------------

    // Ensure it can trigger events with Backbone.Events
    _.extend(Marionette.Object.prototype, Backbone.Events, {

        //this is a noop method intended to be overridden by classes that extend from this base
        initialize: function() {},

        destroy: function() {
            this.triggerMethod('before:destroy');
            this.triggerMethod('destroy');
            this.stopListening();
        },

        // Import the `triggerMethod` to trigger events with corresponding
        // methods if the method exists
        triggerMethod: Marionette.triggerMethod,

        // Proxy `getOption` to enable getting options from this or this.options by name.
        getOption: Marionette.proxyGetOption,

        // Proxy `bindEntityEvents` to enable binding view's events from another entity.
        bindEntityEvents: Marionette.proxyBindEntityEvents,

        // Proxy `unbindEntityEvents` to enable unbinding view's events from another entity.
        unbindEntityEvents: Marionette.proxyUnbindEntityEvents
    });

    /* jshint maxcomplexity: 16, maxstatements: 45, maxlen: 120 */

    // Region
    // ------

    // Manage the visual regions of your composite application. See
    // http://lostechies.com/derickbailey/2011/12/12/composite-js-apps-regions-and-region-managers/

    Marionette.Region = Marionette.Object.extend({
            constructor: function(options) {

                // set options temporarily so that we can get `el`.
                // options will be overriden by Object.constructor
                this.options = options || {};
                this.el = this.getOption('el');

                // Handle when this.el is passed in as a $ wrapped element.
                this.el = this.el instanceof Backbone.$ ? this.el[0] : this.el;

                if (!this.el) {
                    throw new Marionette.Error({
                        name: 'NoElError',
                        message: 'An "el" must be specified for a region.'
                    });
                }

                this.$el = this.getEl(this.el);
                Marionette.Object.call(this, options);
            },

            // Displays a backbone view instance inside of the region.
            // Handles calling the `render` method for you. Reads content
            // directly from the `el` attribute. Also calls an optional
            // `onShow` and `onDestroy` method on your view, just after showing
            // or just before destroying the view, respectively.
            // The `preventDestroy` option can be used to prevent a view from
            // the old view being destroyed on show.
            // The `forceShow` option can be used to force a view to be
            // re-rendered if it's already shown in the region.
            show: function(view, options) {
                if (!this._ensureElement()) {
                    return;
                }

                this._ensureViewIsIntact(view);

                var showOptions = options || {};
                var isDifferentView = view !== this.currentView;
                var preventDestroy = !!showOptions.preventDestroy;
                var forceShow = !!showOptions.forceShow;

                // We are only changing the view if there is a current view to change to begin with
                var isChangingView = !!this.currentView;

                // Only destroy the current view if we don't want to `preventDestroy` and if
                // the view given in the first argument is different than `currentView`
                var _shouldDestroyView = isDifferentView && !preventDestroy;

                // Only show the view given in the first argument if it is different than
                // the current view or if we want to re-show the view. Note that if
                // `_shouldDestroyView` is true, then `_shouldShowView` is also necessarily true.
                var _shouldShowView = isDifferentView || forceShow;

                if (isChangingView) {
                    this.triggerMethod('before:swapOut', this.currentView, this, options);
                }

                if (this.currentView) {
                    delete this.currentView._parent;
                }

                if (_shouldDestroyView) {
                    this.empty();

                    // A `destroy` event is attached to the clean up manually removed views.
                    // We need to detach this event when a new view is going to be shown as it
                    // is no longer relevant.
                } else if (isChangingView && _shouldShowView) {
                    this.currentView.off('destroy', this.empty, this);
                }

                if (_shouldShowView) {

                    // We need to listen for if a view is destroyed
                    // in a way other than through the region.
                    // If this happens we need to remove the reference
                    // to the currentView since once a view has been destroyed
                    // we can not reuse it.
                    view.once('destroy', this.empty, this);
                    view.render();

                    view._parent = this;

                    if (isChangingView) {
                        this.triggerMethod('before:swap', view, this, options);
                    }

                    this.triggerMethod('before:show', view, this, options);
                    Marionette.triggerMethodOn(view, 'before:show', view, this, options);

                    if (isChangingView) {
                        this.triggerMethod('swapOut', this.currentView, this, options);
                    }

                    // An array of views that we're about to display
                    var attachedRegion = Marionette.isNodeAttached(this.el);

                    // The views that we're about to attach to the document
                    // It's important that we prevent _getNestedViews from being executed unnecessarily
                    // as it's a potentially-slow method
                    var displayedViews = [];

                    var triggerBeforeAttach = showOptions.triggerBeforeAttach || this.triggerBeforeAttach;
                    var triggerAttach = showOptions.triggerAttach || this.triggerAttach;

                    if (attachedRegion && triggerBeforeAttach) {
                        displayedViews = this._displayedViews(view);
                        this._triggerAttach(displayedViews, 'before:');
                    }

                    this.attachHtml(view);
                    this.currentView = view;

                    if (attachedRegion && triggerAttach) {
                        displayedViews = this._displayedViews(view);
                        this._triggerAttach(displayedViews);
                    }

                    if (isChangingView) {
                        this.triggerMethod('swap', view, this, options);
                    }

                    this.triggerMethod('show', view, this, options);
                    Marionette.triggerMethodOn(view, 'show', view, this, options);

                    return this;
                }

                return this;
            },

            triggerBeforeAttach: true,
            triggerAttach: true,

            _triggerAttach: function(views, prefix) {
                var eventName = (prefix || '') + 'attach';
                _.each(views, function(view) {
                    Marionette.triggerMethodOn(view, eventName, view, this);
                }, this);
            },

            _displayedViews: function(view) {
                return _.union([view], _.result(view, '_getNestedViews') || []);
            },

            _ensureElement: function() {
                if (!_.isObject(this.el)) {
                    this.$el = this.getEl(this.el);
                    this.el = this.$el[0];
                }

                if (!this.$el || this.$el.length === 0) {
                    if (this.getOption('allowMissingEl')) {
                        return false;
                    } else {
                        throw new Marionette.Error('An "el" ' + this.$el.selector + ' must exist in DOM');
                    }
                }
                return true;
            },

            _ensureViewIsIntact: function(view) {
                if (!view) {
                    throw new Marionette.Error({
                        name: 'ViewNotValid',
                        message: 'The view passed is undefined and therefore invalid. You must pass a view instance to show.'
                    });
                }

                if (view.isDestroyed) {
                    throw new Marionette.Error({
                        name: 'ViewDestroyedError',
                        message: 'View (cid: "' + view.cid + '") has already been destroyed and cannot be used.'
                    });
                }
            },

            // Override this method to change how the region finds the
            // DOM element that it manages. Return a jQuery selector object.
            getEl: function(el) {
                return Backbone.$(el);
            },

            // Override this method to change how the new view is
            // appended to the `$el` that the region is managing
            attachHtml: function(view) {
                // empty the node and append new view
                // We can not use `.innerHTML` due to the fact that IE
                // will not let us clear the html of tables and selects.
                // We also do not want to use the more declarative `empty` method
                // that jquery exposes since `.empty` loops over all of the children DOM
                // nodes and unsets the listeners on each node. While this seems like
                // a desirable thing, it comes at quite a high perf cost. For that reason
                // we are simply clearing the html contents of the node.
                this.$el.html('');
                this.el.appendChild(view.el);
            },

            // Destroy the current view, if there is one. If there is no
            // current view, it does nothing and returns immediately.
            empty: function() {
                var view = this.currentView;

                // If there is no view in the region
                // we should not remove anything
                if (!view) {
                    return;
                }

                view.off('destroy', this.empty, this);
                this.triggerMethod('before:empty', view);
                this._destroyView();
                this.triggerMethod('empty', view);

                // Remove region pointer to the currentView
                delete this.currentView;
                return this;
            },

            // call 'destroy' or 'remove', depending on which is found
            // on the view (if showing a raw Backbone view or a Marionette View)
            _destroyView: function() {
                var view = this.currentView;

                if (view.destroy && !view.isDestroyed) {
                    view.destroy();
                } else if (view.remove) {
                    view.remove();

                    // appending isDestroyed to raw Backbone View allows regions
                    // to throw a ViewDestroyedError for this view
                    view.isDestroyed = true;
                }
            },

            // Attach an existing view to the region. This
            // will not call `render` or `onShow` for the new view,
            // and will not replace the current HTML for the `el`
            // of the region.
            attachView: function(view) {
                this.currentView = view;
                return this;
            },

            // Checks whether a view is currently present within
            // the region. Returns `true` if there is and `false` if
            // no view is present.
            hasView: function() {
                return !!this.currentView;
            },

            // Reset the region by destroying any existing view and
            // clearing out the cached `$el`. The next time a view
            // is shown via this region, the region will re-query the
            // DOM for the region's `el`.
            reset: function() {
                this.empty();

                if (this.$el) {
                    this.el = this.$el.selector;
                }

                delete this.$el;
                return this;
            }

        },

        // Static Methods
        {

            // Build an instance of a region by passing in a configuration object
            // and a default region class to use if none is specified in the config.
            //
            // The config object should either be a string as a jQuery DOM selector,
            // a Region class directly, or an object literal that specifies a selector,
            // a custom regionClass, and any options to be supplied to the region:
            //
            // ```js
            // {
            //   selector: "#foo",
            //   regionClass: MyCustomRegion,
            //   allowMissingEl: false
            // }
            // ```
            //
            buildRegion: function(regionConfig, DefaultRegionClass) {
                if (_.isString(regionConfig)) {
                    return this._buildRegionFromSelector(regionConfig, DefaultRegionClass);
                }

                if (regionConfig.selector || regionConfig.el || regionConfig.regionClass) {
                    return this._buildRegionFromObject(regionConfig, DefaultRegionClass);
                }

                if (_.isFunction(regionConfig)) {
                    return this._buildRegionFromRegionClass(regionConfig);
                }

                throw new Marionette.Error({
                    message: 'Improper region configuration type.',
                    url: 'marionette.region.html#region-configuration-types'
                });
            },

            // Build the region from a string selector like '#foo-region'
            _buildRegionFromSelector: function(selector, DefaultRegionClass) {
                return new DefaultRegionClass({
                    el: selector
                });
            },

            // Build the region from a configuration object
            // ```js
            // { selector: '#foo', regionClass: FooRegion, allowMissingEl: false }
            // ```
            _buildRegionFromObject: function(regionConfig, DefaultRegionClass) {
                var RegionClass = regionConfig.regionClass || DefaultRegionClass;
                var options = _.omit(regionConfig, 'selector', 'regionClass');

                if (regionConfig.selector && !options.el) {
                    options.el = regionConfig.selector;
                }

                var region = new RegionClass(options);

                // override the `getEl` function if we have a parentEl
                // this must be overridden to ensure the selector is found
                // on the first use of the region. if we try to assign the
                // region's `el` to `parentEl.find(selector)` in the object
                // literal to build the region, the element will not be
                // guaranteed to be in the DOM already, and will cause problems
                if (regionConfig.parentEl) {
                    region.getEl = function(el) {
                        if (_.isObject(el)) {
                            return Backbone.$(el);
                        }
                        var parentEl = regionConfig.parentEl;
                        if (_.isFunction(parentEl)) {
                            parentEl = parentEl();
                        }
                        return parentEl.find(el);
                    };
                }

                return region;
            },

            // Build the region directly from a given `RegionClass`
            _buildRegionFromRegionClass: function(RegionClass) {
                return new RegionClass();
            }
        });

    // Region Manager
    // --------------

    // Manage one or more related `Marionette.Region` objects.
    Marionette.RegionManager = Marionette.Controller.extend({
        constructor: function(options) {
            this._regions = {};

            Marionette.Controller.call(this, options);

            this.addRegions(this.getOption('regions'));
        },

        // Add multiple regions using an object literal or a
        // function that returns an object literal, where
        // each key becomes the region name, and each value is
        // the region definition.
        addRegions: function(regionDefinitions, defaults) {
            if (_.isFunction(regionDefinitions)) {
                regionDefinitions = regionDefinitions.apply(this, arguments);
            }

            var regions = {};

            _.each(regionDefinitions, function(definition, name) {
                if (_.isString(definition)) {
                    definition = {
                        selector: definition
                    };
                }

                if (definition.selector) {
                    definition = _.defaults({}, definition, defaults);
                }

                var region = this.addRegion(name, definition);
                regions[name] = region;
            }, this);

            return regions;
        },

        // Add an individual region to the region manager,
        // and return the region instance
        addRegion: function(name, definition) {
            var region;

            if (definition instanceof Marionette.Region) {
                region = definition;
            } else {
                region = Marionette.Region.buildRegion(definition, Marionette.Region);
            }

            this.triggerMethod('before:add:region', name, region);

            region._parent = this;
            this._store(name, region);

            this.triggerMethod('add:region', name, region);
            return region;
        },

        // Get a region by name
        get: function(name) {
            return this._regions[name];
        },

        // Gets all the regions contained within
        // the `regionManager` instance.
        getRegions: function() {
            return _.clone(this._regions);
        },

        // Remove a region by name
        removeRegion: function(name) {
            var region = this._regions[name];
            this._remove(name, region);

            return region;
        },

        // Empty all regions in the region manager, and
        // remove them
        removeRegions: function() {
            var regions = this.getRegions();
            _.each(this._regions, function(region, name) {
                this._remove(name, region);
            }, this);

            return regions;
        },

        // Empty all regions in the region manager, but
        // leave them attached
        emptyRegions: function() {
            var regions = this.getRegions();
            _.invoke(regions, 'empty');
            return regions;
        },

        // Destroy all regions and shut down the region
        // manager entirely
        destroy: function() {
            this.removeRegions();
            return Marionette.Controller.prototype.destroy.apply(this, arguments);
        },

        // internal method to store regions
        _store: function(name, region) {
            this._regions[name] = region;
            this._setLength();
        },

        // internal method to remove a region
        _remove: function(name, region) {
            this.triggerMethod('before:remove:region', name, region);
            region.empty();
            region.stopListening();

            delete region._parent;
            delete this._regions[name];
            this._setLength();
            this.triggerMethod('remove:region', name, region);
        },

        // set the number of regions current held
        _setLength: function() {
            this.length = _.size(this._regions);
        }
    });

    Marionette.actAsCollection(Marionette.RegionManager.prototype, '_regions');


    // Template Cache
    // --------------

    // Manage templates stored in `<script>` blocks,
    // caching them for faster access.
    Marionette.TemplateCache = function(templateId) {
        this.templateId = templateId;
    };

    // TemplateCache object-level methods. Manage the template
    // caches from these method calls instead of creating
    // your own TemplateCache instances
    _.extend(Marionette.TemplateCache, {
        templateCaches: {},

        // Get the specified template by id. Either
        // retrieves the cached version, or loads it
        // from the DOM.
        get: function(templateId) {
            var cachedTemplate = this.templateCaches[templateId];

            if (!cachedTemplate) {
                cachedTemplate = new Marionette.TemplateCache(templateId);
                this.templateCaches[templateId] = cachedTemplate;
            }

            return cachedTemplate.load();
        },

        // Clear templates from the cache. If no arguments
        // are specified, clears all templates:
        // `clear()`
        //
        // If arguments are specified, clears each of the
        // specified templates from the cache:
        // `clear("#t1", "#t2", "...")`
        clear: function() {
            var i;
            var args = _.toArray(arguments);
            var length = args.length;

            if (length > 0) {
                for (i = 0; i < length; i++) {
                    delete this.templateCaches[args[i]];
                }
            } else {
                this.templateCaches = {};
            }
        }
    });

    // TemplateCache instance methods, allowing each
    // template cache object to manage its own state
    // and know whether or not it has been loaded
    _.extend(Marionette.TemplateCache.prototype, {

        // Internal method to load the template
        load: function() {
            // Guard clause to prevent loading this template more than once
            if (this.compiledTemplate) {
                return this.compiledTemplate;
            }

            // Load the template and compile it
            var template = this.loadTemplate(this.templateId);
            this.compiledTemplate = this.compileTemplate(template);

            return this.compiledTemplate;
        },

        // Load a template from the DOM, by default. Override
        // this method to provide your own template retrieval
        // For asynchronous loading with AMD/RequireJS, consider
        // using a template-loader plugin as described here:
        // https://github.com/marionettejs/backbone.marionette/wiki/Using-marionette-with-requirejs
        loadTemplate: function(templateId) {
            var template = Backbone.$(templateId).html();

            if (!template || template.length === 0) {
                throw new Marionette.Error({
                    name: 'NoTemplateError',
                    message: 'Could not find template: "' + templateId + '"'
                });
            }

            return template;
        },

        // Pre-compile the template before caching it. Override
        // this method if you do not need to pre-compile a template
        // (JST / RequireJS for example) or if you want to change
        // the template engine used (Handebars, etc).
        compileTemplate: function(rawTemplate) {
            return _.template(rawTemplate);
        }
    });

    // Renderer
    // --------

    // Render a template with data by passing in the template
    // selector and the data to render.
    Marionette.Renderer = {

        // Render a template with data. The `template` parameter is
        // passed to the `TemplateCache` object to retrieve the
        // template function. Override this method to provide your own
        // custom rendering and template handling for all of Marionette.
        render: function(template, data) {
            if (!template) {
                throw new Marionette.Error({
                    name: 'TemplateNotFoundError',
                    message: 'Cannot render the template since its false, null or undefined.'
                });
            }

            var templateFunc;
            if (typeof template === 'function') {
                templateFunc = template;
            } else {
                templateFunc = Marionette.TemplateCache.get(template);
            }

            return templateFunc(data);
        }
    };


    /* jshint maxlen: 114, nonew: false */
    // View
    // ----

    // The core view class that other Marionette views extend from.
    Marionette.View = Backbone.View.extend({

        constructor: function(options) {
            _.bindAll(this, 'render');

            options = _.isFunction(options) ? options.call(this) : options;

            // this exposes view options to the view initializer
            // this is a backfill since backbone removed the assignment
            // of this.options
            // at some point however this may be removed
            this.options = _.extend({}, _.result(this, 'options'), options);

            this._behaviors = Marionette.Behaviors(this);

            Backbone.View.apply(this, arguments);

            Marionette.MonitorDOMRefresh(this);
            this.on('show', this.onShowCalled);
        },

        // Get the template for this view
        // instance. You can set a `template` attribute in the view
        // definition or pass a `template: "whatever"` parameter in
        // to the constructor options.
        getTemplate: function() {
            return this.getOption('template');
        },

        // Serialize a model by returning its attributes. Clones
        // the attributes to allow modification.
        serializeModel: function(model) {
            return model.toJSON.apply(model, _.rest(arguments));
        },

        // Mix in template helper methods. Looks for a
        // `templateHelpers` attribute, which can either be an
        // object literal, or a function that returns an object
        // literal. All methods and attributes from this object
        // are copies to the object passed in.
        mixinTemplateHelpers: function(target) {
            target = target || {};
            var templateHelpers = this.getOption('templateHelpers');
            if (_.isFunction(templateHelpers)) {
                templateHelpers = templateHelpers.call(this);
            }
            return _.extend(target, templateHelpers);
        },

        // normalize the keys of passed hash with the views `ui` selectors.
        // `{"@ui.foo": "bar"}`
        normalizeUIKeys: function(hash) {
            var uiBindings = _.result(this, '_uiBindings');
            return Marionette.normalizeUIKeys(hash, uiBindings || _.result(this, 'ui'));
        },

        // normalize the values of passed hash with the views `ui` selectors.
        // `{foo: "@ui.bar"}`
        normalizeUIValues: function(hash) {
            var ui = _.result(this, 'ui');
            var uiBindings = _.result(this, '_uiBindings');
            return Marionette.normalizeUIValues(hash, uiBindings || ui);
        },

        // Configure `triggers` to forward DOM events to view
        // events. `triggers: {"click .foo": "do:foo"}`
        configureTriggers: function() {
            if (!this.triggers) {
                return;
            }

            // Allow `triggers` to be configured as a function
            var triggers = this.normalizeUIKeys(_.result(this, 'triggers'));

            // Configure the triggers, prevent default
            // action and stop propagation of DOM events
            return _.reduce(triggers, function(events, value, key) {
                events[key] = this._buildViewTrigger(value);
                return events;
            }, {}, this);
        },

        // Overriding Backbone.View's delegateEvents to handle
        // the `triggers`, `modelEvents`, and `collectionEvents` configuration
        delegateEvents: function(events) {
            this._delegateDOMEvents(events);
            this.bindEntityEvents(this.model, this.getOption('modelEvents'));
            this.bindEntityEvents(this.collection, this.getOption('collectionEvents'));

            _.each(this._behaviors, function(behavior) {
                behavior.bindEntityEvents(this.model, behavior.getOption('modelEvents'));
                behavior.bindEntityEvents(this.collection, behavior.getOption('collectionEvents'));
            }, this);

            return this;
        },

        // internal method to delegate DOM events and triggers
        _delegateDOMEvents: function(eventsArg) {
            var events = eventsArg || this.events;
            if (_.isFunction(events)) {
                events = events.call(this);
            }

            // normalize ui keys
            events = this.normalizeUIKeys(events);
            if (_.isUndefined(eventsArg)) {
                this.events = events;
            }

            var combinedEvents = {};

            // look up if this view has behavior events
            var behaviorEvents = _.result(this, 'behaviorEvents') || {};
            var triggers = this.configureTriggers();
            var behaviorTriggers = _.result(this, 'behaviorTriggers') || {};

            // behavior events will be overriden by view events and or triggers
            _.extend(combinedEvents, behaviorEvents, events, triggers, behaviorTriggers);

            Backbone.View.prototype.delegateEvents.call(this, combinedEvents);
        },

        // Overriding Backbone.View's undelegateEvents to handle unbinding
        // the `triggers`, `modelEvents`, and `collectionEvents` config
        undelegateEvents: function() {
            Backbone.View.prototype.undelegateEvents.apply(this, arguments);

            this.unbindEntityEvents(this.model, this.getOption('modelEvents'));
            this.unbindEntityEvents(this.collection, this.getOption('collectionEvents'));

            _.each(this._behaviors, function(behavior) {
                behavior.unbindEntityEvents(this.model, behavior.getOption('modelEvents'));
                behavior.unbindEntityEvents(this.collection, behavior.getOption('collectionEvents'));
            }, this);

            return this;
        },

        // Internal method, handles the `show` event.
        onShowCalled: function() {},

        // Internal helper method to verify whether the view hasn't been destroyed
        _ensureViewIsIntact: function() {
            if (this.isDestroyed) {
                throw new Marionette.Error({
                    name: 'ViewDestroyedError',
                    message: 'View (cid: "' + this.cid + '") has already been destroyed and cannot be used.'
                });
            }
        },

        // Default `destroy` implementation, for removing a view from the
        // DOM and unbinding it. Regions will call this method
        // for you. You can specify an `onDestroy` method in your view to
        // add custom code that is called after the view is destroyed.
        destroy: function() {
            if (this.isDestroyed) {
                return;
            }

            var args = _.toArray(arguments);

            this.triggerMethod.apply(this, ['before:destroy'].concat(args));

            // mark as destroyed before doing the actual destroy, to
            // prevent infinite loops within "destroy" event handlers
            // that are trying to destroy other views
            this.isDestroyed = true;
            this.triggerMethod.apply(this, ['destroy'].concat(args));

            // unbind UI elements
            this.unbindUIElements();

            // remove the view from the DOM
            this.remove();

            // Call destroy on each behavior after
            // destroying the view.
            // This unbinds event listeners
            // that behaviors have registered for.
            _.invoke(this._behaviors, 'destroy', args);

            return this;
        },

        bindUIElements: function() {
            this._bindUIElements();
            _.invoke(this._behaviors, this._bindUIElements);
        },

        // This method binds the elements specified in the "ui" hash inside the view's code with
        // the associated jQuery selectors.
        _bindUIElements: function() {
            if (!this.ui) {
                return;
            }

            // store the ui hash in _uiBindings so they can be reset later
            // and so re-rendering the view will be able to find the bindings
            if (!this._uiBindings) {
                this._uiBindings = this.ui;
            }

            // get the bindings result, as a function or otherwise
            var bindings = _.result(this, '_uiBindings');

            // empty the ui so we don't have anything to start with
            this.ui = {};

            // bind each of the selectors
            _.each(_.keys(bindings), function(key) {
                var selector = bindings[key];
                this.ui[key] = this.$(selector);
            }, this);
        },

        // This method unbinds the elements specified in the "ui" hash
        unbindUIElements: function() {
            this._unbindUIElements();
            _.invoke(this._behaviors, this._unbindUIElements);
        },

        _unbindUIElements: function() {
            if (!this.ui || !this._uiBindings) {
                return;
            }

            // delete all of the existing ui bindings
            _.each(this.ui, function($el, name) {
                delete this.ui[name];
            }, this);

            // reset the ui element to the original bindings configuration
            this.ui = this._uiBindings;
            delete this._uiBindings;
        },

        // Internal method to create an event handler for a given `triggerDef` like
        // 'click:foo'
        _buildViewTrigger: function(triggerDef) {
            var hasOptions = _.isObject(triggerDef);

            var options = _.defaults({}, (hasOptions ? triggerDef : {}), {
                preventDefault: true,
                stopPropagation: true
            });

            var eventName = hasOptions ? options.event : triggerDef;

            return function(e) {
                if (e) {
                    if (e.preventDefault && options.preventDefault) {
                        e.preventDefault();
                    }

                    if (e.stopPropagation && options.stopPropagation) {
                        e.stopPropagation();
                    }
                }

                var args = {
                    view: this,
                    model: this.model,
                    collection: this.collection
                };

                this.triggerMethod(eventName, args);
            };
        },

        setElement: function() {
            var ret = Backbone.View.prototype.setElement.apply(this, arguments);

            // proxy behavior $el to the view's $el.
            // This is needed because a view's $el proxy
            // is not set until after setElement is called.
            _.invoke(this._behaviors, 'proxyViewProperties', this);

            return ret;
        },

        // import the `triggerMethod` to trigger events with corresponding
        // methods if the method exists
        triggerMethod: function() {
            var triggerMethod = Marionette._triggerMethod;
            var ret = triggerMethod(this, arguments);
            var behaviors = this._behaviors;
            // Use good ol' for as this is a very hot function
            for (var i = 0, length = behaviors && behaviors.length; i < length; i++) {
                triggerMethod(behaviors[i], arguments);
            }

            return ret;
        },

        // This method returns any views that are immediate
        // children of this view
        _getImmediateChildren: function() {
            return [];
        },

        // Returns an array of every nested view within this view
        _getNestedViews: function() {
            var children = this._getImmediateChildren();

            if (!children.length) {
                return children;
            }

            return _.reduce(children, function(memo, view) {
                if (!view._getNestedViews) {
                    return memo;
                }
                return memo.concat(view._getNestedViews());
            }, children);
        },

        // Imports the "normalizeMethods" to transform hashes of
        // events=>function references/names to a hash of events=>function references
        normalizeMethods: Marionette.normalizeMethods,

        // Proxy `getOption` to enable getting options from this or this.options by name.
        getOption: Marionette.proxyGetOption,

        // Proxy `bindEntityEvents` to enable binding view's events from another entity.
        bindEntityEvents: Marionette.proxyBindEntityEvents,

        // Proxy `unbindEntityEvents` to enable unbinding view's events from another entity.
        unbindEntityEvents: Marionette.proxyUnbindEntityEvents
    });

    // Item View
    // ---------

    // A single item view implementation that contains code for rendering
    // with underscore.js templates, serializing the view's model or collection,
    // and calling several methods on extended views, such as `onRender`.
    Marionette.ItemView = Marionette.View.extend({

        // Setting up the inheritance chain which allows changes to
        // Marionette.View.prototype.constructor which allows overriding
        constructor: function() {
            Marionette.View.apply(this, arguments);
        },

        // Serialize the model or collection for the view. If a model is
        // found, the view's `serializeModel` is called. If a collection is found,
        // each model in the collection is serialized by calling
        // the view's `serializeCollection` and put into an `items` array in
        // the resulting data. If both are found, defaults to the model.
        // You can override the `serializeData` method in your own view definition,
        // to provide custom serialization for your view's data.
        serializeData: function() {
            if (!this.model && !this.collection) {
                return {};
            }

            var args = [this.model || this.collection];
            if (arguments.length) {
                args.push.apply(args, arguments);
            }

            if (this.model) {
                return this.serializeModel.apply(this, args);
            } else {
                return {
                    items: this.serializeCollection.apply(this, args)
                };
            }
        },

        // Serialize a collection by serializing each of its models.
        serializeCollection: function(collection) {
            return collection.toJSON.apply(collection, _.rest(arguments));
        },

        // Render the view, defaulting to underscore.js templates.
        // You can override this in your view definition to provide
        // a very specific rendering for your view. In general, though,
        // you should override the `Marionette.Renderer` object to
        // change how Marionette renders views.
        render: function() {
            this._ensureViewIsIntact();

            this.triggerMethod('before:render', this);

            this._renderTemplate();
            this.bindUIElements();

            this.triggerMethod('render', this);

            return this;
        },

        // Internal method to render the template with the serialized data
        // and template helpers via the `Marionette.Renderer` object.
        // Throws an `UndefinedTemplateError` error if the template is
        // any falsely value but literal `false`.
        _renderTemplate: function() {
            var template = this.getTemplate();

            // Allow template-less item views
            if (template === false) {
                return;
            }

            if (!template) {
                throw new Marionette.Error({
                    name: 'UndefinedTemplateError',
                    message: 'Cannot render the template since it is null or undefined.'
                });
            }

            // Add in entity data and template helpers
            var data = this.serializeData();
            data = this.mixinTemplateHelpers(data);

            // Render and add to el
            var html = Marionette.Renderer.render(template, data, this);
            this.attachElContent(html);

            return this;
        },

        // Attaches the content of a given view.
        // This method can be overridden to optimize rendering,
        // or to render in a non standard way.
        //
        // For example, using `innerHTML` instead of `$el.html`
        //
        // ```js
        // attachElContent: function(html) {
        //   this.el.innerHTML = html;
        //   return this;
        // }
        // ```
        attachElContent: function(html) {
            this.$el.html(html);

            return this;
        }
    });

    /* jshint maxstatements: 14 */

    // Collection View
    // ---------------

    // A view that iterates over a Backbone.Collection
    // and renders an individual child view for each model.
    Marionette.CollectionView = Marionette.View.extend({

        // used as the prefix for child view events
        // that are forwarded through the collectionview
        childViewEventPrefix: 'childview',

        // constructor
        // option to pass `{sort: false}` to prevent the `CollectionView` from
        // maintaining the sorted order of the collection.
        // This will fallback onto appending childView's to the end.
        constructor: function(options) {
            var initOptions = options || {};
            if (_.isUndefined(this.sort)) {
                this.sort = _.isUndefined(initOptions.sort) ? true : initOptions.sort;
            }

            this.once('render', this._initialEvents);
            this._initChildViewStorage();

            Marionette.View.apply(this, arguments);

            this.initRenderBuffer();
        },

        // Instead of inserting elements one by one into the page,
        // it's much more performant to insert elements into a document
        // fragment and then insert that document fragment into the page
        initRenderBuffer: function() {
            this.elBuffer = document.createDocumentFragment();
            this._bufferedChildren = [];
        },

        startBuffering: function() {
            this.initRenderBuffer();
            this.isBuffering = true;
        },

        endBuffering: function() {
            this.isBuffering = false;
            this._triggerBeforeShowBufferedChildren();
            this.attachBuffer(this, this.elBuffer);
            this._triggerShowBufferedChildren();
            this.initRenderBuffer();
        },

        _triggerBeforeShowBufferedChildren: function() {
            if (this._isShown) {
                _.each(this._bufferedChildren, _.partial(this._triggerMethodOnChild, 'before:show'));
            }
        },

        _triggerShowBufferedChildren: function() {
            if (this._isShown) {
                _.each(this._bufferedChildren, _.partial(this._triggerMethodOnChild, 'show'));

                this._bufferedChildren = [];
            }
        },

        // Internal method for _.each loops to call `Marionette.triggerMethodOn` on
        // a child view
        _triggerMethodOnChild: function(event, childView) {
            Marionette.triggerMethodOn(childView, event);
        },

        // Configured the initial events that the collection view
        // binds to.
        _initialEvents: function() {
            if (this.collection) {
                this.listenTo(this.collection, 'add', this._onCollectionAdd);
                this.listenTo(this.collection, 'remove', this._onCollectionRemove);
                this.listenTo(this.collection, 'reset', this.render);

                if (this.sort) {
                    this.listenTo(this.collection, 'sort', this._sortViews);
                }
            }
        },

        // Handle a child added to the collection
        _onCollectionAdd: function(child) {
            this.destroyEmptyView();
            var ChildView = this.getChildView(child);
            var index = this.collection.indexOf(child);
            this.addChild(child, ChildView, index);
        },

        // get the child view by model it holds, and remove it
        _onCollectionRemove: function(model) {
            var view = this.children.findByModel(model);
            this.removeChildView(view);
            this.checkEmpty();
        },

        // Override from `Marionette.View` to trigger show on child views
        onShowCalled: function() {
            this.children.each(_.partial(this._triggerMethodOnChild, 'show'));
        },

        // Render children views. Override this method to
        // provide your own implementation of a render function for
        // the collection view.
        render: function() {
            this._ensureViewIsIntact();
            this.triggerMethod('before:render', this);
            this._renderChildren();
            this.triggerMethod('render', this);
            return this;
        },

        // Render view after sorting. Override this method to
        // change how the view renders after a `sort` on the collection.
        // An example of this would be to only `renderChildren` in a `CompositeView`
        // rather than the full view.
        resortView: function() {
            this.render();
        },

        // Internal method. This checks for any changes in the order of the collection.
        // If the index of any view doesn't match, it will render.
        _sortViews: function() {
            // check for any changes in sort order of views
            var orderChanged = this.collection.find(function(item, index) {
                var view = this.children.findByModel(item);
                return !view || view._index !== index;
            }, this);

            if (orderChanged) {
                this.resortView();
            }
        },

        // Internal reference to what index a `emptyView` is.
        _emptyViewIndex: -1,

        // Internal method. Separated so that CompositeView can have
        // more control over events being triggered, around the rendering
        // process
        _renderChildren: function() {
            this.destroyEmptyView();
            this.destroyChildren();

            if (this.isEmpty(this.collection)) {
                this.showEmptyView();
            } else {
                this.triggerMethod('before:render:collection', this);
                this.startBuffering();
                this.showCollection();
                this.endBuffering();
                this.triggerMethod('render:collection', this);
            }
        },

        // Internal method to loop through collection and show each child view.
        showCollection: function() {
            var ChildView;
            this.collection.each(function(child, index) {
                ChildView = this.getChildView(child);
                this.addChild(child, ChildView, index);
            }, this);
        },

        // Internal method to show an empty view in place of
        // a collection of child views, when the collection is empty
        showEmptyView: function() {
            var EmptyView = this.getEmptyView();

            if (EmptyView && !this._showingEmptyView) {
                this.triggerMethod('before:render:empty');

                this._showingEmptyView = true;
                var model = new Backbone.Model();
                this.addEmptyView(model, EmptyView);

                this.triggerMethod('render:empty');
            }
        },

        // Internal method to destroy an existing emptyView instance
        // if one exists. Called when a collection view has been
        // rendered empty, and then a child is added to the collection.
        destroyEmptyView: function() {
            if (this._showingEmptyView) {
                this.triggerMethod('before:remove:empty');

                this.destroyChildren();
                delete this._showingEmptyView;

                this.triggerMethod('remove:empty');
            }
        },

        // Retrieve the empty view class
        getEmptyView: function() {
            return this.getOption('emptyView');
        },

        // Render and show the emptyView. Similar to addChild method
        // but "child:added" events are not fired, and the event from
        // emptyView are not forwarded
        addEmptyView: function(child, EmptyView) {

            // get the emptyViewOptions, falling back to childViewOptions
            var emptyViewOptions = this.getOption('emptyViewOptions') ||
                this.getOption('childViewOptions');

            if (_.isFunction(emptyViewOptions)) {
                emptyViewOptions = emptyViewOptions.call(this, child, this._emptyViewIndex);
            }

            // build the empty view
            var view = this.buildChildView(child, EmptyView, emptyViewOptions);

            view._parent = this;

            // Proxy emptyView events
            this.proxyChildEvents(view);

            // trigger the 'before:show' event on `view` if the collection view
            // has already been shown
            if (this._isShown) {
                Marionette.triggerMethodOn(view, 'before:show');
            }

            // Store the `emptyView` like a `childView` so we can properly
            // remove and/or close it later
            this.children.add(view);

            // Render it and show it
            this.renderChildView(view, this._emptyViewIndex);

            // call the 'show' method if the collection view
            // has already been shown
            if (this._isShown) {
                Marionette.triggerMethodOn(view, 'show');
            }
        },

        // Retrieve the `childView` class, either from `this.options.childView`
        // or from the `childView` in the object definition. The "options"
        // takes precedence.
        // This method receives the model that will be passed to the instance
        // created from this `childView`. Overriding methods may use the child
        // to determine what `childView` class to return.
        getChildView: function(child) {
            var childView = this.getOption('childView');

            if (!childView) {
                throw new Marionette.Error({
                    name: 'NoChildViewError',
                    message: 'A "childView" must be specified'
                });
            }

            return childView;
        },

        // Render the child's view and add it to the
        // HTML for the collection view at a given index.
        // This will also update the indices of later views in the collection
        // in order to keep the children in sync with the collection.
        addChild: function(child, ChildView, index) {
            var childViewOptions = this.getOption('childViewOptions');
            if (_.isFunction(childViewOptions)) {
                childViewOptions = childViewOptions.call(this, child, index);
            }

            var view = this.buildChildView(child, ChildView, childViewOptions);

            // increment indices of views after this one
            this._updateIndices(view, true, index);

            this._addChildView(view, index);

            view._parent = this;

            return view;
        },

        // Internal method. This decrements or increments the indices of views after the
        // added/removed view to keep in sync with the collection.
        _updateIndices: function(view, increment, index) {
            if (!this.sort) {
                return;
            }

            if (increment) {
                // assign the index to the view
                view._index = index;

                // increment the index of views after this one
                this.children.each(function(laterView) {
                    if (laterView._index >= view._index) {
                        laterView._index++;
                    }
                });
            } else {
                // decrement the index of views after this one
                this.children.each(function(laterView) {
                    if (laterView._index >= view._index) {
                        laterView._index--;
                    }
                });
            }
        },


        // Internal Method. Add the view to children and render it at
        // the given index.
        _addChildView: function(view, index) {
            // set up the child view event forwarding
            this.proxyChildEvents(view);

            this.triggerMethod('before:add:child', view);

            // Store the child view itself so we can properly
            // remove and/or destroy it later
            this.children.add(view);
            this.renderChildView(view, index);

            if (this._isShown && !this.isBuffering) {
                Marionette.triggerMethodOn(view, 'show');
            }

            this.triggerMethod('add:child', view);
        },

        // render the child view
        renderChildView: function(view, index) {
            view.render();
            this.attachHtml(this, view, index);
            return view;
        },

        // Build a `childView` for a model in the collection.
        buildChildView: function(child, ChildViewClass, childViewOptions) {
            var options = _.extend({
                model: child
            }, childViewOptions);
            return new ChildViewClass(options);
        },

        // Remove the child view and destroy it.
        // This function also updates the indices of
        // later views in the collection in order to keep
        // the children in sync with the collection.
        removeChildView: function(view) {

            if (view) {
                this.triggerMethod('before:remove:child', view);
                // call 'destroy' or 'remove', depending on which is found
                if (view.destroy) {
                    view.destroy();
                } else if (view.remove) {
                    view.remove();
                }

                delete view._parent;
                this.stopListening(view);
                this.children.remove(view);
                this.triggerMethod('remove:child', view);

                // decrement the index of views after this one
                this._updateIndices(view, false);
            }

            return view;
        },

        // check if the collection is empty
        isEmpty: function() {
            return !this.collection || this.collection.length === 0;
        },

        // If empty, show the empty view
        checkEmpty: function() {
            if (this.isEmpty(this.collection)) {
                this.showEmptyView();
            }
        },

        // You might need to override this if you've overridden attachHtml
        attachBuffer: function(collectionView, buffer) {
            collectionView.$el.append(buffer);
        },

        // Append the HTML to the collection's `el`.
        // Override this method to do something other
        // than `.append`.
        attachHtml: function(collectionView, childView, index) {
            if (collectionView.isBuffering) {
                // buffering happens on reset events and initial renders
                // in order to reduce the number of inserts into the
                // document, which are expensive.
                collectionView.elBuffer.appendChild(childView.el);
                collectionView._bufferedChildren.push(childView);
            } else {
                // If we've already rendered the main collection, append
                // the new child into the correct order if we need to. Otherwise
                // append to the end.
                if (!collectionView._insertBefore(childView, index)) {
                    collectionView._insertAfter(childView);
                }
            }
        },

        // Internal method. Check whether we need to insert the view into
        // the correct position.
        _insertBefore: function(childView, index) {
            var currentView;
            var findPosition = this.sort && (index < this.children.length - 1);
            if (findPosition) {
                // Find the view after this one
                currentView = this.children.find(function(view) {
                    return view._index === index + 1;
                });
            }

            if (currentView) {
                currentView.$el.before(childView.el);
                return true;
            }

            return false;
        },

        // Internal method. Append a view to the end of the $el
        _insertAfter: function(childView) {
            this.$el.append(childView.el);
        },

        // Internal method to set up the `children` object for
        // storing all of the child views
        _initChildViewStorage: function() {
            this.children = new Backbone.ChildViewContainer();
        },

        // Handle cleanup and other destroying needs for the collection of views
        destroy: function() {
            if (this.isDestroyed) {
                return;
            }

            this.triggerMethod('before:destroy:collection');
            this.destroyChildren();
            this.triggerMethod('destroy:collection');

            return Marionette.View.prototype.destroy.apply(this, arguments);
        },

        // Destroy the child views that this collection view
        // is holding on to, if any
        destroyChildren: function() {
            var childViews = this.children.map(_.identity);
            this.children.each(this.removeChildView, this);
            this.checkEmpty();
            return childViews;
        },

        // Set up the child view event forwarding. Uses a "childview:"
        // prefix in front of all forwarded events.
        proxyChildEvents: function(view) {
            var prefix = this.getOption('childViewEventPrefix');

            // Forward all child view events through the parent,
            // prepending "childview:" to the event name
            this.listenTo(view, 'all', function() {
                var args = _.toArray(arguments);
                var rootEvent = args[0];
                var childEvents = this.normalizeMethods(_.result(this, 'childEvents'));

                args[0] = prefix + ':' + rootEvent;
                args.splice(1, 0, view);

                // call collectionView childEvent if defined
                if (typeof childEvents !== 'undefined' && _.isFunction(childEvents[rootEvent])) {
                    childEvents[rootEvent].apply(this, args.slice(1));
                }

                this.triggerMethod.apply(this, args);
            }, this);
        },

        _getImmediateChildren: function() {
            return _.values(this.children._views);
        }
    });

    /* jshint maxstatements: 17, maxlen: 117 */

    // Composite View
    // --------------

    // Used for rendering a branch-leaf, hierarchical structure.
    // Extends directly from CollectionView and also renders an
    // a child view as `modelView`, for the top leaf
    Marionette.CompositeView = Marionette.CollectionView.extend({

        // Setting up the inheritance chain which allows changes to
        // Marionette.CollectionView.prototype.constructor which allows overriding
        // option to pass '{sort: false}' to prevent the CompositeView from
        // maintaining the sorted order of the collection.
        // This will fallback onto appending childView's to the end.
        constructor: function() {
            Marionette.CollectionView.apply(this, arguments);
        },

        // Configured the initial events that the composite view
        // binds to. Override this method to prevent the initial
        // events, or to add your own initial events.
        _initialEvents: function() {

            // Bind only after composite view is rendered to avoid adding child views
            // to nonexistent childViewContainer

            if (this.collection) {
                this.listenTo(this.collection, 'add', this._onCollectionAdd);
                this.listenTo(this.collection, 'remove', this._onCollectionRemove);
                this.listenTo(this.collection, 'reset', this._renderChildren);

                if (this.sort) {
                    this.listenTo(this.collection, 'sort', this._sortViews);
                }
            }
        },

        // Retrieve the `childView` to be used when rendering each of
        // the items in the collection. The default is to return
        // `this.childView` or Marionette.CompositeView if no `childView`
        // has been defined
        getChildView: function(child) {
            var childView = this.getOption('childView') || this.constructor;

            return childView;
        },

        // Serialize the model for the view.
        // You can override the `serializeData` method in your own view
        // definition, to provide custom serialization for your view's data.
        serializeData: function() {
            var data = {};

            if (this.model) {
                data = _.partial(this.serializeModel, this.model).apply(this, arguments);
            }

            return data;
        },

        // Renders the model and the collection.
        render: function() {
            this._ensureViewIsIntact();
            this.isRendered = true;
            this.resetChildViewContainer();

            this.triggerMethod('before:render', this);

            this._renderTemplate();
            this._renderChildren();

            this.triggerMethod('render', this);
            return this;
        },

        _renderChildren: function() {
            if (this.isRendered) {
                Marionette.CollectionView.prototype._renderChildren.call(this);
            }
        },

        // Render the root template that the children
        // views are appended to
        _renderTemplate: function() {
            var data = {};
            data = this.serializeData();
            data = this.mixinTemplateHelpers(data);

            this.triggerMethod('before:render:template');

            var template = this.getTemplate();
            var html = Marionette.Renderer.render(template, data, this);
            this.attachElContent(html);

            // the ui bindings is done here and not at the end of render since they
            // will not be available until after the model is rendered, but should be
            // available before the collection is rendered.
            this.bindUIElements();
            this.triggerMethod('render:template');
        },

        // Attaches the content of the root.
        // This method can be overridden to optimize rendering,
        // or to render in a non standard way.
        //
        // For example, using `innerHTML` instead of `$el.html`
        //
        // ```js
        // attachElContent: function(html) {
        //   this.el.innerHTML = html;
        //   return this;
        // }
        // ```
        attachElContent: function(html) {
            this.$el.html(html);

            return this;
        },

        // You might need to override this if you've overridden attachHtml
        attachBuffer: function(compositeView, buffer) {
            var $container = this.getChildViewContainer(compositeView);
            $container.append(buffer);
        },

        // Internal method. Append a view to the end of the $el.
        // Overidden from CollectionView to ensure view is appended to
        // childViewContainer
        _insertAfter: function(childView) {
            var $container = this.getChildViewContainer(this, childView);
            $container.append(childView.el);
        },

        // Internal method to ensure an `$childViewContainer` exists, for the
        // `attachHtml` method to use.
        getChildViewContainer: function(containerView, childView) {
            if ('$childViewContainer' in containerView) {
                return containerView.$childViewContainer;
            }

            var container;
            var childViewContainer = Marionette.getOption(containerView, 'childViewContainer');
            if (childViewContainer) {

                var selector = _.isFunction(childViewContainer) ? childViewContainer.call(containerView) : childViewContainer;

                if (selector.charAt(0) === '@' && containerView.ui) {
                    container = containerView.ui[selector.substr(4)];
                } else {
                    container = containerView.$(selector);
                }

                if (container.length <= 0) {
                    throw new Marionette.Error({
                        name: 'ChildViewContainerMissingError',
                        message: 'The specified "childViewContainer" was not found: ' + containerView.childViewContainer
                    });
                }

            } else {
                container = containerView.$el;
            }

            containerView.$childViewContainer = container;
            return container;
        },

        // Internal method to reset the `$childViewContainer` on render
        resetChildViewContainer: function() {
            if (this.$childViewContainer) {
                delete this.$childViewContainer;
            }
        }
    });

    // Layout View
    // -----------

    // Used for managing application layoutViews, nested layoutViews and
    // multiple regions within an application or sub-application.
    //
    // A specialized view class that renders an area of HTML and then
    // attaches `Region` instances to the specified `regions`.
    // Used for composite view management and sub-application areas.
    Marionette.LayoutView = Marionette.ItemView.extend({
        regionClass: Marionette.Region,

        // Ensure the regions are available when the `initialize` method
        // is called.
        constructor: function(options) {
            options = options || {};

            this._firstRender = true;
            this._initializeRegions(options);

            Marionette.ItemView.call(this, options);
        },

        // LayoutView's render will use the existing region objects the
        // first time it is called. Subsequent calls will destroy the
        // views that the regions are showing and then reset the `el`
        // for the regions to the newly rendered DOM elements.
        render: function() {
            this._ensureViewIsIntact();

            if (this._firstRender) {
                // if this is the first render, don't do anything to
                // reset the regions
                this._firstRender = false;
            } else {
                // If this is not the first render call, then we need to
                // re-initialize the `el` for each region
                this._reInitializeRegions();
            }

            return Marionette.ItemView.prototype.render.apply(this, arguments);
        },

        // Handle destroying regions, and then destroy the view itself.
        destroy: function() {
            if (this.isDestroyed) {
                return this;
            }

            this.regionManager.destroy();
            return Marionette.ItemView.prototype.destroy.apply(this, arguments);
        },

        // Add a single region, by name, to the layoutView
        addRegion: function(name, definition) {
            var regions = {};
            regions[name] = definition;
            return this._buildRegions(regions)[name];
        },

        // Add multiple regions as a {name: definition, name2: def2} object literal
        addRegions: function(regions) {
            this.regions = _.extend({}, this.regions, regions);
            return this._buildRegions(regions);
        },

        // Remove a single region from the LayoutView, by name
        removeRegion: function(name) {
            delete this.regions[name];
            return this.regionManager.removeRegion(name);
        },

        // Provides alternative access to regions
        // Accepts the region name
        // getRegion('main')
        getRegion: function(region) {
            return this.regionManager.get(region);
        },

        // Get all regions
        getRegions: function() {
            return this.regionManager.getRegions();
        },

        // internal method to build regions
        _buildRegions: function(regions) {
            var defaults = {
                regionClass: this.getOption('regionClass'),
                parentEl: _.partial(_.result, this, '$el')
            };

            return this.regionManager.addRegions(regions, defaults);
        },

        // Internal method to initialize the regions that have been defined in a
        // `regions` attribute on this layoutView.
        _initializeRegions: function(options) {
            var regions;
            this._initRegionManager();

            if (_.isFunction(this.regions)) {
                regions = this.regions(options);
            } else {
                regions = this.regions || {};
            }

            // Enable users to define `regions` as instance options.
            var regionOptions = this.getOption.call(options, 'regions');

            // enable region options to be a function
            if (_.isFunction(regionOptions)) {
                regionOptions = regionOptions.call(this, options);
            }

            _.extend(regions, regionOptions);

            // Normalize region selectors hash to allow
            // a user to use the @ui. syntax.
            regions = this.normalizeUIValues(regions);

            this.addRegions(regions);
        },

        // Internal method to re-initialize all of the regions by updating the `el` that
        // they point to
        _reInitializeRegions: function() {
            this.regionManager.invoke('reset');
        },

        // Enable easy overriding of the default `RegionManager`
        // for customized region interactions and business specific
        // view logic for better control over single regions.
        getRegionManager: function() {
            return new Marionette.RegionManager();
        },

        // Internal method to initialize the region manager
        // and all regions in it
        _initRegionManager: function() {
            this.regionManager = this.getRegionManager();
            this.regionManager._parent = this;

            this.listenTo(this.regionManager, 'before:add:region', function(name) {
                this.triggerMethod('before:add:region', name);
            });

            this.listenTo(this.regionManager, 'add:region', function(name, region) {
                this[name] = region;
                this.triggerMethod('add:region', name, region);
            });

            this.listenTo(this.regionManager, 'before:remove:region', function(name) {
                this.triggerMethod('before:remove:region', name);
            });

            this.listenTo(this.regionManager, 'remove:region', function(name, region) {
                delete this[name];
                this.triggerMethod('remove:region', name, region);
            });
        },

        _getImmediateChildren: function() {
            return _.chain(this.regionManager.getRegions())
                .pluck('currentView')
                .compact()
                .value();
        }
    });


    // Behavior
    // --------

    // A Behavior is an isolated set of DOM /
    // user interactions that can be mixed into any View.
    // Behaviors allow you to blackbox View specific interactions
    // into portable logical chunks, keeping your views simple and your code DRY.

    Marionette.Behavior = Marionette.Object.extend({
        constructor: function(options, view) {
            // Setup reference to the view.
            // this comes in handle when a behavior
            // wants to directly talk up the chain
            // to the view.
            this.view = view;
            this.defaults = _.result(this, 'defaults') || {};
            this.options = _.extend({}, this.defaults, options);

            Marionette.Object.apply(this, arguments);
        },

        // proxy behavior $ method to the view
        // this is useful for doing jquery DOM lookups
        // scoped to behaviors view.
        $: function() {
            return this.view.$.apply(this.view, arguments);
        },

        // Stops the behavior from listening to events.
        // Overrides Object#destroy to prevent additional events from being triggered.
        destroy: function() {
            this.stopListening();
        },

        proxyViewProperties: function(view) {
            this.$el = view.$el;
            this.el = view.el;
        }
    });

    /* jshint maxlen: 143 */
    // Behaviors
    // ---------

    // Behaviors is a utility class that takes care of
    // gluing your behavior instances to their given View.
    // The most important part of this class is that you
    // **MUST** override the class level behaviorsLookup
    // method for things to work properly.

    Marionette.Behaviors = (function(Marionette, _) {

        function Behaviors(view, behaviors) {

            if (!_.isObject(view.behaviors)) {
                return {};
            }

            // Behaviors defined on a view can be a flat object literal
            // or it can be a function that returns an object.
            behaviors = Behaviors.parseBehaviors(view, behaviors || _.result(view, 'behaviors'));

            // Wraps several of the view's methods
            // calling the methods first on each behavior
            // and then eventually calling the method on the view.
            Behaviors.wrap(view, behaviors, _.keys(methods));
            return behaviors;
        }

        var methods = {
            behaviorTriggers: function(behaviorTriggers, behaviors) {
                var triggerBuilder = new BehaviorTriggersBuilder(this, behaviors);
                return triggerBuilder.buildBehaviorTriggers();
            },

            behaviorEvents: function(behaviorEvents, behaviors) {
                var _behaviorsEvents = {};
                var viewUI = _.result(this, 'ui');

                _.each(behaviors, function(b, i) {
                    var _events = {};
                    var behaviorEvents = _.clone(_.result(b, 'events')) || {};
                    var behaviorUI = _.result(b, 'ui');

                    // Construct an internal UI hash first using
                    // the views UI hash and then the behaviors UI hash.
                    // This allows the user to use UI hash elements
                    // defined in the parent view as well as those
                    // defined in the given behavior.
                    var ui = _.extend({}, viewUI, behaviorUI);

                    // Normalize behavior events hash to allow
                    // a user to use the @ui. syntax.
                    behaviorEvents = Marionette.normalizeUIKeys(behaviorEvents, ui);

                    _.each(_.keys(behaviorEvents), function(key) {
                        // Append white-space at the end of each key to prevent behavior key collisions.
                        // This is relying on the fact that backbone events considers "click .foo" the same as
                        // "click .foo ".

                        // +2 is used because new Array(1) or 0 is "" and not " "
                        var whitespace = (new Array(i + 2)).join(' ');
                        var eventKey = key + whitespace;
                        var handler = _.isFunction(behaviorEvents[key]) ? behaviorEvents[key] : b[behaviorEvents[key]];

                        _events[eventKey] = _.bind(handler, b);
                    });

                    _behaviorsEvents = _.extend(_behaviorsEvents, _events);
                });

                return _behaviorsEvents;
            }
        };

        _.extend(Behaviors, {

            // Placeholder method to be extended by the user.
            // The method should define the object that stores the behaviors.
            // i.e.
            //
            // ```js
            // Marionette.Behaviors.behaviorsLookup: function() {
            //   return App.Behaviors
            // }
            // ```
            behaviorsLookup: function() {
                throw new Marionette.Error({
                    message: 'You must define where your behaviors are stored.',
                    url: 'marionette.behaviors.html#behaviorslookup'
                });
            },

            // Takes care of getting the behavior class
            // given options and a key.
            // If a user passes in options.behaviorClass
            // default to using that. Otherwise delegate
            // the lookup to the users `behaviorsLookup` implementation.
            getBehaviorClass: function(options, key) {
                if (options.behaviorClass) {
                    return options.behaviorClass;
                }

                // Get behavior class can be either a flat object or a method
                return _.isFunction(Behaviors.behaviorsLookup) ? Behaviors.behaviorsLookup.apply(this, arguments)[key] : Behaviors.behaviorsLookup[key];
            },

            // Iterate over the behaviors object, for each behavior
            // instantiate it and get its grouped behaviors.
            parseBehaviors: function(view, behaviors) {
                return _.chain(behaviors).map(function(options, key) {
                    var BehaviorClass = Behaviors.getBehaviorClass(options, key);

                    var behavior = new BehaviorClass(options, view);
                    var nestedBehaviors = Behaviors.parseBehaviors(view, _.result(behavior, 'behaviors'));

                    return [behavior].concat(nestedBehaviors);
                }).flatten().value();
            },

            // Wrap view internal methods so that they delegate to behaviors. For example,
            // `onDestroy` should trigger destroy on all of the behaviors and then destroy itself.
            // i.e.
            //
            // `view.delegateEvents = _.partial(methods.delegateEvents, view.delegateEvents, behaviors);`
            wrap: function(view, behaviors, methodNames) {
                _.each(methodNames, function(methodName) {
                    view[methodName] = _.partial(methods[methodName], view[methodName], behaviors);
                });
            }
        });

        // Class to build handlers for `triggers` on behaviors
        // for views
        function BehaviorTriggersBuilder(view, behaviors) {
            this._view = view;
            this._viewUI = _.result(view, 'ui');
            this._behaviors = behaviors;
            this._triggers = {};
        }

        _.extend(BehaviorTriggersBuilder.prototype, {
            // Main method to build the triggers hash with event keys and handlers
            buildBehaviorTriggers: function() {
                _.each(this._behaviors, this._buildTriggerHandlersForBehavior, this);
                return this._triggers;
            },

            // Internal method to build all trigger handlers for a given behavior
            _buildTriggerHandlersForBehavior: function(behavior, i) {
                var ui = _.extend({}, this._viewUI, _.result(behavior, 'ui'));
                var triggersHash = _.clone(_.result(behavior, 'triggers')) || {};

                triggersHash = Marionette.normalizeUIKeys(triggersHash, ui);

                _.each(triggersHash, _.partial(this._setHandlerForBehavior, behavior, i), this);
            },

            // Internal method to create and assign the trigger handler for a given
            // behavior
            _setHandlerForBehavior: function(behavior, i, eventName, trigger) {
                // Unique identifier for the `this._triggers` hash
                var triggerKey = trigger.replace(/^\S+/, function(triggerName) {
                    return triggerName + '.' + 'behaviortriggers' + i;
                });

                this._triggers[triggerKey] = this._view._buildViewTrigger(eventName);
            }
        });

        return Behaviors;

    })(Marionette, _);


    // App Router
    // ----------

    // Reduce the boilerplate code of handling route events
    // and then calling a single method on another object.
    // Have your routers configured to call the method on
    // your object, directly.
    //
    // Configure an AppRouter with `appRoutes`.
    //
    // App routers can only take one `controller` object.
    // It is recommended that you divide your controller
    // objects in to smaller pieces of related functionality
    // and have multiple routers / controllers, instead of
    // just one giant router and controller.
    //
    // You can also add standard routes to an AppRouter.

    Marionette.AppRouter = Backbone.Router.extend({

        constructor: function(options) {
            this.options = options || {};

            Backbone.Router.apply(this, arguments);

            var appRoutes = this.getOption('appRoutes');
            var controller = this._getController();
            this.processAppRoutes(controller, appRoutes);
            this.on('route', this._processOnRoute, this);
        },

        // Similar to route method on a Backbone Router but
        // method is called on the controller
        appRoute: function(route, methodName) {
            var controller = this._getController();
            this._addAppRoute(controller, route, methodName);
        },

        // process the route event and trigger the onRoute
        // method call, if it exists
        _processOnRoute: function(routeName, routeArgs) {
            // make sure an onRoute before trying to call it
            if (_.isFunction(this.onRoute)) {
                // find the path that matches the current route
                var routePath = _.invert(this.getOption('appRoutes'))[routeName];
                this.onRoute(routeName, routePath, routeArgs);
            }
        },

        // Internal method to process the `appRoutes` for the
        // router, and turn them in to routes that trigger the
        // specified method on the specified `controller`.
        processAppRoutes: function(controller, appRoutes) {
            if (!appRoutes) {
                return;
            }

            var routeNames = _.keys(appRoutes).reverse(); // Backbone requires reverted order of routes

            _.each(routeNames, function(route) {
                this._addAppRoute(controller, route, appRoutes[route]);
            }, this);
        },

        _getController: function() {
            return this.getOption('controller');
        },

        _addAppRoute: function(controller, route, methodName) {
            var method = controller[methodName];

            if (!method) {
                throw new Marionette.Error('Method "' + methodName + '" was not found on the controller');
            }

            this.route(route, methodName, _.bind(method, controller));
        },

        // Proxy `getOption` to enable getting options from this or this.options by name.
        getOption: Marionette.proxyGetOption,

        triggerMethod: Marionette.triggerMethod,

        bindEntityEvents: Marionette.proxyBindEntityEvents,

        unbindEntityEvents: Marionette.proxyUnbindEntityEvents
    });

    // Application
    // -----------

    // Contain and manage the composite application as a whole.
    // Stores and starts up `Region` objects, includes an
    // event aggregator as `app.vent`
    Marionette.Application = Marionette.Object.extend({
        constructor: function(options) {
            this._initializeRegions(options);
            this._initCallbacks = new Marionette.Callbacks();
            this.submodules = {};
            _.extend(this, options);
            this._initChannel();
            Marionette.Object.call(this, options);
        },

        // Command execution, facilitated by Backbone.Wreqr.Commands
        execute: function() {
            this.commands.execute.apply(this.commands, arguments);
        },

        // Request/response, facilitated by Backbone.Wreqr.RequestResponse
        request: function() {
            return this.reqres.request.apply(this.reqres, arguments);
        },

        // Add an initializer that is either run at when the `start`
        // method is called, or run immediately if added after `start`
        // has already been called.
        addInitializer: function(initializer) {
            this._initCallbacks.add(initializer);
        },

        // kick off all of the application's processes.
        // initializes all of the regions that have been added
        // to the app, and runs all of the initializer functions
        start: function(options) {
            this.triggerMethod('before:start', options);
            this._initCallbacks.run(options, this);
            this.triggerMethod('start', options);
        },

        // Add regions to your app.
        // Accepts a hash of named strings or Region objects
        // addRegions({something: "#someRegion"})
        // addRegions({something: Region.extend({el: "#someRegion"}) });
        addRegions: function(regions) {
            return this._regionManager.addRegions(regions);
        },

        // Empty all regions in the app, without removing them
        emptyRegions: function() {
            return this._regionManager.emptyRegions();
        },

        // Removes a region from your app, by name
        // Accepts the regions name
        // removeRegion('myRegion')
        removeRegion: function(region) {
            return this._regionManager.removeRegion(region);
        },

        // Provides alternative access to regions
        // Accepts the region name
        // getRegion('main')
        getRegion: function(region) {
            return this._regionManager.get(region);
        },

        // Get all the regions from the region manager
        getRegions: function() {
            return this._regionManager.getRegions();
        },

        // Create a module, attached to the application
        module: function(moduleNames, moduleDefinition) {

            // Overwrite the module class if the user specifies one
            var ModuleClass = Marionette.Module.getClass(moduleDefinition);

            var args = _.toArray(arguments);
            args.unshift(this);

            // see the Marionette.Module object for more information
            return ModuleClass.create.apply(ModuleClass, args);
        },

        // Enable easy overriding of the default `RegionManager`
        // for customized region interactions and business-specific
        // view logic for better control over single regions.
        getRegionManager: function() {
            return new Marionette.RegionManager();
        },

        // Internal method to initialize the regions that have been defined in a
        // `regions` attribute on the application instance
        _initializeRegions: function(options) {
            var regions = _.isFunction(this.regions) ? this.regions(options) : this.regions || {};

            this._initRegionManager();

            // Enable users to define `regions` in instance options.
            var optionRegions = Marionette.getOption(options, 'regions');

            // Enable region options to be a function
            if (_.isFunction(optionRegions)) {
                optionRegions = optionRegions.call(this, options);
            }

            // Overwrite current regions with those passed in options
            _.extend(regions, optionRegions);

            this.addRegions(regions);

            return this;
        },

        // Internal method to set up the region manager
        _initRegionManager: function() {
            this._regionManager = this.getRegionManager();
            this._regionManager._parent = this;

            this.listenTo(this._regionManager, 'before:add:region', function() {
                Marionette._triggerMethod(this, 'before:add:region', arguments);
            });

            this.listenTo(this._regionManager, 'add:region', function(name, region) {
                this[name] = region;
                Marionette._triggerMethod(this, 'add:region', arguments);
            });

            this.listenTo(this._regionManager, 'before:remove:region', function() {
                Marionette._triggerMethod(this, 'before:remove:region', arguments);
            });

            this.listenTo(this._regionManager, 'remove:region', function(name) {
                delete this[name];
                Marionette._triggerMethod(this, 'remove:region', arguments);
            });
        },

        // Internal method to setup the Wreqr.radio channel
        _initChannel: function() {
            this.channelName = _.result(this, 'channelName') || 'global';
            this.channel = _.result(this, 'channel') || Backbone.Wreqr.radio.channel(this.channelName);
            this.vent = _.result(this, 'vent') || this.channel.vent;
            this.commands = _.result(this, 'commands') || this.channel.commands;
            this.reqres = _.result(this, 'reqres') || this.channel.reqres;
        }
    });

    /* jshint maxparams: 9 */

    // Module
    // ------

    // A simple module system, used to create privacy and encapsulation in
    // Marionette applications
    Marionette.Module = function(moduleName, app, options) {
        this.moduleName = moduleName;
        this.options = _.extend({}, this.options, options);
        // Allow for a user to overide the initialize
        // for a given module instance.
        this.initialize = options.initialize || this.initialize;

        // Set up an internal store for sub-modules.
        this.submodules = {};

        this._setupInitializersAndFinalizers();

        // Set an internal reference to the app
        // within a module.
        this.app = app;

        if (_.isFunction(this.initialize)) {
            this.initialize(moduleName, app, this.options);
        }
    };

    Marionette.Module.extend = Marionette.extend;

    // Extend the Module prototype with events / listenTo, so that the module
    // can be used as an event aggregator or pub/sub.
    _.extend(Marionette.Module.prototype, Backbone.Events, {

        // By default modules start with their parents.
        startWithParent: true,

        // Initialize is an empty function by default. Override it with your own
        // initialization logic when extending Marionette.Module.
        initialize: function() {},

        // Initializer for a specific module. Initializers are run when the
        // module's `start` method is called.
        addInitializer: function(callback) {
            this._initializerCallbacks.add(callback);
        },

        // Finalizers are run when a module is stopped. They are used to teardown
        // and finalize any variables, references, events and other code that the
        // module had set up.
        addFinalizer: function(callback) {
            this._finalizerCallbacks.add(callback);
        },

        // Start the module, and run all of its initializers
        start: function(options) {
            // Prevent re-starting a module that is already started
            if (this._isInitialized) {
                return;
            }

            // start the sub-modules (depth-first hierarchy)
            _.each(this.submodules, function(mod) {
                // check to see if we should start the sub-module with this parent
                if (mod.startWithParent) {
                    mod.start(options);
                }
            });

            // run the callbacks to "start" the current module
            this.triggerMethod('before:start', options);

            this._initializerCallbacks.run(options, this);
            this._isInitialized = true;

            this.triggerMethod('start', options);
        },

        // Stop this module by running its finalizers and then stop all of
        // the sub-modules for this module
        stop: function() {
            // if we are not initialized, don't bother finalizing
            if (!this._isInitialized) {
                return;
            }
            this._isInitialized = false;

            this.triggerMethod('before:stop');

            // stop the sub-modules; depth-first, to make sure the
            // sub-modules are stopped / finalized before parents
            _.invoke(this.submodules, 'stop');

            // run the finalizers
            this._finalizerCallbacks.run(undefined, this);

            // reset the initializers and finalizers
            this._initializerCallbacks.reset();
            this._finalizerCallbacks.reset();

            this.triggerMethod('stop');
        },

        // Configure the module with a definition function and any custom args
        // that are to be passed in to the definition function
        addDefinition: function(moduleDefinition, customArgs) {
            this._runModuleDefinition(moduleDefinition, customArgs);
        },

        // Internal method: run the module definition function with the correct
        // arguments
        _runModuleDefinition: function(definition, customArgs) {
            // If there is no definition short circut the method.
            if (!definition) {
                return;
            }

            // build the correct list of arguments for the module definition
            var args = _.flatten([
                this,
                this.app,
                Backbone,
                Marionette,
                Backbone.$, _,
                customArgs
            ]);

            definition.apply(this, args);
        },

        // Internal method: set up new copies of initializers and finalizers.
        // Calling this method will wipe out all existing initializers and
        // finalizers.
        _setupInitializersAndFinalizers: function() {
            this._initializerCallbacks = new Marionette.Callbacks();
            this._finalizerCallbacks = new Marionette.Callbacks();
        },

        // import the `triggerMethod` to trigger events with corresponding
        // methods if the method exists
        triggerMethod: Marionette.triggerMethod
    });

    // Class methods to create modules
    _.extend(Marionette.Module, {

        // Create a module, hanging off the app parameter as the parent object.
        create: function(app, moduleNames, moduleDefinition) {
            var module = app;

            // get the custom args passed in after the module definition and
            // get rid of the module name and definition function
            var customArgs = _.rest(arguments, 3);

            // Split the module names and get the number of submodules.
            // i.e. an example module name of `Doge.Wow.Amaze` would
            // then have the potential for 3 module definitions.
            moduleNames = moduleNames.split('.');
            var length = moduleNames.length;

            // store the module definition for the last module in the chain
            var moduleDefinitions = [];
            moduleDefinitions[length - 1] = moduleDefinition;

            // Loop through all the parts of the module definition
            _.each(moduleNames, function(moduleName, i) {
                var parentModule = module;
                module = this._getModule(parentModule, moduleName, app, moduleDefinition);
                this._addModuleDefinition(parentModule, module, moduleDefinitions[i], customArgs);
            }, this);

            // Return the last module in the definition chain
            return module;
        },

        _getModule: function(parentModule, moduleName, app, def, args) {
            var options = _.extend({}, def);
            var ModuleClass = this.getClass(def);

            // Get an existing module of this name if we have one
            var module = parentModule[moduleName];

            if (!module) {
                // Create a new module if we don't have one
                module = new ModuleClass(moduleName, app, options);
                parentModule[moduleName] = module;
                // store the module on the parent
                parentModule.submodules[moduleName] = module;
            }

            return module;
        },

        // ## Module Classes
        //
        // Module classes can be used as an alternative to the define pattern.
        // The extend function of a Module is identical to the extend functions
        // on other Backbone and Marionette classes.
        // This allows module lifecyle events like `onStart` and `onStop` to be called directly.
        getClass: function(moduleDefinition) {
            var ModuleClass = Marionette.Module;

            if (!moduleDefinition) {
                return ModuleClass;
            }

            // If all of the module's functionality is defined inside its class,
            // then the class can be passed in directly. `MyApp.module("Foo", FooModule)`.
            if (moduleDefinition.prototype instanceof ModuleClass) {
                return moduleDefinition;
            }

            return moduleDefinition.moduleClass || ModuleClass;
        },

        // Add the module definition and add a startWithParent initializer function.
        // This is complicated because module definitions are heavily overloaded
        // and support an anonymous function, module class, or options object
        _addModuleDefinition: function(parentModule, module, def, args) {
            var fn = this._getDefine(def);
            var startWithParent = this._getStartWithParent(def, module);

            if (fn) {
                module.addDefinition(fn, args);
            }

            this._addStartWithParent(parentModule, module, startWithParent);
        },

        _getStartWithParent: function(def, module) {
            var swp;

            if (_.isFunction(def) && (def.prototype instanceof Marionette.Module)) {
                swp = module.constructor.prototype.startWithParent;
                return _.isUndefined(swp) ? true : swp;
            }

            if (_.isObject(def)) {
                swp = def.startWithParent;
                return _.isUndefined(swp) ? true : swp;
            }

            return true;
        },

        _getDefine: function(def) {
            if (_.isFunction(def) && !(def.prototype instanceof Marionette.Module)) {
                return def;
            }

            if (_.isObject(def)) {
                return def.define;
            }

            return null;
        },

        _addStartWithParent: function(parentModule, module, startWithParent) {
            module.startWithParent = module.startWithParent && startWithParent;

            if (!module.startWithParent || !!module.startWithParentIsConfigured) {
                return;
            }

            module.startWithParentIsConfigured = true;

            parentModule.addInitializer(function(options) {
                if (module.startWithParent) {
                    module.start(options);
                }
            });
        }
    });


    return Marionette;
}));
                                    

#6 JavaScript::Eval (size: 2398, repeated: 1) - SHA256: 9f17a0d520c1f53f92385d870f061e36db54b74582cf4d8019d9f1f527d8760a

                                        /* Onsi Fakhouri <onsijoe@gmail.com>
 * backbone.cocktail v0.5.8
 * https://github.com/onsi/cocktail/
 MIT License
 Copyright (c) 2012 Onsi Fakhouri

 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
 to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
 and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
! function(a) {
    "function" == typeof require && "undefined" != typeof module && module.exports ? module.exports = a(require("underscore")) : "function" == typeof define ? define(["underscore"], a) : this.Cocktail = a(_)
}(function(a) {
    var b = {};
    b.mixins = {}, b.mixin = function(c) {
        var d = a.chain(arguments).toArray().rest().flatten().value(),
            e = c.prototype || c,
            f = {};
        return a(d).each(function(c) {
            a.isString(c) && (c = b.mixins[c]), a(c).each(function(b, c) {
                if (a.isFunction(b)) {
                    if (e[c] === b) return;
                    e[c] && (f[c] = f.hasOwnProperty(c) ? f[c] : [e[c]], f[c].push(b)), e[c] = b
                } else a.isArray(b) ? e[c] = a.union(b, e[c] || []) : a.isObject(b) ? e[c] = a.extend({}, b, e[c] || {}) : c in e || (e[c] = b)
            })
        }), a(f).each(function(b, c) {
            e[c] = function() {
                var c, d = this,
                    e = arguments;
                return a(b).each(function(b) {
                    var f = a.isFunction(b) ? b.apply(d, e) : b;
                    c = "undefined" == typeof f ? c : f
                }), c
            }
        }), c
    };
    var c;
    return b.patch = function(d) {
        c = d.Model.extend;
        var e = function(a, d) {
            var e = c.call(this, a, d),
                f = e.prototype.mixins;
            return f && e.prototype.hasOwnProperty("mixins") && b.mixin(e, f), e
        };
        a([d.Model, d.Collection, d.Router, d.View]).each(function(c) {
            c.mixin = function() {
                b.mixin(this, a.toArray(arguments))
            }, c.extend = e
        })
    }, b.unpatch = function(b) {
        a([b.Model, b.Collection, b.Router, b.View]).each(function(a) {
            a.mixin = void 0, a.extend = c
        })
    }, b
});
                                    

#7 JavaScript::Eval (size: 17018, repeated: 1) - SHA256: 7022c47442e6d7c1e4f58fdaa5ab4beafc371011f4536d76f37ec97b230de644

                                        /* eslint-disable */

/**
 * This app.js is where lightweight pieces of the App object which are needed
 * everywhere, including published mobile sites, belong.
 */

var App = App || {};
App.i18n = App.i18n || {};

(function() {
    App.getParam = function(name) {
        var regex = new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)'),
            parentWindow = (window.parent === window.top) ? window.parent : window.parent.parent,
            results = null;

        try {
            results = regex.exec(parentWindow.location.search);
        } catch (e) {}

        if (results && results[1]) {
            return decodeURIComponent(results[1]);
        }

        return null;
    };

    App.flow = function(state, data, topFrame) {
        var flowEngineUrl = App.frontEndBucket.protocol + '://flow.' + App.brand.domain + '/' + state;

        $.ajax(flowEngineUrl, {
            async: true,
            data: data,
            dataType: 'jsonp',
            success: function(response) {
                var redirectUrl = response.url;

                if (topFrame) {
                    window.top.location.href = redirectUrl;
                    return;
                }

                window.location.href = redirectUrl;
            }
        });
    }

    App.t = function(key, fallback) {
        var $lib = $ || bk$,
            translateIt = App.getParam('translate'),
            base = fallback || '',
            parts, section, args, translated, values = 'DEFAULT',
            keypart, thisTrans, defaultString = true;

        // Extract the section from the key
        if (key) {
            parts = key.split('.');
            section = parts.shift();
            keypart = parts.join('.');
        }

        if (typeof App.i18n[section] !== "undefined" && typeof App.i18n[section][keypart] !== "undefined") {
            if (App.i18n[section][keypart].length > 0) {
                base = App.i18n[section][keypart];
                defaultString = false;
            }
        }

        args = [].slice.call(arguments, 1);
        args = $lib.map(args, function(n) {
            return n;
        });

        if (defaultString && App.frontEndBucket && parseInt(App.frontEndBucket.useDefaultTranslations, 10) === 0) {
            return key;
        }

        translated = base.replace(/%([0-9]+)/g, function(match, found, offset, original) {
            return args[found] !== undefined ? args[found] : '';
        });

        if (translateIt === "debugvalues") {
            thisTrans = (App.i18n[section] !== undefined && App.i18n[section][keypart] !== undefined) ? App.i18n[section][keypart] : undefined;

            if (thisTrans === '') {
                values = 'MASTER';
            } else if (thisTrans) {
                values = 'TRANSLATED';
            }

            return values;
        }
        // For checking key names (helpful for checking DB driven keys)
        else if (translateIt === "debugkeys") {
            return key;
        }

        return translated;
    };

    App.formatUrl = function(string) {
        if (typeof string === 'string') {
            string = string.replace(/[^a-zA-Z0-9 -]/g, '') // remove invalid chars
                .replace(/\s+/g, '-') // collapse whitespace and replace by -
                .toLowerCase();
            // remove any trailing hyphens
            return (string.charAt(string.length - 1) === '-') ? string.substring(0, (string.length - 1)) : string;
        }
    };

    App.formatBlogDate = function(iso_date, lang) {
        var locale = lang || App.user.languageCode,
            formatted;

        if (typeof iso_date !== 'string') {
            return false;
        }

        formatted = moment(iso_date).lang(locale).format('DD MMMM YYYY');

        return formatted;
    };

    App.getPHPDate = function(format, date) {
        var d = new Date(date);

        if (typeof format !== 'string') {
            format = 'c';
        }

        return d.format(format);
    };

    App.stringFormat = function(string) {
        var i;
        for (i = 1; i < arguments.length; i++) {
            string = string.replace(/%s/, arguments[i]);
        }
        return string;
    };

    /**
     * Asynchronously returns a function that will render the given template
     *
     * This is a replacement for our old "Twig.render" function which
     * performed the above task. This function is an adapter between the API
     * we have already been using to render JS Twig templates, and the API
     * of the twig.js compiler's version of the global Twig object.
     *
     * Essentially, the purpose of this function is to enable a smooth
     * transition to twig.js without necessitating a big refactor of all the
     * already existing code that renders Twig templates client-side.
     *
     * @param string templateName  The name of the template to render
     * @param function callback    A callback to execute when the template is ready
     * @return function            A function that will render the template when called
     */
    App.render = function(templateName, callback) {
        var constructor = null;

        if (Twig.hasOwnProperty('templates')) {
            constructor = Twig.templates[templateName];
        }

        if (typeof constructor === 'function') {
            callback(generateTemplateCallbackClosure(constructor));
        } else {
            loadTemplateFromServer(templateName, function(constructor) {
                if (typeof constructor !== 'function') {
                    throw new Error('Failed to load template: ' + templateName);
                }
                callback(generateTemplateCallbackClosure(constructor));
            });
        }
    };

    App.templateQueues = {};

    function generateTemplateCallbackClosure(templateConstructor) {
        return function(parameters) {
            return Twig.render(templateConstructor, parameters);
        };
    }

    function loadTemplateFromServer(templateName, callback) {
        if (typeof App.templateQueues[templateName] === 'undefined') {
            App.templateQueues[templateName] = [callback];
            sendTemplateRequest(templateName);
        } else {
            App.templateQueues[templateName].push(callback);
        }
    }

    function sendTemplateRequest(templateName) {
        var templateUrl = App.assetBaseUrl() + '/twig-templates/' + templateName;

        $.ajax({
            url: templateUrl,
            cache: false,
            dataType: 'script',
            success: function() {
                processTemplateQueue(templateName);
            }
        });
    }

    function processTemplateQueue(templateName) {
        var constructor = Twig.templates[templateName];
        while (App.templateQueues[templateName].length > 0) {
            App.templateQueues[templateName].shift()(constructor);
        }
    }

    /**
     * AB: this function assumes the api call returns errors in the way Adrian first designed so they can be translatable, if you want to use this function make sure api call returns messageTemplates on errors, if it doesnt ask someone on the platform team, i do believe its not a hard change
     * @param  <object> response
     * @return <array>  array of mapped error text replacements
     */
    App.getErrorsFromResponse = function(response) {
        var phraseAppNameSpace = 'global_v7.errors.',
            errorMessages = [],
            responseObj;

        if (response.responseText) {
            responseObj = jQuery.parseJSON(response.responseText);

            if (responseObj.messageTemplates) {
                $.each(responseObj.messageTemplates, function(field, errorTemplates) {
                    $.each(errorTemplates.templates, function(type, template) {
                        var replacements = [],
                            args = [phraseAppNameSpace + type, template],
                            message,
                            messageObj = {};

                        // if there are replacements
                        if (errorTemplates.values) {
                            $.each(errorTemplates.values[type], function(i, stringValue) {
                                replacements.push(stringValue);
                            });
                        }

                        args = args.concat(replacements);
                        message = App.t.apply(App, args);

                        messageObj.field = field;
                        messageObj.message = message;

                        errorMessages.push(messageObj);
                    });
                });
            }
        }

        return errorMessages;
    };

    App.mixpanelTrack = function(trackName, mpVars) {
        var deferred = jQuery ? jQuery.Deferred() : bk$.Deferred(),
            mixpanelEnv,
            userRef,
            userEmail,
            subscriptionPackageRef,
            mixpanelUserId,
            baseObject,
            tracker;

        try {
            if (App && App.frontEndBucket && App.frontEndBucket.mixpanelToken) {
                baseObject = App;
                tracker = mixpanel;
            } else if (window.parent && window.parent.App && window.parent.App.frontEndBucket && window.parent.App.frontEndBucket.mixpanelToken) {
                baseObject = window.parent.App;
                tracker = window.parent.mixpanel;
            } else {
                return deferred.resolve();
            }
        } catch (err) {
            return deferred.resolve();
        }

        mixpanelEnv = baseObject.frontEndBucket.mixpanelEnv;
        userRef = baseObject.user.ref;
        userEmail = baseObject.user.email;
        subscriptionPackageRef = baseObject.user.subscriptionPackageRef;
        mixpanelUserId = mixpanelEnv + '-' + userRef;

        if (baseObject.hasOwnProperty('brand') && baseObject.brand.capabilities.mixPanelTracking === '0') {
            return deferred.resolve();
        }

        if (mixpanelEnv !== undefined && mixpanelEnv && userEmail.match(/@basekit\.com$/i) === null) {
            tracker.register({
                userRef: userRef,
                primaryDomain: getSitePrimaryDomain(),
                subscriptionPackageRef: subscriptionPackageRef,
                env: mixpanelEnv,
                brand: baseObject.brand.name,
                codeVersion: baseObject.frontEndBucket.codeVersion,
                productVersion: baseObject.user.productVersion,
                languageCode: baseObject.user.languageCode,
            });
            tracker.identify(mixpanelUserId);
            tracker.track(trackName, mpVars, function() {
                deferred.resolve();
            });
        } else {
            return deferred.resolve();
        }

        return deferred.promise();
    };

    App.intercomTrack = function(trackName, mpVars) {
        var deferred = jQuery ? jQuery.Deferred() : bk$.Deferred(),
            userEmail,
            baseObject,
            tracker;

        try {
            if (App && App.frontEndBucket) {
                baseObject = App;
                tracker = Intercom;
            } else if (window.parent && window.parent.App && window.parent.App.frontEndBucket) {
                baseObject = window.parent.App;
                tracker = window.parent.Intercom;
            } else {
                return deferred.resolve();
            }
        } catch (err) {
            return deferred.resolve();
        }

        if (baseObject.hasOwnProperty('brand') && baseObject.brand.capabilities.enableIntercom !== '1') {
            return deferred.resolve();
        }

        userEmail = baseObject.user.email;
        if (window.Intercom && userEmail.match(/@basekit\.com$/i) === null) {
            tracker('trackEvent', trackName, mpVars);
            setTimeout(function() {
                deferred.resolve();
            }, 200);
        } else {
            return deferred.resolve();
        }

        return deferred.promise();
    };

    App.stripUrlScheme = function(url) {
        if (typeof url === "string") {
            return url.replace(/^http:/, '');
        } else {
            return url;
        }
    };

    App.getPort = function() {
        var port = '',
            parts = window.location.href.split(':'),
            lastPart,
            https = window.location.href.substr(0, 5) === 'https';
        if (parts.length === 3) {
            lastPart = parts[2].replace(/[^0-9]/, '');
            if (!https && lastPart !== "80") {
                port = lastPart;
            } else if (https && lastPart !== "443") {
                port = lastPart;
            }
        }
        return port;
    };

    App.assetBaseUrl = function(protocol) {
        var port;

        if (protocol === '//') {
            return '//' + App.frontEndBucket.assetDomain + '/' + App.frontEndBucket.assetVersion;
        }

        if (typeof protocol === "undefined") {
            protocol = App.frontEndBucket.protocol;
        }

        port = App.getPort();
        return protocol + '://' + App.frontEndBucket.assetDomain + (port !== '' ? ':' + port : '') + '/' + App.frontEndBucket.assetVersion;
    };

    App.customWidgetAsset = function(widgetType, asset) {
        var widget = widgetType.slice('widget.'.length);
        var Server = window.Server;
        if (!Server) {
            Server = Editor.Site.Dom.window.Server;
        }
        var version = Server.customWidgetVersions[widget];
        return '//' + Server.customWidgetsDomain + '/' + widget + '/' + version + '/' + asset;
    };

    function getSitePrimaryDomain() {
        var primaryDomain = '';

        if (window.Editor && window.Editor.Site) {
            primaryDomain = Editor.Site.primaryDomain;
        } else if (window.parent.Editor && window.parent.Editor.Site) {
            primaryDomain = window.parent.Editor.Site.primaryDomain;
        } else if (window.App) {
            if (window.App.site && window.App.site.primaryDomain) {
                primaryDomain = window.App.site.primaryDomain.domainName;
            }
        } else if (window.parent.App) {
            if (window.parent.App.site && window.parent.App.site.primaryDomain) {
                primaryDomain = window.parent.App.site.primaryDomain.domainName;
            }
        }

        return primaryDomain;
    }

    App.getAssetUrl = function(asset, backupUrl, scale) {
        if (asset === null || typeof asset === 'undefined' || assetUsesResizer(scale) || assetUrlDiffersToBackupUrl(asset, backupUrl)) {
            return backupUrl;
        }
        if (asset.compression !== undefined && asset.compression === 'complete') {
            return asset.compressedUrl
        }
        return asset.url
    };

    function assetUsesResizer(scale) {
        var resizerTypes = ['icon', 'thumbnail', 'small'];

        if (scale === null) {
            return false;
        }
        if (resizerTypes.indexOf(scale) !== -1) {
            return true;
        }
        return false;
    }

    function assetUrlDiffersToBackupUrl(asset, backupUrl) {
        if (typeof backupUrl === 'undefined' || backupUrl === null || backupUrl === '') {
            return false;
        }
        return (App.stripUrlScheme(backupUrl) !== App.stripUrlScheme(asset.url));
    }

    App.baseUrlGeneratorFactory = App.baseUrlGeneratorFactory || {};
    App.baseUrlGeneratorFactory.create = function() {
        var protocol;
        var brandDomain;
        var accountHolder;
        // globals whack-a-mole
        if (typeof App.session !== "undefined") {
            protocol = App.session.get('protocol');
            brandDomain = App.session.get('domain');
        } else if (typeof App.frontEndBucket !== "undefined") {
            protocol = App.frontEndBucket.protocol;
            brandDomain = App.frontEndBucket.domain;
        }

        if (typeof App.user !== "undefined") {
            accountHolder = App.user;
        }

        function SingleDomainUrlGenerationStrategy() {
            this.generate = function(protocol, brandDomain) {
                return protocol + 'editor.' + brandDomain + '/home';
            };
        }

        function MultipleDomainUrlGenerationStrategy() {
            this.generate = function(protocol, brandDomain) {
                return protocol + 'home.' + brandDomain;
            };
        }

        var strategy;
        if (typeof accountHolder.enabledFeatureFlags !== "undefined" &&
            typeof accountHolder.enabledFeatureFlags.single_app_domain !== "undefined" &&
            accountHolder.enabledFeatureFlags.single_app_domain === true
        ) {
            strategy = new SingleDomainUrlGenerationStrategy();
        } else {
            strategy = new MultipleDomainUrlGenerationStrategy();
        }

        function BaseUrlGenerator(protocol, brand, strategy) {
            this.protocol = protocol;
            this.brand = brand;
            this.strategy = strategy;

            this.generate = function(subdomain, protocol) {
                if (typeof protocol === "undefined") {
                    protocol = this.protocol;
                }

                if (protocol !== '//') {
                    protocol = protocol + '://';
                }

                var url = this.strategy.generate(protocol, this.brand['domain']);
                return url;
            };
        }

        var baseUrlGenerator = new BaseUrlGenerator(
            protocol, {
                domain: brandDomain
            },
            strategy
        );

        return baseUrlGenerator;
    };

})();
                                    

#8 JavaScript::Eval (size: 191, repeated: 1) - SHA256: 4148ea3bdef19e92f8ffd44a05384066dd979aa345f86d25358a5558bae1d52d

                                        /* eslint-disable */
(function() {
    'use strict';

    BaseKit.Globals.Profile = Backbone.Model.extend({
        idAttribute: 'ref',

        save: function() {

        }
    });
}());
                                    

#9 JavaScript::Eval (size: 10911, repeated: 1) - SHA256: 5fe77fa0ca132dd37567505d5847367497fc105379c9bf4d7aec404a4d99a31d

                                        /* eslint-disable */
BaseKit = {
    Util: {},
    Widget: {},
    Globals: {},
    Static: {},
    Panels: {},
    Settings: {},
    siteLibraryProvider: function() {
        return window.parent;
    }
};

if (typeof Marionette !== 'undefined') {
    BaseKit.App = new Marionette.Application();
}

BaseKit.Util.extend = function(plugin, methods) {
    if (typeof bk$ === 'object') {
        bk$.extend(true, plugin.prototype, methods);
    } else {
        $.extend(true, plugin.prototype, methods);
    }
};


BaseKit.Util.handleMobileWebkit = function($selector) {
    var ua = navigator.userAgent,
        isAndroidChrome = new RegExp(" AppleWebKit/").test(ua) && new RegExp(" Android").test(ua) && new RegExp(" Mobile").test(ua),
        isWebKitMobile = new RegExp(" AppleWebKit/").test(ua) && new RegExp(" Mobile/").test(ua);

    if (!isWebKitMobile && !isAndroidChrome) {
        return;
    }
    $selector.addClass('mobile-webkit');
};

BaseKit.Util.expandException = function(exception) {
    var error = null,
        prop = null,
        expanded = "";

    for (prop in exception) {
        if (exception.hasOwnProperty(prop)) {
            expanded += "property: " + prop + " value: [" + exception[prop] + "]\n";
        }
    }

    expanded += " value: [" + exception.toString() + "]";

    return expanded;
};

/**
 * BaseKit.Util.waitsFor: function to wait for a positive reuslt to move on.
 * If a true boolean (===) is received, then the success function is called.
 * If a any other value is received, we wait for 10MS then call the funciton again.
 * If the accumulative interval is greater than the timeout (user defined),
 * we assume that the testing method has failed and we call the callbackFail function
 * @param <function> testMethod - Test method that is called every 10ms.
 * @param <integer> timeoutMS - time in milliseconds to continue testing
 * @param <function> callbackSuccess - function to call when test method returns true
 * @param <function> callbackFail - function to call when timeout runs out.
 * @returns <boolean> This should return true on success.
 */
BaseKit.Util.debug = false;
BaseKit.Util.waitsFor = function(testMethod, callbackSuccess, callbackFail, timeoutMS) {
    // RH: Because the interval adds the 10
    // the first time around being clock to 0.
    var clock = -10,
        intervalPeriod = 10,
        interval = null,
        result = false;

    if (typeof testMethod !== 'function') {
        if (BaseKit.Util.debug === true) {
            console.log('-> typeof testMethod: ' + typeof testMethod);
        }

        throw new Error('waitsFor: testMethod is not a function');
    }

    if (typeof timeoutMS !== 'number' || timeoutMS <= 10 || timeoutMS > 90000) {
        if (BaseKit.Util.debug === true) {
            console.log('-> typeof timeoutMS: ' + typeof timeoutMS);
            console.log('-> range[10ms-90000ms] timeoutMS: ' + timeoutMS);
        }

        throw new Error('waitsFor: timeoutMS is not valid; range[10ms-90000ms]');
    }

    if (typeof callbackSuccess !== 'function') {
        if (BaseKit.Util.debug === true) {
            console.log('-> typeof callbackSuccess: ' + typeof callbackSuccess);
        }

        throw new Error('waitsFor: callbackSuccess is not a function');
    }

    if (typeof callbackFail !== 'function') {
        if (BaseKit.Util.debug === true) {
            console.log('-> typeof callbackFail: ' + typeof callbackSuccess);
        }

        throw new Error('waitsFor: callbackFail is not a function');
    }

    // RH: Set the interval up
    interval = setInterval(function() {
        clock += intervalPeriod;

        if (clock >= timeoutMS) {
            // RH: Stop testing
            clearInterval(interval);

            if (BaseKit.Util.debug === true) {
                console.log('timeout exceeded after: ' + clock + 'ms >=' + timeoutMS + 'ms');
            }

            // RH: Call the callback fail function
            return callbackFail();
        }

        try {
            result = testMethod();

            if (BaseKit.Util.debug === true) {
                console.log('test called; result = ' + result);
            }

        } catch (exception) {
            if (BaseKit.Util.debug === true) {
                console.log('test crashed after ' + clock + 'ms');
            }

            // RH: erh... something went wrong in the test method.
            // Bomb and return back an Error.
            clearInterval(interval);

            result = false;

            throw new Error("waitsFor: testMethod bombed!\n" + BaseKit.Util.expandException(exception));
        }

        if (result === true) {
            if (BaseKit.Util.debug === true) {
                console.log('test returned succeeded after: ' + clock + 'ms');
            }

            // RH: Stop testing
            clearInterval(interval);

            return callbackSuccess();
        }

        return true;

    }, intervalPeriod);
};

/*
 * This uppercases the first character of a string
 */
String.prototype.ucfirst = function() {
    var f = this.charAt(0).toUpperCase();
    return f + this.substr(1);
};

/*
 * This changes the text into camelcase (uses . as the delimiter)
 */
String.prototype.toCamelCase = function() {
    return this.replace(/(\.[a-z])/g, function(txt) {
        return txt.toUpperCase().replace('.', '');
    });
};

/*
 * This changes widget name to the title case format
 */
String.prototype.toWidgetTitleCase = function() {
    return this.replace('.', ' ').replace(/\w\S*/g, function(txt) {
        return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
    }).replace(' ', '.');
};

/*
 * PHP Date Time for JS
 */
(function() {

    Date.shortMonths = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
    Date.longMonths = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
    Date.shortDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
    Date.longDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];

    // defining patterns
    var replaceChars = {
        // Day
        d: function() {
            return (this.getDate() < 10 ? '0' : '') + this.getDate();
        },
        D: function() {
            return Date.shortDays[this.getDay()];
        },
        j: function() {
            return this.getDate();
        },
        l: function() {
            return Date.longDays[this.getDay()];
        },
        N: function() {
            return (this.getDay() === 0 ? 7 : this.getDay());
        },
        S: function() {
            return (this.getDate() % 10 === 1 && this.getDate() !== 11 ? 'st' : (this.getDate() % 10 === 2 && this.getDate() !== 12 ? 'nd' : (this.getDate() % 10 === 3 && this.getDate() !== 13 ? 'rd' : 'th')));
        },
        w: function() {
            return this.getDay();
        },
        z: function() {
            var d = new Date(this.getFullYear(), 0, 1);
            return Math.ceil((this - d) / 86400000);
        }, // Fixed now
        // Week
        W: function() {
            var target = new Date(this.valueOf());
            var dayNr = (this.getDay() + 6) % 7;
            target.setDate(target.getDate() - dayNr + 3);
            var firstThursday = target.valueOf();
            target.setMonth(0, 1);
            if (target.getDay() !== 4) {
                target.setMonth(0, 1 + ((4 - target.getDay()) + 7) % 7);
            }
            return 1 + Math.ceil((firstThursday - target) / 604800000);
        },
        // Month
        F: function() {
            return Date.longMonths[this.getMonth()];
        },
        m: function() {
            return (this.getMonth() < 9 ? '0' : '') + (this.getMonth() + 1);
        },
        M: function() {
            return Date.shortMonths[this.getMonth()];
        },
        n: function() {
            return this.getMonth() + 1;
        },
        t: function() {
            var d = new Date();
            return new Date(d.getFullYear(), d.getMonth(), 0).getDate()
        }, // Fixed now, gets #days of date
        // Year
        L: function() {
            var year = this.getFullYear();
            return (year % 400 === 0 || (year % 100 !== 0 && year % 4 === 0));
        }, // Fixed now
        o: function() {
            var d = new Date(this.valueOf());
            d.setDate(d.getDate() - ((this.getDay() + 6) % 7) + 3);
            return d.getFullYear();
        }, //Fixed now
        Y: function() {
            return this.getFullYear();
        },
        y: function() {
            return ('' + this.getFullYear()).substr(2);
        },
        // Time
        a: function() {
            return this.getHours() < 12 ? 'am' : 'pm';
        },
        A: function() {
            return this.getHours() < 12 ? 'AM' : 'PM';
        },
        B: function() {
            return Math.floor((((this.getUTCHours() + 1) % 24) + this.getUTCMinutes() / 60 + this.getUTCSeconds() / 3600) * 1000 / 24);
        }, // Fixed now
        g: function() {
            return this.getHours() % 12 || 12;
        },
        G: function() {
            return this.getHours();
        },
        h: function() {
            return ((this.getHours() % 12 || 12) < 10 ? '0' : '') + (this.getHours() % 12 || 12);
        },
        H: function() {
            return (this.getHours() < 10 ? '0' : '') + this.getHours();
        },
        i: function() {
            return (this.getMinutes() < 10 ? '0' : '') + this.getMinutes();
        },
        s: function() {
            return (this.getSeconds() < 10 ? '0' : '') + this.getSeconds();
        },
        u: function() {
            var m = this.getMilliseconds();
            return (m < 10 ? '00' : (m < 100 ?
                '0' : '')) + m;
        },
        // Timezone
        e: function() {
            return "Not Yet Supported";
        },
        I: function() {
            var DST = null;
            for (var i = 0; i < 12; i += 1) {
                var d = new Date(this.getFullYear(), i, 1);
                var offset = d.getTimezoneOffset();

                if (DST === null) {
                    DST = offset;
                } else if (offset < DST) {
                    DST = offset;
                    break;
                } else if (offset > DST) {
                    break;
                }
            }
            return (this.getTimezoneOffset() === DST) | 0;
        },
        O: function() {
            return (-this.getTimezoneOffset() < 0 ? '-' : '+') + (Math.abs(this.getTimezoneOffset() / 60) < 10 ? '0' : '') + (Math.abs(this.getTimezoneOffset() / 60)) + '00';
        },
        P: function() {
            return (-this.getTimezoneOffset() < 0 ? '-' : '+') + (Math.abs(this.getTimezoneOffset() / 60) < 10 ? '0' : '') + (Math.abs(this.getTimezoneOffset() / 60)) + ':00';
        }, // Fixed now
        T: function() {
            return this.toTimeString().replace(/^.+ \(?([^\)]+)\)?$/, '$1');
        },
        Z: function() {
            return -this.getTimezoneOffset() * 60;
        },
        // Full Date/Time
        c: function() {
            return this.format("Y-m-d\\TH:i:sP");
        }, // Fixed now
        r: function() {
            return this.toString();
        },
        U: function() {
            return this.getTime() / 1000;
        }
    };

    // Simulates PHP's date function
    Date.prototype.format = function(format) {
        var date = this;
        return format.replace(/(\\?)(.)/g, function(_, esc, chr) {
            return (esc === '' && replaceChars[chr]) ? replaceChars[chr].call(date) : chr;
        });
    };

}).call(this);
                                    

#10 JavaScript::Eval (size: 31727, repeated: 1) - SHA256: 0989ae049c610288fb09d0ad28e4e84b86a5cc5b8e7e8a806d914544c1581373

                                        /*! PhotoSwipe - v4.1.1 - 2015-12-24
 * http://photoswipe.com
 * Copyright (c) 2015 Dmitry Semenov; */
! function(a, b) {
    "function" == typeof define && define.amd ? define(b) : "object" == typeof exports ? module.exports = b() : a.PhotoSwipe = b()
}(this, function() {
    "use strict";
    var a = function(a, b, c, d) {
        var e = {
            features: null,
            bind: function(a, b, c, d) {
                var e = (d ? "remove" : "add") + "EventListener";
                b = b.split(" ");
                for (var f = 0; f < b.length; f++) b[f] && a[e](b[f], c, !1)
            },
            isArray: function(a) {
                return a instanceof Array
            },
            createEl: function(a, b) {
                var c = document.createElement(b || "div");
                return a && (c.className = a), c
            },
            getScrollY: function() {
                var a = window.pageYOffset;
                return void 0 !== a ? a : document.documentElement.scrollTop
            },
            unbind: function(a, b, c) {
                e.bind(a, b, c, !0)
            },
            removeClass: function(a, b) {
                var c = new RegExp("(\\s|^)" + b + "(\\s|$)");
                a.className = a.className.replace(c, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "")
            },
            addClass: function(a, b) {
                e.hasClass(a, b) || (a.className += (a.className ? " " : "") + b)
            },
            hasClass: function(a, b) {
                return a.className && new RegExp("(^|\\s)" + b + "(\\s|$)").test(a.className)
            },
            getChildByClass: function(a, b) {
                for (var c = a.firstChild; c;) {
                    if (e.hasClass(c, b)) return c;
                    c = c.nextSibling
                }
            },
            arraySearch: function(a, b, c) {
                for (var d = a.length; d--;)
                    if (a[d][c] === b) return d;
                return -1
            },
            extend: function(a, b, c) {
                for (var d in b)
                    if (b.hasOwnProperty(d)) {
                        if (c && a.hasOwnProperty(d)) continue;
                        a[d] = b[d]
                    }
            },
            easing: {
                sine: {
                    out: function(a) {
                        return Math.sin(a * (Math.PI / 2))
                    },
                    inOut: function(a) {
                        return -(Math.cos(Math.PI * a) - 1) / 2
                    }
                },
                cubic: {
                    out: function(a) {
                        return --a * a * a + 1
                    }
                }
            },
            detectFeatures: function() {
                if (e.features) return e.features;
                var a = e.createEl(),
                    b = a.style,
                    c = "",
                    d = {};
                if (d.oldIE = document.all && !document.addEventListener, d.touch = "ontouchstart" in window, window.requestAnimationFrame && (d.raf = window.requestAnimationFrame, d.caf = window.cancelAnimationFrame), d.pointerEvent = navigator.pointerEnabled || navigator.msPointerEnabled, !d.pointerEvent) {
                    var f = navigator.userAgent;
                    if (/iP(hone|od)/.test(navigator.platform)) {
                        var g = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
                        g && g.length > 0 && (g = parseInt(g[1], 10), g >= 1 && 8 > g && (d.isOldIOSPhone = !0))
                    }
                    var h = f.match(/Android\s([0-9\.]*)/),
                        i = h ? h[1] : 0;
                    i = parseFloat(i), i >= 1 && (4.4 > i && (d.isOldAndroid = !0), d.androidVersion = i), d.isMobileOpera = /opera mini|opera mobi/i.test(f)
                }
                for (var j, k, l = ["transform", "perspective", "animationName"], m = ["", "webkit", "Moz", "ms", "O"], n = 0; 4 > n; n++) {
                    c = m[n];
                    for (var o = 0; 3 > o; o++) j = l[o], k = c + (c ? j.charAt(0).toUpperCase() + j.slice(1) : j), !d[j] && k in b && (d[j] = k);
                    c && !d.raf && (c = c.toLowerCase(), d.raf = window[c + "RequestAnimationFrame"], d.raf && (d.caf = window[c + "CancelAnimationFrame"] || window[c + "CancelRequestAnimationFrame"]))
                }
                if (!d.raf) {
                    var p = 0;
                    d.raf = function(a) {
                        var b = (new Date).getTime(),
                            c = Math.max(0, 16 - (b - p)),
                            d = window.setTimeout(function() {
                                a(b + c)
                            }, c);
                        return p = b + c, d
                    }, d.caf = function(a) {
                        clearTimeout(a)
                    }
                }
                return d.svg = !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect, e.features = d, d
            }
        };
        e.detectFeatures(), e.features.oldIE && (e.bind = function(a, b, c, d) {
            b = b.split(" ");
            for (var e, f = (d ? "detach" : "attach") + "Event", g = function() {
                    c.handleEvent.call(c)
                }, h = 0; h < b.length; h++)
                if (e = b[h])
                    if ("object" == typeof c && c.handleEvent) {
                        if (d) {
                            if (!c["oldIE" + e]) return !1
                        } else c["oldIE" + e] = g;
                        a[f]("on" + e, c["oldIE" + e])
                    } else a[f]("on" + e, c)
        });
        var f = this,
            g = 25,
            h = 3,
            i = {
                allowPanToNext: !0,
                spacing: .12,
                bgOpacity: 1,
                mouseUsed: !1,
                loop: !0,
                pinchToClose: !0,
                closeOnScroll: !0,
                closeOnVerticalDrag: !0,
                verticalDragRange: .75,
                hideAnimationDuration: 333,
                showAnimationDuration: 333,
                showHideOpacity: !1,
                focus: !0,
                escKey: !0,
                arrowKeys: !0,
                mainScrollEndFriction: .35,
                panEndFriction: .35,
                isClickableElement: function(a) {
                    return "A" === a.tagName
                },
                getDoubleTapZoom: function(a, b) {
                    return a ? 1 : b.initialZoomLevel < .7 ? 1 : 1.33
                },
                maxSpreadZoom: 1.33,
                modal: !0,
                scaleMode: "fit"
            };
        e.extend(i, d);
        var j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, _, aa, ba, ca, da, ea, fa, ga, ha, ia, ja, ka, la = function() {
                return {
                    x: 0,
                    y: 0
                }
            },
            ma = la(),
            na = la(),
            oa = la(),
            pa = {},
            qa = 0,
            ra = {},
            sa = la(),
            ta = 0,
            ua = !0,
            va = [],
            wa = {},
            xa = !1,
            ya = function(a, b) {
                e.extend(f, b.publicMethods), va.push(a)
            },
            za = function(a) {
                var b = _b();
                return a > b - 1 ? a - b : 0 > a ? b + a : a
            },
            Aa = {},
            Ba = function(a, b) {
                return Aa[a] || (Aa[a] = []), Aa[a].push(b)
            },
            Ca = function(a) {
                var b = Aa[a];
                if (b) {
                    var c = Array.prototype.slice.call(arguments);
                    c.shift();
                    for (var d = 0; d < b.length; d++) b[d].apply(f, c)
                }
            },
            Da = function() {
                return (new Date).getTime()
            },
            Ea = function(a) {
                ia = a, f.bg.style.opacity = a * i.bgOpacity
            },
            Fa = function(a, b, c, d, e) {
                (!xa || e && e !== f.currItem) && (d /= e ? e.fitRatio : f.currItem.fitRatio), a[E] = u + b + "px, " + c + "px" + v + " scale(" + d + ")"
            },
            Ga = function(a) {
                da && (a && (s > f.currItem.fitRatio ? xa || (lc(f.currItem, !1, !0), xa = !0) : xa && (lc(f.currItem), xa = !1)), Fa(da, oa.x, oa.y, s))
            },
            Ha = function(a) {
                a.container && Fa(a.container.style, a.initialPosition.x, a.initialPosition.y, a.initialZoomLevel, a)
            },
            Ia = function(a, b) {
                b[E] = u + a + "px, 0px" + v
            },
            Ja = function(a, b) {
                if (!i.loop && b) {
                    var c = m + (sa.x * qa - a) / sa.x,
                        d = Math.round(a - sb.x);
                    (0 > c && d > 0 || c >= _b() - 1 && 0 > d) && (a = sb.x + d * i.mainScrollEndFriction)
                }
                sb.x = a, Ia(a, n)
            },
            Ka = function(a, b) {
                var c = tb[a] - ra[a];
                return na[a] + ma[a] + c - c * (b / t)
            },
            La = function(a, b) {
                a.x = b.x, a.y = b.y, b.id && (a.id = b.id)
            },
            Ma = function(a) {
                a.x = Math.round(a.x), a.y = Math.round(a.y)
            },
            Na = null,
            Oa = function() {
                Na && (e.unbind(document, "mousemove", Oa), e.addClass(a, "pswp--has_mouse"), i.mouseUsed = !0, Ca("mouseUsed")), Na = setTimeout(function() {
                    Na = null
                }, 100)
            },
            Pa = function() {
                e.bind(document, "keydown", f), N.transform && e.bind(f.scrollWrap, "click", f), i.mouseUsed || e.bind(document, "mousemove", Oa), e.bind(window, "resize scroll", f), Ca("bindEvents")
            },
            Qa = function() {
                e.unbind(window, "resize", f), e.unbind(window, "scroll", r.scroll), e.unbind(document, "keydown", f), e.unbind(document, "mousemove", Oa), N.transform && e.unbind(f.scrollWrap, "click", f), U && e.unbind(window, p, f), Ca("unbindEvents")
            },
            Ra = function(a, b) {
                var c = hc(f.currItem, pa, a);
                return b && (ca = c), c
            },
            Sa = function(a) {
                return a || (a = f.currItem), a.initialZoomLevel
            },
            Ta = function(a) {
                return a || (a = f.currItem), a.w > 0 ? i.maxSpreadZoom : 1
            },
            Ua = function(a, b, c, d) {
                return d === f.currItem.initialZoomLevel ? (c[a] = f.currItem.initialPosition[a], !0) : (c[a] = Ka(a, d), c[a] > b.min[a] ? (c[a] = b.min[a], !0) : c[a] < b.max[a] ? (c[a] = b.max[a], !0) : !1)
            },
            Va = function() {
                if (E) {
                    var b = N.perspective && !G;
                    return u = "translate" + (b ? "3d(" : "("), void(v = N.perspective ? ", 0px)" : ")")
                }
                E = "left", e.addClass(a, "pswp--ie"), Ia = function(a, b) {
                    b.left = a + "px"
                }, Ha = function(a) {
                    var b = a.fitRatio > 1 ? 1 : a.fitRatio,
                        c = a.container.style,
                        d = b * a.w,
                        e = b * a.h;
                    c.width = d + "px", c.height = e + "px", c.left = a.initialPosition.x + "px", c.top = a.initialPosition.y + "px"
                }, Ga = function() {
                    if (da) {
                        var a = da,
                            b = f.currItem,
                            c = b.fitRatio > 1 ? 1 : b.fitRatio,
                            d = c * b.w,
                            e = c * b.h;
                        a.width = d + "px", a.height = e + "px", a.left = oa.x + "px", a.top = oa.y + "px"
                    }
                }
            },
            Wa = function(a) {
                var b = "";
                i.escKey && 27 === a.keyCode ? b = "close" : i.arrowKeys && (37 === a.keyCode ? b = "prev" : 39 === a.keyCode && (b = "next")), b && (a.ctrlKey || a.altKey || a.shiftKey || a.metaKey || (a.preventDefault ? a.preventDefault() : a.returnValue = !1, f[b]()))
            },
            Xa = function(a) {
                a && (X || W || ea || S) && (a.preventDefault(), a.stopPropagation())
            },
            Ya = function() {
                f.setScrollOffset(0, e.getScrollY())
            },
            Za = {},
            $a = 0,
            _a = function(a) {
                Za[a] && (Za[a].raf && I(Za[a].raf), $a--, delete Za[a])
            },
            ab = function(a) {
                Za[a] && _a(a), Za[a] || ($a++, Za[a] = {})
            },
            bb = function() {
                for (var a in Za) Za.hasOwnProperty(a) && _a(a)
            },
            cb = function(a, b, c, d, e, f, g) {
                var h, i = Da();
                ab(a);
                var j = function() {
                    if (Za[a]) {
                        if (h = Da() - i, h >= d) return _a(a), f(c), void(g && g());
                        f((c - b) * e(h / d) + b), Za[a].raf = H(j)
                    }
                };
                j()
            },
            db = {
                shout: Ca,
                listen: Ba,
                viewportSize: pa,
                options: i,
                isMainScrollAnimating: function() {
                    return ea
                },
                getZoomLevel: function() {
                    return s
                },
                getCurrentIndex: function() {
                    return m
                },
                isDragging: function() {
                    return U
                },
                isZooming: function() {
                    return _
                },
                setScrollOffset: function(a, b) {
                    ra.x = a, M = ra.y = b, Ca("updateScrollOffset", ra)
                },
                applyZoomPan: function(a, b, c, d) {
                    oa.x = b, oa.y = c, s = a, Ga(d)
                },
                init: function() {
                    if (!j && !k) {
                        var c;
                        f.framework = e, f.template = a, f.bg = e.getChildByClass(a, "pswp__bg"), J = a.className, j = !0, N = e.detectFeatures(), H = N.raf, I = N.caf, E = N.transform, L = N.oldIE, f.scrollWrap = e.getChildByClass(a, "pswp__scroll-wrap"), f.container = e.getChildByClass(f.scrollWrap, "pswp__container"), n = f.container.style, f.itemHolders = y = [{
                            el: f.container.children[0],
                            wrap: 0,
                            index: -1
                        }, {
                            el: f.container.children[1],
                            wrap: 0,
                            index: -1
                        }, {
                            el: f.container.children[2],
                            wrap: 0,
                            index: -1
                        }], y[0].el.style.display = y[2].el.style.display = "none", Va(), r = {
                            resize: f.updateSize,
                            scroll: Ya,
                            keydown: Wa,
                            click: Xa
                        };
                        var d = N.isOldIOSPhone || N.isOldAndroid || N.isMobileOpera;
                        for (N.animationName && N.transform && !d || (i.showAnimationDuration = i.hideAnimationDuration = 0), c = 0; c < va.length; c++) f["init" + va[c]]();
                        if (b) {
                            var g = f.ui = new b(f, e);
                            g.init()
                        }
                        Ca("firstUpdate"), m = m || i.index || 0, (isNaN(m) || 0 > m || m >= _b()) && (m = 0), f.currItem = $b(m), (N.isOldIOSPhone || N.isOldAndroid) && (ua = !1), a.setAttribute("aria-hidden", "false"), i.modal && (ua ? a.style.position = "fixed" : (a.style.position = "absolute", a.style.top = e.getScrollY() + "px")), void 0 === M && (Ca("initialLayout"), M = K = e.getScrollY());
                        var l = "pswp--open ";
                        for (i.mainClass && (l += i.mainClass + " "), i.showHideOpacity && (l += "pswp--animate_opacity "), l += G ? "pswp--touch" : "pswp--notouch", l += N.animationName ? " pswp--css_animation" : "", l += N.svg ? " pswp--svg" : "", e.addClass(a, l), f.updateSize(), o = -1, ta = null, c = 0; h > c; c++) Ia((c + o) * sa.x, y[c].el.style);
                        L || e.bind(f.scrollWrap, q, f), Ba("initialZoomInEnd", function() {
                            f.setContent(y[0], m - 1), f.setContent(y[2], m + 1), y[0].el.style.display = y[2].el.style.display = "block", i.focus && a.focus(), Pa()
                        }), f.setContent(y[1], m), f.updateCurrItem(), Ca("afterInit"), ua || (w = setInterval(function() {
                            $a || U || _ || s !== f.currItem.initialZoomLevel || f.updateSize()
                        }, 1e3)), e.addClass(a, "pswp--visible")
                    }
                },
                close: function() {
                    j && (j = !1, k = !0, Ca("close"), Qa(), bc(f.currItem, null, !0, f.destroy))
                },
                destroy: function() {
                    Ca("destroy"), Wb && clearTimeout(Wb), a.setAttribute("aria-hidden", "true"), a.className = J, w && clearInterval(w), e.unbind(f.scrollWrap, q, f), e.unbind(window, "scroll", f), yb(), bb(), Aa = null
                },
                panTo: function(a, b, c) {
                    c || (a > ca.min.x ? a = ca.min.x : a < ca.max.x && (a = ca.max.x), b > ca.min.y ? b = ca.min.y : b < ca.max.y && (b = ca.max.y)), oa.x = a, oa.y = b, Ga()
                },
                handleEvent: function(a) {
                    a = a || window.event, r[a.type] && r[a.type](a)
                },
                goTo: function(a) {
                    a = za(a);
                    var b = a - m;
                    ta = b, m = a, f.currItem = $b(m), qa -= b, Ja(sa.x * qa), bb(), ea = !1, f.updateCurrItem()
                },
                next: function() {
                    f.goTo(m + 1)
                },
                prev: function() {
                    f.goTo(m - 1)
                },
                updateCurrZoomItem: function(a) {
                    if (a && Ca("beforeChange", 0), y[1].el.children.length) {
                        var b = y[1].el.children[0];
                        da = e.hasClass(b, "pswp__zoom-wrap") ? b.style : null
                    } else da = null;
                    ca = f.currItem.bounds, t = s = f.currItem.initialZoomLevel, oa.x = ca.center.x, oa.y = ca.center.y, a && Ca("afterChange")
                },
                invalidateCurrItems: function() {
                    x = !0;
                    for (var a = 0; h > a; a++) y[a].item && (y[a].item.needsUpdate = !0)
                },
                updateCurrItem: function(a) {
                    if (0 !== ta) {
                        var b, c = Math.abs(ta);
                        if (!(a && 2 > c)) {
                            f.currItem = $b(m), xa = !1, Ca("beforeChange", ta), c >= h && (o += ta + (ta > 0 ? -h : h), c = h);
                            for (var d = 0; c > d; d++) ta > 0 ? (b = y.shift(), y[h - 1] = b, o++, Ia((o + 2) * sa.x, b.el.style), f.setContent(b, m - c + d + 1 + 1)) : (b = y.pop(), y.unshift(b), o--, Ia(o * sa.x, b.el.style), f.setContent(b, m + c - d - 1 - 1));
                            if (da && 1 === Math.abs(ta)) {
                                var e = $b(z);
                                e.initialZoomLevel !== s && (hc(e, pa), lc(e), Ha(e))
                            }
                            ta = 0, f.updateCurrZoomItem(), z = m, Ca("afterChange")
                        }
                    }
                },
                updateSize: function(b) {
                    if (!ua && i.modal) {
                        var c = e.getScrollY();
                        if (M !== c && (a.style.top = c + "px", M = c), !b && wa.x === window.innerWidth && wa.y === window.innerHeight) return;
                        wa.x = window.innerWidth, wa.y = window.innerHeight, a.style.height = wa.y + "px"
                    }
                    if (pa.x = f.scrollWrap.clientWidth, pa.y = f.scrollWrap.clientHeight, Ya(), sa.x = pa.x + Math.round(pa.x * i.spacing), sa.y = pa.y, Ja(sa.x * qa), Ca("beforeResize"), void 0 !== o) {
                        for (var d, g, j, k = 0; h > k; k++) d = y[k], Ia((k + o) * sa.x, d.el.style), j = m + k - 1, i.loop && _b() > 2 && (j = za(j)), g = $b(j), g && (x || g.needsUpdate || !g.bounds) ? (f.cleanSlide(g), f.setContent(d, j), 1 === k && (f.currItem = g, f.updateCurrZoomItem(!0)), g.needsUpdate = !1) : -1 === d.index && j >= 0 && f.setContent(d, j), g && g.container && (hc(g, pa), lc(g), Ha(g));
                        x = !1
                    }
                    t = s = f.currItem.initialZoomLevel, ca = f.currItem.bounds, ca && (oa.x = ca.center.x, oa.y = ca.center.y, Ga(!0)), Ca("resize")
                },
                zoomTo: function(a, b, c, d, f) {
                    b && (t = s, tb.x = Math.abs(b.x) - oa.x, tb.y = Math.abs(b.y) - oa.y, La(na, oa));
                    var g = Ra(a, !1),
                        h = {};
                    Ua("x", g, h, a), Ua("y", g, h, a);
                    var i = s,
                        j = {
                            x: oa.x,
                            y: oa.y
                        };
                    Ma(h);
                    var k = function(b) {
                        1 === b ? (s = a, oa.x = h.x, oa.y = h.y) : (s = (a - i) * b + i, oa.x = (h.x - j.x) * b + j.x, oa.y = (h.y - j.y) * b + j.y), f && f(b), Ga(1 === b)
                    };
                    c ? cb("customZoomTo", 0, 1, c, d || e.easing.sine.inOut, k) : k(1)
                }
            },
            eb = 30,
            fb = 10,
            gb = {},
            hb = {},
            ib = {},
            jb = {},
            kb = {},
            lb = [],
            mb = {},
            nb = [],
            ob = {},
            pb = 0,
            qb = la(),
            rb = 0,
            sb = la(),
            tb = la(),
            ub = la(),
            vb = function(a, b) {
                return a.x === b.x && a.y === b.y
            },
            wb = function(a, b) {
                return Math.abs(a.x - b.x) < g && Math.abs(a.y - b.y) < g
            },
            xb = function(a, b) {
                return ob.x = Math.abs(a.x - b.x), ob.y = Math.abs(a.y - b.y), Math.sqrt(ob.x * ob.x + ob.y * ob.y)
            },
            yb = function() {
                Y && (I(Y), Y = null)
            },
            zb = function() {
                U && (Y = H(zb), Pb())
            },
            Ab = function() {
                return !("fit" === i.scaleMode && s === f.currItem.initialZoomLevel)
            },
            Bb = function(a, b) {
                return a && a !== document ? a.getAttribute("class") && a.getAttribute("class").indexOf("pswp__scroll-wrap") > -1 ? !1 : b(a) ? a : Bb(a.parentNode, b) : !1
            },
            Cb = {},
            Db = function(a, b) {
                return Cb.prevent = !Bb(a.target, i.isClickableElement), Ca("preventDragEvent", a, b, Cb), Cb.prevent
            },
            Eb = function(a, b) {
                return b.x = a.pageX, b.y = a.pageY, b.id = a.identifier, b
            },
            Fb = function(a, b, c) {
                c.x = .5 * (a.x + b.x), c.y = .5 * (a.y + b.y)
            },
            Gb = function(a, b, c) {
                if (a - P > 50) {
                    var d = nb.length > 2 ? nb.shift() : {};
                    d.x = b, d.y = c, nb.push(d), P = a
                }
            },
            Hb = function() {
                var a = oa.y - f.currItem.initialPosition.y;
                return 1 - Math.abs(a / (pa.y / 2))
            },
            Ib = {},
            Jb = {},
            Kb = [],
            Lb = function(a) {
                for (; Kb.length > 0;) Kb.pop();
                return F ? (ka = 0, lb.forEach(function(a) {
                    0 === ka ? Kb[0] = a : 1 === ka && (Kb[1] = a), ka++
                })) : a.type.indexOf("touch") > -1 ? a.touches && a.touches.length > 0 && (Kb[0] = Eb(a.touches[0], Ib), a.touches.length > 1 && (Kb[1] = Eb(a.touches[1], Jb))) : (Ib.x = a.pageX, Ib.y = a.pageY, Ib.id = "", Kb[0] = Ib), Kb
            },
            Mb = function(a, b) {
                var c, d, e, g, h = 0,
                    j = oa[a] + b[a],
                    k = b[a] > 0,
                    l = sb.x + b.x,
                    m = sb.x - mb.x;
                return c = j > ca.min[a] || j < ca.max[a] ? i.panEndFriction : 1, j = oa[a] + b[a] * c, !i.allowPanToNext && s !== f.currItem.initialZoomLevel || (da ? "h" !== fa || "x" !== a || W || (k ? (j > ca.min[a] && (c = i.panEndFriction, h = ca.min[a] - j, d = ca.min[a] - na[a]), (0 >= d || 0 > m) && _b() > 1 ? (g = l, 0 > m && l > mb.x && (g = mb.x)) : ca.min.x !== ca.max.x && (e = j)) : (j < ca.max[a] && (c = i.panEndFriction, h = j - ca.max[a], d = na[a] - ca.max[a]), (0 >= d || m > 0) && _b() > 1 ? (g = l, m > 0 && l < mb.x && (g = mb.x)) : ca.min.x !== ca.max.x && (e = j))) : g = l, "x" !== a) ? void(ea || Z || s > f.currItem.fitRatio && (oa[a] += b[a] * c)) : (void 0 !== g && (Ja(g, !0), Z = g === mb.x ? !1 : !0), ca.min.x !== ca.max.x && (void 0 !== e ? oa.x = e : Z || (oa.x += b.x * c)), void 0 !== g)
            },
            Nb = function(a) {
                if (!("mousedown" === a.type && a.button > 0)) {
                    if (Zb) return void a.preventDefault();
                    if (!T || "mousedown" !== a.type) {
                        if (Db(a, !0) && a.preventDefault(), Ca("pointerDown"), F) {
                            var b = e.arraySearch(lb, a.pointerId, "id");
                            0 > b && (b = lb.length), lb[b] = {
                                x: a.pageX,
                                y: a.pageY,
                                id: a.pointerId
                            }
                        }
                        var c = Lb(a),
                            d = c.length;
                        $ = null, bb(), U && 1 !== d || (U = ga = !0, e.bind(window, p, f), R = ja = ha = S = Z = X = V = W = !1, fa = null, Ca("firstTouchStart", c), La(na, oa), ma.x = ma.y = 0, La(jb, c[0]), La(kb, jb), mb.x = sa.x * qa, nb = [{
                            x: jb.x,
                            y: jb.y
                        }], P = O = Da(), Ra(s, !0), yb(), zb()), !_ && d > 1 && !ea && !Z && (t = s, W = !1, _ = V = !0, ma.y = ma.x = 0, La(na, oa), La(gb, c[0]), La(hb, c[1]), Fb(gb, hb, ub), tb.x = Math.abs(ub.x) - oa.x, tb.y = Math.abs(ub.y) - oa.y, aa = ba = xb(gb, hb))
                    }
                }
            },
            Ob = function(a) {
                if (a.preventDefault(), F) {
                    var b = e.arraySearch(lb, a.pointerId, "id");
                    if (b > -1) {
                        var c = lb[b];
                        c.x = a.pageX, c.y = a.pageY
                    }
                }
                if (U) {
                    var d = Lb(a);
                    if (fa || X || _) $ = d;
                    else if (sb.x !== sa.x * qa) fa = "h";
                    else {
                        var f = Math.abs(d[0].x - jb.x) - Math.abs(d[0].y - jb.y);
                        Math.abs(f) >= fb && (fa = f > 0 ? "h" : "v", $ = d)
                    }
                }
            },
            Pb = function() {
                if ($) {
                    var a = $.length;
                    if (0 !== a)
                        if (La(gb, $[0]), ib.x = gb.x - jb.x, ib.y = gb.y - jb.y, _ && a > 1) {
                            if (jb.x = gb.x, jb.y = gb.y, !ib.x && !ib.y && vb($[1], hb)) return;
                            La(hb, $[1]), W || (W = !0, Ca("zoomGestureStarted"));
                            var b = xb(gb, hb),
                                c = Ub(b);
                            c > f.currItem.initialZoomLevel + f.currItem.initialZoomLevel / 15 && (ja = !0);
                            var d = 1,
                                e = Sa(),
                                g = Ta();
                            if (e > c)
                                if (i.pinchToClose && !ja && t <= f.currItem.initialZoomLevel) {
                                    var h = e - c,
                                        j = 1 - h / (e / 1.2);
                                    Ea(j), Ca("onPinchClose", j), ha = !0
                                } else d = (e - c) / e, d > 1 && (d = 1), c = e - d * (e / 3);
                            else c > g && (d = (c - g) / (6 * e), d > 1 && (d = 1), c = g + d * e);
                            0 > d && (d = 0), aa = b, Fb(gb, hb, qb), ma.x += qb.x - ub.x, ma.y += qb.y - ub.y, La(ub, qb), oa.x = Ka("x", c), oa.y = Ka("y", c), R = c > s, s = c, Ga()
                        } else {
                            if (!fa) return;
                            if (ga && (ga = !1, Math.abs(ib.x) >= fb && (ib.x -= $[0].x - kb.x), Math.abs(ib.y) >= fb && (ib.y -= $[0].y - kb.y)), jb.x = gb.x, jb.y = gb.y, 0 === ib.x && 0 === ib.y) return;
                            if ("v" === fa && i.closeOnVerticalDrag && !Ab()) {
                                ma.y += ib.y, oa.y += ib.y;
                                var k = Hb();
                                return S = !0, Ca("onVerticalDrag", k), Ea(k), void Ga()
                            }
                            Gb(Da(), gb.x, gb.y), X = !0, ca = f.currItem.bounds;
                            var l = Mb("x", ib);
                            l || (Mb("y", ib), Ma(oa), Ga())
                        }
                }
            },
            Qb = function(a) {
                if (N.isOldAndroid) {
                    if (T && "mouseup" === a.type) return;
                    a.type.indexOf("touch") > -1 && (clearTimeout(T), T = setTimeout(function() {
                        T = 0
                    }, 600))
                }
                Ca("pointerUp"), Db(a, !1) && a.preventDefault();
                var b;
                if (F) {
                    var c = e.arraySearch(lb, a.pointerId, "id");
                    if (c > -1)
                        if (b = lb.splice(c, 1)[0], navigator.pointerEnabled) b.type = a.pointerType || "mouse";
                        else {
                            var d = {
                                4: "mouse",
                                2: "touch",
                                3: "pen"
                            };
                            b.type = d[a.pointerType], b.type || (b.type = a.pointerType || "mouse")
                        }
                }
                var g, h = Lb(a),
                    j = h.length;
                if ("mouseup" === a.type && (j = 0), 2 === j) return $ = null, !0;
                1 === j && La(kb, h[0]), 0 !== j || fa || ea || (b || ("mouseup" === a.type ? b = {
                    x: a.pageX,
                    y: a.pageY,
                    type: "mouse"
                } : a.changedTouches && a.changedTouches[0] && (b = {
                    x: a.changedTouches[0].pageX,
                    y: a.changedTouches[0].pageY,
                    type: "touch"
                })), Ca("touchRelease", a, b));
                var k = -1;
                if (0 === j && (U = !1, e.unbind(window, p, f), yb(), _ ? k = 0 : -1 !== rb && (k = Da() - rb)), rb = 1 === j ? Da() : -1, g = -1 !== k && 150 > k ? "zoom" : "swipe", _ && 2 > j && (_ = !1, 1 === j && (g = "zoomPointerUp"), Ca("zoomGestureEnded")), $ = null, X || W || ea || S)
                    if (bb(), Q || (Q = Rb()), Q.calculateSwipeSpeed("x"), S) {
                        var l = Hb();
                        if (l < i.verticalDragRange) f.close();
                        else {
                            var m = oa.y,
                                n = ia;
                            cb("verticalDrag", 0, 1, 300, e.easing.cubic.out, function(a) {
                                oa.y = (f.currItem.initialPosition.y - m) * a + m, Ea((1 - n) * a + n), Ga()
                            }), Ca("onVerticalDrag", 1)
                        }
                    } else {
                        if ((Z || ea) && 0 === j) {
                            var o = Tb(g, Q);
                            if (o) return;
                            g = "zoomPointerUp"
                        }
                        if (!ea) return "swipe" !== g ? void Vb() : void(!Z && s > f.currItem.fitRatio && Sb(Q))
                    }
            },
            Rb = function() {
                var a, b, c = {
                    lastFlickOffset: {},
                    lastFlickDist: {},
                    lastFlickSpeed: {},
                    slowDownRatio: {},
                    slowDownRatioReverse: {},
                    speedDecelerationRatio: {},
                    speedDecelerationRatioAbs: {},
                    distanceOffset: {},
                    backAnimDestination: {},
                    backAnimStarted: {},
                    calculateSwipeSpeed: function(d) {
                        nb.length > 1 ? (a = Da() - P + 50, b = nb[nb.length - 2][d]) : (a = Da() - O, b = kb[d]), c.lastFlickOffset[d] = jb[d] - b, c.lastFlickDist[d] = Math.abs(c.lastFlickOffset[d]), c.lastFlickDist[d] > 20 ? c.lastFlickSpeed[d] = c.lastFlickOffset[d] / a : c.lastFlickSpeed[d] = 0, Math.abs(c.lastFlickSpeed[d]) < .1 && (c.lastFlickSpeed[d] = 0), c.slowDownRatio[d] = .95, c.slowDownRatioReverse[d] = 1 - c.slowDownRatio[d], c.speedDecelerationRatio[d] = 1
                    },
                    calculateOverBoundsAnimOffset: function(a, b) {
                        c.backAnimStarted[a] || (oa[a] > ca.min[a] ? c.backAnimDestination[a] = ca.min[a] : oa[a] < ca.max[a] && (c.backAnimDestination[a] = ca.max[a]), void 0 !== c.backAnimDestination[a] && (c.slowDownRatio[a] = .7, c.slowDownRatioReverse[a] = 1 - c.slowDownRatio[a], c.speedDecelerationRatioAbs[a] < .05 && (c.lastFlickSpeed[a] = 0, c.backAnimStarted[a] = !0, cb("bounceZoomPan" + a, oa[a], c.backAnimDestination[a], b || 300, e.easing.sine.out, function(b) {
                            oa[a] = b, Ga()
                        }))))
                    },
                    calculateAnimOffset: function(a) {
                        c.backAnimStarted[a] || (c.speedDecelerationRatio[a] = c.speedDecelerationRatio[a] * (c.slowDownRatio[a] + c.slowDownRatioReverse[a] - c.slowDownRatioReverse[a] * c.timeDiff / 10), c.speedDecelerationRatioAbs[a] = Math.abs(c.lastFlickSpeed[a] * c.speedDecelerationRatio[a]), c.distanceOffset[a] = c.lastFlickSpeed[a] * c.speedDecelerationRatio[a] * c.timeDiff, oa[a] += c.distanceOffset[a])
                    },
                    panAnimLoop: function() {
                        return Za.zoomPan && (Za.zoomPan.raf = H(c.panAnimLoop), c.now = Da(), c.timeDiff = c.now - c.lastNow, c.lastNow = c.now, c.calculateAnimOffset("x"), c.calculateAnimOffset("y"), Ga(), c.calculateOverBoundsAnimOffset("x"), c.calculateOverBoundsAnimOffset("y"), c.speedDecelerationRatioAbs.x < .05 && c.speedDecelerationRatioAbs.y < .05) ? (oa.x = Math.round(oa.x), oa.y = Math.round(oa.y), Ga(), void _a("zoomPan")) : void 0
                    }
                };
                return c
            },
            Sb = function(a) {
                return a.calculateSwipeSpeed("y"), ca = f.currItem.bounds, a.backAnimDestination = {}, a.backAnimStarted = {}, Math.abs(a.lastFlickSpeed.x) <= .05 && Math.abs(a.lastFlickSpeed.y) <= .05 ? (a.speedDecelerationRatioAbs.x = a.speedDecelerationRatioAbs.y = 0, a.calculateOverBoundsAnimOffset("x"), a.calculateOverBoundsAnimOffset("y"), !0) : (ab("zoomPan"), a.lastNow = Da(), void a.panAnimLoop())
            },
            Tb = function(a, b) {
                var c;
                ea || (pb = m);
                var d;
                if ("swipe" === a) {
                    var g = jb.x - kb.x,
                        h = b.lastFlickDist.x < 10;
                    g > eb && (h || b.lastFlickOffset.x > 20) ? d = -1 : -eb > g && (h || b.lastFlickOffset.x < -20) && (d = 1)
                }
                var j;
                d && (m += d, 0 > m ? (m = i.loop ? _b() - 1 : 0, j = !0) : m >= _b() && (m = i.loop ? 0 : _b() - 1, j = !0), (!j || i.loop) && (ta += d, qa -= d, c = !0));
                var k, l = sa.x * qa,
                    n = Math.abs(l - sb.x);
                return c || l > sb.x == b.lastFlickSpeed.x > 0 ? (k = Math.abs(b.lastFlickSpeed.x) > 0 ? n / Math.abs(b.lastFlickSpeed.x) : 333, k = Math.min(k, 400), k = Math.max(k, 250)) : k = 333, pb === m && (c = !1), ea = !0, Ca("mainScrollAnimStart"), cb("mainScroll", sb.x, l, k, e.easing.cubic.out, Ja, function() {
                    bb(), ea = !1, pb = -1, (c || pb !== m) && f.updateCurrItem(), Ca("mainScrollAnimComplete")
                }), c && f.updateCurrItem(!0), c
            },
            Ub = function(a) {
                return 1 / ba * a * t
            },
            Vb = function() {
                var a = s,
                    b = Sa(),
                    c = Ta();
                b > s ? a = b : s > c && (a = c);
                var d, g = 1,
                    h = ia;
                return ha && !R && !ja && b > s ? (f.close(), !0) : (ha && (d = function(a) {
                    Ea((g - h) * a + h)
                }), f.zoomTo(a, 0, 200, e.easing.cubic.out, d), !0)
            };
        ya("Gestures", {
            publicMethods: {
                initGestures: function() {
                    var a = function(a, b, c, d, e) {
                        A = a + b, B = a + c, C = a + d, D = e ? a + e : ""
                    };
                    F = N.pointerEvent, F && N.touch && (N.touch = !1), F ? navigator.pointerEnabled ? a("pointer", "down", "move", "up", "cancel") : a("MSPointer", "Down", "Move", "Up", "Cancel") : N.touch ? (a("touch", "start", "move", "end", "cancel"), G = !0) : a("mouse", "down", "move", "up"), p = B + " " + C + " " + D, q = A, F && !G && (G = navigator.maxTouchPoints > 1 || navigator.msMaxTouchPoints > 1), f.likelyTouchDevice = G, r[A] = Nb, r[B] = Ob, r[C] = Qb, D && (r[D] = r[C]), N.touch && (q += " mousedown", p += " mousemove mouseup", r.mousedown = r[A], r.mousemove = r[B], r.mouseup = r[C]), G || (i.allowPanToNext = !1)
                }
            }
        });
        var Wb, Xb, Yb, Zb, $b, _b, ac, bc = function(b, c, d, g) {
                Wb && clearTimeout(Wb), Zb = !0, Yb = !0;
                var h;
                b.initialLayout ? (h = b.initialLayout, b.initialLayout = null) : h = i.getThumbBoundsFn && i.getThumbBoundsFn(m);
                var j = d ? i.hideAnimationDuration : i.showAnimationDuration,
                    k = function() {
                        _a("initialZoom"), d ? (f.template.removeAttribute("style"), f.bg.removeAttribute("style")) : (Ea(1), c && (c.style.display = "block"), e.addClass(a, "pswp--animated-in"), Ca("initialZoom" + (d ? "OutEnd" : "InEnd"))), g && g(), Zb = !1
                    };
                if (!j || !h || void 0 === h.x) return Ca("initialZoom" + (d ? "Out" : "In")), s = b.initialZoomLevel, La(oa, b.initialPosition), Ga(), a.style.opacity = d ? 0 : 1, Ea(1), void(j ? setTimeout(function() {
                    k()
                }, j) : k());
                var n = function() {
                    var c = l,
                        g = !f.currItem.src || f.currItem.loadError || i.showHideOpacity;
                    b.miniImg && (b.miniImg.style.webkitBackfaceVisibility = "hidden"), d || (s = h.w / b.w, oa.x = h.x, oa.y = h.y - K, f[g ? "template" : "bg"].style.opacity = .001, Ga()), ab("initialZoom"), d && !c && e.removeClass(a, "pswp--animated-in"), g && (d ? e[(c ? "remove" : "add") + "Class"](a, "pswp--animate_opacity") : setTimeout(function() {
                        e.addClass(a, "pswp--animate_opacity")
                    }, 30)), Wb = setTimeout(function() {
                        if (Ca("initialZoom" + (d ? "Out" : "In")), d) {
                            var f = h.w / b.w,
                                i = {
                                    x: oa.x,
                                    y: oa.y
                                },
                                l = s,
                                m = ia,
                                n = function(b) {
                                    1 === b ? (s = f, oa.x = h.x, oa.y = h.y - M) : (s = (f - l) * b + l, oa.x = (h.x - i.x) * b + i.x, oa.y = (h.y - M - i.y) * b + i.y), Ga(), g ? a.style.opacity = 1 - b : Ea(m - b * m)
                                };
                            c ? cb("initialZoom", 0, 1, j, e.easing.cubic.out, n, k) : (n(1), Wb = setTimeout(k, j + 20))
                        } else s = b.initialZoomLevel, La(oa, b.initialPosition), Ga(), Ea(1), g ? a.style.opacity = 1 : Ea(1), Wb = setTimeout(k, j + 20)
                    }, d ? 25 : 90)
                };
                n()
            },
            cc = {},
            dc = [],
            ec = {
                index: 0,
                errorMsg: '<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',
                forceProgressiveLoading: !1,
                preload: [1, 1],
                getNumItemsFn: function() {
                    return Xb.length
                }
            },
            fc = function() {
                return {
                    center: {
                        x: 0,
                        y: 0
                    },
                    max: {
                        x: 0,
                        y: 0
                    },
                    min: {
                        x: 0,
                        y: 0
                    }
                }
            },
            gc = function(a, b, c) {
                var d = a.bounds;
                d.center.x = Math.round((cc.x - b) / 2), d.center.y = Math.round((cc.y - c) / 2) + a.vGap.top, d.max.x = b > cc.x ? Math.round(cc.x - b) : d.center.x, d.max.y = c > cc.y ? Math.round(cc.y - c) + a.vGap.top : d.center.y, d.min.x = b > cc.x ? 0 : d.center.x, d.min.y = c > cc.y ? a.vGap.top : d.center.y
            },
            hc = function(a, b, c) {
                if (a.src && !a.loadError) {
                    var d = !c;
                    if (d && (a.vGap || (a.vGap = {
                            top: 0,
                            bottom: 0
                        }), Ca("parseVerticalMargin", a)), cc.x = b.x, cc.y = b.y - a.vGap.top - a.vGap.bottom, d) {
                        var e = cc.x / a.w,
                            f = cc.y / a.h;
                        a.fitRatio = f > e ? e : f;
                        var g = i.scaleMode;
                        "orig" === g ? c = 1 : "fit" === g && (c = a.fitRatio), c > 1 && (c = 1), a.initialZoomLevel = c, a.bounds || (a.bounds = fc())
                    }
                    if (!c) return;
                    return gc(a, a.w * c, a.h * c), d && c === a.initialZoomLevel && (a.initialPosition = a.bounds.center), a.bounds
                }
                return a.w = a.h = 0, a.initialZoomLevel = a.fitRatio = 1, a.bounds = fc(), a.initialPosition = a.bounds.center, a.bounds
            },
            ic = function(a, b, c, d, e, g) {
                b.loadError || d && (b.imageAppended = !0, lc(b, d, b === f.currItem && xa), c.appendChild(d), g && setTimeout(function() {
                    b && b.loaded && b.placeholder && (b.placeholder.style.display = "none", b.placeholder = null)
                }, 500))
            },
            jc = function(a) {
                a.loading = !0, a.loaded = !1;
                var b = a.img = e.createEl("pswp__img", "img"),
                    c = function() {
                        a.loading = !1, a.loaded = !0, a.loadComplete ? a.loadComplete(a) : a.img = null, b.onload = b.onerror = null, b = null
                    };
                return b.onload = c, b.onerror = function() {
                    a.loadError = !0, c()
                }, b.src = a.src, b
            },
            kc = function(a, b) {
                return a.src && a.loadError && a.container ? (b && (a.container.innerHTML = ""), a.container.innerHTML = i.errorMsg.replace("%url%", a.src), !0) : void 0
            },
            lc = function(a, b, c) {
                if (a.src) {
                    b || (b = a.container.lastChild);
                    var d = c ? a.w : Math.round(a.w * a.fitRatio),
                        e = c ? a.h : Math.round(a.h * a.fitRatio);
                    a.placeholder && !a.loaded && (a.placeholder.style.width = d + "px", a.placeholder.style.height = e + "px"), b.style.width = d + "px", b.style.height = e + "px"
                }
            },
            mc = function() {
                if (dc.length) {
                    for (var a, b = 0; b < dc.length; b++) a = dc[b], a.holder.index === a.index && ic(a.index, a.item, a.baseDiv, a.img, !1, a.clearPlaceholder);
                    dc = []
                }
            };
        ya("Controller", {
            publicMethods: {
                lazyLoadItem: function(a) {
                    a = za(a);
                    var b = $b(a);
                    b && (!b.loaded && !b.loading || x) && (Ca("gettingData", a, b), b.src && jc(b))
                },
                initController: function() {
                    e.extend(i, ec, !0), f.items = Xb = c, $b = f.getItemAt, _b = i.getNumItemsFn, ac = i.loop, _b() < 3 && (i.loop = !1), Ba("beforeChange", function(a) {
                        var b, c = i.preload,
                            d = null === a ? !0 : a >= 0,
                            e = Math.min(c[0], _b()),
                            g = Math.min(c[1], _b());
                        for (b = 1;
                            (d ? g : e) >= b; b++) f.lazyLoadItem(m + b);
                        for (b = 1;
                            (d ? e : g) >= b; b++) f.lazyLoadItem(m - b)
                    }), Ba("initialLayout", function() {
                        f.currItem.initialLayout = i.getThumbBoundsFn && i.getThumbBoundsFn(m)
                    }), Ba("mainScrollAnimComplete", mc), Ba("initialZoomInEnd", mc), Ba("destroy", function() {
                        for (var a, b = 0; b < Xb.length; b++) a = Xb[b], a.container && (a.container = null), a.placeholder && (a.placeholder = null), a.img && (a.img = null), a.preloader && (a.preloader = null), a.loadError && (a.loaded = a.loadError = !1);
                        dc = null
                    })
                },
                getItemAt: function(a) {
                    return a >= 0 && void 0 !== Xb[a] ? Xb[a] : !1
                },
                allowProgressiveImg: function() {
                    return i.forceProgressiveLoading || !G || i.mouseUsed || screen.width > 1200
                },
                setContent: function(a, b) {
                    i.loop && (b = za(b));
                    var c = f.getItemAt(a.index);
                    c && (c.container = null);
                    var d, g = f.getItemAt(b);
                    if (!g) return void(a.el.innerHTML = "");
                    Ca("gettingData", b, g), a.index = b, a.item = g;
                    var h = g.container = e.createEl("pswp__zoom-wrap");
                    if (!g.src && g.html && (g.html.tagName ? h.appendChild(g.html) : h.innerHTML = g.html), kc(g), hc(g, pa), !g.src || g.loadError || g.loaded) g.src && !g.loadError && (d = e.createEl("pswp__img", "img"), d.style.opacity = 1, d.src = g.src, lc(g, d), ic(b, g, h, d, !0));
                    else {
                        if (g.loadComplete = function(c) {
                                if (j) {
                                    if (a && a.index === b) {
                                        if (kc(c, !0)) return c.loadComplete = c.img = null, hc(c, pa), Ha(c), void(a.index === m && f.updateCurrZoomItem());
                                        c.imageAppended ? !Zb && c.placeholder && (c.placeholder.style.display = "none", c.placeholder = null) : N.transform && (ea || Zb) ? dc.push({
                                            item: c,
                                            baseDiv: h,
                                            img: c.img,
                                            index: b,
                                            holder: a,
                                            clearPlaceholder: !0
                                        }) : ic(b, c, h, c.img, ea || Zb, !0)
                                    }
                                    c.loadComplete = null, c.img = null, Ca("imageLoadComplete", b, c)
                                }
                            }, e.features.transform) {
                            var k = "pswp__img pswp__img--placeholder";
                            k += g.msrc ? "" : " pswp__img--placeholder--blank";
                            var l = e.createEl(k, g.msrc ? "img" : "");
                            g.msrc && (l.src = g.msrc), lc(g, l), h.appendChild(l), g.placeholder = l
                        }
                        g.loading || jc(g), f.allowProgressiveImg() && (!Yb && N.transform ? dc.push({
                            item: g,
                            baseDiv: h,
                            img: g.img,
                            index: b,
                            holder: a
                        }) : ic(b, g, h, g.img, !0, !0))
                    }
                    Yb || b !== m ? Ha(g) : (da = h.style, bc(g, d || g.img)), a.el.innerHTML = "", a.el.appendChild(h)
                },
                cleanSlide: function(a) {
                    a.img && (a.img.onload = a.img.onerror = null), a.loaded = a.loading = a.img = a.imageAppended = !1
                }
            }
        });
        var nc, oc = {},
            pc = function(a, b, c) {
                var d = document.createEvent("CustomEvent"),
                    e = {
                        origEvent: a,
                        target: a.target,
                        releasePoint: b,
                        pointerType: c || "touch"
                    };
                d.initCustomEvent("pswpTap", !0, !0, e), a.target.dispatchEvent(d)
            };
        ya("Tap", {
            publicMethods: {
                initTap: function() {
                    Ba("firstTouchStart", f.onTapStart), Ba("touchRelease", f.onTapRelease), Ba("destroy", function() {
                        oc = {}, nc = null
                    })
                },
                onTapStart: function(a) {
                    a.length > 1 && (clearTimeout(nc), nc = null)
                },
                onTapRelease: function(a, b) {
                    if (b && !X && !V && !$a) {
                        var c = b;
                        if (nc && (clearTimeout(nc), nc = null, wb(c, oc))) return void Ca("doubleTap", c);
                        if ("mouse" === b.type) return void pc(a, b, "mouse");
                        var d = a.target.tagName.toUpperCase();
                        if ("BUTTON" === d || e.hasClass(a.target, "pswp__single-tap")) return void pc(a, b);
                        La(oc, c), nc = setTimeout(function() {
                            pc(a, b), nc = null
                        }, 300)
                    }
                }
            }
        });
        var qc;
        ya("DesktopZoom", {
            publicMethods: {
                initDesktopZoom: function() {
                    L || (G ? Ba("mouseUsed", function() {
                        f.setupDesktopZoom()
                    }) : f.setupDesktopZoom(!0))
                },
                setupDesktopZoom: function(b) {
                    qc = {};
                    var c = "wheel mousewheel DOMMouseScroll";
                    Ba("bindEvents", function() {
                        e.bind(a, c, f.handleMouseWheel)
                    }), Ba("unbindEvents", function() {
                        qc && e.unbind(a, c, f.handleMouseWheel)
                    }), f.mouseZoomedIn = !1;
                    var d, g = function() {
                            f.mouseZoomedIn && (e.removeClass(a, "pswp--zoomed-in"), f.mouseZoomedIn = !1), 1 > s ? e.addClass(a, "pswp--zoom-allowed") : e.removeClass(a, "pswp--zoom-allowed"), h()
                        },
                        h = function() {
                            d && (e.removeClass(a, "pswp--dragging"), d = !1)
                        };
                    Ba("resize", g), Ba("afterChange", g), Ba("pointerDown", function() {
                        f.mouseZoomedIn && (d = !0, e.addClass(a, "pswp--dragging"))
                    }), Ba("pointerUp", h), b || g()
                },
                handleMouseWheel: function(a) {
                    if (s <= f.currItem.fitRatio) return i.modal && (!i.closeOnScroll || $a || U ? a.preventDefault() : E && Math.abs(a.deltaY) > 2 && (l = !0, f.close())), !0;
                    if (a.stopPropagation(), qc.x = 0, "deltaX" in a) 1 === a.deltaMode ? (qc.x = 18 * a.deltaX, qc.y = 18 * a.deltaY) : (qc.x = a.deltaX, qc.y = a.deltaY);
                    else if ("wheelDelta" in a) a.wheelDeltaX && (qc.x = -.16 * a.wheelDeltaX), a.wheelDeltaY ? qc.y = -.16 * a.wheelDeltaY : qc.y = -.16 * a.wheelDelta;
                    else {
                        if (!("detail" in a)) return;
                        qc.y = a.detail
                    }
                    Ra(s, !0);
                    var b = oa.x - qc.x,
                        c = oa.y - qc.y;
                    (i.modal || b <= ca.min.x && b >= ca.max.x && c <= ca.min.y && c >= ca.max.y) && a.preventDefault(), f.panTo(b, c)
                },
                toggleDesktopZoom: function(b) {
                    b = b || {
                        x: pa.x / 2 + ra.x,
                        y: pa.y / 2 + ra.y
                    };
                    var c = i.getDoubleTapZoom(!0, f.currItem),
                        d = s === c;
                    f.mouseZoomedIn = !d, f.zoomTo(d ? f.currItem.initialZoomLevel : c, b, 333), e[(d ? "remove" : "add") + "Class"](a, "pswp--zoomed-in")
                }
            }
        });
        var rc, sc, tc, uc, vc, wc, xc, yc, zc, Ac, Bc, Cc, Dc = {
                history: !0,
                galleryUID: 1
            },
            Ec = function() {
                return Bc.hash.substring(1)
            },
            Fc = function() {
                rc && clearTimeout(rc), tc && clearTimeout(tc)
            },
            Gc = function() {
                var a = Ec(),
                    b = {};
                if (a.length < 5) return b;
                var c, d = a.split("&");
                for (c = 0; c < d.length; c++)
                    if (d[c]) {
                        var e = d[c].split("=");
                        e.length < 2 || (b[e[0]] = e[1])
                    }
                if (i.galleryPIDs) {
                    var f = b.pid;
                    for (b.pid = 0, c = 0; c < Xb.length; c++)
                        if (Xb[c].pid === f) {
                            b.pid = c;
                            break
                        }
                } else b.pid = parseInt(b.pid, 10) - 1;
                return b.pid < 0 && (b.pid = 0), b
            },
            Hc = function() {
                if (tc && clearTimeout(tc), $a || U) return void(tc = setTimeout(Hc, 500));
                uc ? clearTimeout(sc) : uc = !0;
                var a = m + 1,
                    b = $b(m);
                b.hasOwnProperty("pid") && (a = b.pid);
                var c = xc + "&gid=" + i.galleryUID + "&pid=" + a;
                yc || -1 === Bc.hash.indexOf(c) && (Ac = !0);
                var d = Bc.href.split("#")[0] + "#" + c;
                Cc ? "#" + c !== window.location.hash && history[yc ? "replaceState" : "pushState"]("", document.title, d) : yc ? Bc.replace(d) : Bc.hash = c, yc = !0, sc = setTimeout(function() {
                    uc = !1
                }, 60)
            };
        ya("History", {
            publicMethods: {
                initHistory: function() {
                    if (e.extend(i, Dc, !0), i.history) {
                        Bc = window.location, Ac = !1, zc = !1, yc = !1, xc = Ec(), Cc = "pushState" in history, xc.indexOf("gid=") > -1 && (xc = xc.split("&gid=")[0], xc = xc.split("?gid=")[0]), Ba("afterChange", f.updateURL), Ba("unbindEvents", function() {
                            e.unbind(window, "hashchange", f.onHashChange)
                        });
                        var a = function() {
                            wc = !0, zc || (Ac ? history.back() : xc ? Bc.hash = xc : Cc ? history.pushState("", document.title, Bc.pathname + Bc.search) : Bc.hash = ""), Fc()
                        };
                        Ba("unbindEvents", function() {
                            l && a()
                        }), Ba("destroy", function() {
                            wc || a()
                        }), Ba("firstUpdate", function() {
                            m = Gc().pid
                        });
                        var b = xc.indexOf("pid=");
                        b > -1 && (xc = xc.substring(0, b), "&" === xc.slice(-1) && (xc = xc.slice(0, -1))), setTimeout(function() {
                            j && e.bind(window, "hashchange", f.onHashChange)
                        }, 40)
                    }
                },
                onHashChange: function() {
                    return Ec() === xc ? (zc = !0, void f.close()) : void(uc || (vc = !0, f.goTo(Gc().pid), vc = !1))
                },
                updateURL: function() {
                    Fc(), vc || (yc ? rc = setTimeout(Hc, 800) : Hc())
                }
            }
        }), e.extend(f, db)
    };
    return a
});
                                    

#11 JavaScript::Eval (size: 9877, repeated: 1) - SHA256: 033a3768a88f302421dacd35892ae73f5a147d4642c7bb27c3d9c3753b5808c2

                                        /*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24
 * http://photoswipe.com
 * Copyright (c) 2015 Dmitry Semenov; */
! function(a, b) {
    "function" == typeof define && define.amd ? define(b) : "object" == typeof exports ? module.exports = b() : a.PhotoSwipeUI_Default = b()
}(this, function() {
    "use strict";
    var a = function(a, b) {
        var c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v = this,
            w = !1,
            x = !0,
            y = !0,
            z = {
                barsSize: {
                    top: 44,
                    bottom: "auto"
                },
                closeElClasses: ["item", "caption", "zoom-wrap", "ui", "top-bar"],
                timeToIdle: 4e3,
                timeToIdleOutside: 1e3,
                loadingIndicatorDelay: 1e3,
                addCaptionHTMLFn: function(a, b) {
                    return a.title ? (b.children[0].innerHTML = a.title, !0) : (b.children[0].innerHTML = "", !1)
                },
                closeEl: !0,
                captionEl: !0,
                fullscreenEl: !0,
                zoomEl: !0,
                shareEl: !0,
                counterEl: !0,
                arrowEl: !0,
                preloaderEl: !0,
                tapToClose: !1,
                tapToToggleControls: !0,
                clickToCloseNonZoomable: !0,
                shareButtons: [{
                    id: "facebook",
                    label: "Share on Facebook",
                    url: "https://www.facebook.com/sharer/sharer.php?u={{url}}"
                }, {
                    id: "twitter",
                    label: "Tweet",
                    url: "https://twitter.com/intent/tweet?text={{text}}&url={{url}}"
                }, {
                    id: "pinterest",
                    label: "Pin it",
                    url: "http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"
                }, {
                    id: "download",
                    label: "Download image",
                    url: "{{raw_image_url}}",
                    download: !0
                }],
                getImageURLForShare: function() {
                    return a.currItem.src || ""
                },
                getPageURLForShare: function() {
                    return window.location.href
                },
                getTextForShare: function() {
                    return a.currItem.title || ""
                },
                indexIndicatorSep: " / ",
                fitControlsWidth: 1200
            },
            A = function(a) {
                if (r) return !0;
                a = a || window.event, q.timeToIdle && q.mouseUsed && !k && K();
                for (var c, d, e = a.target || a.srcElement, f = e.getAttribute("class") || "", g = 0; g < S.length; g++) c = S[g], c.onTap && f.indexOf("pswp__" + c.name) > -1 && (c.onTap(), d = !0);
                if (d) {
                    a.stopPropagation && a.stopPropagation(), r = !0;
                    var h = b.features.isOldAndroid ? 600 : 30;
                    s = setTimeout(function() {
                        r = !1
                    }, h)
                }
            },
            B = function() {
                return !a.likelyTouchDevice || q.mouseUsed || screen.width > q.fitControlsWidth
            },
            C = function(a, c, d) {
                b[(d ? "add" : "remove") + "Class"](a, "pswp__" + c)
            },
            D = function() {
                var a = 1 === q.getNumItemsFn();
                a !== p && (C(d, "ui--one-slide", a), p = a)
            },
            E = function() {
                C(i, "share-modal--hidden", y)
            },
            F = function() {
                return y = !y, y ? (b.removeClass(i, "pswp__share-modal--fade-in"), setTimeout(function() {
                    y && E()
                }, 300)) : (E(), setTimeout(function() {
                    y || b.addClass(i, "pswp__share-modal--fade-in")
                }, 30)), y || H(), !1
            },
            G = function(b) {
                b = b || window.event;
                var c = b.target || b.srcElement;
                return a.shout("shareLinkClick", b, c), c.href ? c.hasAttribute("download") ? !0 : (window.open(c.href, "pswp_share", "scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left=" + (window.screen ? Math.round(screen.width / 2 - 275) : 100)), y || F(), !1) : !1
            },
            H = function() {
                for (var a, b, c, d, e, f = "", g = 0; g < q.shareButtons.length; g++) a = q.shareButtons[g], c = q.getImageURLForShare(a), d = q.getPageURLForShare(a), e = q.getTextForShare(a), b = a.url.replace("{{url}}", encodeURIComponent(d)).replace("{{image_url}}", encodeURIComponent(c)).replace("{{raw_image_url}}", c).replace("{{text}}", encodeURIComponent(e)), f += '<a href="' + b + '" target="_blank" class="pswp__share--' + a.id + '"' + (a.download ? "download" : "") + ">" + a.label + "</a>", q.parseShareButtonOut && (f = q.parseShareButtonOut(a, f));
                i.children[0].innerHTML = f, i.children[0].onclick = G
            },
            I = function(a) {
                for (var c = 0; c < q.closeElClasses.length; c++)
                    if (b.hasClass(a, "pswp__" + q.closeElClasses[c])) return !0
            },
            J = 0,
            K = function() {
                clearTimeout(u), J = 0, k && v.setIdle(!1)
            },
            L = function(a) {
                a = a ? a : window.event;
                var b = a.relatedTarget || a.toElement;
                b && "HTML" !== b.nodeName || (clearTimeout(u), u = setTimeout(function() {
                    v.setIdle(!0)
                }, q.timeToIdleOutside))
            },
            M = function() {
                q.fullscreenEl && !b.features.isOldAndroid && (c || (c = v.getFullscreenAPI()), c ? (b.bind(document, c.eventK, v.updateFullscreen), v.updateFullscreen(), b.addClass(a.template, "pswp--supports-fs")) : b.removeClass(a.template, "pswp--supports-fs"))
            },
            N = function() {
                q.preloaderEl && (O(!0), l("beforeChange", function() {
                    clearTimeout(o), o = setTimeout(function() {
                        a.currItem && a.currItem.loading ? (!a.allowProgressiveImg() || a.currItem.img && !a.currItem.img.naturalWidth) && O(!1) : O(!0)
                    }, q.loadingIndicatorDelay)
                }), l("imageLoadComplete", function(b, c) {
                    a.currItem === c && O(!0)
                }))
            },
            O = function(a) {
                n !== a && (C(m, "preloader--active", !a), n = a)
            },
            P = function(a) {
                var c = a.vGap;
                if (B()) {
                    var g = q.barsSize;
                    if (q.captionEl && "auto" === g.bottom)
                        if (f || (f = b.createEl("pswp__caption pswp__caption--fake"), f.appendChild(b.createEl("pswp__caption__center")), d.insertBefore(f, e), b.addClass(d, "pswp__ui--fit")), q.addCaptionHTMLFn(a, f, !0)) {
                            var h = f.clientHeight;
                            c.bottom = parseInt(h, 10) || 44
                        } else c.bottom = g.top;
                    else c.bottom = "auto" === g.bottom ? 0 : g.bottom;
                    c.top = g.top
                } else c.top = c.bottom = 0
            },
            Q = function() {
                q.timeToIdle && l("mouseUsed", function() {
                    b.bind(document, "mousemove", K), b.bind(document, "mouseout", L), t = setInterval(function() {
                        J++, 2 === J && v.setIdle(!0)
                    }, q.timeToIdle / 2)
                })
            },
            R = function() {
                l("onVerticalDrag", function(a) {
                    x && .95 > a ? v.hideControls() : !x && a >= .95 && v.showControls()
                });
                var a;
                l("onPinchClose", function(b) {
                    x && .9 > b ? (v.hideControls(), a = !0) : a && !x && b > .9 && v.showControls()
                }), l("zoomGestureEnded", function() {
                    a = !1, a && !x && v.showControls()
                })
            },
            S = [{
                name: "caption",
                option: "captionEl",
                onInit: function(a) {
                    e = a
                }
            }, {
                name: "share-modal",
                option: "shareEl",
                onInit: function(a) {
                    i = a
                },
                onTap: function() {
                    F()
                }
            }, {
                name: "button--share",
                option: "shareEl",
                onInit: function(a) {
                    h = a
                },
                onTap: function() {
                    F()
                }
            }, {
                name: "button--zoom",
                option: "zoomEl",
                onTap: a.toggleDesktopZoom
            }, {
                name: "counter",
                option: "counterEl",
                onInit: function(a) {
                    g = a
                }
            }, {
                name: "button--close",
                option: "closeEl",
                onTap: a.close
            }, {
                name: "button--arrow--left",
                option: "arrowEl",
                onTap: a.prev
            }, {
                name: "button--arrow--right",
                option: "arrowEl",
                onTap: a.next
            }, {
                name: "button--fs",
                option: "fullscreenEl",
                onTap: function() {
                    c.isFullscreen() ? c.exit() : c.enter()
                }
            }, {
                name: "preloader",
                option: "preloaderEl",
                onInit: function(a) {
                    m = a
                }
            }],
            T = function() {
                var a, c, e, f = function(d) {
                    if (d)
                        for (var f = d.length, g = 0; f > g; g++) {
                            a = d[g], c = a.className;
                            for (var h = 0; h < S.length; h++) e = S[h], c.indexOf("pswp__" + e.name) > -1 && (q[e.option] ? (b.removeClass(a, "pswp__element--disabled"), e.onInit && e.onInit(a)) : b.addClass(a, "pswp__element--disabled"))
                        }
                };
                f(d.children);
                var g = b.getChildByClass(d, "pswp__top-bar");
                g && f(g.children)
            };
        v.init = function() {
            b.extend(a.options, z, !0), q = a.options, d = b.getChildByClass(a.scrollWrap, "pswp__ui"), l = a.listen, R(), l("beforeChange", v.update), l("doubleTap", function(b) {
                var c = a.currItem.initialZoomLevel;
                a.getZoomLevel() !== c ? a.zoomTo(c, b, 333) : a.zoomTo(q.getDoubleTapZoom(!1, a.currItem), b, 333)
            }), l("preventDragEvent", function(a, b, c) {
                var d = a.target || a.srcElement;
                d && d.getAttribute("class") && a.type.indexOf("mouse") > -1 && (d.getAttribute("class").indexOf("__caption") > 0 || /(SMALL|STRONG|EM)/i.test(d.tagName)) && (c.prevent = !1)
            }), l("bindEvents", function() {
                b.bind(d, "pswpTap click", A), b.bind(a.scrollWrap, "pswpTap", v.onGlobalTap), a.likelyTouchDevice || b.bind(a.scrollWrap, "mouseover", v.onMouseOver)
            }), l("unbindEvents", function() {
                y || F(), t && clearInterval(t), b.unbind(document, "mouseout", L), b.unbind(document, "mousemove", K), b.unbind(d, "pswpTap click", A), b.unbind(a.scrollWrap, "pswpTap", v.onGlobalTap), b.unbind(a.scrollWrap, "mouseover", v.onMouseOver), c && (b.unbind(document, c.eventK, v.updateFullscreen), c.isFullscreen() && (q.hideAnimationDuration = 0, c.exit()), c = null)
            }), l("destroy", function() {
                q.captionEl && (f && d.removeChild(f), b.removeClass(e, "pswp__caption--empty")), i && (i.children[0].onclick = null), b.removeClass(d, "pswp__ui--over-close"), b.addClass(d, "pswp__ui--hidden"), v.setIdle(!1)
            }), q.showAnimationDuration || b.removeClass(d, "pswp__ui--hidden"), l("initialZoomIn", function() {
                q.showAnimationDuration && b.removeClass(d, "pswp__ui--hidden")
            }), l("initialZoomOut", function() {
                b.addClass(d, "pswp__ui--hidden")
            }), l("parseVerticalMargin", P), T(), q.shareEl && h && i && (y = !0), D(), Q(), M(), N()
        }, v.setIdle = function(a) {
            k = a, C(d, "ui--idle", a)
        }, v.update = function() {
            x && a.currItem ? (v.updateIndexIndicator(), q.captionEl && (q.addCaptionHTMLFn(a.currItem, e), C(e, "caption--empty", !a.currItem.title)), w = !0) : w = !1, y || F(), D()
        }, v.updateFullscreen = function(d) {
            d && setTimeout(function() {
                a.setScrollOffset(0, b.getScrollY())
            }, 50), b[(c.isFullscreen() ? "add" : "remove") + "Class"](a.template, "pswp--fs")
        }, v.updateIndexIndicator = function() {
            q.counterEl && (g.innerHTML = a.getCurrentIndex() + 1 + q.indexIndicatorSep + q.getNumItemsFn())
        }, v.onGlobalTap = function(c) {
            c = c || window.event;
            var d = c.target || c.srcElement;
            if (!r)
                if (c.detail && "mouse" === c.detail.pointerType) {
                    if (I(d)) return void a.close();
                    b.hasClass(d, "pswp__img") && (1 === a.getZoomLevel() && a.getZoomLevel() <= a.currItem.fitRatio ? q.clickToCloseNonZoomable && a.close() : a.toggleDesktopZoom(c.detail.releasePoint))
                } else if (q.tapToToggleControls && (x ? v.hideControls() : v.showControls()), q.tapToClose && (b.hasClass(d, "pswp__img") || I(d))) return void a.close()
        }, v.onMouseOver = function(a) {
            a = a || window.event;
            var b = a.target || a.srcElement;
            C(d, "ui--over-close", I(b))
        }, v.hideControls = function() {
            b.addClass(d, "pswp__ui--hidden"), x = !1
        }, v.showControls = function() {
            x = !0, w || v.update(), b.removeClass(d, "pswp__ui--hidden")
        }, v.supportsFullscreen = function() {
            var a = document;
            return !!(a.exitFullscreen || a.mozCancelFullScreen || a.webkitExitFullscreen || a.msExitFullscreen)
        }, v.getFullscreenAPI = function() {
            var b, c = document.documentElement,
                d = "fullscreenchange";
            return c.requestFullscreen ? b = {
                enterK: "requestFullscreen",
                exitK: "exitFullscreen",
                elementK: "fullscreenElement",
                eventK: d
            } : c.mozRequestFullScreen ? b = {
                enterK: "mozRequestFullScreen",
                exitK: "mozCancelFullScreen",
                elementK: "mozFullScreenElement",
                eventK: "moz" + d
            } : c.webkitRequestFullscreen ? b = {
                enterK: "webkitRequestFullscreen",
                exitK: "webkitExitFullscreen",
                elementK: "webkitFullscreenElement",
                eventK: "webkit" + d
            } : c.msRequestFullscreen && (b = {
                enterK: "msRequestFullscreen",
                exitK: "msExitFullscreen",
                elementK: "msFullscreenElement",
                eventK: "MSFullscreenChange"
            }), b && (b.enter = function() {
                return j = q.closeOnScroll, q.closeOnScroll = !1, "webkitRequestFullscreen" !== this.enterK ? a.template[this.enterK]() : void a.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)
            }, b.exit = function() {
                return q.closeOnScroll = j, document[this.exitK]()
            }, b.isFullscreen = function() {
                return document[this.elementK]
            }), b
        }
    };
    return a
});
                                    

#12 JavaScript::Eval (size: 93064, repeated: 1) - SHA256: c73b004ebf31b395cf237c3d2b13c1e576f385e04660ceb5f7be163ff3c201dc

                                        /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
 */
(function(e, t) {
    var n, r, i = typeof t,
        o = e.location,
        a = e.document,
        s = a.documentElement,
        l = e.jQuery,
        u = e.$,
        c = {},
        p = [],
        f = "1.10.2",
        d = p.concat,
        h = p.push,
        g = p.slice,
        m = p.indexOf,
        y = c.toString,
        v = c.hasOwnProperty,
        b = f.trim,
        x = function(e, t) {
            return new x.fn.init(e, t, r)
        },
        w = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
        T = /\S+/g,
        C = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
        N = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
        k = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
        E = /^[\],:{}\s]*$/,
        S = /(?:^|:|,)(?:\s*\[)+/g,
        A = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
        j = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,
        D = /^-ms-/,
        L = /-([\da-z])/gi,
        H = function(e, t) {
            return t.toUpperCase()
        },
        q = function(e) {
            (a.addEventListener || "load" === e.type || "complete" === a.readyState) && (_(), x.ready())
        },
        _ = function() {
            a.addEventListener ? (a.removeEventListener("DOMContentLoaded", q, !1), e.removeEventListener("load", q, !1)) : (a.detachEvent("onreadystatechange", q), e.detachEvent("onload", q))
        };
    x.fn = x.prototype = {
        jquery: f,
        constructor: x,
        init: function(e, n, r) {
            var i, o;
            if (!e) return this;
            if ("string" == typeof e) {
                if (i = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : N.exec(e), !i || !i[1] && n) return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e);
                if (i[1]) {
                    if (n = n instanceof x ? n[0] : n, x.merge(this, x.parseHTML(i[1], n && n.nodeType ? n.ownerDocument || n : a, !0)), k.test(i[1]) && x.isPlainObject(n))
                        for (i in n) x.isFunction(this[i]) ? this[i](n[i]) : this.attr(i, n[i]);
                    return this
                }
                if (o = a.getElementById(i[2]), o && o.parentNode) {
                    if (o.id !== i[2]) return r.find(e);
                    this.length = 1, this[0] = o
                }
                return this.context = a, this.selector = e, this
            }
            return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this))
        },
        selector: "",
        length: 0,
        toArray: function() {
            return g.call(this)
        },
        get: function(e) {
            return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e]
        },
        pushStack: function(e) {
            var t = x.merge(this.constructor(), e);
            return t.prevObject = this, t.context = this.context, t
        },
        each: function(e, t) {
            return x.each(this, e, t)
        },
        ready: function(e) {
            return x.ready.promise().done(e), this
        },
        slice: function() {
            return this.pushStack(g.apply(this, arguments))
        },
        first: function() {
            return this.eq(0)
        },
        last: function() {
            return this.eq(-1)
        },
        eq: function(e) {
            var t = this.length,
                n = +e + (0 > e ? t : 0);
            return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
        },
        map: function(e) {
            return this.pushStack(x.map(this, function(t, n) {
                return e.call(t, n, t)
            }))
        },
        end: function() {
            return this.prevObject || this.constructor(null)
        },
        push: h,
        sort: [].sort,
        splice: [].splice
    }, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function() {
        var e, n, r, i, o, a, s = arguments[0] || {},
            l = 1,
            u = arguments.length,
            c = !1;
        for ("boolean" == typeof s && (c = s, s = arguments[1] || {}, l = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === l && (s = this, --l); u > l; l++)
            if (null != (o = arguments[l]))
                for (i in o) e = s[i], r = o[i], s !== r && (c && r && (x.isPlainObject(r) || (n = x.isArray(r))) ? (n ? (n = !1, a = e && x.isArray(e) ? e : []) : a = e && x.isPlainObject(e) ? e : {}, s[i] = x.extend(c, a, r)) : r !== t && (s[i] = r));
        return s
    }, x.extend({
        expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""),
        noConflict: function(t) {
            return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = l), x
        },
        isReady: !1,
        readyWait: 1,
        holdReady: function(e) {
            e ? x.readyWait++ : x.ready(!0)
        },
        ready: function(e) {
            if (e === !0 ? !--x.readyWait : !x.isReady) {
                if (!a.body) return setTimeout(x.ready);
                x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(a, [x]), x.fn.trigger && x(a).trigger("ready").off("ready"))
            }
        },
        isFunction: function(e) {
            return "function" === x.type(e)
        },
        isArray: Array.isArray || function(e) {
            return "array" === x.type(e)
        },
        isWindow: function(e) {
            return null != e && e == e.window
        },
        isNumeric: function(e) {
            return !isNaN(parseFloat(e)) && isFinite(e)
        },
        type: function(e) {
            return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? c[y.call(e)] || "object" : typeof e
        },
        isPlainObject: function(e) {
            var n;
            if (!e || "object" !== x.type(e) || e.nodeType || x.isWindow(e)) return !1;
            try {
                if (e.constructor && !v.call(e, "constructor") && !v.call(e.constructor.prototype, "isPrototypeOf")) return !1
            } catch (r) {
                return !1
            }
            if (x.support.ownLast)
                for (n in e) return v.call(e, n);
            for (n in e);
            return n === t || v.call(e, n)
        },
        isEmptyObject: function(e) {
            var t;
            for (t in e) return !1;
            return !0
        },
        error: function(e) {
            throw Error(e)
        },
        parseHTML: function(e, t, n) {
            if (!e || "string" != typeof e) return null;
            "boolean" == typeof t && (n = t, t = !1), t = t || a;
            var r = k.exec(e),
                i = !n && [];
            return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes))
        },
        parseJSON: function(n) {
            return e.JSON && e.JSON.parse ? e.JSON.parse(n) : null === n ? n : "string" == typeof n && (n = x.trim(n), n && E.test(n.replace(A, "@").replace(j, "]").replace(S, ""))) ? Function("return " + n)() : (x.error("Invalid JSON: " + n), t)
        },
        parseXML: function(n) {
            var r, i;
            if (!n || "string" != typeof n) return null;
            try {
                e.DOMParser ? (i = new DOMParser, r = i.parseFromString(n, "text/xml")) : (r = new ActiveXObject("Microsoft.XMLDOM"), r.async = "false", r.loadXML(n))
            } catch (o) {
                r = t
            }
            return r && r.documentElement && !r.getElementsByTagName("parsererror").length || x.error("Invalid XML: " + n), r
        },
        noop: function() {},
        globalEval: function(t) {
            t && x.trim(t) && (e.execScript || function(t) {
                e.eval.call(e, t)
            })(t)
        },
        camelCase: function(e) {
            return e.replace(D, "ms-").replace(L, H)
        },
        nodeName: function(e, t) {
            return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
        },
        each: function(e, t, n) {
            var r, i = 0,
                o = e.length,
                a = M(e);
            if (n) {
                if (a) {
                    for (; o > i; i++)
                        if (r = t.apply(e[i], n), r === !1) break
                } else
                    for (i in e)
                        if (r = t.apply(e[i], n), r === !1) break
            } else if (a) {
                for (; o > i; i++)
                    if (r = t.call(e[i], i, e[i]), r === !1) break
            } else
                for (i in e)
                    if (r = t.call(e[i], i, e[i]), r === !1) break; return e
        },
        trim: b && !b.call("\ufeff\u00a0") ? function(e) {
            return null == e ? "" : b.call(e)
        } : function(e) {
            return null == e ? "" : (e + "").replace(C, "")
        },
        makeArray: function(e, t) {
            var n = t || [];
            return null != e && (M(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n
        },
        inArray: function(e, t, n) {
            var r;
            if (t) {
                if (m) return m.call(t, e, n);
                for (r = t.length, n = n ? 0 > n ? Math.max(0, r + n) : n : 0; r > n; n++)
                    if (n in t && t[n] === e) return n
            }
            return -1
        },
        merge: function(e, n) {
            var r = n.length,
                i = e.length,
                o = 0;
            if ("number" == typeof r)
                for (; r > o; o++) e[i++] = n[o];
            else
                while (n[o] !== t) e[i++] = n[o++];
            return e.length = i, e
        },
        grep: function(e, t, n) {
            var r, i = [],
                o = 0,
                a = e.length;
            for (n = !!n; a > o; o++) r = !!t(e[o], o), n !== r && i.push(e[o]);
            return i
        },
        map: function(e, t, n) {
            var r, i = 0,
                o = e.length,
                a = M(e),
                s = [];
            if (a)
                for (; o > i; i++) r = t(e[i], i, n), null != r && (s[s.length] = r);
            else
                for (i in e) r = t(e[i], i, n), null != r && (s[s.length] = r);
            return d.apply([], s)
        },
        guid: 1,
        proxy: function(e, n) {
            var r, i, o;
            return "string" == typeof n && (o = e[n], n = e, e = o), x.isFunction(e) ? (r = g.call(arguments, 2), i = function() {
                return e.apply(n || this, r.concat(g.call(arguments)))
            }, i.guid = e.guid = e.guid || x.guid++, i) : t
        },
        access: function(e, n, r, i, o, a, s) {
            var l = 0,
                u = e.length,
                c = null == r;
            if ("object" === x.type(r)) {
                o = !0;
                for (l in r) x.access(e, n, l, r[l], !0, a, s)
            } else if (i !== t && (o = !0, x.isFunction(i) || (s = !0), c && (s ? (n.call(e, i), n = null) : (c = n, n = function(e, t, n) {
                    return c.call(x(e), n)
                })), n))
                for (; u > l; l++) n(e[l], r, s ? i : i.call(e[l], l, n(e[l], r)));
            return o ? e : c ? n.call(e) : u ? n(e[0], r) : a
        },
        now: function() {
            return (new Date).getTime()
        },
        swap: function(e, t, n, r) {
            var i, o, a = {};
            for (o in t) a[o] = e.style[o], e.style[o] = t[o];
            i = n.apply(e, r || []);
            for (o in t) e.style[o] = a[o];
            return i
        }
    }), x.ready.promise = function(t) {
        if (!n)
            if (n = x.Deferred(), "complete" === a.readyState) setTimeout(x.ready);
            else if (a.addEventListener) a.addEventListener("DOMContentLoaded", q, !1), e.addEventListener("load", q, !1);
        else {
            a.attachEvent("onreadystatechange", q), e.attachEvent("onload", q);
            var r = !1;
            try {
                r = null == e.frameElement && a.documentElement
            } catch (i) {}
            r && r.doScroll && function o() {
                if (!x.isReady) {
                    try {
                        r.doScroll("left")
                    } catch (e) {
                        return setTimeout(o, 50)
                    }
                    _(), x.ready()
                }
            }()
        }
        return n.promise(t)
    }, x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
        c["[object " + t + "]"] = t.toLowerCase()
    });

    function M(e) {
        var t = e.length,
            n = x.type(e);
        return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e)
    }
    r = x(a),
        function(e, t) {
            var n, r, i, o, a, s, l, u, c, p, f, d, h, g, m, y, v, b = "sizzle" + -new Date,
                w = e.document,
                T = 0,
                C = 0,
                N = st(),
                k = st(),
                E = st(),
                S = !1,
                A = function(e, t) {
                    return e === t ? (S = !0, 0) : 0
                },
                j = typeof t,
                D = 1 << 31,
                L = {}.hasOwnProperty,
                H = [],
                q = H.pop,
                _ = H.push,
                M = H.push,
                O = H.slice,
                F = H.indexOf || function(e) {
                    var t = 0,
                        n = this.length;
                    for (; n > t; t++)
                        if (this[t] === e) return t;
                    return -1
                },
                B = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
                P = "[\\x20\\t\\r\\n\\f]",
                R = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
                W = R.replace("w", "w#"),
                $ = "\\[" + P + "*(" + R + ")" + P + "*(?:([*^$|!~]?=)" + P + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + W + ")|)|)" + P + "*\\]",
                I = ":(" + R + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + $.replace(3, 8) + ")*)|.*)\\)|)",
                z = RegExp("^" + P + "+|((?:^|[^\\\\])(?:\\\\.)*)" + P + "+$", "g"),
                X = RegExp("^" + P + "*," + P + "*"),
                U = RegExp("^" + P + "*([>+~]|" + P + ")" + P + "*"),
                V = RegExp(P + "*[+~]"),
                Y = RegExp("=" + P + "*([^\\]'\"]*)" + P + "*\\]", "g"),
                J = RegExp(I),
                G = RegExp("^" + W + "$"),
                Q = {
                    ID: RegExp("^#(" + R + ")"),
                    CLASS: RegExp("^\\.(" + R + ")"),
                    TAG: RegExp("^(" + R.replace("w", "w*") + ")"),
                    ATTR: RegExp("^" + $),
                    PSEUDO: RegExp("^" + I),
                    CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + P + "*(even|odd|(([+-]|)(\\d*)n|)" + P + "*(?:([+-]|)" + P + "*(\\d+)|))" + P + "*\\)|)", "i"),
                    bool: RegExp("^(?:" + B + ")$", "i"),
                    needsContext: RegExp("^" + P + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + P + "*((?:-\\d)?\\d*)" + P + "*\\)|)(?=[^-]|$)", "i")
                },
                K = /^[^{]+\{\s*\[native \w/,
                Z = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
                et = /^(?:input|select|textarea|button)$/i,
                tt = /^h\d$/i,
                nt = /'|\\/g,
                rt = RegExp("\\\\([\\da-f]{1,6}" + P + "?|(" + P + ")|.)", "ig"),
                it = function(e, t, n) {
                    var r = "0x" + t - 65536;
                    return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r)
                };
            try {
                M.apply(H = O.call(w.childNodes), w.childNodes), H[w.childNodes.length].nodeType
            } catch (ot) {
                M = {
                    apply: H.length ? function(e, t) {
                        _.apply(e, O.call(t))
                    } : function(e, t) {
                        var n = e.length,
                            r = 0;
                        while (e[n++] = t[r++]);
                        e.length = n - 1
                    }
                }
            }

            function at(e, t, n, i) {
                var o, a, s, l, u, c, d, m, y, x;
                if ((t ? t.ownerDocument || t : w) !== f && p(t), t = t || f, n = n || [], !e || "string" != typeof e) return n;
                if (1 !== (l = t.nodeType) && 9 !== l) return [];
                if (h && !i) {
                    if (o = Z.exec(e))
                        if (s = o[1]) {
                            if (9 === l) {
                                if (a = t.getElementById(s), !a || !a.parentNode) return n;
                                if (a.id === s) return n.push(a), n
                            } else if (t.ownerDocument && (a = t.ownerDocument.getElementById(s)) && v(t, a) && a.id === s) return n.push(a), n
                        } else {
                            if (o[2]) return M.apply(n, t.getElementsByTagName(e)), n;
                            if ((s = o[3]) && r.getElementsByClassName && t.getElementsByClassName) return M.apply(n, t.getElementsByClassName(s)), n
                        }
                    if (r.qsa && (!g || !g.test(e))) {
                        if (m = d = b, y = t, x = 9 === l && e, 1 === l && "object" !== t.nodeName.toLowerCase()) {
                            c = mt(e), (d = t.getAttribute("id")) ? m = d.replace(nt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", u = c.length;
                            while (u--) c[u] = m + yt(c[u]);
                            y = V.test(e) && t.parentNode || t, x = c.join(",")
                        }
                        if (x) try {
                            return M.apply(n, y.querySelectorAll(x)), n
                        } catch (T) {} finally {
                            d || t.removeAttribute("id")
                        }
                    }
                }
                return kt(e.replace(z, "$1"), t, n, i)
            }

            function st() {
                var e = [];

                function t(n, r) {
                    return e.push(n += " ") > o.cacheLength && delete t[e.shift()], t[n] = r
                }
                return t
            }

            function lt(e) {
                return e[b] = !0, e
            }

            function ut(e) {
                var t = f.createElement("div");
                try {
                    return !!e(t)
                } catch (n) {
                    return !1
                } finally {
                    t.parentNode && t.parentNode.removeChild(t), t = null
                }
            }

            function ct(e, t) {
                var n = e.split("|"),
                    r = e.length;
                while (r--) o.attrHandle[n[r]] = t
            }

            function pt(e, t) {
                var n = t && e,
                    r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D);
                if (r) return r;
                if (n)
                    while (n = n.nextSibling)
                        if (n === t) return -1;
                return e ? 1 : -1
            }

            function ft(e) {
                return function(t) {
                    var n = t.nodeName.toLowerCase();
                    return "input" === n && t.type === e
                }
            }

            function dt(e) {
                return function(t) {
                    var n = t.nodeName.toLowerCase();
                    return ("input" === n || "button" === n) && t.type === e
                }
            }

            function ht(e) {
                return lt(function(t) {
                    return t = +t, lt(function(n, r) {
                        var i, o = e([], n.length, t),
                            a = o.length;
                        while (a--) n[i = o[a]] && (n[i] = !(r[i] = n[i]))
                    })
                })
            }
            s = at.isXML = function(e) {
                var t = e && (e.ownerDocument || e).documentElement;
                return t ? "HTML" !== t.nodeName : !1
            }, r = at.support = {}, p = at.setDocument = function(e) {
                var n = e ? e.ownerDocument || e : w,
                    i = n.defaultView;
                return n !== f && 9 === n.nodeType && n.documentElement ? (f = n, d = n.documentElement, h = !s(n), i && i.attachEvent && i !== i.top && i.attachEvent("onbeforeunload", function() {
                    p()
                }), r.attributes = ut(function(e) {
                    return e.className = "i", !e.getAttribute("className")
                }), r.getElementsByTagName = ut(function(e) {
                    return e.appendChild(n.createComment("")), !e.getElementsByTagName("*").length
                }), r.getElementsByClassName = ut(function(e) {
                    return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length
                }), r.getById = ut(function(e) {
                    return d.appendChild(e).id = b, !n.getElementsByName || !n.getElementsByName(b).length
                }), r.getById ? (o.find.ID = function(e, t) {
                    if (typeof t.getElementById !== j && h) {
                        var n = t.getElementById(e);
                        return n && n.parentNode ? [n] : []
                    }
                }, o.filter.ID = function(e) {
                    var t = e.replace(rt, it);
                    return function(e) {
                        return e.getAttribute("id") === t
                    }
                }) : (delete o.find.ID, o.filter.ID = function(e) {
                    var t = e.replace(rt, it);
                    return function(e) {
                        var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id");
                        return n && n.value === t
                    }
                }), o.find.TAG = r.getElementsByTagName ? function(e, n) {
                    return typeof n.getElementsByTagName !== j ? n.getElementsByTagName(e) : t
                } : function(e, t) {
                    var n, r = [],
                        i = 0,
                        o = t.getElementsByTagName(e);
                    if ("*" === e) {
                        while (n = o[i++]) 1 === n.nodeType && r.push(n);
                        return r
                    }
                    return o
                }, o.find.CLASS = r.getElementsByClassName && function(e, n) {
                    return typeof n.getElementsByClassName !== j && h ? n.getElementsByClassName(e) : t
                }, m = [], g = [], (r.qsa = K.test(n.querySelectorAll)) && (ut(function(e) {
                    e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || g.push("\\[" + P + "*(?:value|" + B + ")"), e.querySelectorAll(":checked").length || g.push(":checked")
                }), ut(function(e) {
                    var t = n.createElement("input");
                    t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && g.push("[*^$]=" + P + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || g.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), g.push(",.*:")
                })), (r.matchesSelector = K.test(y = d.webkitMatchesSelector || d.mozMatchesSelector || d.oMatchesSelector || d.msMatchesSelector)) && ut(function(e) {
                    r.disconnectedMatch = y.call(e, "div"), y.call(e, "[s!='']:x"), m.push("!=", I)
                }), g = g.length && RegExp(g.join("|")), m = m.length && RegExp(m.join("|")), v = K.test(d.contains) || d.compareDocumentPosition ? function(e, t) {
                    var n = 9 === e.nodeType ? e.documentElement : e,
                        r = t && t.parentNode;
                    return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
                } : function(e, t) {
                    if (t)
                        while (t = t.parentNode)
                            if (t === e) return !0;
                    return !1
                }, A = d.compareDocumentPosition ? function(e, t) {
                    if (e === t) return S = !0, 0;
                    var i = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t);
                    return i ? 1 & i || !r.sortDetached && t.compareDocumentPosition(e) === i ? e === n || v(w, e) ? -1 : t === n || v(w, t) ? 1 : c ? F.call(c, e) - F.call(c, t) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1
                } : function(e, t) {
                    var r, i = 0,
                        o = e.parentNode,
                        a = t.parentNode,
                        s = [e],
                        l = [t];
                    if (e === t) return S = !0, 0;
                    if (!o || !a) return e === n ? -1 : t === n ? 1 : o ? -1 : a ? 1 : c ? F.call(c, e) - F.call(c, t) : 0;
                    if (o === a) return pt(e, t);
                    r = e;
                    while (r = r.parentNode) s.unshift(r);
                    r = t;
                    while (r = r.parentNode) l.unshift(r);
                    while (s[i] === l[i]) i++;
                    return i ? pt(s[i], l[i]) : s[i] === w ? -1 : l[i] === w ? 1 : 0
                }, n) : f
            }, at.matches = function(e, t) {
                return at(e, null, null, t)
            }, at.matchesSelector = function(e, t) {
                if ((e.ownerDocument || e) !== f && p(e), t = t.replace(Y, "='$1']"), !(!r.matchesSelector || !h || m && m.test(t) || g && g.test(t))) try {
                    var n = y.call(e, t);
                    if (n || r.disconnectedMatch || e.document && 11 !== e.document.nodeType) return n
                } catch (i) {}
                return at(t, f, null, [e]).length > 0
            }, at.contains = function(e, t) {
                return (e.ownerDocument || e) !== f && p(e), v(e, t)
            }, at.attr = function(e, n) {
                (e.ownerDocument || e) !== f && p(e);
                var i = o.attrHandle[n.toLowerCase()],
                    a = i && L.call(o.attrHandle, n.toLowerCase()) ? i(e, n, !h) : t;
                return a === t ? r.attributes || !h ? e.getAttribute(n) : (a = e.getAttributeNode(n)) && a.specified ? a.value : null : a
            }, at.error = function(e) {
                throw Error("Syntax error, unrecognized expression: " + e)
            }, at.uniqueSort = function(e) {
                var t, n = [],
                    i = 0,
                    o = 0;
                if (S = !r.detectDuplicates, c = !r.sortStable && e.slice(0), e.sort(A), S) {
                    while (t = e[o++]) t === e[o] && (i = n.push(o));
                    while (i--) e.splice(n[i], 1)
                }
                return e
            }, a = at.getText = function(e) {
                var t, n = "",
                    r = 0,
                    i = e.nodeType;
                if (i) {
                    if (1 === i || 9 === i || 11 === i) {
                        if ("string" == typeof e.textContent) return e.textContent;
                        for (e = e.firstChild; e; e = e.nextSibling) n += a(e)
                    } else if (3 === i || 4 === i) return e.nodeValue
                } else
                    for (; t = e[r]; r++) n += a(t);
                return n
            }, o = at.selectors = {
                cacheLength: 50,
                createPseudo: lt,
                match: Q,
                attrHandle: {},
                find: {},
                relative: {
                    ">": {
                        dir: "parentNode",
                        first: !0
                    },
                    " ": {
                        dir: "parentNode"
                    },
                    "+": {
                        dir: "previousSibling",
                        first: !0
                    },
                    "~": {
                        dir: "previousSibling"
                    }
                },
                preFilter: {
                    ATTR: function(e) {
                        return e[1] = e[1].replace(rt, it), e[3] = (e[4] || e[5] || "").replace(rt, it), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
                    },
                    CHILD: function(e) {
                        return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || at.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && at.error(e[0]), e
                    },
                    PSEUDO: function(e) {
                        var n, r = !e[5] && e[2];
                        return Q.CHILD.test(e[0]) ? null : (e[3] && e[4] !== t ? e[2] = e[4] : r && J.test(r) && (n = mt(r, !0)) && (n = r.indexOf(")", r.length - n) - r.length) && (e[0] = e[0].slice(0, n), e[2] = r.slice(0, n)), e.slice(0, 3))
                    }
                },
                filter: {
                    TAG: function(e) {
                        var t = e.replace(rt, it).toLowerCase();
                        return "*" === e ? function() {
                            return !0
                        } : function(e) {
                            return e.nodeName && e.nodeName.toLowerCase() === t
                        }
                    },
                    CLASS: function(e) {
                        var t = N[e + " "];
                        return t || (t = RegExp("(^|" + P + ")" + e + "(" + P + "|$)")) && N(e, function(e) {
                            return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "")
                        })
                    },
                    ATTR: function(e, t, n) {
                        return function(r) {
                            var i = at.attr(r, e);
                            return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0
                        }
                    },
                    CHILD: function(e, t, n, r, i) {
                        var o = "nth" !== e.slice(0, 3),
                            a = "last" !== e.slice(-4),
                            s = "of-type" === t;
                        return 1 === r && 0 === i ? function(e) {
                            return !!e.parentNode
                        } : function(t, n, l) {
                            var u, c, p, f, d, h, g = o !== a ? "nextSibling" : "previousSibling",
                                m = t.parentNode,
                                y = s && t.nodeName.toLowerCase(),
                                v = !l && !s;
                            if (m) {
                                if (o) {
                                    while (g) {
                                        p = t;
                                        while (p = p[g])
                                            if (s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) return !1;
                                        h = g = "only" === e && !h && "nextSibling"
                                    }
                                    return !0
                                }
                                if (h = [a ? m.firstChild : m.lastChild], a && v) {
                                    c = m[b] || (m[b] = {}), u = c[e] || [], d = u[0] === T && u[1], f = u[0] === T && u[2], p = d && m.childNodes[d];
                                    while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
                                        if (1 === p.nodeType && ++f && p === t) {
                                            c[e] = [T, d, f];
                                            break
                                        }
                                } else if (v && (u = (t[b] || (t[b] = {}))[e]) && u[0] === T) f = u[1];
                                else
                                    while (p = ++d && p && p[g] || (f = d = 0) || h.pop())
                                        if ((s ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (v && ((p[b] || (p[b] = {}))[e] = [T, f]), p === t)) break; return f -= i, f === r || 0 === f % r && f / r >= 0
                            }
                        }
                    },
                    PSEUDO: function(e, t) {
                        var n, r = o.pseudos[e] || o.setFilters[e.toLowerCase()] || at.error("unsupported pseudo: " + e);
                        return r[b] ? r(t) : r.length > 1 ? (n = [e, e, "", t], o.setFilters.hasOwnProperty(e.toLowerCase()) ? lt(function(e, n) {
                            var i, o = r(e, t),
                                a = o.length;
                            while (a--) i = F.call(e, o[a]), e[i] = !(n[i] = o[a])
                        }) : function(e) {
                            return r(e, 0, n)
                        }) : r
                    }
                },
                pseudos: {
                    not: lt(function(e) {
                        var t = [],
                            n = [],
                            r = l(e.replace(z, "$1"));
                        return r[b] ? lt(function(e, t, n, i) {
                            var o, a = r(e, null, i, []),
                                s = e.length;
                            while (s--)(o = a[s]) && (e[s] = !(t[s] = o))
                        }) : function(e, i, o) {
                            return t[0] = e, r(t, null, o, n), !n.pop()
                        }
                    }),
                    has: lt(function(e) {
                        return function(t) {
                            return at(e, t).length > 0
                        }
                    }),
                    contains: lt(function(e) {
                        return function(t) {
                            return (t.textContent || t.innerText || a(t)).indexOf(e) > -1
                        }
                    }),
                    lang: lt(function(e) {
                        return G.test(e || "") || at.error("unsupported lang: " + e), e = e.replace(rt, it).toLowerCase(),
                            function(t) {
                                var n;
                                do
                                    if (n = h ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
                                while ((t = t.parentNode) && 1 === t.nodeType);
                                return !1
                            }
                    }),
                    target: function(t) {
                        var n = e.location && e.location.hash;
                        return n && n.slice(1) === t.id
                    },
                    root: function(e) {
                        return e === d
                    },
                    focus: function(e) {
                        return e === f.activeElement && (!f.hasFocus || f.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
                    },
                    enabled: function(e) {
                        return e.disabled === !1
                    },
                    disabled: function(e) {
                        return e.disabled === !0
                    },
                    checked: function(e) {
                        var t = e.nodeName.toLowerCase();
                        return "input" === t && !!e.checked || "option" === t && !!e.selected
                    },
                    selected: function(e) {
                        return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
                    },
                    empty: function(e) {
                        for (e = e.firstChild; e; e = e.nextSibling)
                            if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType) return !1;
                        return !0
                    },
                    parent: function(e) {
                        return !o.pseudos.empty(e)
                    },
                    header: function(e) {
                        return tt.test(e.nodeName)
                    },
                    input: function(e) {
                        return et.test(e.nodeName)
                    },
                    button: function(e) {
                        var t = e.nodeName.toLowerCase();
                        return "input" === t && "button" === e.type || "button" === t
                    },
                    text: function(e) {
                        var t;
                        return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type)
                    },
                    first: ht(function() {
                        return [0]
                    }),
                    last: ht(function(e, t) {
                        return [t - 1]
                    }),
                    eq: ht(function(e, t, n) {
                        return [0 > n ? n + t : n]
                    }),
                    even: ht(function(e, t) {
                        var n = 0;
                        for (; t > n; n += 2) e.push(n);
                        return e
                    }),
                    odd: ht(function(e, t) {
                        var n = 1;
                        for (; t > n; n += 2) e.push(n);
                        return e
                    }),
                    lt: ht(function(e, t, n) {
                        var r = 0 > n ? n + t : n;
                        for (; --r >= 0;) e.push(r);
                        return e
                    }),
                    gt: ht(function(e, t, n) {
                        var r = 0 > n ? n + t : n;
                        for (; t > ++r;) e.push(r);
                        return e
                    })
                }
            }, o.pseudos.nth = o.pseudos.eq;
            for (n in {
                    radio: !0,
                    checkbox: !0,
                    file: !0,
                    password: !0,
                    image: !0
                }) o.pseudos[n] = ft(n);
            for (n in {
                    submit: !0,
                    reset: !0
                }) o.pseudos[n] = dt(n);

            function gt() {}
            gt.prototype = o.filters = o.pseudos, o.setFilters = new gt;

            function mt(e, t) {
                var n, r, i, a, s, l, u, c = k[e + " "];
                if (c) return t ? 0 : c.slice(0);
                s = e, l = [], u = o.preFilter;
                while (s) {
                    (!n || (r = X.exec(s))) && (r && (s = s.slice(r[0].length) || s), l.push(i = [])), n = !1, (r = U.exec(s)) && (n = r.shift(), i.push({
                        value: n,
                        type: r[0].replace(z, " ")
                    }), s = s.slice(n.length));
                    for (a in o.filter) !(r = Q[a].exec(s)) || u[a] && !(r = u[a](r)) || (n = r.shift(), i.push({
                        value: n,
                        type: a,
                        matches: r
                    }), s = s.slice(n.length));
                    if (!n) break
                }
                return t ? s.length : s ? at.error(e) : k(e, l).slice(0)
            }

            function yt(e) {
                var t = 0,
                    n = e.length,
                    r = "";
                for (; n > t; t++) r += e[t].value;
                return r
            }

            function vt(e, t, n) {
                var r = t.dir,
                    o = n && "parentNode" === r,
                    a = C++;
                return t.first ? function(t, n, i) {
                    while (t = t[r])
                        if (1 === t.nodeType || o) return e(t, n, i)
                } : function(t, n, s) {
                    var l, u, c, p = T + " " + a;
                    if (s) {
                        while (t = t[r])
                            if ((1 === t.nodeType || o) && e(t, n, s)) return !0
                    } else
                        while (t = t[r])
                            if (1 === t.nodeType || o)
                                if (c = t[b] || (t[b] = {}), (u = c[r]) && u[0] === p) {
                                    if ((l = u[1]) === !0 || l === i) return l === !0
                                } else if (u = c[r] = [p], u[1] = e(t, n, s) || i, u[1] === !0) return !0
                }
            }

            function bt(e) {
                return e.length > 1 ? function(t, n, r) {
                    var i = e.length;
                    while (i--)
                        if (!e[i](t, n, r)) return !1;
                    return !0
                } : e[0]
            }

            function xt(e, t, n, r, i) {
                var o, a = [],
                    s = 0,
                    l = e.length,
                    u = null != t;
                for (; l > s; s++)(o = e[s]) && (!n || n(o, r, i)) && (a.push(o), u && t.push(s));
                return a
            }

            function wt(e, t, n, r, i, o) {
                return r && !r[b] && (r = wt(r)), i && !i[b] && (i = wt(i, o)), lt(function(o, a, s, l) {
                    var u, c, p, f = [],
                        d = [],
                        h = a.length,
                        g = o || Nt(t || "*", s.nodeType ? [s] : s, []),
                        m = !e || !o && t ? g : xt(g, f, e, s, l),
                        y = n ? i || (o ? e : h || r) ? [] : a : m;
                    if (n && n(m, y, s, l), r) {
                        u = xt(y, d), r(u, [], s, l), c = u.length;
                        while (c--)(p = u[c]) && (y[d[c]] = !(m[d[c]] = p))
                    }
                    if (o) {
                        if (i || e) {
                            if (i) {
                                u = [], c = y.length;
                                while (c--)(p = y[c]) && u.push(m[c] = p);
                                i(null, y = [], u, l)
                            }
                            c = y.length;
                            while (c--)(p = y[c]) && (u = i ? F.call(o, p) : f[c]) > -1 && (o[u] = !(a[u] = p))
                        }
                    } else y = xt(y === a ? y.splice(h, y.length) : y), i ? i(null, a, y, l) : M.apply(a, y)
                })
            }

            function Tt(e) {
                var t, n, r, i = e.length,
                    a = o.relative[e[0].type],
                    s = a || o.relative[" "],
                    l = a ? 1 : 0,
                    c = vt(function(e) {
                        return e === t
                    }, s, !0),
                    p = vt(function(e) {
                        return F.call(t, e) > -1
                    }, s, !0),
                    f = [function(e, n, r) {
                        return !a && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r))
                    }];
                for (; i > l; l++)
                    if (n = o.relative[e[l].type]) f = [vt(bt(f), n)];
                    else {
                        if (n = o.filter[e[l].type].apply(null, e[l].matches), n[b]) {
                            for (r = ++l; i > r; r++)
                                if (o.relative[e[r].type]) break;
                            return wt(l > 1 && bt(f), l > 1 && yt(e.slice(0, l - 1).concat({
                                value: " " === e[l - 2].type ? "*" : ""
                            })).replace(z, "$1"), n, r > l && Tt(e.slice(l, r)), i > r && Tt(e = e.slice(r)), i > r && yt(e))
                        }
                        f.push(n)
                    }
                return bt(f)
            }

            function Ct(e, t) {
                var n = 0,
                    r = t.length > 0,
                    a = e.length > 0,
                    s = function(s, l, c, p, d) {
                        var h, g, m, y = [],
                            v = 0,
                            b = "0",
                            x = s && [],
                            w = null != d,
                            C = u,
                            N = s || a && o.find.TAG("*", d && l.parentNode || l),
                            k = T += null == C ? 1 : Math.random() || .1;
                        for (w && (u = l !== f && l, i = n); null != (h = N[b]); b++) {
                            if (a && h) {
                                g = 0;
                                while (m = e[g++])
                                    if (m(h, l, c)) {
                                        p.push(h);
                                        break
                                    }
                                w && (T = k, i = ++n)
                            }
                            r && ((h = !m && h) && v--, s && x.push(h))
                        }
                        if (v += b, r && b !== v) {
                            g = 0;
                            while (m = t[g++]) m(x, y, l, c);
                            if (s) {
                                if (v > 0)
                                    while (b--) x[b] || y[b] || (y[b] = q.call(p));
                                y = xt(y)
                            }
                            M.apply(p, y), w && !s && y.length > 0 && v + t.length > 1 && at.uniqueSort(p)
                        }
                        return w && (T = k, u = C), x
                    };
                return r ? lt(s) : s
            }
            l = at.compile = function(e, t) {
                var n, r = [],
                    i = [],
                    o = E[e + " "];
                if (!o) {
                    t || (t = mt(e)), n = t.length;
                    while (n--) o = Tt(t[n]), o[b] ? r.push(o) : i.push(o);
                    o = E(e, Ct(i, r))
                }
                return o
            };

            function Nt(e, t, n) {
                var r = 0,
                    i = t.length;
                for (; i > r; r++) at(e, t[r], n);
                return n
            }

            function kt(e, t, n, i) {
                var a, s, u, c, p, f = mt(e);
                if (!i && 1 === f.length) {
                    if (s = f[0] = f[0].slice(0), s.length > 2 && "ID" === (u = s[0]).type && r.getById && 9 === t.nodeType && h && o.relative[s[1].type]) {
                        if (t = (o.find.ID(u.matches[0].replace(rt, it), t) || [])[0], !t) return n;
                        e = e.slice(s.shift().value.length)
                    }
                    a = Q.needsContext.test(e) ? 0 : s.length;
                    while (a--) {
                        if (u = s[a], o.relative[c = u.type]) break;
                        if ((p = o.find[c]) && (i = p(u.matches[0].replace(rt, it), V.test(s[0].type) && t.parentNode || t))) {
                            if (s.splice(a, 1), e = i.length && yt(s), !e) return M.apply(n, i), n;
                            break
                        }
                    }
                }
                return l(e, f)(i, t, !h, n, V.test(e)), n
            }
            r.sortStable = b.split("").sort(A).join("") === b, r.detectDuplicates = S, p(), r.sortDetached = ut(function(e) {
                return 1 & e.compareDocumentPosition(f.createElement("div"))
            }), ut(function(e) {
                return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
            }) || ct("type|href|height|width", function(e, n, r) {
                return r ? t : e.getAttribute(n, "type" === n.toLowerCase() ? 1 : 2)
            }), r.attributes && ut(function(e) {
                return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
            }) || ct("value", function(e, n, r) {
                return r || "input" !== e.nodeName.toLowerCase() ? t : e.defaultValue
            }), ut(function(e) {
                return null == e.getAttribute("disabled")
            }) || ct(B, function(e, n, r) {
                var i;
                return r ? t : (i = e.getAttributeNode(n)) && i.specified ? i.value : e[n] === !0 ? n.toLowerCase() : null
            }), x.find = at, x.expr = at.selectors, x.expr[":"] = x.expr.pseudos, x.unique = at.uniqueSort, x.text = at.getText, x.isXMLDoc = at.isXML, x.contains = at.contains
        }(e);
    var O = {};

    function F(e) {
        var t = O[e] = {};
        return x.each(e.match(T) || [], function(e, n) {
            t[n] = !0
        }), t
    }
    x.Callbacks = function(e) {
        e = "string" == typeof e ? O[e] || F(e) : x.extend({}, e);
        var n, r, i, o, a, s, l = [],
            u = !e.once && [],
            c = function(t) {
                for (r = e.memory && t, i = !0, a = s || 0, s = 0, o = l.length, n = !0; l && o > a; a++)
                    if (l[a].apply(t[0], t[1]) === !1 && e.stopOnFalse) {
                        r = !1;
                        break
                    }
                n = !1, l && (u ? u.length && c(u.shift()) : r ? l = [] : p.disable())
            },
            p = {
                add: function() {
                    if (l) {
                        var t = l.length;
                        (function i(t) {
                            x.each(t, function(t, n) {
                                var r = x.type(n);
                                "function" === r ? e.unique && p.has(n) || l.push(n) : n && n.length && "string" !== r && i(n)
                            })
                        })(arguments), n ? o = l.length : r && (s = t, c(r))
                    }
                    return this
                },
                remove: function() {
                    return l && x.each(arguments, function(e, t) {
                        var r;
                        while ((r = x.inArray(t, l, r)) > -1) l.splice(r, 1), n && (o >= r && o--, a >= r && a--)
                    }), this
                },
                has: function(e) {
                    return e ? x.inArray(e, l) > -1 : !(!l || !l.length)
                },
                empty: function() {
                    return l = [], o = 0, this
                },
                disable: function() {
                    return l = u = r = t, this
                },
                disabled: function() {
                    return !l
                },
                lock: function() {
                    return u = t, r || p.disable(), this
                },
                locked: function() {
                    return !u
                },
                fireWith: function(e, t) {
                    return !l || i && !u || (t = t || [], t = [e, t.slice ? t.slice() : t], n ? u.push(t) : c(t)), this
                },
                fire: function() {
                    return p.fireWith(this, arguments), this
                },
                fired: function() {
                    return !!i
                }
            };
        return p
    }, x.extend({
        Deferred: function(e) {
            var t = [
                    ["resolve", "done", x.Callbacks("once memory"), "resolved"],
                    ["reject", "fail", x.Callbacks("once memory"), "rejected"],
                    ["notify", "progress", x.Callbacks("memory")]
                ],
                n = "pending",
                r = {
                    state: function() {
                        return n
                    },
                    always: function() {
                        return i.done(arguments).fail(arguments), this
                    },
                    then: function() {
                        var e = arguments;
                        return x.Deferred(function(n) {
                            x.each(t, function(t, o) {
                                var a = o[0],
                                    s = x.isFunction(e[t]) && e[t];
                                i[o[1]](function() {
                                    var e = s && s.apply(this, arguments);
                                    e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[a + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
                                })
                            }), e = null
                        }).promise()
                    },
                    promise: function(e) {
                        return null != e ? x.extend(e, r) : r
                    }
                },
                i = {};
            return r.pipe = r.then, x.each(t, function(e, o) {
                var a = o[2],
                    s = o[3];
                r[o[1]] = a.add, s && a.add(function() {
                    n = s
                }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function() {
                    return i[o[0] + "With"](this === i ? r : this, arguments), this
                }, i[o[0] + "With"] = a.fireWith
            }), r.promise(i), e && e.call(i, i), i
        },
        when: function(e) {
            var t = 0,
                n = g.call(arguments),
                r = n.length,
                i = 1 !== r || e && x.isFunction(e.promise) ? r : 0,
                o = 1 === i ? e : x.Deferred(),
                a = function(e, t, n) {
                    return function(r) {
                        t[e] = this, n[e] = arguments.length > 1 ? g.call(arguments) : r, n === s ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
                    }
                },
                s, l, u;
            if (r > 1)
                for (s = Array(r), l = Array(r), u = Array(r); r > t; t++) n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(a(t, u, n)).fail(o.reject).progress(a(t, l, s)) : --i;
            return i || o.resolveWith(u, n), o.promise()
        }
    }), x.support = function(t) {
        var n, r, o, s, l, u, c, p, f, d = a.createElement("div");
        if (d.setAttribute("className", "t"), d.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>", n = d.getElementsByTagName("*") || [], r = d.getElementsByTagName("a")[0], !r || !r.style || !n.length) return t;
        s = a.createElement("select"), u = s.appendChild(a.createElement("option")), o = d.getElementsByTagName("input")[0], r.style.cssText = "top:1px;float:left;opacity:.5", t.getSetAttribute = "t" !== d.className, t.leadingWhitespace = 3 === d.firstChild.nodeType, t.tbody = !d.getElementsByTagName("tbody").length, t.htmlSerialize = !!d.getElementsByTagName("link").length, t.style = /top/.test(r.getAttribute("style")), t.hrefNormalized = "/a" === r.getAttribute("href"), t.opacity = /^0.5/.test(r.style.opacity), t.cssFloat = !!r.style.cssFloat, t.checkOn = !!o.value, t.optSelected = u.selected, t.enctype = !!a.createElement("form").enctype, t.html5Clone = "<:nav></:nav>" !== a.createElement("nav").cloneNode(!0).outerHTML, t.inlineBlockNeedsLayout = !1, t.shrinkWrapBlocks = !1, t.pixelPosition = !1, t.deleteExpando = !0, t.noCloneEvent = !0, t.reliableMarginRight = !0, t.boxSizingReliable = !0, o.checked = !0, t.noCloneChecked = o.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !u.disabled;
        try {
            delete d.test
        } catch (h) {
            t.deleteExpando = !1
        }
        o = a.createElement("input"), o.setAttribute("value", ""), t.input = "" === o.getAttribute("value"), o.value = "t", o.setAttribute("type", "radio"), t.radioValue = "t" === o.value, o.setAttribute("checked", "t"), o.setAttribute("name", "t"), l = a.createDocumentFragment(), l.appendChild(o), t.appendChecked = o.checked, t.checkClone = l.cloneNode(!0).cloneNode(!0).lastChild.checked, d.attachEvent && (d.attachEvent("onclick", function() {
            t.noCloneEvent = !1
        }), d.cloneNode(!0).click());
        for (f in {
                submit: !0,
                change: !0,
                focusin: !0
            }) d.setAttribute(c = "on" + f, "t"), t[f + "Bubbles"] = c in e || d.attributes[c].expando === !1;
        d.style.backgroundClip = "content-box", d.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === d.style.backgroundClip;
        for (f in x(t)) break;
        return t.ownLast = "0" !== f, x(function() {
            var n, r, o, s = "padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",
                l = a.getElementsByTagName("body")[0];
            l && (n = a.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", l.appendChild(n).appendChild(d), d.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", o = d.getElementsByTagName("td"), o[0].style.cssText = "padding:0;margin:0;border:0;display:none", p = 0 === o[0].offsetHeight, o[0].style.display = "", o[1].style.display = "none", t.reliableHiddenOffsets = p && 0 === o[0].offsetHeight, d.innerHTML = "", d.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", x.swap(l, null != l.style.zoom ? {
                zoom: 1
            } : {}, function() {
                t.boxSizing = 4 === d.offsetWidth
            }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(d, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(d, null) || {
                width: "4px"
            }).width, r = d.appendChild(a.createElement("div")), r.style.cssText = d.style.cssText = s, r.style.marginRight = r.style.width = "0", d.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), typeof d.style.zoom !== i && (d.innerHTML = "", d.style.cssText = s + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = 3 === d.offsetWidth, d.style.display = "block", d.innerHTML = "<div></div>", d.firstChild.style.width = "5px", t.shrinkWrapBlocks = 3 !== d.offsetWidth, t.inlineBlockNeedsLayout && (l.style.zoom = 1)), l.removeChild(n), n = d = o = r = null)
        }), n = s = l = u = r = o = null, t
    }({});
    var B = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
        P = /([A-Z])/g;

    function R(e, n, r, i) {
        if (x.acceptData(e)) {
            var o, a, s = x.expando,
                l = e.nodeType,
                u = l ? x.cache : e,
                c = l ? e[s] : e[s] && s;
            if (c && u[c] && (i || u[c].data) || r !== t || "string" != typeof n) return c || (c = l ? e[s] = p.pop() || x.guid++ : s), u[c] || (u[c] = l ? {} : {
                toJSON: x.noop
            }), ("object" == typeof n || "function" == typeof n) && (i ? u[c] = x.extend(u[c], n) : u[c].data = x.extend(u[c].data, n)), a = u[c], i || (a.data || (a.data = {}), a = a.data), r !== t && (a[x.camelCase(n)] = r), "string" == typeof n ? (o = a[n], null == o && (o = a[x.camelCase(n)])) : o = a, o
        }
    }

    function W(e, t, n) {
        if (x.acceptData(e)) {
            var r, i, o = e.nodeType,
                a = o ? x.cache : e,
                s = o ? e[x.expando] : x.expando;
            if (a[s]) {
                if (t && (r = n ? a[s] : a[s].data)) {
                    x.isArray(t) ? t = t.concat(x.map(t, x.camelCase)) : t in r ? t = [t] : (t = x.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length;
                    while (i--) delete r[t[i]];
                    if (n ? !I(r) : !x.isEmptyObject(r)) return
                }(n || (delete a[s].data, I(a[s]))) && (o ? x.cleanData([e], !0) : x.support.deleteExpando || a != a.window ? delete a[s] : a[s] = null)
            }
        }
    }
    x.extend({
        cache: {},
        noData: {
            applet: !0,
            embed: !0,
            object: "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        },
        hasData: function(e) {
            return e = e.nodeType ? x.cache[e[x.expando]] : e[x.expando], !!e && !I(e)
        },
        data: function(e, t, n) {
            return R(e, t, n)
        },
        removeData: function(e, t) {
            return W(e, t)
        },
        _data: function(e, t, n) {
            return R(e, t, n, !0)
        },
        _removeData: function(e, t) {
            return W(e, t, !0)
        },
        acceptData: function(e) {
            if (e.nodeType && 1 !== e.nodeType && 9 !== e.nodeType) return !1;
            var t = e.nodeName && x.noData[e.nodeName.toLowerCase()];
            return !t || t !== !0 && e.getAttribute("classid") === t
        }
    }), x.fn.extend({
        data: function(e, n) {
            var r, i, o = null,
                a = 0,
                s = this[0];
            if (e === t) {
                if (this.length && (o = x.data(s), 1 === s.nodeType && !x._data(s, "parsedAttrs"))) {
                    for (r = s.attributes; r.length > a; a++) i = r[a].name, 0 === i.indexOf("data-") && (i = x.camelCase(i.slice(5)), $(s, i, o[i]));
                    x._data(s, "parsedAttrs", !0)
                }
                return o
            }
            return "object" == typeof e ? this.each(function() {
                x.data(this, e)
            }) : arguments.length > 1 ? this.each(function() {
                x.data(this, e, n)
            }) : s ? $(s, e, x.data(s, e)) : null
        },
        removeData: function(e) {
            return this.each(function() {
                x.removeData(this, e)
            })
        }
    });

    function $(e, n, r) {
        if (r === t && 1 === e.nodeType) {
            var i = "data-" + n.replace(P, "-$1").toLowerCase();
            if (r = e.getAttribute(i), "string" == typeof r) {
                try {
                    r = "true" === r ? !0 : "false" === r ? !1 : "null" === r ? null : +r + "" === r ? +r : B.test(r) ? x.parseJSON(r) : r
                } catch (o) {}
                x.data(e, n, r)
            } else r = t
        }
        return r
    }

    function I(e) {
        var t;
        for (t in e)
            if (("data" !== t || !x.isEmptyObject(e[t])) && "toJSON" !== t) return !1;
        return !0
    }
    x.extend({
        queue: function(e, n, r) {
            var i;
            return e ? (n = (n || "fx") + "queue", i = x._data(e, n), r && (!i || x.isArray(r) ? i = x._data(e, n, x.makeArray(r)) : i.push(r)), i || []) : t
        },
        dequeue: function(e, t) {
            t = t || "fx";
            var n = x.queue(e, t),
                r = n.length,
                i = n.shift(),
                o = x._queueHooks(e, t),
                a = function() {
                    x.dequeue(e, t)
                };
            "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, a, o)), !r && o && o.empty.fire()
        },
        _queueHooks: function(e, t) {
            var n = t + "queueHooks";
            return x._data(e, n) || x._data(e, n, {
                empty: x.Callbacks("once memory").add(function() {
                    x._removeData(e, t + "queue"), x._removeData(e, n)
                })
            })
        }
    }), x.fn.extend({
        queue: function(e, n) {
            var r = 2;
            return "string" != typeof e && (n = e, e = "fx", r--), r > arguments.length ? x.queue(this[0], e) : n === t ? this : this.each(function() {
                var t = x.queue(this, e, n);
                x._queueHooks(this, e), "fx" === e && "inprogress" !== t[0] && x.dequeue(this, e)
            })
        },
        dequeue: function(e) {
            return this.each(function() {
                x.dequeue(this, e)
            })
        },
        delay: function(e, t) {
            return e = x.fx ? x.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) {
                var r = setTimeout(t, e);
                n.stop = function() {
                    clearTimeout(r)
                }
            })
        },
        clearQueue: function(e) {
            return this.queue(e || "fx", [])
        },
        promise: function(e, n) {
            var r, i = 1,
                o = x.Deferred(),
                a = this,
                s = this.length,
                l = function() {
                    --i || o.resolveWith(a, [a])
                };
            "string" != typeof e && (n = e, e = t), e = e || "fx";
            while (s--) r = x._data(a[s], e + "queueHooks"), r && r.empty && (i++, r.empty.add(l));
            return l(), o.promise(n)
        }
    });
    var z, X, U = /[\t\r\n\f]/g,
        V = /\r/g,
        Y = /^(?:input|select|textarea|button|object)$/i,
        J = /^(?:a|area)$/i,
        G = /^(?:checked|selected)$/i,
        Q = x.support.getSetAttribute,
        K = x.support.input;
    x.fn.extend({
        attr: function(e, t) {
            return x.access(this, x.attr, e, t, arguments.length > 1)
        },
        removeAttr: function(e) {
            return this.each(function() {
                x.removeAttr(this, e)
            })
        },
        prop: function(e, t) {
            return x.access(this, x.prop, e, t, arguments.length > 1)
        },
        removeProp: function(e) {
            return e = x.propFix[e] || e, this.each(function() {
                try {
                    this[e] = t, delete this[e]
                } catch (n) {}
            })
        },
        addClass: function(e) {
            var t, n, r, i, o, a = 0,
                s = this.length,
                l = "string" == typeof e && e;
            if (x.isFunction(e)) return this.each(function(t) {
                x(this).addClass(e.call(this, t, this.className))
            });
            if (l)
                for (t = (e || "").match(T) || []; s > a; a++)
                    if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : " ")) {
                        o = 0;
                        while (i = t[o++]) 0 > r.indexOf(" " + i + " ") && (r += i + " ");
                        n.className = x.trim(r)
                    }
            return this
        },
        removeClass: function(e) {
            var t, n, r, i, o, a = 0,
                s = this.length,
                l = 0 === arguments.length || "string" == typeof e && e;
            if (x.isFunction(e)) return this.each(function(t) {
                x(this).removeClass(e.call(this, t, this.className))
            });
            if (l)
                for (t = (e || "").match(T) || []; s > a; a++)
                    if (n = this[a], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(U, " ") : "")) {
                        o = 0;
                        while (i = t[o++])
                            while (r.indexOf(" " + i + " ") >= 0) r = r.replace(" " + i + " ", " ");
                        n.className = e ? x.trim(r) : ""
                    }
            return this
        },
        toggleClass: function(e, t) {
            var n = typeof e;
            return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : x.isFunction(e) ? this.each(function(n) {
                x(this).toggleClass(e.call(this, n, this.className, t), t)
            }) : this.each(function() {
                if ("string" === n) {
                    var t, r = 0,
                        o = x(this),
                        a = e.match(T) || [];
                    while (t = a[r++]) o.hasClass(t) ? o.removeClass(t) : o.addClass(t)
                } else(n === i || "boolean" === n) && (this.className && x._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : x._data(this, "__className__") || "")
            })
        },
        hasClass: function(e) {
            var t = " " + e + " ",
                n = 0,
                r = this.length;
            for (; r > n; n++)
                if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(U, " ").indexOf(t) >= 0) return !0;
            return !1
        },
        val: function(e) {
            var n, r, i, o = this[0]; {
                if (arguments.length) return i = x.isFunction(e), this.each(function(n) {
                    var o;
                    1 === this.nodeType && (o = i ? e.call(this, n, x(this).val()) : e, null == o ? o = "" : "number" == typeof o ? o += "" : x.isArray(o) && (o = x.map(o, function(e) {
                        return null == e ? "" : e + ""
                    })), r = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()], r && "set" in r && r.set(this, o, "value") !== t || (this.value = o))
                });
                if (o) return r = x.valHooks[o.type] || x.valHooks[o.nodeName.toLowerCase()], r && "get" in r && (n = r.get(o, "value")) !== t ? n : (n = o.value, "string" == typeof n ? n.replace(V, "") : null == n ? "" : n)
            }
        }
    }), x.extend({
        valHooks: {
            option: {get: function(e) {
                    var t = x.find.attr(e, "value");
                    return null != t ? t : e.text
                }
            },
            select: {get: function(e) {
                    var t, n, r = e.options,
                        i = e.selectedIndex,
                        o = "select-one" === e.type || 0 > i,
                        a = o ? null : [],
                        s = o ? i + 1 : r.length,
                        l = 0 > i ? s : o ? i : 0;
                    for (; s > l; l++)
                        if (n = r[l], !(!n.selected && l !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) {
                            if (t = x(n).val(), o) return t;
                            a.push(t)
                        }
                    return a
                },
                set: function(e, t) {
                    var n, r, i = e.options,
                        o = x.makeArray(t),
                        a = i.length;
                    while (a--) r = i[a], (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0);
                    return n || (e.selectedIndex = -1), o
                }
            }
        },
        attr: function(e, n, r) {
            var o, a, s = e.nodeType;
            if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === i ? x.prop(e, n, r) : (1 === s && x.isXMLDoc(e) || (n = n.toLowerCase(), o = x.attrHooks[n] || (x.expr.match.bool.test(n) ? X : z)), r === t ? o && "get" in o && null !== (a = o.get(e, n)) ? a : (a = x.find.attr(e, n), null == a ? t : a) : null !== r ? o && "set" in o && (a = o.set(e, r, n)) !== t ? a : (e.setAttribute(n, r + ""), r) : (x.removeAttr(e, n), t))
        },
        removeAttr: function(e, t) {
            var n, r, i = 0,
                o = t && t.match(T);
            if (o && 1 === e.nodeType)
                while (n = o[i++]) r = x.propFix[n] || n, x.expr.match.bool.test(n) ? K && Q || !G.test(n) ? e[r] = !1 : e[x.camelCase("default-" + n)] = e[r] = !1 : x.attr(e, n, ""), e.removeAttribute(Q ? n : r)
        },
        attrHooks: {
            type: {set: function(e, t) {
                    if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) {
                        var n = e.value;
                        return e.setAttribute("type", t), n && (e.value = n), t
                    }
                }
            }
        },
        propFix: {
            "for": "htmlFor",
            "class": "className"
        },
        prop: function(e, n, r) {
            var i, o, a, s = e.nodeType;
            if (e && 3 !== s && 8 !== s && 2 !== s) return a = 1 !== s || !x.isXMLDoc(e), a && (n = x.propFix[n] || n, o = x.propHooks[n]), r !== t ? o && "set" in o && (i = o.set(e, r, n)) !== t ? i : e[n] = r : o && "get" in o && null !== (i = o.get(e, n)) ? i : e[n]
        },
        propHooks: {
            tabIndex: {get: function(e) {
                    var t = x.find.attr(e, "tabindex");
                    return t ? parseInt(t, 10) : Y.test(e.nodeName) || J.test(e.nodeName) && e.href ? 0 : -1
                }
            }
        }
    }), X = {set: function(e, t, n) {
            return t === !1 ? x.removeAttr(e, n) : K && Q || !G.test(n) ? e.setAttribute(!Q && x.propFix[n] || n, n) : e[x.camelCase("default-" + n)] = e[n] = !0, n
        }
    }, x.each(x.expr.match.bool.source.match(/\w+/g), function(e, n) {
        var r = x.expr.attrHandle[n] || x.find.attr;
        x.expr.attrHandle[n] = K && Q || !G.test(n) ? function(e, n, i) {
            var o = x.expr.attrHandle[n],
                a = i ? t : (x.expr.attrHandle[n] = t) != r(e, n, i) ? n.toLowerCase() : null;
            return x.expr.attrHandle[n] = o, a
        } : function(e, n, r) {
            return r ? t : e[x.camelCase("default-" + n)] ? n.toLowerCase() : null
        }
    }), K && Q || (x.attrHooks.value = {set: function(e, n, r) {
            return x.nodeName(e, "input") ? (e.defaultValue = n, t) : z && z.set(e, n, r)
        }
    }), Q || (z = {set: function(e, n, r) {
            var i = e.getAttributeNode(r);
            return i || e.setAttributeNode(i = e.ownerDocument.createAttribute(r)), i.value = n += "", "value" === r || n === e.getAttribute(r) ? n : t
        }
    }, x.expr.attrHandle.id = x.expr.attrHandle.name = x.expr.attrHandle.coords = function(e, n, r) {
        var i;
        return r ? t : (i = e.getAttributeNode(n)) && "" !== i.value ? i.value : null
    }, x.valHooks.button = {get: function(e, n) {
            var r = e.getAttributeNode(n);
            return r && r.specified ? r.value : t
        },
        set: z.set
    }, x.attrHooks.contenteditable = {set: function(e, t, n) {
            z.set(e, "" === t ? !1 : t, n)
        }
    }, x.each(["width", "height"], function(e, n) {
        x.attrHooks[n] = {set: function(e, r) {
                return "" === r ? (e.setAttribute(n, "auto"), r) : t
            }
        }
    })), x.support.hrefNormalized || x.each(["href", "src"], function(e, t) {
        x.propHooks[t] = {get: function(e) {
                return e.getAttribute(t, 4)
            }
        }
    }), x.support.style || (x.attrHooks.style = {get: function(e) {
            return e.style.cssText || t
        },
        set: function(e, t) {
            return e.style.cssText = t + ""
        }
    }), x.support.optSelected || (x.propHooks.selected = {get: function(e) {
            var t = e.parentNode;
            return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null
        }
    }), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
        x.propFix[this.toLowerCase()] = this
    }), x.support.enctype || (x.propFix.enctype = "encoding"), x.each(["radio", "checkbox"], function() {
        x.valHooks[this] = {set: function(e, n) {
                return x.isArray(n) ? e.checked = x.inArray(x(e).val(), n) >= 0 : t
            }
        }, x.support.checkOn || (x.valHooks[this].get = function(e) {
            return null === e.getAttribute("value") ? "on" : e.value
        })
    });
    var Z = /^(?:input|select|textarea)$/i,
        et = /^key/,
        tt = /^(?:mouse|contextmenu)|click/,
        nt = /^(?:focusinfocus|focusoutblur)$/,
        rt = /^([^.]*)(?:\.(.+)|)$/;

    function it() {
        return !0
    }

    function ot() {
        return !1
    }

    function at() {
        try {
            return a.activeElement
        } catch (e) {}
    }
    x.event = {
        global: {},
        add: function(e, n, r, o, a) {
            var s, l, u, c, p, f, d, h, g, m, y, v = x._data(e);
            if (v) {
                r.handler && (c = r, r = c.handler, a = c.selector), r.guid || (r.guid = x.guid++), (l = v.events) || (l = v.events = {}), (f = v.handle) || (f = v.handle = function(e) {
                    return typeof x === i || e && x.event.triggered === e.type ? t : x.event.dispatch.apply(f.elem, arguments)
                }, f.elem = e), n = (n || "").match(T) || [""], u = n.length;
                while (u--) s = rt.exec(n[u]) || [], g = y = s[1], m = (s[2] || "").split(".").sort(), g && (p = x.event.special[g] || {}, g = (a ? p.delegateType : p.bindType) || g, p = x.event.special[g] || {}, d = x.extend({
                    type: g,
                    origType: y,
                    data: o,
                    handler: r,
                    guid: r.guid,
                    selector: a,
                    needsContext: a && x.expr.match.needsContext.test(a),
                    namespace: m.join(".")
                }, c), (h = l[g]) || (h = l[g] = [], h.delegateCount = 0, p.setup && p.setup.call(e, o, m, f) !== !1 || (e.addEventListener ? e.addEventListener(g, f, !1) : e.attachEvent && e.attachEvent("on" + g, f))), p.add && (p.add.call(e, d), d.handler.guid || (d.handler.guid = r.guid)), a ? h.splice(h.delegateCount++, 0, d) : h.push(d), x.event.global[g] = !0);
                e = null
            }
        },
        remove: function(e, t, n, r, i) {
            var o, a, s, l, u, c, p, f, d, h, g, m = x.hasData(e) && x._data(e);
            if (m && (c = m.events)) {
                t = (t || "").match(T) || [""], u = t.length;
                while (u--)
                    if (s = rt.exec(t[u]) || [], d = g = s[1], h = (s[2] || "").split(".").sort(), d) {
                        p = x.event.special[d] || {}, d = (r ? p.delegateType : p.bindType) || d, f = c[d] || [], s = s[2] && RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), l = o = f.length;
                        while (o--) a = f[o], !i && g !== a.origType || n && n.guid !== a.guid || s && !s.test(a.namespace) || r && r !== a.selector && ("**" !== r || !a.selector) || (f.splice(o, 1), a.selector && f.delegateCount--, p.remove && p.remove.call(e, a));
                        l && !f.length && (p.teardown && p.teardown.call(e, h, m.handle) !== !1 || x.removeEvent(e, d, m.handle), delete c[d])
                    } else
                        for (d in c) x.event.remove(e, d + t[u], n, r, !0);
                x.isEmptyObject(c) && (delete m.handle, x._removeData(e, "events"))
            }
        },
        trigger: function(n, r, i, o) {
            var s, l, u, c, p, f, d, h = [i || a],
                g = v.call(n, "type") ? n.type : n,
                m = v.call(n, "namespace") ? n.namespace.split(".") : [];
            if (u = f = i = i || a, 3 !== i.nodeType && 8 !== i.nodeType && !nt.test(g + x.event.triggered) && (g.indexOf(".") >= 0 && (m = g.split("."), g = m.shift(), m.sort()), l = 0 > g.indexOf(":") && "on" + g, n = n[x.expando] ? n : new x.Event(g, "object" == typeof n && n), n.isTrigger = o ? 2 : 3, n.namespace = m.join("."), n.namespace_re = n.namespace ? RegExp("(^|\\.)" + m.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, n.result = t, n.target || (n.target = i), r = null == r ? [n] : x.makeArray(r, [n]), p = x.event.special[g] || {}, o || !p.trigger || p.trigger.apply(i, r) !== !1)) {
                if (!o && !p.noBubble && !x.isWindow(i)) {
                    for (c = p.delegateType || g, nt.test(c + g) || (u = u.parentNode); u; u = u.parentNode) h.push(u), f = u;
                    f === (i.ownerDocument || a) && h.push(f.defaultView || f.parentWindow || e)
                }
                d = 0;
                while ((u = h[d++]) && !n.isPropagationStopped()) n.type = d > 1 ? c : p.bindType || g, s = (x._data(u, "events") || {})[n.type] && x._data(u, "handle"), s && s.apply(u, r), s = l && u[l], s && x.acceptData(u) && s.apply && s.apply(u, r) === !1 && n.preventDefault();
                if (n.type = g, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(h.pop(), r) === !1) && x.acceptData(i) && l && i[g] && !x.isWindow(i)) {
                    f = i[l], f && (i[l] = null), x.event.triggered = g;
                    try {
                        i[g]()
                    } catch (y) {}
                    x.event.triggered = t, f && (i[l] = f)
                }
                return n.result
            }
        },
        dispatch: function(e) {
            e = x.event.fix(e);
            var n, r, i, o, a, s = [],
                l = g.call(arguments),
                u = (x._data(this, "events") || {})[e.type] || [],
                c = x.event.special[e.type] || {};
            if (l[0] = e, e.delegateTarget = this, !c.preDispatch || c.preDispatch.call(this, e) !== !1) {
                s = x.event.handlers.call(this, e, u), n = 0;
                while ((o = s[n++]) && !e.isPropagationStopped()) {
                    e.currentTarget = o.elem, a = 0;
                    while ((i = o.handlers[a++]) && !e.isImmediatePropagationStopped())(!e.namespace_re || e.namespace_re.test(i.namespace)) && (e.handleObj = i, e.data = i.data, r = ((x.event.special[i.origType] || {}).handle || i.handler).apply(o.elem, l), r !== t && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()))
                }
                return c.postDispatch && c.postDispatch.call(this, e), e.result
            }
        },
        handlers: function(e, n) {
            var r, i, o, a, s = [],
                l = n.delegateCount,
                u = e.target;
            if (l && u.nodeType && (!e.button || "click" !== e.type))
                for (; u != this; u = u.parentNode || this)
                    if (1 === u.nodeType && (u.disabled !== !0 || "click" !== e.type)) {
                        for (o = [], a = 0; l > a; a++) i = n[a], r = i.selector + " ", o[r] === t && (o[r] = i.needsContext ? x(r, this).index(u) >= 0 : x.find(r, this, null, [u]).length), o[r] && o.push(i);
                        o.length && s.push({
                            elem: u,
                            handlers: o
                        })
                    }
            return n.length > l && s.push({
                elem: this,
                handlers: n.slice(l)
            }), s
        },
        fix: function(e) {
            if (e[x.expando]) return e;
            var t, n, r, i = e.type,
                o = e,
                s = this.fixHooks[i];
            s || (this.fixHooks[i] = s = tt.test(i) ? this.mouseHooks : et.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new x.Event(o), t = r.length;
            while (t--) n = r[t], e[n] = o[n];
            return e.target || (e.target = o.srcElement || a), 3 === e.target.nodeType && (e.target = e.target.parentNode), e.metaKey = !!e.metaKey, s.filter ? s.filter(e, o) : e
        },
        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(e, t) {
                return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e
            }
        },
        mouseHooks: {
            props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
            filter: function(e, n) {
                var r, i, o, s = n.button,
                    l = n.fromElement;
                return null == e.pageX && null != n.clientX && (i = e.target.ownerDocument || a, o = i.documentElement, r = i.body, e.pageX = n.clientX + (o && o.scrollLeft || r && r.scrollLeft || 0) - (o && o.clientLeft || r && r.clientLeft || 0), e.pageY = n.clientY + (o && o.scrollTop || r && r.scrollTop || 0) - (o && o.clientTop || r && r.clientTop || 0)), !e.relatedTarget && l && (e.relatedTarget = l === e.target ? n.toElement : l), e.which || s === t || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e
            }
        },
        special: {
            load: {
                noBubble: !0
            },
            focus: {
                trigger: function() {
                    if (this !== at() && this.focus) try {
                        return this.focus(), !1
                    } catch (e) {}
                },
                delegateType: "focusin"
            },
            blur: {
                trigger: function() {
                    return this === at() && this.blur ? (this.blur(), !1) : t
                },
                delegateType: "focusout"
            },
            click: {
                trigger: function() {
                    return x.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : t
                },
                _default: function(e) {
                    return x.nodeName(e.target, "a")
                }
            },
            beforeunload: {
                postDispatch: function(e) {
                    e.result !== t && (e.originalEvent.returnValue = e.result)
                }
            }
        },
        simulate: function(e, t, n, r) {
            var i = x.extend(new x.Event, n, {
                type: e,
                isSimulated: !0,
                originalEvent: {}
            });
            r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
        }
    }, x.removeEvent = a.removeEventListener ? function(e, t, n) {
        e.removeEventListener && e.removeEventListener(t, n, !1)
    } : function(e, t, n) {
        var r = "on" + t;
        e.detachEvent && (typeof e[r] === i && (e[r] = null), e.detachEvent(r, n))
    }, x.Event = function(e, n) {
        return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? it : ot) : this.type = e, n && x.extend(this, n), this.timeStamp = e && e.timeStamp || x.now(), this[x.expando] = !0, t) : new x.Event(e, n)
    }, x.Event.prototype = {
        isDefaultPrevented: ot,
        isPropagationStopped: ot,
        isImmediatePropagationStopped: ot,
        preventDefault: function() {
            var e = this.originalEvent;
            this.isDefaultPrevented = it, e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1)
        },
        stopPropagation: function() {
            var e = this.originalEvent;
            this.isPropagationStopped = it, e && (e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0)
        },
        stopImmediatePropagation: function() {
            this.isImmediatePropagationStopped = it, this.stopPropagation()
        }
    }, x.each({
        mouseenter: "mouseover",
        mouseleave: "mouseout"
    }, function(e, t) {
        x.event.special[e] = {
            delegateType: t,
            bindType: t,
            handle: function(e) {
                var n, r = this,
                    i = e.relatedTarget,
                    o = e.handleObj;
                return (!i || i !== r && !x.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
            }
        }
    }), x.support.submitBubbles || (x.event.special.submit = {
        setup: function() {
            return x.nodeName(this, "form") ? !1 : (x.event.add(this, "click._submit keypress._submit", function(e) {
                var n = e.target,
                    r = x.nodeName(n, "input") || x.nodeName(n, "button") ? n.form : t;
                r && !x._data(r, "submitBubbles") && (x.event.add(r, "submit._submit", function(e) {
                    e._submit_bubble = !0
                }), x._data(r, "submitBubbles", !0))
            }), t)
        },
        postDispatch: function(e) {
            e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && x.event.simulate("submit", this.parentNode, e, !0))
        },
        teardown: function() {
            return x.nodeName(this, "form") ? !1 : (x.event.remove(this, "._submit"), t)
        }
    }), x.support.changeBubbles || (x.event.special.change = {
        setup: function() {
            return Z.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (x.event.add(this, "propertychange._change", function(e) {
                "checked" === e.originalEvent.propertyName && (this._just_changed = !0)
            }), x.event.add(this, "click._change", function(e) {
                this._just_changed && !e.isTrigger && (this._just_changed = !1), x.event.simulate("change", this, e, !0)
            })), !1) : (x.event.add(this, "beforeactivate._change", function(e) {
                var t = e.target;
                Z.test(t.nodeName) && !x._data(t, "changeBubbles") && (x.event.add(t, "change._change", function(e) {
                    !this.parentNode || e.isSimulated || e.isTrigger || x.event.simulate("change", this.parentNode, e, !0)
                }), x._data(t, "changeBubbles", !0))
            }), t)
        },
        handle: function(e) {
            var n = e.target;
            return this !== n || e.isSimulated || e.isTrigger || "radio" !== n.type && "checkbox" !== n.type ? e.handleObj.handler.apply(this, arguments) : t
        },
        teardown: function() {
            return x.event.remove(this, "._change"), !Z.test(this.nodeName)
        }
    }), x.support.focusinBubbles || x.each({
        focus: "focusin",
        blur: "focusout"
    }, function(e, t) {
        var n = 0,
            r = function(e) {
                x.event.simulate(t, e.target, x.event.fix(e), !0)
            };
        x.event.special[t] = {
            setup: function() {
                0 === n++ && a.addEventListener(e, r, !0)
            },
            teardown: function() {
                0 === --n && a.removeEventListener(e, r, !0)
            }
        }
    }), x.fn.extend({
        on: function(e, n, r, i, o) {
            var a, s;
            if ("object" == typeof e) {
                "string" != typeof n && (r = r || n, n = t);
                for (a in e) this.on(a, n, r, e[a], o);
                return this
            }
            if (null == r && null == i ? (i = n, r = n = t) : null == i && ("string" == typeof n ? (i = r, r = t) : (i = r, r = n, n = t)), i === !1) i = ot;
            else if (!i) return this;
            return 1 === o && (s = i, i = function(e) {
                return x().off(e), s.apply(this, arguments)
            }, i.guid = s.guid || (s.guid = x.guid++)), this.each(function() {
                x.event.add(this, e, i, r, n)
            })
        },
        one: function(e, t, n, r) {
            return this.on(e, t, n, r, 1)
        },
        off: function(e, n, r) {
            var i, o;
            if (e && e.preventDefault && e.handleObj) return i = e.handleObj, x(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this;
            if ("object" == typeof e) {
                for (o in e) this.off(o, n, e[o]);
                return this
            }
            return (n === !1 || "function" == typeof n) && (r = n, n = t), r === !1 && (r = ot), this.each(function() {
                x.event.remove(this, e, r, n)
            })
        },
        trigger: function(e, t) {
            return this.each(function() {
                x.event.trigger(e, t, this)
            })
        },
        triggerHandler: function(e, n) {
            var r = this[0];
            return r ? x.event.trigger(e, n, r, !0) : t
        }
    });
    var st = /^.[^:#\[\.,]*$/,
        lt = /^(?:parents|prev(?:Until|All))/,
        ut = x.expr.match.needsContext,
        ct = {
            children: !0,
            contents: !0,
            next: !0,
            prev: !0
        };
    x.fn.extend({
        find: function(e) {
            var t, n = [],
                r = this,
                i = r.length;
            if ("string" != typeof e) return this.pushStack(x(e).filter(function() {
                for (t = 0; i > t; t++)
                    if (x.contains(r[t], this)) return !0
            }));
            for (t = 0; i > t; t++) x.find(e, r[t], n);
            return n = this.pushStack(i > 1 ? x.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n
        },
        has: function(e) {
            var t, n = x(e, this),
                r = n.length;
            return this.filter(function() {
                for (t = 0; r > t; t++)
                    if (x.contains(this, n[t])) return !0
            })
        },
        not: function(e) {
            return this.pushStack(ft(this, e || [], !0))
        },
        filter: function(e) {
            return this.pushStack(ft(this, e || [], !1))
        },
        is: function(e) {
            return !!ft(this, "string" == typeof e && ut.test(e) ? x(e) : e || [], !1).length
        },
        closest: function(e, t) {
            var n, r = 0,
                i = this.length,
                o = [],
                a = ut.test(e) || "string" != typeof e ? x(e, t || this.context) : 0;
            for (; i > r; r++)
                for (n = this[r]; n && n !== t; n = n.parentNode)
                    if (11 > n.nodeType && (a ? a.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) {
                        n = o.push(n);
                        break
                    }
            return this.pushStack(o.length > 1 ? x.unique(o) : o)
        },
        index: function(e) {
            return e ? "string" == typeof e ? x.inArray(this[0], x(e)) : x.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
        },
        add: function(e, t) {
            var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e),
                r = x.merge(this.get(), n);
            return this.pushStack(x.unique(r))
        },
        addBack: function(e) {
            return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
        }
    });

    function pt(e, t) {
        do e = e[t]; while (e && 1 !== e.nodeType);
        return e
    }
    x.each({
        parent: function(e) {
            var t = e.parentNode;
            return t && 11 !== t.nodeType ? t : null
        },
        parents: function(e) {
            return x.dir(e, "parentNode")
        },
        parentsUntil: function(e, t, n) {
            return x.dir(e, "parentNode", n)
        },
        next: function(e) {
            return pt(e, "nextSibling")
        },
        prev: function(e) {
            return pt(e, "previousSibling")
        },
        nextAll: function(e) {
            return x.dir(e, "nextSibling")
        },
        prevAll: function(e) {
            return x.dir(e, "previousSibling")
        },
        nextUntil: function(e, t, n) {
            return x.dir(e, "nextSibling", n)
        },
        prevUntil: function(e, t, n) {
            return x.dir(e, "previousSibling", n)
        },
        siblings: function(e) {
            return x.sibling((e.parentNode || {}).firstChild, e)
        },
        children: function(e) {
            return x.sibling(e.firstChild)
        },
        contents: function(e) {
            return x.nodeName(e, "iframe") ? e.contentDocument || e.contentWindow.document : x.merge([], e.childNodes)
        }
    }, function(e, t) {
        x.fn[e] = function(n, r) {
            var i = x.map(this, t, n);
            return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = x.filter(r, i)), this.length > 1 && (ct[e] || (i = x.unique(i)), lt.test(e) && (i = i.reverse())), this.pushStack(i)
        }
    }), x.extend({
        filter: function(e, t, n) {
            var r = t[0];
            return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function(e) {
                return 1 === e.nodeType
            }))
        },
        dir: function(e, n, r) {
            var i = [],
                o = e[n];
            while (o && 9 !== o.nodeType && (r === t || 1 !== o.nodeType || !x(o).is(r))) 1 === o.nodeType && i.push(o), o = o[n];
            return i
        },
        sibling: function(e, t) {
            var n = [];
            for (; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
            return n
        }
    });

    function ft(e, t, n) {
        if (x.isFunction(t)) return x.grep(e, function(e, r) {
            return !!t.call(e, r, e) !== n
        });
        if (t.nodeType) return x.grep(e, function(e) {
            return e === t !== n
        });
        if ("string" == typeof t) {
            if (st.test(t)) return x.filter(t, e, n);
            t = x.filter(t, e)
        }
        return x.grep(e, function(e) {
            return x.inArray(e, t) >= 0 !== n
        })
    }

    function dt(e) {
        var t = ht.split("|"),
            n = e.createDocumentFragment();
        if (n.createElement)
            while (t.length) n.createElement(t.pop());
        return n
    }
    var ht = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
        gt = / jQuery\d+="(?:null|\d+)"/g,
        mt = RegExp("<(?:" + ht + ")[\\s/>]", "i"),
        yt = /^\s+/,
        vt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
        bt = /<([\w:]+)/,
        xt = /<tbody/i,
        wt = /<|&#?\w+;/,
        Tt = /<(?:script|style|link)/i,
        Ct = /^(?:checkbox|radio)$/i,
        Nt = /checked\s*(?:[^=]|=\s*.checked.)/i,
        kt = /^$|\/(?:java|ecma)script/i,
        Et = /^true\/(.*)/,
        St = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
        At = {
            option: [1, "<select multiple='multiple'>", "</select>"],
            legend: [1, "<fieldset>", "</fieldset>"],
            area: [1, "<map>", "</map>"],
            param: [1, "<object>", "</object>"],
            thead: [1, "<table>", "</table>"],
            tr: [2, "<table><tbody>", "</tbody></table>"],
            col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
            td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
            _default: x.support.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"]
        },
        jt = dt(a),
        Dt = jt.appendChild(a.createElement("div"));
    At.optgroup = At.option, At.tbody = At.tfoot = At.colgroup = At.caption = At.thead, At.th = At.td, x.fn.extend({
        text: function(e) {
            return x.access(this, function(e) {
                return e === t ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || a).createTextNode(e))
            }, null, e, arguments.length)
        },
        append: function() {
            return this.domManip(arguments, function(e) {
                if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
                    var t = Lt(this, e);
                    t.appendChild(e)
                }
            })
        },
        prepend: function() {
            return this.domManip(arguments, function(e) {
                if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
                    var t = Lt(this, e);
                    t.insertBefore(e, t.firstChild)
                }
            })
        },
        before: function() {
            return this.domManip(arguments, function(e) {
                this.parentNode && this.parentNode.insertBefore(e, this)
            })
        },
        after: function() {
            return this.domManip(arguments, function(e) {
                this.parentNode && this.parentNode.insertBefore(e, this.nextSibling)
            })
        },
        remove: function(e, t) {
            var n, r = e ? x.filter(e, this) : this,
                i = 0;
            for (; null != (n = r[i]); i++) t || 1 !== n.nodeType || x.cleanData(Ft(n)), n.parentNode && (t && x.contains(n.ownerDocument, n) && _t(Ft(n, "script")), n.parentNode.removeChild(n));
            return this
        },
        empty: function() {
            var e, t = 0;
            for (; null != (e = this[t]); t++) {
                1 === e.nodeType && x.cleanData(Ft(e, !1));
                while (e.firstChild) e.removeChild(e.firstChild);
                e.options && x.nodeName(e, "select") && (e.options.length = 0)
            }
            return this
        },
        clone: function(e, t) {
            return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function() {
                return x.clone(this, e, t)
            })
        },
        html: function(e) {
            return x.access(this, function(e) {
                var n = this[0] || {},
                    r = 0,
                    i = this.length;
                if (e === t) return 1 === n.nodeType ? n.innerHTML.replace(gt, "") : t;
                if (!("string" != typeof e || Tt.test(e) || !x.support.htmlSerialize && mt.test(e) || !x.support.leadingWhitespace && yt.test(e) || At[(bt.exec(e) || ["", ""])[1].toLowerCase()])) {
                    e = e.replace(vt, "<$1></$2>");
                    try {
                        for (; i > r; r++) n = this[r] || {}, 1 === n.nodeType && (x.cleanData(Ft(n, !1)), n.innerHTML = e);
                        n = 0
                    } catch (o) {}
                }
                n && this.empty().append(e)
            }, null, e, arguments.length)
        },
        replaceWith: function() {
            var e = x.map(this, function(e) {
                    return [e.nextSibling, e.parentNode]
                }),
                t = 0;
            return this.domManip(arguments, function(n) {
                var r = e[t++],
                    i = e[t++];
                i && (r && r.parentNode !== i && (r = this.nextSibling), x(this).remove(), i.insertBefore(n, r))
            }, !0), t ? this : this.remove()
        },
        detach: function(e) {
            return this.remove(e, !0)
        },
        domManip: function(e, t, n) {
            e = d.apply([], e);
            var r, i, o, a, s, l, u = 0,
                c = this.length,
                p = this,
                f = c - 1,
                h = e[0],
                g = x.isFunction(h);
            if (g || !(1 >= c || "string" != typeof h || x.support.checkClone) && Nt.test(h)) return this.each(function(r) {
                var i = p.eq(r);
                g && (e[0] = h.call(this, r, i.html())), i.domManip(e, t, n)
            });
            if (c && (l = x.buildFragment(e, this[0].ownerDocument, !1, !n && this), r = l.firstChild, 1 === l.childNodes.length && (l = r), r)) {
                for (a = x.map(Ft(l, "script"), Ht), o = a.length; c > u; u++) i = l, u !== f && (i = x.clone(i, !0, !0), o && x.merge(a, Ft(i, "script"))), t.call(this[u], i, u);
                if (o)
                    for (s = a[a.length - 1].ownerDocument, x.map(a, qt), u = 0; o > u; u++) i = a[u], kt.test(i.type || "") && !x._data(i, "globalEval") && x.contains(s, i) && (i.src ? x._evalUrl(i.src) : x.globalEval((i.text || i.textContent || i.innerHTML || "").replace(St, "")));
                l = r = null
            }
            return this
        }
    });

    function Lt(e, t) {
        return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
    }

    function Ht(e) {
        return e.type = (null !== x.find.attr(e, "type")) + "/" + e.type, e
    }

    function qt(e) {
        var t = Et.exec(e.type);
        return t ? e.type = t[1] : e.removeAttribute("type"), e
    }

    function _t(e, t) {
        var n, r = 0;
        for (; null != (n = e[r]); r++) x._data(n, "globalEval", !t || x._data(t[r], "globalEval"))
    }

    function Mt(e, t) {
        if (1 === t.nodeType && x.hasData(e)) {
            var n, r, i, o = x._data(e),
                a = x._data(t, o),
                s = o.events;
            if (s) {
                delete a.handle, a.events = {};
                for (n in s)
                    for (r = 0, i = s[n].length; i > r; r++) x.event.add(t, n, s[n][r])
            }
            a.data && (a.data = x.extend({}, a.data))
        }
    }

    function Ot(e, t) {
        var n, r, i;
        if (1 === t.nodeType) {
            if (n = t.nodeName.toLowerCase(), !x.support.noCloneEvent && t[x.expando]) {
                i = x._data(t);
                for (r in i.events) x.removeEvent(t, r, i.handle);
                t.removeAttribute(x.expando)
            }
            "script" === n && t.text !== e.text ? (Ht(t).text = e.text, qt(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), x.support.html5Clone && e.innerHTML && !x.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Ct.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
        }
    }
    x.each({
        appendTo: "append",
        prependTo: "prepend",
        insertBefore: "before",
        insertAfter: "after",
        replaceAll: "replaceWith"
    }, function(e, t) {
        x.fn[e] = function(e) {
            var n, r = 0,
                i = [],
                o = x(e),
                a = o.length - 1;
            for (; a >= r; r++) n = r === a ? this : this.clone(!0), x(o[r])[t](n), h.apply(i, n.get());
            return this.pushStack(i)
        }
    });

    function Ft(e, n) {
        var r, o, a = 0,
            s = typeof e.getElementsByTagName !== i ? e.getElementsByTagName(n || "*") : typeof e.querySelectorAll !== i ? e.querySelectorAll(n || "*") : t;
        if (!s)
            for (s = [], r = e.childNodes || e; null != (o = r[a]); a++) !n || x.nodeName(o, n) ? s.push(o) : x.merge(s, Ft(o, n));
        return n === t || n && x.nodeName(e, n) ? x.merge([e], s) : s
    }

    function Bt(e) {
        Ct.test(e.type) && (e.defaultChecked = e.checked)
    }
    x.extend({
        clone: function(e, t, n) {
            var r, i, o, a, s, l = x.contains(e.ownerDocument, e);
            if (x.support.html5Clone || x.isXMLDoc(e) || !mt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (Dt.innerHTML = e.outerHTML, Dt.removeChild(o = Dt.firstChild)), !(x.support.noCloneEvent && x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e)))
                for (r = Ft(o), s = Ft(e), a = 0; null != (i = s[a]); ++a) r[a] && Ot(i, r[a]);
            if (t)
                if (n)
                    for (s = s || Ft(e), r = r || Ft(o), a = 0; null != (i = s[a]); a++) Mt(i, r[a]);
                else Mt(e, o);
            return r = Ft(o, "script"), r.length > 0 && _t(r, !l && Ft(e, "script")), r = s = i = null, o
        },
        buildFragment: function(e, t, n, r) {
            var i, o, a, s, l, u, c, p = e.length,
                f = dt(t),
                d = [],
                h = 0;
            for (; p > h; h++)
                if (o = e[h], o || 0 === o)
                    if ("object" === x.type(o)) x.merge(d, o.nodeType ? [o] : o);
                    else if (wt.test(o)) {
                s = s || f.appendChild(t.createElement("div")), l = (bt.exec(o) || ["", ""])[1].toLowerCase(), c = At[l] || At._default, s.innerHTML = c[1] + o.replace(vt, "<$1></$2>") + c[2], i = c[0];
                while (i--) s = s.lastChild;
                if (!x.support.leadingWhitespace && yt.test(o) && d.push(t.createTextNode(yt.exec(o)[0])), !x.support.tbody) {
                    o = "table" !== l || xt.test(o) ? "<table>" !== c[1] || xt.test(o) ? 0 : s : s.firstChild, i = o && o.childNodes.length;
                    while (i--) x.nodeName(u = o.childNodes[i], "tbody") && !u.childNodes.length && o.removeChild(u)
                }
                x.merge(d, s.childNodes), s.textContent = "";
                while (s.firstChild) s.removeChild(s.firstChild);
                s = f.lastChild
            } else d.push(t.createTextNode(o));
            s && f.removeChild(s), x.support.appendChecked || x.grep(Ft(d, "input"), Bt), h = 0;
            while (o = d[h++])
                if ((!r || -1 === x.inArray(o, r)) && (a = x.contains(o.ownerDocument, o), s = Ft(f.appendChild(o), "script"), a && _t(s), n)) {
                    i = 0;
                    while (o = s[i++]) kt.test(o.type || "") && n.push(o)
                }
            return s = null, f
        },
        cleanData: function(e, t) {
            var n, r, o, a, s = 0,
                l = x.expando,
                u = x.cache,
                c = x.support.deleteExpando,
                f = x.event.special;
            for (; null != (n = e[s]); s++)
                if ((t || x.acceptData(n)) && (o = n[l], a = o && u[o])) {
                    if (a.events)
                        for (r in a.events) f[r] ? x.event.remove(n, r) : x.removeEvent(n, r, a.handle);
                    u[o] && (delete u[o], c ? delete n[l] : typeof n.removeAttribute !== i ? n.removeAttribute(l) : n[l] = null, p.push(o))
                }
        },
        _evalUrl: function(e) {
            return x.ajax({
                url: e,
                type: "GET",
                dataType: "script",
                async: !1,
                global: !1,
                "throws": !0
            })
        }
    }), x.fn.extend({
        wrapAll: function(e) {
            if (x.isFunction(e)) return this.each(function(t) {
                x(this).wrapAll(e.call(this, t))
            });
            if (this[0]) {
                var t = x(e, this[0].ownerDocument).eq(0).clone(!0);
                this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
                    var e = this;
                    while (e.firstChild && 1 === e.firstChild.nodeType) e = e.firstChild;
                    return e
                }).append(this)
            }
            return this
        },
        wrapInner: function(e) {
            return x.isFunction(e) ? this.each(function(t) {
                x(this).wrapInner(e.call(this, t))
            }) : this.each(function() {
                var t = x(this),
                    n = t.contents();
                n.length ? n.wrapAll(e) : t.append(e)
            })
        },
        wrap: function(e) {
            var t = x.isFunction(e);
            return this.each(function(n) {
                x(this).wrapAll(t ? e.call(this, n) : e)
            })
        },
        unwrap: function() {
            return this.parent().each(function() {
                x.nodeName(this, "body") || x(this).replaceWith(this.childNodes)
            }).end()
        }
    });
    var Pt, Rt, Wt, $t = /alpha\([^)]*\)/i,
        It = /opacity\s*=\s*([^)]*)/,
        zt = /^(top|right|bottom|left)$/,
        Xt = /^(none|table(?!-c[ea]).+)/,
        Ut = /^margin/,
        Vt = RegExp("^(" + w + ")(.*)$", "i"),
        Yt = RegExp("^(" + w + ")(?!px)[a-z%]+$", "i"),
        Jt = RegExp("^([+-])=(" + w + ")", "i"),
        Gt = {
            BODY: "block"
        },
        Qt = {
            position: "absolute",
            visibility: "hidden",
            display: "block"
        },
        Kt = {
            letterSpacing: 0,
            fontWeight: 400
        },
        Zt = ["Top", "Right", "Bottom", "Left"],
        en = ["Webkit", "O", "Moz", "ms"];

    function tn(e, t) {
        if (t in e) return t;
        var n = t.charAt(0).toUpperCase() + t.slice(1),
            r = t,
            i = en.length;
        while (i--)
            if (t = en[i] + n, t in e) return t;
        return r
    }

    function nn(e, t) {
        return e = t || e, "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e)
    }

    function rn(e, t) {
        var n, r, i, o = [],
            a = 0,
            s = e.length;
        for (; s > a; a++) r = e[a], r.style && (o[a] = x._data(r, "olddisplay"), n = r.style.display, t ? (o[a] || "none" !== n || (r.style.display = ""), "" === r.style.display && nn(r) && (o[a] = x._data(r, "olddisplay", ln(r.nodeName)))) : o[a] || (i = nn(r), (n && "none" !== n || !i) && x._data(r, "olddisplay", i ? n : x.css(r, "display"))));
        for (a = 0; s > a; a++) r = e[a], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
        return e
    }
    x.fn.extend({
        css: function(e, n) {
            return x.access(this, function(e, n, r) {
                var i, o, a = {},
                    s = 0;
                if (x.isArray(n)) {
                    for (o = Rt(e), i = n.length; i > s; s++) a[n[s]] = x.css(e, n[s], !1, o);
                    return a
                }
                return r !== t ? x.style(e, n, r) : x.css(e, n)
            }, e, n, arguments.length > 1)
        },
        show: function() {
            return rn(this, !0)
        },
        hide: function() {
            return rn(this)
        },
        toggle: function(e) {
            return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
                nn(this) ? x(this).show() : x(this).hide()
            })
        }
    }), x.extend({
        cssHooks: {
            opacity: {get: function(e, t) {
                    if (t) {
                        var n = Wt(e, "opacity");
                        return "" === n ? "1" : n
                    }
                }
            }
        },
        cssNumber: {
            columnCount: !0,
            fillOpacity: !0,
            fontWeight: !0,
            lineHeight: !0,
            opacity: !0,
            order: !0,
            orphans: !0,
            widows: !0,
            zIndex: !0,
            zoom: !0
        },
        cssProps: {
            "float": x.support.cssFloat ? "cssFloat" : "styleFloat"
        },
        style: function(e, n, r, i) {
            if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
                var o, a, s, l = x.camelCase(n),
                    u = e.style;
                if (n = x.cssProps[l] || (x.cssProps[l] = tn(u, l)), s = x.cssHooks[n] || x.cssHooks[l], r === t) return s && "get" in s && (o = s.get(e, !1, i)) !== t ? o : u[n];
                if (a = typeof r, "string" === a && (o = Jt.exec(r)) && (r = (o[1] + 1) * o[2] + parseFloat(x.css(e, n)), a = "number"), !(null == r || "number" === a && isNaN(r) || ("number" !== a || x.cssNumber[l] || (r += "px"), x.support.clearCloneStyle || "" !== r || 0 !== n.indexOf("background") || (u[n] = "inherit"), s && "set" in s && (r = s.set(e, r, i)) === t))) try {
                    u[n] = r
                } catch (c) {}
            }
        },
        css: function(e, n, r, i) {
            var o, a, s, l = x.camelCase(n);
            return n = x.cssProps[l] || (x.cssProps[l] = tn(e.style, l)), s = x.cssHooks[n] || x.cssHooks[l], s && "get" in s && (a = s.get(e, !0, r)), a === t && (a = Wt(e, n, i)), "normal" === a && n in Kt && (a = Kt[n]), "" === r || r ? (o = parseFloat(a), r === !0 || x.isNumeric(o) ? o || 0 : a) : a
        }
    }), e.getComputedStyle ? (Rt = function(t) {
        return e.getComputedStyle(t, null)
    }, Wt = function(e, n, r) {
        var i, o, a, s = r || Rt(e),
            l = s ? s.getPropertyValue(n) || s[n] : t,
            u = e.style;
        return s && ("" !== l || x.contains(e.ownerDocument, e) || (l = x.style(e, n)), Yt.test(l) && Ut.test(n) && (i = u.width, o = u.minWidth, a = u.maxWidth, u.minWidth = u.maxWidth = u.width = l, l = s.width, u.width = i, u.minWidth = o, u.maxWidth = a)), l
    }) : a.documentElement.currentStyle && (Rt = function(e) {
        return e.currentStyle
    }, Wt = function(e, n, r) {
        var i, o, a, s = r || Rt(e),
            l = s ? s[n] : t,
            u = e.style;
        return null == l && u && u[n] && (l = u[n]), Yt.test(l) && !zt.test(n) && (i = u.left, o = e.runtimeStyle, a = o && o.left, a && (o.left = e.currentStyle.left), u.left = "fontSize" === n ? "1em" : l, l = u.pixelLeft + "px", u.left = i, a && (o.left = a)), "" === l ? "auto" : l
    });

    function on(e, t, n) {
        var r = Vt.exec(t);
        return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
    }

    function an(e, t, n, r, i) {
        var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0,
            a = 0;
        for (; 4 > o; o += 2) "margin" === n && (a += x.css(e, n + Zt[o], !0, i)), r ? ("content" === n && (a -= x.css(e, "padding" + Zt[o], !0, i)), "margin" !== n && (a -= x.css(e, "border" + Zt[o] + "Width", !0, i))) : (a += x.css(e, "padding" + Zt[o], !0, i), "padding" !== n && (a += x.css(e, "border" + Zt[o] + "Width", !0, i)));
        return a
    }

    function sn(e, t, n) {
        var r = !0,
            i = "width" === t ? e.offsetWidth : e.offsetHeight,
            o = Rt(e),
            a = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o);
        if (0 >= i || null == i) {
            if (i = Wt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Yt.test(i)) return i;
            r = a && (x.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0
        }
        return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
    }

    function ln(e) {
        var t = a,
            n = Gt[e];
        return n || (n = un(e, t), "none" !== n && n || (Pt = (Pt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (Pt[0].contentWindow || Pt[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = un(e, t), Pt.detach()), Gt[e] = n), n
    }

    function un(e, t) {
        var n = x(t.createElement(e)).appendTo(t.body),
            r = x.css(n[0], "display");
        return n.remove(), r
    }
    x.each(["height", "width"], function(e, n) {
        x.cssHooks[n] = {get: function(e, r, i) {
                return r ? 0 === e.offsetWidth && Xt.test(x.css(e, "display")) ? x.swap(e, Qt, function() {
                    return sn(e, n, i)
                }) : sn(e, n, i) : t
            },
            set: function(e, t, r) {
                var i = r && Rt(e);
                return on(e, t, r ? an(e, n, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0)
            }
        }
    }), x.support.opacity || (x.cssHooks.opacity = {get: function(e, t) {
            return It.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : ""
        },
        set: function(e, t) {
            var n = e.style,
                r = e.currentStyle,
                i = x.isNumeric(t) ? "alpha(opacity=" + 100 * t + ")" : "",
                o = r && r.filter || n.filter || "";
            n.zoom = 1, (t >= 1 || "" === t) && "" === x.trim(o.replace($t, "")) && n.removeAttribute && (n.removeAttribute("filter"), "" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
        }
    }), x(function() {
        x.support.reliableMarginRight || (x.cssHooks.marginRight = {get: function(e, n) {
                return n ? x.swap(e, {
                    display: "inline-block"
                }, Wt, [e, "marginRight"]) : t
            }
        }), !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function(e, n) {
            x.cssHooks[n] = {get: function(e, r) {
                    return r ? (r = Wt(e, n), Yt.test(r) ? x(e).position()[n] + "px" : r) : t
                }
            }
        })
    }), x.expr && x.expr.filters && (x.expr.filters.hidden = function(e) {
        return 0 >= e.offsetWidth && 0 >= e.offsetHeight || !x.support.reliableHiddenOffsets && "none" === (e.style && e.style.display || x.css(e, "display"))
    }, x.expr.filters.visible = function(e) {
        return !x.expr.filters.hidden(e)
    }), x.each({
        margin: "",
        padding: "",
        border: "Width"
    }, function(e, t) {
        x.cssHooks[e + t] = {
            expand: function(n) {
                var r = 0,
                    i = {},
                    o = "string" == typeof n ? n.split(" ") : [n];
                for (; 4 > r; r++) i[e + Zt[r] + t] = o[r] || o[r - 2] || o[0];
                return i
            }
        }, Ut.test(e) || (x.cssHooks[e + t].set = on)
    });
    var cn = /%20/g,
        pn = /\[\]$/,
        fn = /\r?\n/g,
        dn = /^(?:submit|button|image|reset|file)$/i,
        hn = /^(?:input|select|textarea|keygen)/i;
    x.fn.extend({
        serialize: function() {
            return x.param(this.serializeArray())
        },
        serializeArray: function() {
            return this.map(function() {
                var e = x.prop(this, "elements");
                return e ? x.makeArray(e) : this
            }).filter(function() {
                var e = this.type;
                return this.name && !x(this).is(":disabled") && hn.test(this.nodeName) && !dn.test(e) && (this.checked || !Ct.test(e))
            }).map(function(e, t) {
                var n = x(this).val();
                return null == n ? null : x.isArray(n) ? x.map(n, function(e) {
                    return {
                        name: t.name,
                        value: e.replace(fn, "\r\n")
                    }
                }) : {
                    name: t.name,
                    value: n.replace(fn, "\r\n")
                }
            }).get()
        }
    }), x.param = function(e, n) {
        var r, i = [],
            o = function(e, t) {
                t = x.isFunction(t) ? t() : null == t ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
            };
        if (n === t && (n = x.ajaxSettings && x.ajaxSettings.traditional), x.isArray(e) || e.jquery && !x.isPlainObject(e)) x.each(e, function() {
            o(this.name, this.value)
        });
        else
            for (r in e) gn(r, e[r], n, o);
        return i.join("&").replace(cn, "+")
    };

    function gn(e, t, n, r) {
        var i;
        if (x.isArray(t)) x.each(t, function(t, i) {
            n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
        });
        else if (n || "object" !== x.type(t)) r(e, t);
        else
            for (i in t) gn(e + "[" + i + "]", t[i], n, r)
    }
    x.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(e, t) {
        x.fn[t] = function(e, n) {
            return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
        }
    }), x.fn.extend({
        hover: function(e, t) {
            return this.mouseenter(e).mouseleave(t || e)
        },
        bind: function(e, t, n) {
            return this.on(e, null, t, n)
        },
        unbind: function(e, t) {
            return this.off(e, null, t)
        },
        delegate: function(e, t, n, r) {
            return this.on(t, e, n, r)
        },
        undelegate: function(e, t, n) {
            return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
        }
    });
    var mn, yn, vn = x.now(),
        bn = /\?/,
        xn = /#.*$/,
        wn = /([?&])_=[^&]*/,
        Tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm,
        Cn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
        Nn = /^(?:GET|HEAD)$/,
        kn = /^\/\//,
        En = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,
        Sn = x.fn.load,
        An = {},
        jn = {},
        Dn = "*/".concat("*");
    try {
        yn = o.href
    } catch (Ln) {
        yn = a.createElement("a"), yn.href = "", yn = yn.href
    }
    mn = En.exec(yn.toLowerCase()) || [];

    function Hn(e) {
        return function(t, n) {
            "string" != typeof t && (n = t, t = "*");
            var r, i = 0,
                o = t.toLowerCase().match(T) || [];
            if (x.isFunction(n))
                while (r = o[i++]) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
        }
    }

    function qn(e, n, r, i) {
        var o = {},
            a = e === jn;

        function s(l) {
            var u;
            return o[l] = !0, x.each(e[l] || [], function(e, l) {
                var c = l(n, r, i);
                return "string" != typeof c || a || o[c] ? a ? !(u = c) : t : (n.dataTypes.unshift(c), s(c), !1)
            }), u
        }
        return s(n.dataTypes[0]) || !o["*"] && s("*")
    }

    function _n(e, n) {
        var r, i, o = x.ajaxSettings.flatOptions || {};
        for (i in n) n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
        return r && x.extend(!0, e, r), e
    }
    x.fn.load = function(e, n, r) {
        if ("string" != typeof e && Sn) return Sn.apply(this, arguments);
        var i, o, a, s = this,
            l = e.indexOf(" ");
        return l >= 0 && (i = e.slice(l, e.length), e = e.slice(0, l)), x.isFunction(n) ? (r = n, n = t) : n && "object" == typeof n && (a = "POST"), s.length > 0 && x.ajax({
            url: e,
            type: a,
            dataType: "html",
            data: n
        }).done(function(e) {
            o = arguments, s.html(i ? x("<div>").append(x.parseHTML(e)).find(i) : e)
        }).complete(r && function(e, t) {
            s.each(r, o || [e.responseText, t, e])
        }), this
    }, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
        x.fn[t] = function(e) {
            return this.on(t, e)
        }
    }), x.extend({
        active: 0,
        lastModified: {},
        etag: {},
        ajaxSettings: {
            url: yn,
            type: "GET",
            isLocal: Cn.test(mn[1]),
            global: !0,
            processData: !0,
            async: !0,
            contentType: "application/x-www-form-urlencoded; charset=UTF-8",
            accepts: {
                "*": Dn,
                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": x.parseJSON,
                "text xml": x.parseXML
            },
            flatOptions: {
                url: !0,
                context: !0
            }
        },
        ajaxSetup: function(e, t) {
            return t ? _n(_n(e, x.ajaxSettings), t) : _n(x.ajaxSettings, e)
        },
        ajaxPrefilter: Hn(An),
        ajaxTransport: Hn(jn),
        ajax: function(e, n) {
            "object" == typeof e && (n = e, e = t), n = n || {};
            var r, i, o, a, s, l, u, c, p = x.ajaxSetup({}, n),
                f = p.context || p,
                d = p.context && (f.nodeType || f.jquery) ? x(f) : x.event,
                h = x.Deferred(),
                g = x.Callbacks("once memory"),
                m = p.statusCode || {},
                y = {},
                v = {},
                b = 0,
                w = "canceled",
                C = {
                    readyState: 0,
                    getResponseHeader: function(e) {
                        var t;
                        if (2 === b) {
                            if (!c) {
                                c = {};
                                while (t = Tn.exec(a)) c[t[1].toLowerCase()] = t[2]
                            }
                            t = c[e.toLowerCase()]
                        }
                        return null == t ? null : t
                    },
                    getAllResponseHeaders: function() {
                        return 2 === b ? a : null
                    },
                    setRequestHeader: function(e, t) {
                        var n = e.toLowerCase();
                        return b || (e = v[n] = v[n] || e, y[e] = t), this
                    },
                    overrideMimeType: function(e) {
                        return b || (p.mimeType = e), this
                    },
                    statusCode: function(e) {
                        var t;
                        if (e)
                            if (2 > b)
                                for (t in e) m[t] = [m[t], e[t]];
                            else C.always(e[C.status]);
                        return this
                    },
                    abort: function(e) {
                        var t = e || w;
                        return u && u.abort(t), k(0, t), this
                    }
                };
            if (h.promise(C).complete = g.add, C.success = C.done, C.error = C.fail, p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"), p.type = n.method || n.type || p.method || p.type, p.dataTypes = x.trim(p.dataType || "*").toLowerCase().match(T) || [""], null == p.crossDomain && (r = En.exec(p.url.toLowerCase()), p.crossDomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? "80" : "443")) === (mn[3] || ("http:" === mn[1] ? "80" : "443")))), p.data && p.processData && "string" != typeof p.data && (p.data = x.param(p.data, p.traditional)), qn(An, p, n, C), 2 === b) return C;
            l = p.global, l && 0 === x.active++ && x.event.trigger("ajaxStart"), p.type = p.type.toUpperCase(), p.hasContent = !Nn.test(p.type), o = p.url, p.hasContent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data, delete p.data), p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)), p.ifModified && (x.lastModified[o] && C.setRequestHeader("If-Modified-Since", x.lastModified[o]), x.etag[o] && C.setRequestHeader("If-None-Match", x.etag[o])), (p.data && p.hasContent && p.contentType !== !1 || n.contentType) && C.setRequestHeader("Content-Type", p.contentType), C.setRequestHeader("Accept", p.dataTypes[0] && p.accepts[p.dataTypes[0]] ? p.accepts[p.dataTypes[0]] + ("*" !== p.dataTypes[0] ? ", " + Dn + "; q=0.01" : "") : p.accepts["*"]);
            for (i in p.headers) C.setRequestHeader(i, p.headers[i]);
            if (p.beforeSend && (p.beforeSend.call(f, C, p) === !1 || 2 === b)) return C.abort();
            w = "abort";
            for (i in {
                    success: 1,
                    error: 1,
                    complete: 1
                }) C[i](p[i]);
            if (u = qn(jn, p, n, C)) {
                C.readyState = 1, l && d.trigger("ajaxSend", [C, p]), p.async && p.timeout > 0 && (s = setTimeout(function() {
                    C.abort("timeout")
                }, p.timeout));
                try {
                    b = 1, u.send(y, k)
                } catch (N) {
                    if (!(2 > b)) throw N;
                    k(-1, N)
                }
            } else k(-1, "No Transport");

            function k(e, n, r, i) {
                var c, y, v, w, T, N = n;
                2 !== b && (b = 2, s && clearTimeout(s), u = t, a = i || "", C.readyState = e > 0 ? 4 : 0, c = e >= 200 && 300 > e || 304 === e, r && (w = Mn(p, C, r)), w = On(p, w, C, c), c ? (p.ifModified && (T = C.getResponseHeader("Last-Modified"), T && (x.lastModified[o] = T), T = C.getResponseHeader("etag"), T && (x.etag[o] = T)), 204 === e || "HEAD" === p.type ? N = "nocontent" : 304 === e ? N = "notmodified" : (N = w.state, y = w.data, v = w.error, c = !v)) : (v = N, (e || !N) && (N = "error", 0 > e && (e = 0))), C.status = e, C.statusText = (n || N) + "", c ? h.resolveWith(f, [y, N, C]) : h.rejectWith(f, [C, N, v]), C.statusCode(m), m = t, l && d.trigger(c ? "ajaxSuccess" : "ajaxError", [C, p, c ? y : v]), g.fireWith(f, [C, N]), l && (d.trigger("ajaxComplete", [C, p]), --x.active || x.event.trigger("ajaxStop")))
            }
            return C
        },
        getJSON: function(e, t, n) {
            return x.get(e, t, n, "json")
        },
        getScript: function(e, n) {
            return x.get(e, t, n, "script")
        }
    }), x.each(["get", "post"], function(e, n) {
        x[n] = function(e, r, i, o) {
            return x.isFunction(r) && (o = o || i, i = r, r = t), x.ajax({
                url: e,
                type: n,
                dataType: o,
                data: r,
                success: i
            })
        }
    });

    function Mn(e, n, r) {
        var i, o, a, s, l = e.contents,
            u = e.dataTypes;
        while ("*" === u[0]) u.shift(), o === t && (o = e.mimeType || n.getResponseHeader("Content-Type"));
        if (o)
            for (s in l)
                if (l[s] && l[s].test(o)) {
                    u.unshift(s);
                    break
                }
        if (u[0] in r) a = u[0];
        else {
            for (s in r) {
                if (!u[0] || e.converters[s + " " + u[0]]) {
                    a = s;
                    break
                }
                i || (i = s)
            }
            a = a || i
        }
        return a ? (a !== u[0] && u.unshift(a), r[a]) : t
    }

    function On(e, t, n, r) {
        var i, o, a, s, l, u = {},
            c = e.dataTypes.slice();
        if (c[1])
            for (a in e.converters) u[a.toLowerCase()] = e.converters[a];
        o = c.shift();
        while (o)
            if (e.responseFields[o] && (n[e.responseFields[o]] = t), !l && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), l = o, o = c.shift())
                if ("*" === o) o = l;
                else if ("*" !== l && l !== o) {
            if (a = u[l + " " + o] || u["* " + o], !a)
                for (i in u)
                    if (s = i.split(" "), s[1] === o && (a = u[l + " " + s[0]] || u["* " + s[0]])) {
                        a === !0 ? a = u[i] : u[i] !== !0 && (o = s[0], c.unshift(s[1]));
                        break
                    }
            if (a !== !0)
                if (a && e["throws"]) t = a(t);
                else try {
                    t = a(t)
                } catch (p) {
                    return {
                        state: "parsererror",
                        error: a ? p : "No conversion from " + l + " to " + o
                    }
                }
        }
        return {
            state: "success",
            data: t
        }
    }
    x.ajaxSetup({
        accepts: {
            script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
        },
        contents: {
            script: /(?:java|ecma)script/
        },
        converters: {
            "text script": function(e) {
                return x.globalEval(e), e
            }
        }
    }), x.ajaxPrefilter("script", function(e) {
        e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1)
    }), x.ajaxTransport("script", function(e) {
        if (e.crossDomain) {
            var n, r = a.head || x("head")[0] || a.documentElement;
            return {
                send: function(t, i) {
                    n = a.createElement("script"), n.async = !0, e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, t) {
                        (t || !n.readyState || /loaded|complete/.test(n.readyState)) && (n.onload = n.onreadystatechange = null, n.parentNode && n.parentNode.removeChild(n), n = null, t || i(200, "success"))
                    }, r.insertBefore(n, r.firstChild)
                },
                abort: function() {
                    n && n.onload(t, !0)
                }
            }
        }
    });
    var Fn = [],
        Bn = /(=)\?(?=&|$)|\?\?/;
    x.ajaxSetup({
        jsonp: "callback",
        jsonpCallback: function() {
            var e = Fn.pop() || x.expando + "_" + vn++;
            return this[e] = !0, e
        }
    }), x.ajaxPrefilter("json jsonp", function(n, r, i) {
        var o, a, s, l = n.jsonp !== !1 && (Bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Bn.test(n.data) && "data");
        return l || "jsonp" === n.dataTypes[0] ? (o = n.jsonpCallback = x.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, l ? n[l] = n[l].replace(Bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o), n.converters["script json"] = function() {
            return s || x.error(o + " was not called"), s[0]
        }, n.dataTypes[0] = "json", a = e[o], e[o] = function() {
            s = arguments
        }, i.always(function() {
            e[o] = a, n[o] && (n.jsonpCallback = r.jsonpCallback, Fn.push(o)), s && x.isFunction(a) && a(s[0]), s = a = t
        }), "script") : t
    });
    var Pn, Rn, Wn = 0,
        $n = e.ActiveXObject && function() {
            var e;
            for (e in Pn) Pn[e](t, !0)
        };

    function In() {
        try {
            return new e.XMLHttpRequest
        } catch (t) {}
    }

    function zn() {
        try {
            return new e.ActiveXObject("Microsoft.XMLHTTP")
        } catch (t) {}
    }
    x.ajaxSettings.xhr = e.ActiveXObject ? function() {
        return !this.isLocal && In() || zn()
    } : In, Rn = x.ajaxSettings.xhr(), x.support.cors = !!Rn && "withCredentials" in Rn, Rn = x.support.ajax = !!Rn, Rn && x.ajaxTransport(function(n) {
        if (!n.crossDomain || x.support.cors) {
            var r;
            return {
                send: function(i, o) {
                    var a, s, l = n.xhr();
                    if (n.username ? l.open(n.type, n.url, n.async, n.username, n.password) : l.open(n.type, n.url, n.async), n.xhrFields)
                        for (s in n.xhrFields) l[s] = n.xhrFields[s];
                    n.mimeType && l.overrideMimeType && l.overrideMimeType(n.mimeType), n.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest");
                    try {
                        for (s in i) l.setRequestHeader(s, i[s])
                    } catch (u) {}
                    l.send(n.hasContent && n.data || null), r = function(e, i) {
                        var s, u, c, p;
                        try {
                            if (r && (i || 4 === l.readyState))
                                if (r = t, a && (l.onreadystatechange = x.noop, $n && delete Pn[a]), i) 4 !== l.readyState && l.abort();
                                else {
                                    p = {}, s = l.status, u = l.getAllResponseHeaders(), "string" == typeof l.responseText && (p.text = l.responseText);
                                    try {
                                        c = l.statusText
                                    } catch (f) {
                                        c = ""
                                    }
                                    s || !n.isLocal || n.crossDomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
                                }
                        } catch (d) {
                            i || o(-1, d)
                        }
                        p && o(s, c, p, u)
                    }, n.async ? 4 === l.readyState ? setTimeout(r) : (a = ++Wn, $n && (Pn || (Pn = {}, x(e).unload($n)), Pn[a] = r), l.onreadystatechange = r) : r()
                },
                abort: function() {
                    r && r(t, !0)
                }
            }
        }
    });
    var Xn, Un, Vn = /^(?:toggle|show|hide)$/,
        Yn = RegExp("^(?:([+-])=|)(" + w + ")([a-z%]*)$", "i"),
        Jn = /queueHooks$/,
        Gn = [nr],
        Qn = {
            "*": [function(e, t) {
                var n = this.createTween(e, t),
                    r = n.cur(),
                    i = Yn.exec(t),
                    o = i && i[3] || (x.cssNumber[e] ? "" : "px"),
                    a = (x.cssNumber[e] || "px" !== o && +r) && Yn.exec(x.css(n.elem, e)),
                    s = 1,
                    l = 20;
                if (a && a[3] !== o) {
                    o = o || a[3], i = i || [], a = +r || 1;
                    do s = s || ".5", a /= s, x.style(n.elem, e, a + o); while (s !== (s = n.cur() / r) && 1 !== s && --l)
                }
                return i && (a = n.start = +a || +r || 0, n.unit = o, n.end = i[1] ? a + (i[1] + 1) * i[2] : +i[2]), n
            }]
        };

    function Kn() {
        return setTimeout(function() {
            Xn = t
        }), Xn = x.now()
    }

    function Zn(e, t, n) {
        var r, i = (Qn[t] || []).concat(Qn["*"]),
            o = 0,
            a = i.length;
        for (; a > o; o++)
            if (r = i[o].call(n, t, e)) return r
    }

    function er(e, t, n) {
        var r, i, o = 0,
            a = Gn.length,
            s = x.Deferred().always(function() {
                delete l.elem
            }),
            l = function() {
                if (i) return !1;
                var t = Xn || Kn(),
                    n = Math.max(0, u.startTime + u.duration - t),
                    r = n / u.duration || 0,
                    o = 1 - r,
                    a = 0,
                    l = u.tweens.length;
                for (; l > a; a++) u.tweens[a].run(o);
                return s.notifyWith(e, [u, o, n]), 1 > o && l ? n : (s.resolveWith(e, [u]), !1)
            },
            u = s.promise({
                elem: e,
                props: x.extend({}, t),
                opts: x.extend(!0, {
                    specialEasing: {}
                }, n),
                originalProperties: t,
                originalOptions: n,
                startTime: Xn || Kn(),
                duration: n.duration,
                tweens: [],
                createTween: function(t, n) {
                    var r = x.Tween(e, u.opts, t, n, u.opts.specialEasing[t] || u.opts.easing);
                    return u.tweens.push(r), r
                },
                stop: function(t) {
                    var n = 0,
                        r = t ? u.tweens.length : 0;
                    if (i) return this;
                    for (i = !0; r > n; n++) u.tweens[n].run(1);
                    return t ? s.resolveWith(e, [u, t]) : s.rejectWith(e, [u, t]), this
                }
            }),
            c = u.props;
        for (tr(c, u.opts.specialEasing); a > o; o++)
            if (r = Gn[o].call(u, e, c, u.opts)) return r;
        return x.map(c, Zn, u), x.isFunction(u.opts.start) && u.opts.start.call(e, u), x.fx.timer(x.extend(l, {
            elem: e,
            anim: u,
            queue: u.opts.queue
        })), u.progress(u.opts.progress).done(u.opts.done, u.opts.complete).fail(u.opts.fail).always(u.opts.always)
    }

    function tr(e, t) {
        var n, r, i, o, a;
        for (n in e)
            if (r = x.camelCase(n), i = t[r], o = e[n], x.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), a = x.cssHooks[r], a && "expand" in a) {
                o = a.expand(o), delete e[r];
                for (n in o) n in e || (e[n] = o[n], t[n] = i)
            } else t[r] = i
    }
    x.Animation = x.extend(er, {
        tweener: function(e, t) {
            x.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
            var n, r = 0,
                i = e.length;
            for (; i > r; r++) n = e[r], Qn[n] = Qn[n] || [], Qn[n].unshift(t)
        },
        prefilter: function(e, t) {
            t ? Gn.unshift(e) : Gn.push(e)
        }
    });

    function nr(e, t, n) {
        var r, i, o, a, s, l, u = this,
            c = {},
            p = e.style,
            f = e.nodeType && nn(e),
            d = x._data(e, "fxshow");
        n.queue || (s = x._queueHooks(e, "fx"), null == s.unqueued && (s.unqueued = 0, l = s.empty.fire, s.empty.fire = function() {
            s.unqueued || l()
        }), s.unqueued++, u.always(function() {
            u.always(function() {
                s.unqueued--, x.queue(e, "fx").length || s.empty.fire()
            })
        })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (x.support.inlineBlockNeedsLayout && "inline" !== ln(e.nodeName) ? p.zoom = 1 : p.display = "inline-block")), n.overflow && (p.overflow = "hidden", x.support.shrinkWrapBlocks || u.always(function() {
            p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2]
        }));
        for (r in t)
            if (i = t[r], Vn.exec(i)) {
                if (delete t[r], o = o || "toggle" === i, i === (f ? "hide" : "show")) continue;
                c[r] = d && d[r] || x.style(e, r)
            }
        if (!x.isEmptyObject(c)) {
            d ? "hidden" in d && (f = d.hidden) : d = x._data(e, "fxshow", {}), o && (d.hidden = !f), f ? x(e).show() : u.done(function() {
                x(e).hide()
            }), u.done(function() {
                var t;
                x._removeData(e, "fxshow");
                for (t in c) x.style(e, t, c[t])
            });
            for (r in c) a = Zn(f ? d[r] : 0, r, u), r in d || (d[r] = a.start, f && (a.end = a.start, a.start = "width" === r || "height" === r ? 1 : 0))
        }
    }

    function rr(e, t, n, r, i) {
        return new rr.prototype.init(e, t, n, r, i)
    }
    x.Tween = rr, rr.prototype = {
        constructor: rr,
        init: function(e, t, n, r, i, o) {
            this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (x.cssNumber[n] ? "" : "px")
        },
        cur: function() {
            var e = rr.propHooks[this.prop];
            return e && e.get ? e.get(this) : rr.propHooks._default.get(this)
        },
        run: function(e) {
            var t, n = rr.propHooks[this.prop];
            return this.pos = t = this.options.duration ? x.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : rr.propHooks._default.set(this), this
        }
    }, rr.prototype.init.prototype = rr.prototype, rr.propHooks = {
        _default: {get: function(e) {
                var t;
                return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
            },
            set: function(e) {
                x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
            }
        }
    }, rr.propHooks.scrollTop = rr.propHooks.scrollLeft = {set: function(e) {
            e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
        }
    }, x.each(["toggle", "show", "hide"], function(e, t) {
        var n = x.fn[t];
        x.fn[t] = function(e, r, i) {
            return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
        }
    }), x.fn.extend({
        fadeTo: function(e, t, n, r) {
            return this.filter(nn).css("opacity", 0).show().end().animate({
                opacity: t
            }, e, n, r)
        },
        animate: function(e, t, n, r) {
            var i = x.isEmptyObject(e),
                o = x.speed(t, n, r),
                a = function() {
                    var t = er(this, x.extend({}, e), o);
                    (i || x._data(this, "finish")) && t.stop(!0)
                };
            return a.finish = a, i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
        },
        stop: function(e, n, r) {
            var i = function(e) {
                var t = e.stop;
                delete e.stop, t(r)
            };
            return "string" != typeof e && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() {
                var t = !0,
                    n = null != e && e + "queueHooks",
                    o = x.timers,
                    a = x._data(this);
                if (n) a[n] && a[n].stop && i(a[n]);
                else
                    for (n in a) a[n] && a[n].stop && Jn.test(n) && i(a[n]);
                for (n = o.length; n--;) o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r), t = !1, o.splice(n, 1));
                (t || !r) && x.dequeue(this, e)
            })
        },
        finish: function(e) {
            return e !== !1 && (e = e || "fx"), this.each(function() {
                var t, n = x._data(this),
                    r = n[e + "queue"],
                    i = n[e + "queueHooks"],
                    o = x.timers,
                    a = r ? r.length : 0;
                for (n.finish = !0, x.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
                for (t = 0; a > t; t++) r[t] && r[t].finish && r[t].finish.call(this);
                delete n.finish
            })
        }
    });

    function ir(e, t) {
        var n, r = {
                height: e
            },
            i = 0;
        for (t = t ? 1 : 0; 4 > i; i += 2 - t) n = Zt[i], r["margin" + n] = r["padding" + n] = e;
        return t && (r.opacity = r.width = e), r
    }
    x.each({
        slideDown: ir("show"),
        slideUp: ir("hide"),
        slideToggle: ir("toggle"),
        fadeIn: {
            opacity: "show"
        },
        fadeOut: {
            opacity: "hide"
        },
        fadeToggle: {
            opacity: "toggle"
        }
    }, function(e, t) {
        x.fn[e] = function(e, n, r) {
            return this.animate(t, e, n, r)
        }
    }), x.speed = function(e, t, n) {
        var r = e && "object" == typeof e ? x.extend({}, e) : {
            complete: n || !n && t || x.isFunction(e) && e,
            duration: e,
            easing: n && t || t && !x.isFunction(t) && t
        };
        return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
            x.isFunction(r.old) && r.old.call(this), r.queue && x.dequeue(this, r.queue)
        }, r
    }, x.easing = {
        linear: function(e) {
            return e
        },
        swing: function(e) {
            return .5 - Math.cos(e * Math.PI) / 2
        }
    }, x.timers = [], x.fx = rr.prototype.init, x.fx.tick = function() {
        var e, n = x.timers,
            r = 0;
        for (Xn = x.now(); n.length > r; r++) e = n[r], e() || n[r] !== e || n.splice(r--, 1);
        n.length || x.fx.stop(), Xn = t
    }, x.fx.timer = function(e) {
        e() && x.timers.push(e) && x.fx.start()
    }, x.fx.interval = 13, x.fx.start = function() {
        Un || (Un = setInterval(x.fx.tick, x.fx.interval))
    }, x.fx.stop = function() {
        clearInterval(Un), Un = null
    }, x.fx.speeds = {
        slow: 600,
        fast: 200,
        _default: 400
    }, x.fx.step = {}, x.expr && x.expr.filters && (x.expr.filters.animated = function(e) {
        return x.grep(x.timers, function(t) {
            return e === t.elem
        }).length
    }), x.fn.offset = function(e) {
        if (arguments.length) return e === t ? this : this.each(function(t) {
            x.offset.setOffset(this, e, t)
        });
        var n, r, o = {
                top: 0,
                left: 0
            },
            a = this[0],
            s = a && a.ownerDocument;
        if (s) return n = s.documentElement, x.contains(n, a) ? (typeof a.getBoundingClientRect !== i && (o = a.getBoundingClientRect()), r = or(s), {
            top: o.top + (r.pageYOffset || n.scrollTop) - (n.clientTop || 0),
            left: o.left + (r.pageXOffset || n.scrollLeft) - (n.clientLeft || 0)
        }) : o
    }, x.offset = {
        setOffset: function(e, t, n) {
            var r = x.css(e, "position");
            "static" === r && (e.style.position = "relative");
            var i = x(e),
                o = i.offset(),
                a = x.css(e, "top"),
                s = x.css(e, "left"),
                l = ("absolute" === r || "fixed" === r) && x.inArray("auto", [a, s]) > -1,
                u = {},
                c = {},
                p, f;
            l ? (c = i.position(), p = c.top, f = c.left) : (p = parseFloat(a) || 0, f = parseFloat(s) || 0), x.isFunction(t) && (t = t.call(e, n, o)), null != t.top && (u.top = t.top - o.top + p), null != t.left && (u.left = t.left - o.left + f), "using" in t ? t.using.call(e, u) : i.css(u)
        }
    }, x.fn.extend({
        position: function() {
            if (this[0]) {
                var e, t, n = {
                        top: 0,
                        left: 0
                    },
                    r = this[0];
                return "fixed" === x.css(r, "position") ? t = r.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), x.nodeName(e[0], "html") || (n = e.offset()), n.top += x.css(e[0], "borderTopWidth", !0), n.left += x.css(e[0], "borderLeftWidth", !0)), {
                    top: t.top - n.top - x.css(r, "marginTop", !0),
                    left: t.left - n.left - x.css(r, "marginLeft", !0)
                }
            }
        },
        offsetParent: function() {
            return this.map(function() {
                var e = this.offsetParent || s;
                while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position")) e = e.offsetParent;
                return e || s
            })
        }
    }), x.each({
        scrollLeft: "pageXOffset",
        scrollTop: "pageYOffset"
    }, function(e, n) {
        var r = /Y/.test(n);
        x.fn[e] = function(i) {
            return x.access(this, function(e, i, o) {
                var a = or(e);
                return o === t ? a ? n in a ? a[n] : a.document.documentElement[i] : e[i] : (a ? a.scrollTo(r ? x(a).scrollLeft() : o, r ? o : x(a).scrollTop()) : e[i] = o, t)
            }, e, i, arguments.length, null)
        }
    });

    function or(e) {
        return x.isWindow(e) ? e : 9 === e.nodeType ? e.defaultView || e.parentWindow : !1
    }
    x.each({
        Height: "height",
        Width: "width"
    }, function(e, n) {
        x.each({
            padding: "inner" + e,
            content: n,
            "": "outer" + e
        }, function(r, i) {
            x.fn[i] = function(i, o) {
                var a = arguments.length && (r || "boolean" != typeof i),
                    s = r || (i === !0 || o === !0 ? "margin" : "border");
                return x.access(this, function(n, r, i) {
                    var o;
                    return x.isWindow(n) ? n.document.documentElement["client" + e] : 9 === n.nodeType ? (o = n.documentElement, Math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? x.css(n, r, s) : x.style(n, r, i, s)
                }, n, a ? i : t, a, null)
            }
        })
    }), x.fn.size = function() {
        return this.length
    }, x.fn.andSelf = x.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : (e.jQuery = e.$ = x, "function" == typeof define && define.amd && define("jquery", [], function() {
        return x
    }))
})(window);
                                    

#13 JavaScript::Eval (size: 2741, repeated: 1) - SHA256: e2d7c864459fd2e14e93f636e122d5d4a02ba09927f14052f6a05f9df4c38bce

                                        /**
 * BaseKit Performance
 *
 * @link http://www.basekit.com
 * @copyright Copyright &copy; 2013 BaseKit Platform Ltd
 */

(function(window, beaconEnabled, beaconUrl, start, sampleMax) {
    function track() {
        var profile = {},
            end = Date.now(),
            timing = null,
            navigation = null,
            params = [],
            gif = null;

        if (typeof beaconEnabled === 'undefined' || (beaconEnabled && beaconEnabled !== 1)) {
            return;
        }

        if (typeof beaconUrl === 'undefined' || typeof beaconUrl !== 'string') {
            throw new Error('BaseKit_Performance: beaconUrl undefined or not a string.');
        }

        if (typeof sampleMax === 'undefined') {
            throw new Error('BaseKit_Performance: sampleMax undefined.');
        }

        if (Math.ceil(Math.random() * sampleMax) !== 1) {
            return;
        }

        if (start && end) {
            profile.jsPageLoadEstimate = end - start;
        }

        setTimeout(function() {
            if (window.performance && window.performance.timing && window.performance.navigation) {
                timing = window.performance.timing;
                navigation = window.performance.navigation;

                if (timing.navigationStart === 0) {
                    return;
                }

                // Time between the last byte response being received from
                // the server and the load event firing.
                profile.pageLoad = timing.loadEventEnd - timing.responseEnd;

                // Time between the user initiating the request and the
                // first byte response being recieved from the server.
                profile.firstByte = timing.responseStart - timing.navigationStart;

                // Time between the user initiating the request and the
                // load event firing.
                profile.userTime = timing.loadEventEnd - timing.navigationStart;

                profile.networkLatency = timing.responseEnd - timing.fetchStart;

                // The time between the start and end of the domain name lookup.
                profile.dns = timing.domainLookupEnd - timing.domainLookupStart;

                // Time spent obtaining server connection to retreive page.
                profile.connection = timing.connectEnd - timing.connectStart;

                // Number of 301 or 302 redirects.
                profile.redirects = navigation.redirectCount;
            }

            for (prop in profile) {
                params.push(prop + '=' + profile[prop]);
            }
            params = params.join('&');

            if (params !== '') {
                gif = document.createElement('img');
                gif.src = beaconUrl + '?' + params;
            }
        }, 0);
    }

    if (window.addEventListener) {
        window.addEventListener('load', track, false);
    } else if (window.attachEvent) {
        window.attachEvent('onload', track);
    }

}(window, window.BaseKit_Performance_enabled, window.BaseKit_Performance_beaconUrl, window.BaseKit_Performance_start, window.BaseKit_Performance_sampleMax));
                                    

#14 JavaScript::Eval (size: 2548, repeated: 1) - SHA256: 5bb6b42940f0cba34a4637b1818eb1679b19d2b0719eb8cf740ad8f3e0ef71da

                                        /**
 * Cookie warning script
 */
(function(App, cookieWarningUrl) {

    var setText = function(ele, text) {
        if (typeof ele.textContent === 'string') {
            ele.textContent = text;
        } else {
            ele.innerText = text;
        }
    };

    // If we don't have a URL do not display the warning
    if (cookieWarningUrl === '') {
        return false;
    }

    if (!/(^|;\s?)bk-cookie-warning=/.test(document.cookie)) {

        // Create out elements
        var cookieWarningContainer = document.createElement('div'),
            cookieWarningParagraph = document.createElement('p'),
            cookieWarningLink = document.createElement('a'),
            cookieWarningCloseButton = document.createElement('a'),
            removeWarning = function(e) {
                e.preventDefault();

                // Create the cookie, set expiry to 10 years
                document.cookie = 'bk-cookie-warning=true; max-age=315360000';

                cookieWarningContainer.parentNode.removeChild(cookieWarningContainer);
            };

        // Set up the link
        cookieWarningLink.setAttribute('target', '_blank');
        cookieWarningLink.href = cookieWarningUrl;
        setText(cookieWarningLink, App.t('cookie.link_text', 'Find out more.'));

        // Set up the close button
        cookieWarningCloseButton.className = 'bk-cookie-close-button';
        setText(cookieWarningCloseButton, App.t('cookie.button_text', 'OK'));

        cookieWarningCloseButton.href = '#null';

        // Add the event to the close button
        if (cookieWarningCloseButton.addEventListener) {
            cookieWarningCloseButton.addEventListener('click', removeWarning, false);
        } else {
            cookieWarningCloseButton.attachEvent('onclick', removeWarning);
        }

        // Set up the paragraph of test
        setText(cookieWarningParagraph, App.t('cookie.warning_text', 'This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies.'));
        cookieWarningParagraph.innerHTML += ' ';
        cookieWarningParagraph.appendChild(cookieWarningLink);

        // Set up the container and append the elements
        cookieWarningContainer.className = 'bk-cookie-container';
        cookieWarningContainer.appendChild(cookieWarningParagraph);
        cookieWarningContainer.appendChild(cookieWarningCloseButton);

        // Append the warning to the body
        document.body.appendChild(cookieWarningContainer);
    }

})(App, window.Server.cookieWarningUrl);
                                    

#15 JavaScript::Eval (size: 12028, repeated: 1) - SHA256: b2782de68ae1b6c22a2085ba680b879f7fc0442f1c45b71b4e5e324a00b6149b

                                        /**
 * twig.js
 * https://github.com/schmittjoh/twig.js
 *
 * (C) 2011 Johannes M. Schmitt <schmittjoh@gmail.com>
 * Licensed under the Apache 2.0 License.
 *
 * Portions of this code are from the Google Closure Library received
 * from the Closure Authors under the Apache 2.0 License.
 */
(function() {
    var e = void 0,
        g = !0,
        i = null,
        l = !1;

    function m(a) {
        return function() {
            return this[a]
        }
    }
    var n, p = this;

    function q(a, b, c) {
        a = a.split(".");
        c = c || p;
        !(a[0] in c) && c.execScript && c.execScript("var " + a[0]);
        for (var d; a.length && (d = a.shift());) !a.length && b !== e ? c[d] = b : c = c[d] ? c[d] : c[d] = {}
    }

    function r(a) {
        var b = typeof a;
        if ("object" == b)
            if (a) {
                if (a instanceof Array) return "array";
                if (a instanceof Object) return b;
                var c = Object.prototype.toString.call(a);
                if ("[object Window]" == c) return "object";
                if ("[object Array]" == c || "number" == typeof a.length && "undefined" != typeof a.splice && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("splice")) return "array";
                if ("[object Function]" == c || "undefined" != typeof a.call && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("call")) return "function"
            } else return "null";
        else if ("function" == b && "undefined" == typeof a.call) return "object";
        return b
    }

    function s(a) {
        return "array" == r(a)
    }

    function t(a) {
        return "string" == typeof a
    }

    function u(a) {
        var b = typeof a;
        return "object" == b && a != i || "function" == b
    }
    var v = "closure_uid_" + Math.floor(2147483648 * Math.random()).toString(36),
        w = 0;

    function x(a, b, c) {
        return a.call.apply(a.bind, arguments)
    }

    function y(a, b, c) {
        if (!a) throw Error();
        if (2 < arguments.length) {
            var d = Array.prototype.slice.call(arguments, 2);
            return function() {
                var c = Array.prototype.slice.call(arguments);
                Array.prototype.unshift.apply(c, d);
                return a.apply(b, c)
            }
        }
        return function() {
            return a.apply(b, arguments)
        }
    }

    function z(a, b, c) {
        z = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? x : y;
        return z.apply(i, arguments)
    }

    function A(a, b) {
        q(a, b, e)
    };
    var B = /&/g,
        C = /</g,
        D = />/g,
        E = /\"/g,
        F = /[&<>\"]/,
        G = {
            "\x00": "\\0",
            "\b": "\\b",
            "\f": "\\f",
            "\n": "\\n",
            "\r": "\\r",
            "\t": "\\t",
            "\x0B": "\\x0B",
            '"': '\\"',
            "\\": "\\\\"
        },
        H = {
            "'": "\\'"
        };

    function I(a, b) {
        a != i && this.append.apply(this, arguments)
    }
    I.prototype.b = "";
    I.prototype.append = function(a, b, c) {
        this.b += a;
        if (b != i)
            for (var d = 1; d < arguments.length; d++) this.b += arguments[d];
        return this
    };
    I.prototype.toString = m("b");

    function J(a, b, c) {
        for (var d in a) b.call(c, a[d], d, a)
    }

    function K(a) {
        var b = [],
            c = 0,
            d;
        for (d in a) b[c++] = a[d];
        return b
    }

    function L(a) {
        var b = [],
            c = 0,
            d;
        for (d in a) b[c++] = d;
        return b
    }
    var M = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");

    function N(a, b) {
        for (var c, d, f = 1; f < arguments.length; f++) {
            d = arguments[f];
            for (c in d) a[c] = d[c];
            for (var h = 0; h < M.length; h++) c = M[h], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c])
        }
    };
    var O = Array.prototype,
        P = O.indexOf ? function(a, b, c) {
            return O.indexOf.call(a, b, c)
        } : function(a, b, c) {
            c = c == i ? 0 : 0 > c ? Math.max(0, a.length + c) : c;
            if (t(a)) return !t(b) || 1 != b.length ? -1 : a.indexOf(b, c);
            for (; c < a.length; c++)
                if (c in a && a[c] === b) return c;
            return -1
        },
        aa = O.forEach ? function(a, b, c) {
            O.forEach.call(a, b, c)
        } : function(a, b, c) {
            for (var d = a.length, f = t(a) ? a.split("") : a, h = 0; h < d; h++) h in f && b.call(c, f[h], h, a)
        };
    var ba = z,
        v = "twig_ui_" + Math.floor(2147483648 * Math.random()).toString(36);

    function R(a) {
        return i === a || l === a || e === a || 0 === a ? g : S(a) ? 0 === T(a) : l
    }

    function U(a, b) {
        N.apply(i, Array.prototype.slice.call(arguments, 0));
        return a
    }

    function S(a) {
        return s(a) || t(a) || u(a)
    }

    function T(a) {
        if (s(a)) a = a.length;
        else if (t(a)) a = a.length;
        else if (u(a)) {
            var b = 0,
                c;
            for (c in a) b++;
            a = b
        } else a = ("number" === typeof a ? a.toString() : "").length;
        return a
    }

    function V(a, b, c) {
        s(a) ? aa(a, b, c) : J(a, b, c)
    }

    function W(a) {
        return a.replace(/[\.\\+*?\[\]<>(){}^$=!|:-]/g, "\\$&")
    };

    function X(a) {
        this.env_ = a;
        this.c = [];
        this.m = {}
    }
    n = X.prototype;
    n.s = m("c");
    n.C = function(a) {
        this.c = a
    };
    n.K = function(a) {
        this.m = a
    };
    n.getParent = function(a) {
        a = this.getParent_(a);
        return l === a ? l : this.env_.d(a)
    };
    n.B = function(a, b, c) {
        if (a in this.m) {
            var d = new I;
            this.m[a](d, b, c || {});
            return d.toString()
        }
        d = this.getParent(b);
        if (l !== d) return d.k(a, b, c);
        throw Error("The template '" + this.o() + "' has no parent, and no trait defining the block '" + a + "'.");
    };
    n.k = function(a, b, c) {
        if (c && a in c) {
            var d = new I,
                f = c[a];
            delete c[a];
            f(d, b, c);
            return d.toString()
        }
        if (a in this.c) return d = new I, this.c[a](d, b, c || i), d.toString();
        d = this.getParent(b);
        return l !== d ? d.k(a, b, c) : ""
    };
    n.j = function(a, b) {
        var c = new I;
        this.render_(c, a || {}, b || {});
        return c.toString()
    };
    n.q = function(a, b, c, d) {
        if (!a["get" + b]) throw Error("The macro " + b + " is not defined in " + a.o() + ".");
        if (d === e) return a["get" + b].apply(a, c);
        throw Error("Positional arguments, or default values in macro arguments are not supported, yet.");
    };

    function Y(a) {
        this.r = a
    }
    Y.prototype.toString = m("r");

    function Z(a, b, c, d, f) {
        if (f && b instanceof Y) return b.toString();
        b = b == i ? "" : String(b);
        if (ca === c) {
            a = String(b);
            if (a.quote) b = a.quote();
            else {
                b = ['"'];
                for (c = 0; c < a.length; c++) {
                    var h = a.charAt(c),
                        k = h.charCodeAt(0),
                        d = b,
                        f = c + 1,
                        j;
                    if (!(j = G[h])) {
                        if (!(31 < k && 127 > k))
                            if (h in H) h = H[h];
                            else if (h in G) h = H[h] = G[h];
                        else {
                            k = h;
                            j = h.charCodeAt(0);
                            if (31 < j && 127 > j) k = h;
                            else {
                                if (256 > j) {
                                    if (k = "\\x", 16 > j || 256 < j) k += "0"
                                } else k = "\\u", 4096 > j && (k += "0");
                                k += j.toString(16).toUpperCase()
                            }
                            h = H[h] = k
                        }
                        j = h
                    }
                    d[f] = j
                }
                b.push('"');
                b = b.join("")
            }
            return b.substring(1,
                b.length - 1)
        }
        if (!c || da === c) return a = b, F.test(a) && (-1 != a.indexOf("&") && (a = a.replace(B, "&amp;")), -1 != a.indexOf("<") && (a = a.replace(C, "&lt;")), -1 != a.indexOf(">") && (a = a.replace(D, "&gt;")), -1 != a.indexOf('"') && (a = a.replace(E, "&quot;"))), a;
        if (ea === c) return encodeURIComponent(b);
        throw Error("The type '" + c + "' is not supported.");
    }
    var da = "html",
        ca = "js",
        ea = "url";

    function $() {
        this.a = {};
        this.g = {};
        this.h = {};
        this.l = {};
        this.f = {};
        this.e = {};
        this.p = l;
        this.L = "UTF-8"
    }
    n = $.prototype;
    n.j = function(a, b) {
        var c = this.d(a);
        return c.j.call(c, U({}, this.e, b || {}))
    };
    n.filter = function(a, b, c) {
        if (!(a in this.g)) throw Error("The filter '" + a + "' does not exist.");
        return this.g[a].apply(i, Array.prototype.slice.call(arguments, 1))
    };
    n.w = function(a, b, c) {
        if (!(a in this.h)) throw Error("The function '" + a + "' does not exist.");
        return this.h[a].apply(i, Array.prototype.slice.call(arguments, 1))
    };
    n.test = function(a, b, c) {
        if (!(a in this.l)) throw Error("The test '" + a + "' does not exist.");
        return this.l[a].apply(i, Array.prototype.slice.call(arguments, 1))
    };
    n.escape = function(a, b, c, d) {
        return Z(0, a, b, 0, d)
    };
    n.z = function(a, b, c) {
        var d = this.d(a),
            f = d["get" + b];
        if (!f) throw Error("The macro '" + b + "' does not exist on template '" + d.o() + "'.");
        return f.apply(d, Array.prototype.slice.call(arguments, 2)).toString()
    };
    n.F = function(a, b) {
        this.g[a] = b
    };
    n.G = function(a, b) {
        this.h[a] = b
    };
    n.J = function(a, b) {
        this.l[a] = b
    };
    n.I = function(a) {
        this.e = a
    };
    n.H = function(a, b) {
        this.e[a] = b
    };
    n.u = m("e");
    n.i = function() {
        this.p = g;
        J(this.a, function(a) {
            a.i()
        }, this)
    };
    n.v = function(a) {
        return a in this.a
    };
    n.getExtension = function(a) {
        if (!(a in this.a)) throw Error('The "' + a + '" extension is not enabled.');
        return this.a[a]
    };
    n.n = function(a) {
        this.a[a.getName()] = a
    };
    n.A = function(a) {
        delete this.a[a]
    };
    n.D = function(a) {
        J(a, function(a) {
            this.n(a)
        })
    };
    n.t = m("a");
    n.d = function(a) {
        var b = a[v] || (a[v] = ++w);
        if (b in this.f) return this.f[b];
        l === this.p && this.i();
        a = new a(this);
        return this.f[b] = a
    };
    window.Twig = new $;
    A("goog.provide", function(a) {
        q(a)
    });
    A("goog.require", function() {});
    A("twig.attr", function(a, b, c, d, f) {
        d = d || "any";
        f = f !== e ? f : l;
        if (!u(a) && !s(a)) return f ? l : i;
        if (b in a) {
            if ("array" !== d && "function" == r(a[b])) return f ? g : a[b].apply(a, c || []);
            if ("method" !== d) return f ? g : a[b]
        }
        if ("array" === d || s(a)) return f ? l : i;
        var b = b.toLowerCase(),
            h = "get" + b,
            k = "is" + b,
            j;
        a: {
            b = function(a, b) {
                b = b.toLowerCase();
                return b === h || b === k
            };
            for (j in a)
                if (b.call(e, 0, j)) break a;
            j = e
        }
        return j && "function" == r(a[j]) ? f ? g : a[j].apply(a, c || []) : f ? l : i
    });
    A("twig.bind", ba);
    A("twig.inherits", function(a, b) {
        function c() {}
        c.prototype = b.prototype;
        a.M = b.prototype;
        a.prototype = new c
    });
    A("twig.extend", U);
    A("twig.spaceless", function(a) {
        return a.replace(/>[\s\xa0]+</g, "><").replace(/^[\s\xa0]+|[\s\xa0]+$/g, "")
    });
    A("twig.range", function(a, b) {
        for (var c = []; a <= b; a += 1) c.push(a);
        return c
    });
    A("twig.contains", function(a, b) {
        var c;
        if (s(a)) c = 0 <= P(a, b);
        else if (t(a)) c = -1 != a.indexOf(b) && ("" !== b || "" === a);
        else a: {
            for (c in a)
                if (a[c] == b) {
                    c = g;
                    break a
                }
            c = l
        }
        return c
    });
    A("twig.countable", S);
    A("twig.count", T);
    A("twig.forEach", V);
    A("twig.empty", R);
    A("twig.createObj", function(a) {
        for (var b = {}, c = 0; c < arguments.length; c += 2) b[arguments[c]] = arguments[c + 1];
        return b
    });
    A("twig.pregQuote", W);
    A("twig.filter.capitalize", function(a, b) {
        return b.charAt(0).toUpperCase() + b.substring(1)
    });
    A("twig.filter.escape", Z);
    A("twig.filter.first", function(a, b) {
        return s(b) ? b[0] : u(b) ? b[Object.keys(b)[0]] : t(b) ? b.charAt(0) : ""
    });
    A("twig.filter.length", function(a, b) {
        return T(b)
    });
    A("twig.filter.def", function(a, b) {
        return R(a) ? b || "" : a
    });
    A("twig.filter.replace", function(a, b) {
        for (var c in b) {
            var d;
            d = W(c);
            a = a.replace(RegExp(d, "g"), b[c])
        }
        return a
    });
    A("twig.filter.join", function(a, b) {
        var c = b || "",
            d = new I,
            f = g;
        V(a, function(a) {
            f || d.append(c);
            f = l;
            d.append(a)
        });
        return d.toString()
    });
    A("twig.filter.keys", L);
    A("twig.filter.upper", function(a, b) {
        return b.toUpperCase()
    });
    A("twig.filter.lower", function(a, b) {
        return b.toLowerCase()
    });
    A("twig.filter.nl2br", function(a) {
        return a.replace(/\n/g, "<br />")
    });
    A("twig.filter.abs", function(a) {
        return Math.abs(a)
    });
    A("twig.filter.title", function(a, b) {
        return b.split(" ").map(function(a) {
            return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase()
        }).join(" ")
    });
    A("twig.filter.trim", function(a, b) {
        var c = "\n ";
        b && (c = W(b));
        a = a.replace(RegExp("^[" + c + "]+"), "");
        return a = a.replace(RegExp("[" + c + "]+$"), "")
    });
    A("twig.filter.json_encode", function(a) {
        return JSON.stringify(a)
    });
    A("twig.filter.last", function(a, b) {
        if (s(b)) return b[b.length - 1];
        if (u(b)) {
            var c = Object.keys(b);
            return b[c[c.length - 1]]
        }
        return t(b) ? b.charAt(b.length - 1) : ""
    });
    A("twig.filter.reverse", function(a, b) {
        if (s(b)) return b.reverse();
        if (u(b)) {
            for (var c = {}, d = L(b).reverse(), f = 0; f < d.length; f++) c[d[f]] = b[d[f]];
            return c
        }
        return t(b) ? b.split("").reverse().join("") : b
    });
    A("twig.filter.batch", function(a, b, c) {
        for (var d = Array(Math.ceil(a.length / b)), f = d.length * b, h = 0; h < f; h++) {
            var k = Math.floor(h / b);
            "undefined" === typeof d[k] && (d[k] = []);
            "undefined" !== typeof a[h] ? d[k].push(a[h]) : t(c) && d[k].push(c)
        }
        return d
    });
    A("twig.filter.merge", function(a, b) {
        var c = [];
        if (s(a) && s(b)) {
            for (var d = c = a.concat(b), f = {}, h = 0, k = 0; k < d.length;) {
                var j = d[k++],
                    Q = u(j) ? "o" + (j[v] || (j[v] = ++w)) : (typeof j).charAt(0) + j;
                Object.prototype.hasOwnProperty.call(f, Q) || (f[Q] = g, d[h++] = j)
            }
            d.length = h
        } else if (u(a) && u(b)) {
            d = {};
            for (f in a) d[f] = a[f];
            c = d;
            J(b, function(a, b) {
                c[b] = a
            })
        }
        return c
    });
    A("twig.functions.max", function(a) {
        return s(a) ? Math.max.apply(i, a) : u(a) ? Math.max.apply(i, K(a)) : Math.max.apply(i, arguments)
    });
    A("twig.functions.min", function(a) {
        return s(a) ? Math.min.apply(i, a) : u(a) ? Math.min.apply(i, K(a)) : Math.min.apply(i, arguments)
    });
    A("twig.functions.random", function(a, b) {
        return s(b) || t(b) ? b[Math.floor(Math.random() * b.length)] : "number" == typeof b ? Math.floor(Math.random() * b) : b === i || "undefined" === typeof b ? Math.floor(2147483647 * Math.random()) : ""
    });
    A("twig.StringBuffer", I);
    I.prototype.append = I.prototype.append;
    I.prototype.toString = I.prototype.toString;
    A("twig.Environment", $);
    $.prototype.createTemplate = $.prototype.d;
    $.prototype.filter = $.prototype.filter;
    $.prototype.invoke = $.prototype.w;
    $.prototype.test = $.prototype.test;
    $.prototype.escape = $.prototype.escape;
    $.prototype.macro = $.prototype.z;
    $.prototype.setFilter = $.prototype.F;
    $.prototype.setFunction = $.prototype.G;
    $.prototype.setTest = $.prototype.J;
    $.prototype.render = $.prototype.j;
    $.prototype.getGlobals = $.prototype.u;
    $.prototype.setGlobals = $.prototype.I;
    $.prototype.setGlobal = $.prototype.H;
    $.prototype.initRuntime = $.prototype.i;
    $.prototype.hasExtension = $.prototype.v;
    $.prototype.getExtension = $.prototype.getExtension;
    $.prototype.addExtension = $.prototype.n;
    $.prototype.removeExtension = $.prototype.A;
    $.prototype.setExtensions = $.prototype.D;
    $.prototype.getExtensions = $.prototype.t;
    A("twig.Template", X);
    X.prototype.setTraits = X.prototype.K;
    X.prototype.setBlocks = X.prototype.C;
    X.prototype.getBlocks = X.prototype.s;
    X.prototype.renderParentBlock = X.prototype.B;
    X.prototype.renderBlock = X.prototype.k;
    X.prototype.callMacro = X.prototype.q;
    A("twig.Markup", Y);
})();
                                    

Executed Writes (0)



HTTP Transactions (15)


Request Response
                                        
                                            GET / HTTP/1.1 
Host: 30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

                                         
                                         50.18.217.93
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
                                        
Server: openresty
Date: Thu, 08 Nov 2018 20:26:21 GMT
Content-Length: 6166
Connection: keep-alive
Cache-Control: must-revalidate, no-cache, no-store, private
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Vary: Accept-Encoding
Age: 0
X-Cache: MISS
X-BKSrc: 0.3
Accept-Ranges: bytes


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   6166
Md5:    b4e1a7a6b614885f3a734ecf1308ff98
Sha1:   2179a19ebb2a7420b00c6a48cff35aa3035d21c0
Sha256: f9f6c591c3f6c770734356f2fdfe4121d4e9837aa96698146e7ddc2ab677faf3
                                        
                                            GET /39128d73fb/compiled/photo-swipe.css HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: text/css
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:17:42 GMT
Last-Modified: Mon, 15 Oct 2018 13:45:33 GMT
Expires: Wed, 06 Nov 2019 14:12:48 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.3
Content-Encoding: gzip
Age: 195214
X-Cache: Hit from cloudfront
Via: 1.1 aa34a836095df9de9d246a53dd63f1d7.cloudfront.net (CloudFront)
X-Amz-Cf-Id: vvAQjO4tWrW8dPlFcmpkoQ0kYmiE9S4XVTUtK0MLhYbjldjcRaYjXA==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   4248
Md5:    30f3b6be6615fff33d08573e5c98fe09
Sha1:   124b5048c293674b22abf43e9cdf49ca86cb5e17
Sha256: 817d71d5e9d2d0f4fcd0f355a29f9c6647fff27b4c69710e8c4d0a168f1eb5f3
                                        
                                            GET /39128d73fb/compiled/published-v8-site.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:17:45 GMT
Last-Modified: Mon, 29 Oct 2018 13:57:59 GMT
Expires: Wed, 06 Nov 2019 14:13:50 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.2
Content-Encoding: gzip
Age: 195152
X-Cache: Hit from cloudfront
Via: 1.1 f46f7100ad6fc83a021f62212f945830.cloudfront.net (CloudFront)
X-Amz-Cf-Id: _NcTecg8Jh5Ygfn7BJUbr0ZO5qJZA_DHplyMIcj2iyg5GgRhzF5fsw==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   57904
Md5:    d7463ecdace9a677c811723182b091a5
Sha1:   9f2d4a4874de29d5f1f18465e5ee39afef1b0d2b
Sha256: e1025395e96eb484b8724432b18f7d0ee9da2e5b6846ed20211098d7c81c5c56
                                        
                                            GET /39128d73fb/compiled/twig-widget-views-v2.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:17:45 GMT
Last-Modified: Mon, 29 Oct 2018 13:56:48 GMT
Expires: Wed, 06 Nov 2019 14:13:41 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.2
Content-Encoding: gzip
Age: 195160
X-Cache: Hit from cloudfront
Via: 1.1 185768229530368be94556dcab1c486b.cloudfront.net (CloudFront)
X-Amz-Cf-Id: kPtKpiFKYXlEqcmBFBx_93apR0OAMuOZBZhped8F6gudrlbeBa6cAA==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   22919
Md5:    2ff0e1df00aded667f419ec2cdb1b679
Sha1:   ba59ed8bd28d7a6eb12eab73e606e70b147c12f0
Sha256: 2dd02ada57d59549579abc6b9ca676f124170e27fa1fce55b1326c0f2babd4d1
                                        
                                            GET /39128d73fb/compiled/published-v8-site-libs.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:17:45 GMT
Last-Modified: Mon, 29 Oct 2018 13:57:56 GMT
Expires: Wed, 06 Nov 2019 14:13:22 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.3
Content-Encoding: gzip
Age: 195180
X-Cache: Hit from cloudfront
Via: 1.1 71c98156ae29b36a903974f9dd2568f8.cloudfront.net (CloudFront)
X-Amz-Cf-Id: -iLVhnmW9FrsdHtcxYhnhNvW0Vx65fxWPyxHn9sZ-Njkh7d5Lw-uEw==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   151027
Md5:    16f0d54e02340adc73d4365b90c0496e
Sha1:   51fce7103809039dfc75c9df8d98782ed4ed74a7
Sha256: b041953d51079da9fc9e2e6caf5d1fc632221f0df3d9d642dcf2d87b91933847
                                        
                                            GET /688e42b/en/translations.js?sections=widgets,mobile,shared_views,shared_components,cookie HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:17:45 GMT
Expires: Wed, 06 Nov 2019 14:17:15 GMT
Cache-Control: max-age=31536000, public
Pragma: public
Access-Control-Allow-Origin: *
X-BKSrc: 0.2
Content-Encoding: gzip
Age: 194946
X-Cache: Hit from cloudfront
Via: 1.1 b9f0050ca4d212d7c855e005be54b1ac.cloudfront.net (CloudFront)
X-Amz-Cf-Id: WlvyTdrIqj9dN6GJk7KBru9VzmPKmulya4J0aZ4cgt_vZo49m7LUuQ==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   32299
Md5:    19b01f9e70bfb065953d742332c3fa8c
Sha1:   2c1751be4ab9a604f94e39ed4e8eaefa87426eec
Sha256: 78903306791f2f0b6fb4e63c980ef56db329fd4d8b00ebb096ac1002668bc1d7
                                        
                                            GET /?v=1541708782 HTTP/1.1 
Host: 30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

                                         
                                         50.18.217.93
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
                                        
Server: openresty
Date: Thu, 08 Nov 2018 20:26:22 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: must-revalidate, no-cache, no-store, private
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Vary: Accept-Encoding
Age: 0
X-Cache: MISS
X-BKSrc: 0.2
Accept-Ranges: bytes


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   6166
Md5:    b4e1a7a6b614885f3a734ecf1308ff98
Sha1:   2179a19ebb2a7420b00c6a48cff35aa3035d21c0
Sha256: f9f6c591c3f6c770734356f2fdfe4121d4e9837aa96698146e7ddc2ab677faf3
                                        
                                            GET /e6/92/e6923e54-574f-4a20-b6a7-7ffb45cae80a.css HTTP/1.1 
Host: d282ykz6vx01th.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.17
HTTP/1.1 200 OK
Content-Type: text/css
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Date: Thu, 08 Nov 2018 20:26:23 GMT
Last-Modified: Mon, 15 Oct 2018 15:04:47 GMT
Cache-Control: max-age=315360000, public
Expires: Thu, 12 Oct 2028 16:04:45 GMT
Server: AmazonS3
Content-Encoding: gzip
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 a9120cc3ff449047c990e82a4d5566ba.cloudfront.net (CloudFront)
X-Amz-Cf-Id: JjCupzBLEEoCcCjZh08Iho-xgeTthWMxNK2AymJ8lYaegg2_oLQWVA==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   41532
Md5:    69bbf1507f9be5bea826534bb49dab79
Sha1:   322b2168a5ef9d4483bf2216fda8f8ab75dc8ff3
Sha256: 75a21effed5e85d231cf22084a574afb55cec5c5dcc34690938426041db4bcb6
                                        
                                            GET /ajax/libs/jquery/1.11.0/jquery.min.js HTTP/1.1 
Host: ajax.googleapis.com
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         172.217.22.170
HTTP/1.1 200 OK
Content-Type: text/javascript; charset=UTF-8
                                        
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Access-Control-Allow-Origin: *
Timing-Allow-Origin: *
Content-Length: 33576
Date: Mon, 05 Nov 2018 19:04:54 GMT
Expires: Tue, 05 Nov 2019 19:04:54 GMT
Last-Modified: Tue, 20 Dec 2016 18:17:03 GMT
X-Content-Type-Options: nosniff
Server: sffe
X-XSS-Protection: 1; mode=block
Cache-Control: public, max-age=31536000, stale-while-revalidate=2592000
Age: 264089


--- Additional Info ---
Magic:  gzip compressed data, max compression
Size:   33576
Md5:    55b8e6059da09b4e50cbe105e4a090a3
Sha1:   455328e76daf9a5a8fe0c94bc20c308801fb4883
Sha256: 9ba41d51fbabdb9fcaa7e9e34581d153d8f901a2ce9e364f60162ca278743813
                                        
                                            GET /39128d73fb/templates/brunch/js/mq4-hover-shim.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:25:12 GMT
Last-Modified: Mon, 10 Sep 2018 10:14:06 GMT
Expires: Wed, 06 Nov 2019 14:25:13 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.3
Content-Encoding: gzip
Age: 194470
X-Cache: Hit from cloudfront
Via: 1.1 aa34a836095df9de9d246a53dd63f1d7.cloudfront.net (CloudFront)
X-Amz-Cf-Id: GS11HedxyRrscejqQW6aOS1eTCzIwlaHwE05pDD6gG-c96su6_Eeiw==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   2616
Md5:    9b7e53598987b8a82686a9ef76cc5c30
Sha1:   19e3937fa9023b3ca624247085d2635955050ef2
Sha256: be78733bb96c0080c9a1d88782f03cc037a240e356ffa007cdbe1325c8578487
                                        
                                            GET /39128d73fb/templates/brunch/js/navigation.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:25:12 GMT
Last-Modified: Mon, 10 Sep 2018 10:14:06 GMT
Expires: Wed, 06 Nov 2019 14:25:13 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.2
Content-Encoding: gzip
Age: 194470
X-Cache: Hit from cloudfront
Via: 1.1 f46f7100ad6fc83a021f62212f945830.cloudfront.net (CloudFront)
X-Amz-Cf-Id: xQkaElQGVAt1xBWJounsxYCM8S3MgEjcGoEHlt80PjswZ0ilh1tDCA==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   193
Md5:    193f1d499bc346568c7452485b3c9022
Sha1:   45284cf61d36ceef90a70a80914db1fccd8164b0
Sha256: 256b61ded12bae000a27218ae04cbf2b8fba310ae0d30ce7a06b8e7f914a54df
                                        
                                            GET /39128d73fb/templates/brunch/js/custom.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:25:13 GMT
Last-Modified: Mon, 10 Sep 2018 10:14:06 GMT
Expires: Wed, 06 Nov 2019 14:25:13 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.3
Content-Encoding: gzip
Age: 194469
X-Cache: Hit from cloudfront
Via: 1.1 185768229530368be94556dcab1c486b.cloudfront.net (CloudFront)
X-Amz-Cf-Id: JtwLw3Dbh7EEFmvn_X2byBVwyjUE_hdoKKfLpyW6InpPiVBn3jmfmg==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   617
Md5:    89b09b496e075c924a0e3a06f3cb0d39
Sha1:   8836ca334b07e64b24d3714f4457104d213bf794
Sha256: 652ea74c22b76f2c33463e46ba3fcd5b8ccb9a21ca11db902bab27676a7c08a8
                                        
                                            GET /39128d73fb/templates/brunch/js/hero.js HTTP/1.1 
Host: d3b4n3yyoc8n59.cloudfront.net
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro/

                                         
                                         143.204.51.214
HTTP/1.1 200 OK
Content-Type: application/javascript
                                        
Transfer-Encoding: chunked
Connection: keep-alive
Server: openresty
Date: Tue, 06 Nov 2018 14:25:13 GMT
Last-Modified: Mon, 10 Sep 2018 10:14:06 GMT
Expires: Wed, 06 Nov 2019 14:25:14 GMT
Cache-Control: max-age=31536000
Access-Control-Allow-Origin: *
X-BKSrc: 0.2
Content-Encoding: gzip
Age: 194469
X-Cache: Hit from cloudfront
Via: 1.1 71c98156ae29b36a903974f9dd2568f8.cloudfront.net (CloudFront)
X-Amz-Cf-Id: zQF356tItg0XnL3jSLyvoxHbNYy1yhbXgAlfFWfmNFFJ5UXEr02xag==


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   582
Md5:    12d5c212cb15fb4b0a9caa2e3ab92c9a
Sha1:   008bddb83dc27a39e049e1d7662eb4aa9e74d0b8
Sha256: ebc89c567ae84cbf25cee1c416349c0b478d803fedef0282591068da1c7e9d04
                                        
                                            GET /?v=1541708782 HTTP/1.1 
Host: 30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

                                         
                                         50.18.217.93
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
                                        
Server: openresty
Date: Thu, 08 Nov 2018 20:26:23 GMT
Content-Length: 6166
Connection: keep-alive
Cache-Control: must-revalidate, no-cache, no-store, private
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Vary: Accept-Encoding
Age: 0
X-Cache: MISS
X-BKSrc: 0.3
Accept-Ranges: bytes


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   6166
Md5:    ab8b05b61312d8e2b17fc97004a0c78f
Sha1:   13386182f571a188f72e500e3a56bebd58d0a21c
Sha256: c07008582604e19375835d1c6879a1f131e7694a58c7e34579c83f846b23ee89
                                        
                                            GET /?v=1541708782 HTTP/1.1 
Host: 30uwgsy19gl49s2fxlmdtm4m5.designmysite.pro
                                        
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

                                         
                                         50.18.217.93
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
                                        
Server: openresty
Date: Thu, 08 Nov 2018 20:26:24 GMT
Content-Length: 6166
Connection: keep-alive
Cache-Control: must-revalidate, no-cache, no-store, private
Pragma: no-cache
Expires: 0
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Encoding: gzip
Vary: Accept-Encoding
Age: 1
X-Cache: HIT
X-BKSrc: 0.3
Accept-Ranges: bytes


--- Additional Info ---
Magic:  gzip compressed data, from Unix
Size:   6166
Md5:    ab8b05b61312d8e2b17fc97004a0c78f
Sha1:   13386182f571a188f72e500e3a56bebd58d0a21c
Sha256: c07008582604e19375835d1c6879a1f131e7694a58c7e34579c83f846b23ee89