diff --git a/.editorconfig b/.editorconfig index e4536b8fe..92860cf0d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,41 +3,24 @@ root = True # For all files [*] -end_of_line = lf -insert_final_newline = true - -# For all code, config and documentation -[*.{js,py,jinja2,j2,html,css,sass,scss,json,yml,md,rst}] charset = utf-8 +end_of_line = lf +indent_size = 2 indent_style = space +insert_final_newline = true +max_line_length = 88 tab_width = 8 +trim_trailing_whitespace = true # Python code [*.py] -indent_style = space indent_size = 4 -trim_trailing_whitespace = true - -# JavaScript and HTML/CSS -[*.{js,jinja2,j2,html,css,sass,scss}] -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true # Makefile [Makefile] indent_style = tab indent_size = tab -trim_trailing_whitespace = true - -# Config -[*.{json,yml,toml}] -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true -# Documentation -[*.{md,rst,md.jinja2}] -indent_style = space -indent_size = 4 +# Markdown +[*.{md,md.jinja2}] trim_trailing_whitespace = false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 211a942fc..1ca62cd7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -76,9 +76,7 @@ repos: args: ['-c', 'pyproject.toml'] additional_dependencies: - 'bandit[toml]' - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v4.0.0-alpha.8 + - repo: https://github.com/pycontribs/mirrors-prettier + rev: v3.3.1 hooks: - id: prettier - args: ['--single-quote', '--trailing-comma', 'es5'] - exclude: funnel/templates/js/ diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index a425d3f76..000000000 --- a/.prettierrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - singleQuote: true, - trailingComma: 'es5', -}; diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 000000000..c1a6f6671 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,4 @@ +{ + "singleQuote": true, + "trailingComma": "es5" +} diff --git a/boxoffice/assets/js/libs/bootstrap.min.js b/boxoffice/assets/js/libs/bootstrap.min.js index 14be27d8b..5f88f4dba 100644 --- a/boxoffice/assets/js/libs/bootstrap.min.js +++ b/boxoffice/assets/js/libs/bootstrap.min.js @@ -8,11 +8,7 @@ if ('undefined' == typeof jQuery) +(function (a) { 'use strict'; var b = a.fn.jquery.split(' ')[0].split('.'); - if ( - (b[0] < 2 && b[1] < 9) || - (1 == b[0] && 9 == b[1] && b[2] < 1) || - b[0] > 2 - ) + if ((b[0] < 2 && b[1] < 9) || (1 == b[0] && 9 == b[1] && b[2] < 1) || b[0] > 2) throw new Error( "Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3" ); @@ -85,9 +81,7 @@ if ('undefined' == typeof jQuery) b.isDefaultPrevented() || (g.removeClass('in'), a.support.transition && g.hasClass('fade') - ? g - .one('bsTransitionEnd', c) - .emulateTransitionEnd(d.TRANSITION_DURATION) + ? g.one('bsTransitionEnd', c).emulateTransitionEnd(d.TRANSITION_DURATION) : c()); }); var e = a.fn.alert; @@ -144,8 +138,7 @@ if ('undefined' == typeof jQuery) b.find('.active').removeClass('active'), this.$element.addClass('active')) : 'checkbox' == c.prop('type') && - (c.prop('checked') !== this.$element.hasClass('active') && - (a = !1), + (c.prop('checked') !== this.$element.hasClass('active') && (a = !1), this.$element.toggleClass('active')), c.prop('checked', this.$element.hasClass('active')), a && c.trigger('change'); @@ -160,18 +153,14 @@ if ('undefined' == typeof jQuery) return (a.fn.button = d), this; }), a(document) - .on( - 'click.bs.button.data-api', - '[data-toggle^="button"]', - function (c) { - var d = a(c.target); - d.hasClass('btn') || (d = d.closest('.btn')), - b.call(d, 'toggle'), - a(c.target).is('input[type="radio"]') || - a(c.target).is('input[type="checkbox"]') || - c.preventDefault(); - } - ) + .on('click.bs.button.data-api', '[data-toggle^="button"]', function (c) { + var d = a(c.target); + d.hasClass('btn') || (d = d.closest('.btn')), + b.call(d, 'toggle'), + a(c.target).is('input[type="radio"]') || + a(c.target).is('input[type="checkbox"]') || + c.preventDefault(); + }) .on( 'focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', @@ -191,11 +180,7 @@ if ('undefined' == typeof jQuery) f = a.extend({}, c.DEFAULTS, d.data(), 'object' == typeof b && b), g = 'string' == typeof b ? b : f.slide; e || d.data('bs.carousel', (e = new c(this, f))), - 'number' == typeof b - ? e.to(b) - : g - ? e[g]() - : f.interval && e.pause().cycle(); + 'number' == typeof b ? e.to(b) : g ? e[g]() : f.interval && e.pause().cycle(); }); } var c = function (b, c) { @@ -254,9 +239,7 @@ if ('undefined' == typeof jQuery) }), (c.prototype.getItemForDirection = function (a, b) { var c = this.getItemIndex(b), - d = - ('prev' == a && 0 === c) || - ('next' == a && c == this.$items.length - 1); + d = ('prev' == a && 0 === c) || ('next' == a && c == this.$items.length - 1); if (d && !this.options.wrap) return b; var e = 'prev' == a ? -1 : 1, f = (c + e) % this.$items.length; @@ -264,9 +247,7 @@ if ('undefined' == typeof jQuery) }), (c.prototype.to = function (a) { var b = this, - c = this.getItemIndex( - (this.$active = this.$element.find('.item.active')) - ); + c = this.getItemIndex((this.$active = this.$element.find('.item.active'))); return a > this.$items.length - 1 || 0 > a ? void 0 : this.sliding @@ -303,9 +284,7 @@ if ('undefined' == typeof jQuery) var j = f[0], k = a.Event('slide.bs.carousel', { relatedTarget: j, direction: h }); if ((this.$element.trigger(k), !k.isDefaultPrevented())) { - if ( - ((this.sliding = !0), g && this.pause(), this.$indicators.length) - ) { + if (((this.sliding = !0), g && this.pause(), this.$indicators.length)) { this.$indicators.find('.active').removeClass('active'); var l = a(this.$indicators.children()[this.getItemIndex(f)]); l && l.addClass('active'); @@ -419,33 +398,20 @@ if ('undefined' == typeof jQuery) e = this.$parent && this.$parent.children('.panel').children('.in, .collapsing'); - if ( - !( - e && - e.length && - ((b = e.data('bs.collapse')), b && b.transitioning) - ) - ) { + if (!(e && e.length && ((b = e.data('bs.collapse')), b && b.transitioning))) { var f = a.Event('show.bs.collapse'); if ((this.$element.trigger(f), !f.isDefaultPrevented())) { - e && - e.length && - (c.call(e, 'hide'), b || e.data('bs.collapse', null)); + e && e.length && (c.call(e, 'hide'), b || e.data('bs.collapse', null)); var g = this.dimension(); this.$element .removeClass('collapse') .addClass('collapsing') [g](0) .attr('aria-expanded', !0), - this.$trigger - .removeClass('collapsed') - .attr('aria-expanded', !0), + this.$trigger.removeClass('collapsed').attr('aria-expanded', !0), (this.transitioning = 1); var h = function () { - this.$element - .removeClass('collapsing') - .addClass('collapse in') - [g](''), + this.$element.removeClass('collapsing').addClass('collapse in')[g](''), (this.transitioning = 0), this.$element.trigger('shown.bs.collapse'); }; @@ -491,11 +457,7 @@ if ('undefined' == typeof jQuery) }), (d.prototype.getParent = function () { return a(this.options.parent) - .find( - '[data-toggle="collapse"][data-parent="' + - this.options.parent + - '"]' - ) + .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') .each( a.proxy(function (c, d) { var e = a(d); @@ -553,9 +515,7 @@ if ('undefined' == typeof jQuery) (e.trigger((c = a.Event('hide.bs.dropdown', f))), c.isDefaultPrevented() || (d.attr('aria-expanded', 'false'), - e - .removeClass('open') - .trigger(a.Event('hidden.bs.dropdown', f))))); + e.removeClass('open').trigger(a.Event('hidden.bs.dropdown', f))))); })); } function d(b) { @@ -586,8 +546,7 @@ if ('undefined' == typeof jQuery) .on('click', c); var h = { relatedTarget: this }; if ( - (f.trigger((d = a.Event('show.bs.dropdown', h))), - d.isDefaultPrevented()) + (f.trigger((d = a.Event('show.bs.dropdown', h))), d.isDefaultPrevented()) ) return; e.trigger('focus').attr('aria-expanded', 'true'), @@ -603,16 +562,12 @@ if ('undefined' == typeof jQuery) ) { var d = a(this); if ( - (c.preventDefault(), - c.stopPropagation(), - !d.is('.disabled, :disabled')) + (c.preventDefault(), c.stopPropagation(), !d.is('.disabled, :disabled')) ) { var e = b(d), g = e.hasClass('open'); if ((!g && 27 != c.which) || (g && 27 == c.which)) - return ( - 27 == c.which && e.find(f).trigger('focus'), d.trigger('click') - ); + return 27 == c.which && e.find(f).trigger('focus'), d.trigger('click'); var h = ' li:not(.disabled):visible a', i = e.find('.dropdown-menu' + h); if (i.length) { @@ -638,11 +593,7 @@ if ('undefined' == typeof jQuery) }) .on('click.bs.dropdown.data-api', f, g.prototype.toggle) .on('keydown.bs.dropdown.data-api', f, g.prototype.keydown) - .on( - 'keydown.bs.dropdown.data-api', - '.dropdown-menu', - g.prototype.keydown - ); + .on('keydown.bs.dropdown.data-api', '.dropdown-menu', g.prototype.keydown); })(jQuery), +(function (a) { 'use strict'; @@ -829,8 +780,7 @@ if ('undefined' == typeof jQuery) this.adjustDialog(); }), (c.prototype.adjustDialog = function () { - var a = - this.$element[0].scrollHeight > document.documentElement.clientHeight; + var a = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : '', paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : '', @@ -869,28 +819,22 @@ if ('undefined' == typeof jQuery) (a.fn.modal.noConflict = function () { return (a.fn.modal = d), this; }), - a(document).on( - 'click.bs.modal.data-api', - '[data-toggle="modal"]', - function (c) { - var d = a(this), - e = d.attr('href'), - f = a( - d.attr('data-target') || (e && e.replace(/.*(?=#[^\s]+$)/, '')) - ), - g = f.data('bs.modal') - ? 'toggle' - : a.extend({ remote: !/#/.test(e) && e }, f.data(), d.data()); - d.is('a') && c.preventDefault(), - f.one('show.bs.modal', function (a) { - a.isDefaultPrevented() || - f.one('hidden.bs.modal', function () { - d.is(':visible') && d.trigger('focus'); - }); - }), - b.call(f, g, this); - } - ); + a(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (c) { + var d = a(this), + e = d.attr('href'), + f = a(d.attr('data-target') || (e && e.replace(/.*(?=#[^\s]+$)/, ''))), + g = f.data('bs.modal') + ? 'toggle' + : a.extend({ remote: !/#/.test(e) && e }, f.data(), d.data()); + d.is('a') && c.preventDefault(), + f.one('show.bs.modal', function (a) { + a.isDefaultPrevented() || + f.one('hidden.bs.modal', function () { + d.is(':visible') && d.trigger('focus'); + }); + }), + b.call(f, g, this); + }); })(jQuery), +(function (a) { 'use strict'; @@ -943,8 +887,7 @@ if ('undefined' == typeof jQuery) : this.options.viewport.selector || this.options.viewport )), (this.inState = { click: !1, hover: !1, focus: !1 }), - this.$element[0] instanceof document.constructor && - !this.options.selector) + this.$element[0] instanceof document.constructor && !this.options.selector) ) throw new Error( '`selector` option must be specified when initializing ' + @@ -1011,10 +954,7 @@ if ('undefined' == typeof jQuery) : a(b.currentTarget).data('bs.' + this.type); return ( c || - ((c = new this.constructor( - b.currentTarget, - this.getDelegateOptions() - )), + ((c = new this.constructor(b.currentTarget, this.getDelegateOptions())), a(b.currentTarget).data('bs.' + this.type, c)), b instanceof a.Event && (c.inState['focusin' == b.type ? 'focus' : 'hover'] = !0), @@ -1040,10 +980,7 @@ if ('undefined' == typeof jQuery) : a(b.currentTarget).data('bs.' + this.type); return ( c || - ((c = new this.constructor( - b.currentTarget, - this.getDelegateOptions() - )), + ((c = new this.constructor(b.currentTarget, this.getDelegateOptions())), a(b.currentTarget).data('bs.' + this.type, c)), b instanceof a.Event && (c.inState['focusout' == b.type ? 'focus' : 'hover'] = !1), @@ -1117,9 +1054,7 @@ if ('undefined' == typeof jQuery) 'out' == a && e.leave(e); }; a.support.transition && this.$tip.hasClass('fade') - ? f - .one('bsTransitionEnd', q) - .emulateTransitionEnd(c.TRANSITION_DURATION) + ? f.one('bsTransitionEnd', q).emulateTransitionEnd(c.TRANSITION_DURATION) : q(); } }), @@ -1170,9 +1105,7 @@ if ('undefined' == typeof jQuery) (c.prototype.hide = function (b) { function d() { 'in' != e.hoverState && f.detach(), - e.$element - .removeAttr('aria-describedby') - .trigger('hidden.bs.' + e.type), + e.$element.removeAttr('aria-describedby').trigger('hidden.bs.' + e.type), b && b(); } var e = this, @@ -1195,9 +1128,7 @@ if ('undefined' == typeof jQuery) (c.prototype.fixTitle = function () { var a = this.$element; (a.attr('title') || 'string' != typeof a.attr('data-original-title')) && - a - .attr('data-original-title', a.attr('title') || '') - .attr('title', ''); + a.attr('data-original-title', a.attr('title') || '').attr('title', ''); }), (c.prototype.hasContent = function () { return this.getTitle(); @@ -1218,9 +1149,7 @@ if ('undefined' == typeof jQuery) ? document.documentElement.scrollTop || document.body.scrollTop : b.scrollTop(), }, - h = d - ? { width: a(window).width(), height: a(window).height() } - : null; + h = d ? { width: a(window).width(), height: a(window).height() } : null; return a.extend({}, e, g, h, f); }), (c.prototype.getCalculatedOffset = function (a, b, c, d) { @@ -1293,10 +1222,7 @@ if ('undefined' == typeof jQuery) b && ((c = a(b.currentTarget).data('bs.' + this.type)), c || - ((c = new this.constructor( - b.currentTarget, - this.getDelegateOptions() - )), + ((c = new this.constructor(b.currentTarget, this.getDelegateOptions())), a(b.currentTarget).data('bs.' + this.type, c))), b ? ((c.inState.click = !c.inState.click), @@ -1363,11 +1289,7 @@ if ('undefined' == typeof jQuery) .detach() .end() [ - this.options.html - ? 'string' == typeof c - ? 'html' - : 'append' - : 'text' + this.options.html ? ('string' == typeof c ? 'html' : 'append') : 'text' ](c), a.removeClass('fade top bottom left right in'), a.find('.popover-title').html() || a.find('.popover-title').hide(); @@ -1404,10 +1326,7 @@ if ('undefined' == typeof jQuery) (this.targets = []), (this.activeTarget = null), (this.scrollHeight = 0), - this.$scrollElement.on( - 'scroll.bs.scrollspy', - a.proxy(this.process, this) - ), + this.$scrollElement.on('scroll.bs.scrollspy', a.proxy(this.process, this)), this.refresh(), this.process(); } @@ -1425,10 +1344,7 @@ if ('undefined' == typeof jQuery) (b.prototype.getScrollHeight = function () { return ( this.$scrollElement[0].scrollHeight || - Math.max( - this.$body[0].scrollHeight, - document.documentElement.scrollHeight - ) + Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) ); }), (b.prototype.refresh = function () { @@ -1447,8 +1363,7 @@ if ('undefined' == typeof jQuery) e = b.data('target') || b.attr('href'), f = /^#./.test(e) && a(e); return ( - (f && f.length && f.is(':visible') && [[f[c]().top + d, e]]) || - null + (f && f.length && f.is(':visible') && [[f[c]().top + d, e]]) || null ); }) .sort(function (a, b) { @@ -1515,8 +1430,7 @@ if ('undefined' == typeof jQuery) return this.each(function () { var d = a(this), e = d.data('bs.tab'); - e || d.data('bs.tab', (e = new c(this))), - 'string' == typeof b && e[b](); + e || d.data('bs.tab', (e = new c(this))), 'string' == typeof b && e[b](); }); } var c = function (b) { @@ -1529,8 +1443,7 @@ if ('undefined' == typeof jQuery) c = b.closest('ul:not(.dropdown-menu)'), d = b.data('target'); if ( - (d || - ((d = b.attr('href')), (d = d && d.replace(/.*(?=#[^\s]*$)/, ''))), + (d || ((d = b.attr('href')), (d = d && d.replace(/.*(?=#[^\s]*$)/, ''))), !b.parent('li').hasClass('active')) ) { var e = c.find('.active:last a'), @@ -1559,10 +1472,7 @@ if ('undefined' == typeof jQuery) .end() .find('[data-toggle="tab"]') .attr('aria-expanded', !1), - b - .addClass('active') - .find('[data-toggle="tab"]') - .attr('aria-expanded', !0), + b.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded', !0), h ? (b[0].offsetWidth, b.addClass('in')) : b.removeClass('fade'), b.parent('.dropdown-menu').length && b @@ -1579,9 +1489,7 @@ if ('undefined' == typeof jQuery) a.support.transition && ((g.length && g.hasClass('fade')) || !!d.find('> .fade').length); g.length && h - ? g - .one('bsTransitionEnd', f) - .emulateTransitionEnd(c.TRANSITION_DURATION) + ? g.one('bsTransitionEnd', f).emulateTransitionEnd(c.TRANSITION_DURATION) : f(), g.removeClass('in'); }); @@ -1605,8 +1513,7 @@ if ('undefined' == typeof jQuery) var d = a(this), e = d.data('bs.affix'), f = 'object' == typeof b && b; - e || d.data('bs.affix', (e = new c(this, f))), - 'string' == typeof b && e[b](); + e || d.data('bs.affix', (e = new c(this, f))), 'string' == typeof b && e[b](); }); } var c = function (b, d) { diff --git a/boxoffice/assets/js/libs/dd_belatedpng.js b/boxoffice/assets/js/libs/dd_belatedpng.js index 761d7a2a9..f1abf4d58 100644 --- a/boxoffice/assets/js/libs/dd_belatedpng.js +++ b/boxoffice/assets/js/libs/dd_belatedpng.js @@ -45,10 +45,7 @@ var DD_belatedPNG = { ); a = a.styleSheet; a.addRule(this.ns + '\\:*', '{display: none !important;}'); - a.addRule( - 'img.' + this.ns + '_sizeFinder', - '{display: none !important;}' - ); + a.addRule('img.' + this.ns + '_sizeFinder', '{display: none !important;}'); } }, readPropertyChange: function () { @@ -78,9 +75,7 @@ var DD_belatedPNG = { vmlOpacity: function (b) { if (b.currentStyle.filter.search('lpha') != -1) { var a = b.currentStyle.filter; - a = - parseInt(a.substring(a.lastIndexOf('=') + 1, a.lastIndexOf(')')), 10) / - 100; + a = parseInt(a.substring(a.lastIndexOf('=') + 1, a.lastIndexOf(')')), 10) / 100; b.vml.color.shape.style.filter = b.currentStyle.filter; b.vml.image.fill.opacity = a; } @@ -260,15 +255,7 @@ var DD_belatedPNG = { i.B = n.H; } d.vml.image.shape.style.clip = - 'rect(' + - i.T + - 'px ' + - (i.R + a) + - 'px ' + - i.B + - 'px ' + - (i.L + a) + - 'px)'; + 'rect(' + i.T + 'px ' + (i.R + a) + 'px ' + i.B + 'px ' + (i.L + a) + 'px)'; } else { d.vml.image.shape.style.clip = 'rect(' + f.T + 'px ' + f.R + 'px ' + f.B + 'px ' + f.L + 'px)'; diff --git a/boxoffice/assets/js/libs/jquery-1.5.1.min.js b/boxoffice/assets/js/libs/jquery-1.5.1.min.js index ea9cc70ba..559820646 100644 --- a/boxoffice/assets/js/libs/jquery-1.5.1.min.js +++ b/boxoffice/assets/js/libs/jquery-1.5.1.min.js @@ -15,11 +15,7 @@ */ (function (a, b) { function cg(a) { - return d.isWindow(a) - ? a - : a.nodeType === 9 - ? a.defaultView || a.parentWindow - : !1; + return d.isWindow(a) ? a : a.nodeType === 9 ? a.defaultView || a.parentWindow : !1; } function cd(a) { if (!bZ[a]) { @@ -104,8 +100,7 @@ k; for (i in g) i in d && (c[g[i]] = d[i]); while (f[0] === '*') - f.shift(), - h === b && (h = a.mimeType || c.getResponseHeader('content-type')); + f.shift(), h === b && (h = a.mimeType || c.getResponseHeader('content-type')); if (h) for (i in e) if (e[i] && e[i].test(h)) { @@ -154,9 +149,7 @@ for (; i < j && (k || !l); i++) (l = h[i](c, d, e)), typeof l === 'string' && - (!k || g[l] - ? (l = b) - : (c.dataTypes.unshift(l), (l = bN(a, c, d, e, l, g)))); + (!k || g[l] ? (l = b) : (c.dataTypes.unshift(l), (l = bN(a, c, d, e, l, g)))); (k || !l) && !g['*'] && (l = bN(a, c, d, e, '*', g)); return l; } @@ -211,8 +204,7 @@ if (c === 'object') b.outerHTML = a.outerHTML; else if (c !== 'input' || (a.type !== 'checkbox' && a.type !== 'radio')) { if (c === 'option') b.selected = a.defaultSelected; - else if (c === 'input' || c === 'textarea') - b.defaultValue = a.defaultValue; + else if (c === 'input' || c === 'textarea') b.defaultValue = a.defaultValue; } else a.checked && (b.defaultChecked = b.checked = a.checked), b.value !== a.value && (b.value = a.value); @@ -306,9 +298,7 @@ var t = s.live.slice(0); for (i = 0; i < t.length; i++) (g = t[i]), - g.origType.replace(p, '') === a.type - ? r.push(g.selector) - : t.splice(i--, 1); + g.origType.replace(p, '') === a.type ? r.push(g.selector) : t.splice(i--, 1); f = d(a.target).closest(r, a.currentTarget); for (j = 0, k = f.length; j < k; j++) { m = f[j]; @@ -321,10 +311,8 @@ ) { (h = m.elem), (e = null); if (g.preType === 'mouseenter' || g.preType === 'mouseleave') - (a.type = g.preType), - (e = d(a.relatedTarget).closest(g.selector)[0]); - (!e || e !== h) && - q.push({ elem: h, handleObj: g, level: m.level }); + (a.type = g.preType), (e = d(a.relatedTarget).closest(g.selector)[0]); + (!e || e !== h) && q.push({ elem: h, handleObj: g, level: m.level }); } } } @@ -450,17 +438,14 @@ if (typeof a === 'string') { g = h.exec(a); if (!g || (!g[1] && e)) - return !e || e.jquery - ? (e || f).find(a) - : this.constructor(e).find(a); + return !e || e.jquery ? (e || f).find(a) : this.constructor(e).find(a); if (g[1]) { (e = e instanceof d ? e[0] : e), (k = e ? e.ownerDocument || e : c), (j = m.exec(a)), j ? d.isPlainObject(e) - ? ((a = [c.createElement(j[1])]), - d.fn.attr.call(a, e, !0)) + ? ((a = [c.createElement(j[1])]), d.fn.attr.call(a, e, !0)) : (a = [k.createElement(j[1])]) : ((j = d.buildFragment([g[1]], [k])), (a = (j.cacheable ? d.clone(j.fragment) : j.fragment) @@ -490,11 +475,7 @@ return E.call(this, 0); }, get: function (a) { - return a == null - ? this.toArray() - : a < 0 - ? this[this.length + a] - : this[a]; + return a == null ? this.toArray() : a < 0 ? this[this.length + a] : this[a]; }, pushStack: function (a, b, c) { var e = this.constructor(); @@ -556,8 +537,7 @@ j = 1, k = arguments.length, l = !1; - typeof i === 'boolean' && - ((l = i), (i = arguments[1] || {}), (j = 2)), + typeof i === 'boolean' && ((l = i), (i = arguments[1] || {}), (j = 2)), typeof i !== 'object' && !d.isFunction(i) && (i = {}), k === j && ((i = this), --j); for (; j < k; j++) @@ -627,8 +607,7 @@ return a == null ? String(a) : H[B.call(a)] || 'object'; }, isPlainObject: function (a) { - if (!a || d.type(a) !== 'object' || a.nodeType || d.isWindow(a)) - return !1; + if (!a || d.type(a) !== 'object' || a.nodeType || d.isWindow(a)) return !1; if ( a.constructor && !C.call(a, 'constructor') && @@ -670,10 +649,7 @@ noop: function () {}, globalEval: function (a) { if (a && i.test(a)) { - var b = - c.head || - c.getElementsByTagName('head')[0] || - c.documentElement, + var b = c.head || c.getElementsByTagName('head')[0] || c.documentElement, e = c.createElement('script'); d.support.scriptEval() ? e.appendChild(c.createTextNode(a)) @@ -696,8 +672,7 @@ } else for (; g < h; ) if (c.apply(a[g++], e) === !1) break; } else if (i) { for (f in a) if (c.call(a[f], f, a[f]) === !1) break; - } else - for (var j = a[0]; g < h && c.call(j, g, j) !== !1; j = a[++g]) {} + } else for (var j = a[0]; g < h && c.call(j, g, j) !== !1; j = a[++g]) {} return a; }, trim: F @@ -879,9 +854,7 @@ }; while (b--) (a = f[b]), - a && d.isFunction(a.promise) - ? a.promise().then(h(b), c.reject) - : --g; + a && d.isFunction(a.promise) ? a.promise().then(h(b), c.reject) : --g; g || c.resolveWith(e, f); } else c !== a && c.resolve(a); return e; @@ -923,8 +896,7 @@ } ), (w = d.uaMatch(v)), - w.browser && - ((d.browser[w.browser] = !0), (d.browser.version = w.version)), + w.browser && ((d.browser[w.browser] = !0), (d.browser.version = w.version)), d.browser.webkit && (d.browser.safari = !0), G && (d.inArray = function (a, b) { @@ -1008,13 +980,10 @@ }), b.cloneNode(!0).fireEvent('onclick')), (b = c.createElement('div')), - (b.innerHTML = - ""); + (b.innerHTML = ""); var m = c.createDocumentFragment(); m.appendChild(b.firstChild), - (d.support.checkClone = m - .cloneNode(!0) - .cloneNode(!0).lastChild.checked), + (d.support.checkClone = m.cloneNode(!0).cloneNode(!0).lastChild.checked), d(function () { var a = c.createElement('div'), b = c.getElementsByTagName('body')[0]; @@ -1083,9 +1052,7 @@ k[l] || ((k[l] = {}), j || (k[l].toJSON = d.noop)); if (typeof c === 'object' || typeof c === 'function') f ? (k[l][g] = d.extend(k[l][g], c)) : (k[l] = d.extend(k[l], c)); - (i = k[l]), - f && (i[g] || (i[g] = {}), (i = i[g])), - e !== b && (i[c] = e); + (i = k[l]), f && (i[g] || (i[g] = {}), (i = i[g])), e !== b && (i[c] = e); if (c === 'events' && !i[c]) return i[g] && i[g].events; return h ? i[c] : i; } @@ -1142,8 +1109,7 @@ h; for (var i = 0, j = g.length; i < j; i++) (h = g[i].name), - h.indexOf('data-') === 0 && - ((h = h.substr(5)), f(this[0], h, e[h])); + h.indexOf('data-') === 0 && ((h = h.substr(5)), f(this[0], h, e[h])); } } return e; @@ -1313,14 +1279,11 @@ j = b, k = a.split(i); while ((f = k[g++])) - (j = e ? j : !h.hasClass(f)), - h[j ? 'addClass' : 'removeClass'](f); + (j = e ? j : !h.hasClass(f)), h[j ? 'addClass' : 'removeClass'](f); } else if (c === 'undefined' || c === 'boolean') this.className && d._data(this, '__className__', this.className), (this.className = - this.className || a === !1 - ? '' - : d._data(this, '__className__') || ''); + this.className || a === !1 ? '' : d._data(this, '__className__') || ''); }); }, hasClass: function (a) { @@ -1351,8 +1314,7 @@ (d.support.optDisabled ? !m.disabled : m.getAttribute('disabled') === null) && - (!m.parentNode.disabled || - !d.nodeName(m.parentNode, 'optgroup')) + (!m.parentNode.disabled || !d.nodeName(m.parentNode, 'optgroup')) ) { a = d(m).val(); if (i) return a; @@ -1407,8 +1369,7 @@ offset: !0, }, attr: function (a, c, e, f) { - if (!a || a.nodeType === 3 || a.nodeType === 8 || a.nodeType === 2) - return b; + if (!a || a.nodeType === 3 || a.nodeType === 8 || a.nodeType === 2) return b; if (f && c in d.attrFn) return d(a)[c](e); var g = a.nodeType !== 1 || !d.isXMLDoc(a), h = e !== b; @@ -1425,9 +1386,7 @@ l.test(a.nodeName) && a.parentNode && d.error("type property can't be changed"), - e === null - ? a.nodeType === 1 && a.removeAttribute(c) - : (a[c] = e)); + e === null ? a.nodeType === 1 && a.removeAttribute(c) : (a[c] = e)); if (d.nodeName(a, 'form') && a.getAttributeNode(c)) return a.getAttributeNode(c).nodeValue; if (c === 'tabIndex') { @@ -1445,8 +1404,7 @@ return a.style.cssText; } h && a.setAttribute(c, '' + e); - if (!a.attributes[c] && a.hasAttribute && !a.hasAttribute(c)) - return b; + if (!a.attributes[c] && a.hasAttribute && !a.hasAttribute(c)) return b; var p = !d.support.hrefNormalized && g && i ? a.getAttribute(c, 2) @@ -1510,8 +1468,7 @@ ? c.addEventListener(n, m, !1) : c.attachEvent && c.attachEvent('on' + n, m); } - r.add && - (r.add.call(c, j), j.handler.guid || (j.handler.guid = f.guid)), + r.add && (r.add.call(c, j), j.handler.guid || (j.handler.guid = f.guid)), q.push(j), (d.event.global[n] = !0); } @@ -1601,18 +1558,14 @@ ? a : d.extend(d.Event(f), a) : d.Event(f)), - f.indexOf('!') >= 0 && - ((a.type = f = f.slice(0, -1)), (a.exclusive = !0)), + f.indexOf('!') >= 0 && ((a.type = f = f.slice(0, -1)), (a.exclusive = !0)), e || (a.stopPropagation(), d.event.global[f] && d.each(d.cache, function () { var b = d.expando, e = this[b]; - e && - e.events && - e.events[f] && - d.event.trigger(a, c, e.handle.elem); + e && e.events && e.events[f] && d.event.trigger(a, c, e.handle.elem); })); if (!e || e.nodeType === 3 || e.nodeType === 8) return b; (a.result = b), (a.target = e), (c = d.makeArray(c)), c.unshift(a); @@ -1677,8 +1630,7 @@ (c.handler = n.handler), (c.data = n.data), (c.handleObj = n); var o = n.handler.apply(this, k); o !== b && - ((c.result = o), - o === !1 && (c.preventDefault(), c.stopPropagation())); + ((c.result = o), o === !1 && (c.preventDefault(), c.stopPropagation())); if (c.isImmediatePropagationStopped()) break; } } @@ -1693,14 +1645,12 @@ if (a[d.expando]) return a; var e = a; a = d.Event(e); - for (var f = this.props.length, g; f; ) - (g = this.props[--f]), (a[g] = e[g]); + for (var f = this.props.length, g; f; ) (g = this.props[--f]), (a[g] = e[g]); a.target || (a.target = a.srcElement || c), a.target.nodeType === 3 && (a.target = a.target.parentNode), !a.relatedTarget && a.fromElement && - (a.relatedTarget = - a.fromElement === a.target ? a.toElement : a.fromElement); + (a.relatedTarget = a.fromElement === a.target ? a.toElement : a.fromElement); if (a.pageX == null && a.clientX != null) { var h = c.documentElement, i = c.body; @@ -1719,8 +1669,7 @@ !a.metaKey && a.ctrlKey && (a.metaKey = a.ctrlKey), !a.which && a.button !== b && - (a.which = - a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0); + (a.which = a.button & 1 ? 1 : a.button & 2 ? 3 : a.button & 4 ? 2 : 0); return a; }, guid: 1e8, @@ -1794,8 +1743,7 @@ try { if (b !== c && !b.parentNode) return; while (b && b !== this) b = b.parentNode; - b !== this && - ((a.type = a.data), d.event.handle.apply(this, arguments)); + b !== this && ((a.type = a.data), d.event.handle.apply(this, arguments)); } catch (e) {} }, y = function (a) { @@ -1866,9 +1814,7 @@ d._data(c, '_change_data', f); if (e === b || f === e) return; if (e != null || f) - (a.type = 'change'), - (a.liveFired = b), - d.event.trigger(a, arguments[1], c); + (a.type = 'change'), (a.liveFired = b), d.event.trigger(a, arguments[1], c); } }; (d.event.special.change = { @@ -1939,17 +1885,14 @@ }) : f; if (a === 'unload' && c !== 'one') this.one(a, e, f); - else - for (var i = 0, j = this.length; i < j; i++) - d.event.add(this[i], a, h, e); + else for (var i = 0, j = this.length; i < j; i++) d.event.add(this[i], a, h, e); return this; }; }), d.fn.extend({ unbind: function (a, b) { if (typeof a !== 'object' || a.preventDefault) - for (var e = 0, f = this.length; e < f; e++) - d.event.remove(this[e], a, b); + for (var e = 0, f = this.length; e < f; e++) d.event.remove(this[e], a, b); else for (var c in a) this.unbind(c, a[c]); return this; }, @@ -1957,9 +1900,7 @@ return this.live(b, c, d, a); }, undelegate: function (a, b, c) { - return arguments.length === 0 - ? this.unbind('live') - : this.die(b, null, c, a); + return arguments.length === 0 ? this.unbind('live') : this.die(b, null, c, a); }, trigger: function (a, b) { return this.each(function () { @@ -1969,9 +1910,7 @@ triggerHandler: function (a, b) { if (this[0]) { var c = d.Event(a); - c.preventDefault(), - c.stopPropagation(), - d.event.trigger(c, b, this[0]); + c.preventDefault(), c.stopPropagation(), d.event.trigger(c, b, this[0]); return c.result; } }, @@ -2160,9 +2099,7 @@ ? { expr: x.pop(), set: p(g) } : k.find( x.pop(), - x.length === 1 && - (x[0] === '~' || x[0] === '+') && - d.parentNode + x.length === 1 && (x[0] === '~' || x[0] === '+') && d.parentNode ? d.parentNode : d, w @@ -2183,8 +2120,7 @@ if (d && d.nodeType === 1) for (t = 0; n[t] != null; t++) n[t] && - (n[t] === !0 || - (n[t].nodeType === 1 && k.contains(d, n[t]))) && + (n[t] === !0 || (n[t].nodeType === 1 && k.contains(d, n[t]))) && e.push(j[t]); else for (t = 0; n[t] != null; t++) @@ -2198,8 +2134,7 @@ if (r) { (g = h), a.sort(r); if (g) - for (var b = 1; b < a.length; b++) - a[b] === a[b - 1] && a.splice(b--, 1); + for (var b = 1; b < a.length; b++) a[b] === a[b - 1] && a.splice(b--, 1); } return a; }), @@ -2317,10 +2252,7 @@ for (var f = 0, g = a.length, h; f < g; f++) if ((h = a[f])) { while ((h = h.previousSibling) && h.nodeType !== 1) {} - a[f] = - e || (h && h.nodeName.toLowerCase() === b) - ? h || !1 - : h === b; + a[f] = e || (h && h.nodeName.toLowerCase() === b) ? h || !1 : h === b; } e && k.filter(b, a, !0); }, @@ -2340,8 +2272,7 @@ } } else { for (; e < f; e++) - (c = a[e]), - c && (a[e] = d ? c.parentNode : c.parentNode === b); + (c = a[e]), c && (a[e] = d ? c.parentNode : c.parentNode === b); d && k.filter(b, a, !0); } }, @@ -2393,9 +2324,7 @@ h && (e ^ (h.className && - (' ' + h.className + ' ') - .replace(/[\t\n\r]/g, ' ') - .indexOf(a) >= 0) + (' ' + h.className + ' ').replace(/[\t\n\r]/g, ' ').indexOf(a) >= 0) ? c || d.push(h) : c && (b[g] = !1)); return !1; @@ -2436,8 +2365,7 @@ d || e.push.apply(e, g); return !1; } - else if (l.match.POS.test(b[0]) || l.match.CHILD.test(b[0])) - return !0; + else if (l.match.POS.test(b[0]) || l.match.CHILD.test(b[0])) return !0; return b; }, POS: function (a) { @@ -2496,9 +2424,7 @@ return 'reset' === a.type; }, button: function (a) { - return ( - 'button' === a.type || a.nodeName.toLowerCase() === 'button' - ); + return 'button' === a.type || a.nodeName.toLowerCase() === 'button'; }, input: function (a) { return /input|select|textarea|button/i.test(a.nodeName); @@ -2537,17 +2463,13 @@ if (f) return f(a, c, b, d); if (e === 'contains') return ( - ( - a.textContent || - a.innerText || - k.getText([a]) || - '' - ).indexOf(b[3]) >= 0 + (a.textContent || a.innerText || k.getText([a]) || '').indexOf( + b[3] + ) >= 0 ); if (e === 'not') { var g = b[3]; - for (var h = 0, i = g.length; h < i; h++) - if (g[h] === a) return !1; + for (var h = 0, i = g.length; h < i; h++) if (g[h] === a) return !1; return !0; } k.error(e); @@ -2558,8 +2480,7 @@ switch (c) { case 'only': case 'first': - while ((d = d.previousSibling)) - if (d.nodeType === 1) return !1; + while ((d = d.previousSibling)) if (d.nodeType === 1) return !1; if (c === 'first') return !0; d = a; case 'last': @@ -2585,16 +2506,11 @@ return a.nodeType === 1 && a.getAttribute('id') === b; }, TAG: function (a, b) { - return ( - (b === '*' && a.nodeType === 1) || - a.nodeName.toLowerCase() === b - ); + return (b === '*' && a.nodeType === 1) || a.nodeName.toLowerCase() === b; }, CLASS: function (a, b) { return ( - (' ' + (a.className || a.getAttribute('class')) + ' ').indexOf( - b - ) > -1 + (' ' + (a.className || a.getAttribute('class')) + ' ').indexOf(b) > -1 ); }, ATTR: function (a, b) { @@ -2623,8 +2539,7 @@ : f === '$=' ? e.substr(e.length - g.length) === g : f === '|=' - ? e === g || - e.substr(0, g.length + 1) === g + '-' + ? e === g || e.substr(0, g.length + 1) === g + '-' : !1 : e && d !== !1; }, @@ -2741,8 +2656,7 @@ }), (l.filter.ID = function (a, b) { var c = - typeof a.getAttributeNode !== 'undefined' && - a.getAttributeNode('id'); + typeof a.getAttributeNode !== 'undefined' && a.getAttributeNode('id'); return a.nodeType === 1 && c && c.nodeValue === b; })), e.removeChild(a), @@ -2756,8 +2670,7 @@ var c = b.getElementsByTagName(a[1]); if (a[1] === '*') { var d = []; - for (var e = 0; c[e]; e++) - c[e].nodeType === 1 && d.push(c[e]); + for (var e = 0; c[e]; e++) c[e].nodeType === 1 && d.push(c[e]); c = d; } return c; @@ -2777,10 +2690,7 @@ b = c.createElement('div'), d = '__sizzle__'; b.innerHTML = "

"; - if ( - !b.querySelectorAll || - b.querySelectorAll('.TEST').length !== 0 - ) { + if (!b.querySelectorAll || b.querySelectorAll('.TEST').length !== 0) { k = function (b, e, f, g) { e = e || c; if (!g && !k.isXML(e)) { @@ -2813,10 +2723,7 @@ r && q && (e = e.parentNode); try { if (!r || q) - return p( - e.querySelectorAll("[id='" + o + "'] " + b), - f - ); + return p(e.querySelectorAll("[id='" + o + "'] " + b), f); } catch (s) { } finally { n || m.removeAttribute('id'); @@ -2856,10 +2763,7 @@ (function () { var a = c.createElement('div'); a.innerHTML = "
"; - if ( - a.getElementsByClassName && - a.getElementsByClassName('e').length !== 0 - ) { + if (a.getElementsByClassName && a.getElementsByClassName('e').length !== 0) { a.lastChild.className = 'e'; if (a.getElementsByClassName('e').length === 1) return; l.order.splice(1, 0, 'CLASS'), @@ -2930,8 +2834,7 @@ has: function (a) { var b = d(a); return this.filter(function () { - for (var a = 0, c = b.length; a < c; a++) - if (d.contains(this, b[a])) return !0; + for (var a = 0, c = b.length; a < c; a++) if (d.contains(this, b[a])) return !0; }); }, not: function (a) { @@ -2956,8 +2859,7 @@ if (g && a.length) { for (e = 0, f = a.length; e < f; e++) (i = a[e]), - j[i] || - (j[i] = d.expr.match.POS.test(i) ? d(i, b || this.context) : i); + j[i] || (j[i] = d.expr.match.POS.test(i) ? d(i, b || this.context) : i); while (g && g.ownerDocument && g !== b) { for (i in j) (h = j[i]), @@ -3063,11 +2965,7 @@ dir: function (a, c, e) { var f = [], g = a[c]; - while ( - g && - g.nodeType !== 9 && - (e === b || g.nodeType !== 1 || !d(g).is(e)) - ) + while (g && g.nodeType !== 9 && (e === b || g.nodeType !== 1 || !d(g).is(e))) g.nodeType === 1 && f.push(g), (g = g[c]); return f; }, @@ -3085,8 +2983,7 @@ }); var P = / jQuery\d+="(?:\d+|null)"/g, Q = /^\s+/, - R = - /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + R = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, S = /<([\w:]+)/, T = /= 200 && a < 300) || a === 304) { if (e.ifModified) { - if ((x = u.getResponseHeader('Last-Modified'))) - d.lastModified[k] = x; + if ((x = u.getResponseHeader('Last-Modified'))) d.lastModified[k] = x; if ((y = u.getResponseHeader('Etag'))) d.etag[k] = y; } if (a === 304) (c = 'notmodified'), (q = !0); @@ -3819,12 +3697,7 @@ q ? h.resolveWith(f, [t, c, u]) : h.rejectWith(f, [u, c, v]), u.statusCode(j), (j = b), - s && - g.trigger('ajax' + (q ? 'Success' : 'Error'), [ - u, - e, - q ? t : v, - ]), + s && g.trigger('ajax' + (q ? 'Success' : 'Error'), [u, e, q ? t : v]), i.resolveWith(f, [u, c]), s && (g.trigger('ajaxComplete', [u, e]), @@ -3889,9 +3762,7 @@ } return this; }), - (e.url = ((a || e.url) + '') - .replace(bs, '') - .replace(bx, bK[1] + '//')), + (e.url = ((a || e.url) + '').replace(bs, '').replace(bx, bK[1] + '//')), (e.dataTypes = d .trim(e.dataType || '*') .toLowerCase() @@ -3915,13 +3786,11 @@ (e.hasContent = !bw.test(e.type)), s && d.active++ === 0 && d.event.trigger('ajaxStart'); if (!e.hasContent) { - e.data && (e.url += (by.test(e.url) ? '&' : '?') + e.data), - (k = e.url); + e.data && (e.url += (by.test(e.url) ? '&' : '?') + e.data), (k = e.url); if (e.cache === !1) { var w = d.now(), x = e.url.replace(bC, '$1_=' + w); - e.url = - x + (x === e.url ? (by.test(e.url) ? '&' : '?') + '_=' + w : ''); + e.url = x + (x === e.url ? (by.test(e.url) ? '&' : '?') + '_=' + w : ''); } } if ((e.data && e.hasContent && e.contentType !== !1) || c.contentType) @@ -3962,8 +3831,7 @@ var e = [], f = function (a, b) { (b = d.isFunction(b) ? b() : b), - (e[e.length] = - encodeURIComponent(a) + '=' + encodeURIComponent(b)); + (e[e.length] = encodeURIComponent(a) + '=' + encodeURIComponent(b)); }; c === b && (c = d.ajaxSettings.traditional); if (d.isArray(a) || (a.jquery && !d.isPlainObject(a))) @@ -4006,8 +3874,7 @@ ((j = j.replace(bS, l)), b.url === j && (f && (k = k.replace(bS, l)), - b.data === k && - (j += (/\?/.test(j) ? '&' : '?') + b.jsonp + '=' + h))), + b.data === k && (j += (/\?/.test(j) ? '&' : '?') + b.jsonp + '=' + h))), (b.url = j), (b.data = k), (a[h] = function (a) { @@ -4090,9 +3957,7 @@ ? g.open(a.type, a.url, a.async, a.username, a.password) : g.open(a.type, a.url, a.async); if (a.xhrFields) for (i in a.xhrFields) g[i] = a.xhrFields[i]; - a.mimeType && - g.overrideMimeType && - g.overrideMimeType(a.mimeType), + a.mimeType && g.overrideMimeType && g.overrideMimeType(a.mimeType), (!a.crossDomain || a.hasContent) && !e['X-Requested-With'] && (e['X-Requested-With'] = 'XMLHttpRequest'); @@ -4104,8 +3969,7 @@ var j, k, l, m, n; try { if (c && (i || g.readyState === 4)) { - (c = b), - h && ((g.onreadystatechange = d.noop), delete bU[h]); + (c = b), h && ((g.onreadystatechange = d.noop), delete bU[h]); if (i) g.readyState !== 4 && g.abort(); else { (j = g.status), @@ -4157,16 +4021,13 @@ for (var g = 0, h = this.length; g < h; g++) (e = this[g]), (f = e.style.display), - !d._data(e, 'olddisplay') && - f === 'none' && - (f = e.style.display = ''), + !d._data(e, 'olddisplay') && f === 'none' && (f = e.style.display = ''), f === '' && d.css(e, 'display') === 'none' && d._data(e, 'olddisplay', cd(e.nodeName)); for (g = 0; g < h; g++) { (e = this[g]), (f = e.style.display); - if (f === '' || f === 'none') - e.style.display = d._data(e, 'olddisplay') || ''; + if (f === '' || f === 'none') e.style.display = d._data(e, 'olddisplay') || ''; } return this; }, @@ -4221,10 +4082,7 @@ this.style.overflowX, this.style.overflowY, ]; - if ( - d.css(this, 'display') === 'inline' && - d.css(this, 'float') === 'none' - ) + if (d.css(this, 'display') === 'inline' && d.css(this, 'float') === 'none') if (d.support.inlineBlockNeedsLayout) { var j = cd(this.nodeName); j === 'inline' @@ -4319,10 +4177,7 @@ }, timers: [], fx: function (a, b, c) { - (this.options = b), - (this.elem = a), - (this.prop = c), - b.orig || (b.orig = {}); + (this.options = b), (this.elem = a), (this.prop = c), b.orig || (b.orig = {}); }, }), (d.fx.prototype = { @@ -4353,10 +4208,7 @@ (this.now = this.start), (this.pos = this.state = 0), (g.elem = this.elem), - g() && - d.timers.push(g) && - !ca && - (ca = setInterval(f.tick, f.interval)); + g() && d.timers.push(g) && !ca && (ca = setInterval(f.tick, f.interval)); }, show: function () { (this.options.orig[this.prop] = d.style(this.elem, this.prop)), @@ -4400,16 +4252,9 @@ } var i = b - this.startTime; this.state = i / this.options.duration; - var j = - this.options.specialEasing && this.options.specialEasing[this.prop], + var j = this.options.specialEasing && this.options.specialEasing[this.prop], k = this.options.easing || (d.easing.swing ? 'swing' : 'linear'); - (this.pos = d.easing[j || k]( - this.state, - i, - 0, - 1, - this.options.duration - )), + (this.pos = d.easing[j || k](this.state, i, 0, 1, this.options.duration)), (this.now = this.start + (this.end - this.start) * this.pos), this.update(); return !0; @@ -4470,12 +4315,8 @@ i = cg(f), j = g.clientTop || h.clientTop || 0, k = g.clientLeft || h.clientLeft || 0, - l = - i.pageYOffset || (d.support.boxModel && g.scrollTop) || h.scrollTop, - m = - i.pageXOffset || - (d.support.boxModel && g.scrollLeft) || - h.scrollLeft, + l = i.pageYOffset || (d.support.boxModel && g.scrollTop) || h.scrollTop, + m = i.pageXOffset || (d.support.boxModel && g.scrollLeft) || h.scrollLeft, n = c.top + l - j, o = c.left + m - k; return { top: n, left: o }; @@ -4508,8 +4349,7 @@ ((l += b.offsetTop), (m += b.offsetLeft), d.offset.doesNotAddBorder && - (!d.offset.doesAddBorderForTableAndCells || - !ce.test(b.nodeName)) && + (!d.offset.doesAddBorderForTableAndCells || !ce.test(b.nodeName)) && ((l += parseFloat(c.borderTopWidth) || 0), (m += parseFloat(c.borderLeftWidth) || 0)), (f = e), @@ -4558,8 +4398,7 @@ (this.doesAddBorderForTableAndCells = h.offsetTop === 5), (f.style.position = 'fixed'), (f.style.top = '20px'), - (this.supportsFixedPosition = - f.offsetTop === 20 || f.offsetTop === 15), + (this.supportsFixedPosition = f.offsetTop === 20 || f.offsetTop === 15), (f.style.position = f.style.top = ''), (e.style.overflow = 'hidden'), (e.style.position = 'relative'), @@ -4631,10 +4470,7 @@ return this.each(function () { (g = cg(this)), g - ? g.scrollTo( - a ? d(g).scrollLeft() : c, - a ? c : d(g).scrollTop() - ) + ? g.scrollTo(a ? d(g).scrollLeft() : c, a ? c : d(g).scrollTop()) : (this[e] = c); }); g = cg(f); diff --git a/boxoffice/assets/js/libs/jquery-ui-1.8.4.min.js b/boxoffice/assets/js/libs/jquery-ui-1.8.4.min.js index 34184bf95..c2bdc873a 100644 --- a/boxoffice/assets/js/libs/jquery-ui-1.8.4.min.js +++ b/boxoffice/assets/js/libs/jquery-ui-1.8.4.min.js @@ -13,10 +13,7 @@ .parents() .andSelf() .filter(function () { - return ( - c.curCSS(this, 'visibility') === 'hidden' || - c.expr.filters.hidden(this) - ); + return c.curCSS(this, 'visibility') === 'hidden' || c.expr.filters.hidden(this); }).length; } c.ui = c.ui || {}; @@ -120,9 +117,7 @@ ? this.parents() .filter(function () { return ( - /(relative|absolute|fixed)/.test( - c.curCSS(this, 'position', 1) - ) && + /(relative|absolute|fixed)/.test(c.curCSS(this, 'position', 1)) && /(auto|scroll)/.test( c.curCSS(this, 'overflow', 1) + c.curCSS(this, 'overflow-y', 1) + @@ -140,9 +135,7 @@ ); }) .eq(0); - return /fixed/.test(this.css('position')) || !a.length - ? c(document) - : a; + return /fixed/.test(this.css('position')) || !a.length ? c(document) : a; }, zIndex: function (a) { if (a !== j) return this.css('zIndex', a); @@ -164,8 +157,7 @@ function d(f, g, l, m) { c.each(e, function () { g -= parseFloat(c.curCSS(f, 'padding' + this, true)) || 0; - if (l) - g -= parseFloat(c.curCSS(f, 'border' + this + 'Width', true)) || 0; + if (l) g -= parseFloat(c.curCSS(f, 'border' + this + 'Width', true)) || 0; if (m) g -= parseFloat(c.curCSS(f, 'margin' + this, true)) || 0; }); return g; @@ -409,8 +401,7 @@ e = a.which == 1, f = typeof this.options.cancel == 'string' - ? c(a.target).parents().add(a.target).filter(this.options.cancel) - .length + ? c(a.target).parents().add(a.target).filter(this.options.cancel).length : false; if (!e || f || !this._mouseCapture(a)) return true; this.mouseDelayMet = !this.options.delay; @@ -445,8 +436,7 @@ return a.preventDefault(); } if (this._mouseDistanceMet(a) && this._mouseDelayMet(a)) - (this._mouseStarted = - this._mouseStart(this._mouseDownEvent, a) !== false) + (this._mouseStarted = this._mouseStart(this._mouseDownEvent, a) !== false) ? this._mouseDrag(a) : this._mouseUp(a); return !this._mouseStarted; @@ -525,9 +515,7 @@ this.element .removeData('draggable') .unbind('.draggable') - .removeClass( - 'ui-draggable ui-draggable-dragging ui-draggable-disabled' - ); + .removeClass('ui-draggable ui-draggable-dragging ui-draggable-disabled'); this._mouseDestroy(); return this; } @@ -571,9 +559,7 @@ return false; } this._cacheHelperProportions(); - d.ui.ddmanager && - !b.dropBehaviour && - d.ui.ddmanager.prepareOffsets(this, a); + d.ui.ddmanager && !b.dropBehaviour && d.ui.ddmanager.prepareOffsets(this, a); this.helper.addClass('ui-draggable-dragging'); this._mouseDrag(a, true); return true; @@ -609,8 +595,7 @@ (this.options.revert == 'invalid' && !b) || (this.options.revert == 'valid' && b) || this.options.revert === true || - (d.isFunction(this.options.revert) && - this.options.revert.call(this.element, b)) + (d.isFunction(this.options.revert) && this.options.revert.call(this.element, b)) ) { var c = this; d(this.helper).animate( @@ -624,9 +609,7 @@ return false; }, cancel: function () { - this.helper.is('.ui-draggable-dragging') - ? this._mouseUp({}) - : this._clear(); + this.helper.is('.ui-draggable-dragging') ? this._mouseUp({}) : this._clear(); return this; }, _getHandle: function (a) { @@ -650,9 +633,7 @@ ? this.element.clone() : this.element; a.parents('body').length || - a.appendTo( - b.appendTo == 'parent' ? this.element[0].parentNode : b.appendTo - ); + a.appendTo(b.appendTo == 'parent' ? this.element[0].parentNode : b.appendTo); a[0] != this.element[0] && !/(fixed|absolute)/.test(a.css('position')) && a.css('position', 'absolute'); @@ -689,11 +670,8 @@ ) a = { top: 0, left: 0 }; return { - top: - a.top + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), - left: - a.left + - (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + top: a.top + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: a.left + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), }; }, _getRelativeOffset: function () { @@ -769,8 +747,7 @@ this.margins.top, ]; } - } else if (a.containment.constructor == Array) - this.containment = a.containment; + } else if (a.containment.constructor == Array) this.containment = a.containment; }, _convertPositionTo: function (a, b) { if (!b) b = this.position; @@ -789,9 +766,7 @@ b.top + this.offset.relative.top * a + this.offset.parent.top * a - - (d.browser.safari && - d.browser.version < 526 && - this.cssPosition == 'fixed' + (d.browser.safari && d.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : (this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() @@ -802,9 +777,7 @@ b.left + this.offset.relative.left * a + this.offset.parent.left * a - - (d.browser.safari && - d.browser.version < 526 && - this.cssPosition == 'fixed' + (d.browser.safari && d.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : (this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() @@ -872,9 +845,7 @@ this.offset.click.top - this.offset.relative.top - this.offset.parent.top + - (d.browser.safari && - d.browser.version < 526 && - this.cssPosition == 'fixed' + (d.browser.safari && d.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() @@ -886,9 +857,7 @@ this.offset.click.left - this.offset.relative.left - this.offset.parent.left + - (d.browser.safari && - d.browser.version < 526 && - this.cssPosition == 'fixed' + (d.browser.safari && d.browser.version < 526 && this.cssPosition == 'fixed' ? 0 : this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() @@ -993,11 +962,7 @@ this.instance.isOver = 0; this.instance.cancelHelperRemoval = true; this.instance.options.revert = false; - this.instance._trigger( - 'out', - a, - this.instance._uiHash(this.instance) - ); + this.instance._trigger('out', a, this.instance._uiHash(this.instance)); this.instance._mouseStop(a, true); this.instance.options.helper = this.instance.options._helper; this.instance.currentItem.remove(); @@ -1024,9 +989,7 @@ start: function () { var a = d(this).data('draggable').options; d(a.iframeFix === true ? 'iframe' : a.iframeFix).each(function () { - d( - '
' - ) + d('
') .css({ width: this.offsetWidth + 'px', height: this.offsetHeight + 'px', @@ -1066,10 +1029,7 @@ var b = d(this).data('draggable'), c = b.options, f = false; - if ( - b.scrollParent[0] != document && - b.scrollParent[0].tagName != 'HTML' - ) { + if (b.scrollParent[0] != document && b.scrollParent[0].tagName != 'HTML') { if (!c.axis || c.axis != 'x') if ( b.overflowOffset.top + b.scrollParent[0].offsetHeight - a.pageY < @@ -1101,16 +1061,12 @@ f = d(document).scrollTop(d(document).scrollTop() + c.scrollSpeed); if (!c.axis || c.axis != 'y') if (a.pageX - d(document).scrollLeft() < c.scrollSensitivity) - f = d(document).scrollLeft( - d(document).scrollLeft() - c.scrollSpeed - ); + f = d(document).scrollLeft(d(document).scrollLeft() - c.scrollSpeed); else if ( d(window).width() - (a.pageX - d(document).scrollLeft()) < c.scrollSensitivity ) - f = d(document).scrollLeft( - d(document).scrollLeft() + c.scrollSpeed - ); + f = d(document).scrollLeft(d(document).scrollLeft() + c.scrollSpeed); } f !== false && d.ui.ddmanager && @@ -1124,9 +1080,7 @@ b = a.options; a.snapElements = []; d( - b.snap.constructor != String - ? b.snap.items || ':data(draggable)' - : b.snap + b.snap.constructor != String ? b.snap.items || ':data(draggable)' : b.snap ).each(function () { var c = d(this), f = c.offset(); @@ -1294,8 +1248,7 @@ width: this.element[0].offsetWidth, height: this.element[0].offsetHeight, }; - d.ui.ddmanager.droppables[a.scope] = - d.ui.ddmanager.droppables[a.scope] || []; + d.ui.ddmanager.droppables[a.scope] = d.ui.ddmanager.droppables[a.scope] || []; d.ui.ddmanager.droppables[a.scope].push(this); a.addClasses && this.element.addClass('ui-droppable'); }, @@ -1323,22 +1276,19 @@ }, _activate: function (a) { var b = d.ui.ddmanager.current; - this.options.activeClass && - this.element.addClass(this.options.activeClass); + this.options.activeClass && this.element.addClass(this.options.activeClass); b && this._trigger('activate', a, this.ui(b)); }, _deactivate: function (a) { var b = d.ui.ddmanager.current; - this.options.activeClass && - this.element.removeClass(this.options.activeClass); + this.options.activeClass && this.element.removeClass(this.options.activeClass); b && this._trigger('deactivate', a, this.ui(b)); }, _over: function (a) { var b = d.ui.ddmanager.current; if (!(!b || (b.currentItem || b.element)[0] == this.element[0])) if (this.accept.call(this.element[0], b.currentItem || b.element)) { - this.options.hoverClass && - this.element.addClass(this.options.hoverClass); + this.options.hoverClass && this.element.addClass(this.options.hoverClass); this._trigger('over', a, this.ui(b)); } }, @@ -1346,15 +1296,13 @@ var b = d.ui.ddmanager.current; if (!(!b || (b.currentItem || b.element)[0] == this.element[0])) if (this.accept.call(this.element[0], b.currentItem || b.element)) { - this.options.hoverClass && - this.element.removeClass(this.options.hoverClass); + this.options.hoverClass && this.element.removeClass(this.options.hoverClass); this._trigger('out', a, this.ui(b)); } }, _drop: function (a, b) { var c = b || d.ui.ddmanager.current; - if (!c || (c.currentItem || c.element)[0] == this.element[0]) - return false; + if (!c || (c.currentItem || c.element)[0] == this.element[0]) return false; var e = false; this.element .find(':data(droppable)') @@ -1378,10 +1326,8 @@ }); if (e) return false; if (this.accept.call(this.element[0], c.currentItem || c.element)) { - this.options.activeClass && - this.element.removeClass(this.options.activeClass); - this.options.hoverClass && - this.element.removeClass(this.options.hoverClass); + this.options.activeClass && this.element.removeClass(this.options.activeClass); + this.options.hoverClass && this.element.removeClass(this.options.hoverClass); this._trigger('drop', a, this.ui(c)); return this.element; } @@ -1449,8 +1395,7 @@ if ( !( c[f].options.disabled || - (a && - !c[f].accept.call(c[f].element[0], a.currentItem || a.element)) + (a && !c[f].accept.call(c[f].element[0], a.currentItem || a.element)) ) ) { for (var h = 0; h < g.length; h++) @@ -1563,15 +1508,9 @@ originalElement: this.element, _proportionallyResizeElements: [], _helper: - a.helper || a.ghost || a.animate - ? a.helper || 'ui-resizable-helper' - : null, + a.helper || a.ghost || a.animate ? a.helper || 'ui-resizable-helper' : null, }); - if ( - this.element[0].nodeName.match( - /canvas|textarea|input|select|button|img/i - ) - ) { + if (this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) { /relative/.test(this.element.css('position')) && e.browser.opera && this.element.css({ position: 'relative', top: 'auto', left: 'auto' }); @@ -1635,9 +1574,7 @@ for (var d = 0; d < c.length; d++) { var f = e.trim(c[d]), g = e( - '
' + '
' ); /sw|se|ne|nw/.test(f) && g.css({ zIndex: ++a.zIndex }); 'se' == f && g.addClass('ui-icon ui-icon-gripsmall-diagonal-se'); @@ -1652,9 +1589,7 @@ this.handles[i] = e(this.handles[i], this.element).show(); if ( this.elementIsWrapper && - this.originalElement[0].nodeName.match( - /textarea|input|select|button/i - ) + this.originalElement[0].nodeName.match(/textarea|input|select|button/i) ) { var j = e(this.handles[i], this.element), k = 0; @@ -1676,10 +1611,7 @@ } }; this._renderAxis(this.element); - this._handles = e( - '.ui-resizable-handle', - this.element - ).disableSelection(); + this._handles = e('.ui-resizable-handle', this.element).disableSelection(); this._handles.mouseover(function () { if (!b.resizing) { if (this.className) @@ -1710,9 +1642,7 @@ this._mouseDestroy(); var b = function (c) { e(c) - .removeClass( - 'ui-resizable ui-resizable-disabled ui-resizable-resizing' - ) + .removeClass('ui-resizable ui-resizable-disabled ui-resizable-resizing') .removeData('resizable') .unbind('.resizable') .find('.ui-resizable-handle') @@ -1737,8 +1667,7 @@ }, _mouseCapture: function (b) { var a = false; - for (var c in this.handles) - if (e(this.handles[c])[0] == b.target) a = true; + for (var c in this.handles) if (e(this.handles[c])[0] == b.target) a = true; return !this.options.disabled && a; }, _mouseStart: function (b) { @@ -1910,8 +1839,7 @@ return g + h; }); } - (e.browser.msie && - (e(b).is(':hidden') || e(b).parents(':hidden').length)) || + (e.browser.msie && (e(b).is(':hidden') || e(b).parents(':hidden').length)) || c.css({ height: b.height() - this.borderDif[0] - this.borderDif[2] || 0, width: b.width() - this.borderDif[1] - this.borderDif[3] || 0, @@ -2121,10 +2049,7 @@ var b = e(this).data('resizable'), a = b.element, c = b.options.containment; - if ( - (a = - c instanceof e ? c.get(0) : /parent/.test(c) ? a.parent().get(0) : c) - ) { + if ((a = c instanceof e ? c.get(0) : /parent/.test(c) ? a.parent().get(0) : c)) { b.containerElement = e(a); if (/document/.test(c) || c == document) { b.containerOffset = { left: 0, top: 0 }; @@ -2134,8 +2059,7 @@ left: 0, top: 0, width: e(document).width(), - height: - e(document).height() || document.body.parentNode.scrollHeight, + height: e(document).height() || document.body.parentNode.scrollHeight, }; } else { var d = e(a), @@ -2174,9 +2098,7 @@ h = a.containerElement; if (h[0] != document && /static/.test(h.css('position'))) g = d; if (f.left < (a._helper ? d.left : 0)) { - a.size.width += a._helper - ? a.position.left - d.left - : a.position.left - g.left; + a.size.width += a._helper ? a.position.left - d.left : a.position.left - g.left; if (b) a.size.height = a.size.width / c.aspectRatio; a.position.left = c.helper ? d.left : 0; } @@ -2188,12 +2110,10 @@ a.offset.left = a.parentData.left + a.position.left; a.offset.top = a.parentData.top + a.position.top; c = Math.abs( - (a._helper ? a.offset.left - g.left : a.offset.left - g.left) + - a.sizeDiff.width + (a._helper ? a.offset.left - g.left : a.offset.left - g.left) + a.sizeDiff.width ); d = Math.abs( - (a._helper ? a.offset.top - g.top : a.offset.top - d.top) + - a.sizeDiff.height + (a._helper ? a.offset.top - g.top : a.offset.top - d.top) + a.sizeDiff.height ); f = a.containerElement.get(0) == a.element.parent().get(0); g = /relative|absolute/.test(a.containerElement.css('position')); @@ -2271,10 +2191,8 @@ f = b.originalPosition, g = b.axis; a.grid = typeof a.grid == 'number' ? [a.grid, a.grid] : a.grid; - var h = - Math.round((c.width - d.width) / (a.grid[0] || 1)) * (a.grid[0] || 1); - a = - Math.round((c.height - d.height) / (a.grid[1] || 1)) * (a.grid[1] || 1); + var h = Math.round((c.width - d.width) / (a.grid[0] || 1)) * (a.grid[0] || 1); + a = Math.round((c.height - d.height) / (a.grid[1] || 1)) * (a.grid[1] || 1); if (/^(se|s|e)$/.test(g)) { b.size.width = d.width + h; b.size.height = d.height + a; @@ -2611,8 +2529,7 @@ this._createPlaceholder(); b.containment && this._setContainment(); if (b.cursor) { - if (d('body').css('cursor')) - this._storedCursor = d('body').css('cursor'); + if (d('body').css('cursor')) this._storedCursor = d('body').css('cursor'); d('body').css('cursor', b.cursor); } if (b.opacity) { @@ -2621,14 +2538,10 @@ this.helper.css('opacity', b.opacity); } if (b.zIndex) { - if (this.helper.css('zIndex')) - this._storedZIndex = this.helper.css('zIndex'); + if (this.helper.css('zIndex')) this._storedZIndex = this.helper.css('zIndex'); this.helper.css('zIndex', b.zIndex); } - if ( - this.scrollParent[0] != document && - this.scrollParent[0].tagName != 'HTML' - ) + if (this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') this.overflowOffset = this.scrollParent.offset(); this._trigger('start', a, this._uiHash()); this._preserveHelperProportions || this._cacheHelperProportions(); @@ -2636,9 +2549,7 @@ for (c = this.containers.length - 1; c >= 0; c--) this.containers[c]._trigger('activate', a, e._uiHash(this)); if (d.ui.ddmanager) d.ui.ddmanager.current = this; - d.ui.ddmanager && - !b.dropBehaviour && - d.ui.ddmanager.prepareOffsets(this, a); + d.ui.ddmanager && !b.dropBehaviour && d.ui.ddmanager.prepareOffsets(this, a); this.dragging = true; this.helper.addClass('ui-sortable-helper'); this._mouseDrag(a); @@ -2656,9 +2567,7 @@ this.scrollParent[0].tagName != 'HTML' ) { if ( - this.overflowOffset.top + - this.scrollParent[0].offsetHeight - - a.pageY < + this.overflowOffset.top + this.scrollParent[0].offsetHeight - a.pageY < b.scrollSensitivity ) this.scrollParent[0].scrollTop = c = @@ -2667,9 +2576,7 @@ this.scrollParent[0].scrollTop = c = this.scrollParent[0].scrollTop - b.scrollSpeed; if ( - this.overflowOffset.left + - this.scrollParent[0].offsetWidth - - a.pageX < + this.overflowOffset.left + this.scrollParent[0].offsetWidth - a.pageX < b.scrollSensitivity ) this.scrollParent[0].scrollLeft = c = @@ -2686,16 +2593,12 @@ ) c = d(document).scrollTop(d(document).scrollTop() + b.scrollSpeed); if (a.pageX - d(document).scrollLeft() < b.scrollSensitivity) - c = d(document).scrollLeft( - d(document).scrollLeft() - b.scrollSpeed - ); + c = d(document).scrollLeft(d(document).scrollLeft() - b.scrollSpeed); else if ( d(window).width() - (a.pageX - d(document).scrollLeft()) < b.scrollSensitivity ) - c = d(document).scrollLeft( - d(document).scrollLeft() + b.scrollSpeed - ); + c = d(document).scrollLeft(d(document).scrollLeft() + b.scrollSpeed); } c !== false && d.ui.ddmanager && @@ -2721,10 +2624,7 @@ : true) ) { this.direction = f == 1 ? 'down' : 'up'; - if ( - this.options.tolerance == 'pointer' || - this._intersectsWithSides(c) - ) + if (this.options.tolerance == 'pointer' || this._intersectsWithSides(c)) this._rearrange(a, c); else break; this._trigger('change', a, this._uiHash()); @@ -2739,9 +2639,7 @@ }, _mouseStop: function (a, b) { if (a) { - d.ui.ddmanager && - !this.options.dropBehaviour && - d.ui.ddmanager.drop(this, a); + d.ui.ddmanager && !this.options.dropBehaviour && d.ui.ddmanager.drop(this, a); if (this.options.revert) { var c = this; b = c.placeholder.offset(); @@ -2777,9 +2675,7 @@ if (this.dragging) { this._mouseUp(); this.options.helper == 'original' - ? this.currentItem - .css(this._storedCSS) - .removeClass('ui-sortable-helper') + ? this.currentItem.css(this._storedCSS).removeClass('ui-sortable-helper') : this.currentItem.show(); for (var b = this.containers.length - 1; b >= 0; b--) { this.containers[b]._trigger('deactivate', null, a._uiHash(this)); @@ -2815,9 +2711,7 @@ a.expression || /(.+)[-=_](.+)/ ); if (e) - c.push( - (a.key || e[1] + '[]') + '=' + (a.key && a.expression ? e[1] : e[2]) - ); + c.push((a.key || e[1] + '[]') + '=' + (a.key && a.expression ? e[1] : e[2])); }); !c.length && a.key && c.push(a.key + '='); return c.join('&'); @@ -2907,9 +2801,7 @@ }, _connectWith: function () { var a = this.options; - return a.connectWith.constructor == String - ? [a.connectWith] - : a.connectWith; + return a.connectWith.constructor == String ? [a.connectWith] : a.connectWith; }, _getItemsAsjQuery: function (a) { var b = [], @@ -3042,9 +2934,7 @@ c.placeholder = { element: function () { var f = d(document.createElement(b.currentItem[0].nodeName)) - .addClass( - e || b.currentItem[0].className + ' ui-sortable-placeholder' - ) + .addClass(e || b.currentItem[0].className + ' ui-sortable-placeholder') .removeClass('ui-sortable-helper')[0]; if (!e) f.style.visibility = 'hidden'; return f; @@ -3075,9 +2965,7 @@ for (var b = null, c = null, e = this.containers.length - 1; e >= 0; e--) if (!d.ui.contains(this.currentItem[0], this.containers[e].element[0])) if (this._intersectsWith(this.containers[e].containerCache)) { - if ( - !(b && d.ui.contains(this.containers[e].element[0], b.element[0])) - ) { + if (!(b && d.ui.contains(this.containers[e].element[0], b.element[0]))) { b = this.containers[e]; c = e; } @@ -3093,20 +2981,13 @@ b = 1e4; e = null; for ( - var f = - this.positionAbs[this.containers[c].floating ? 'left' : 'top'], + var f = this.positionAbs[this.containers[c].floating ? 'left' : 'top'], g = this.items.length - 1; g >= 0; g-- ) - if ( - d.ui.contains( - this.containers[c].element[0], - this.items[g].item[0] - ) - ) { - var h = - this.items[g][this.containers[c].floating ? 'left' : 'top']; + if (d.ui.contains(this.containers[c].element[0], this.items[g].item[0])) { + var h = this.items[g][this.containers[c].floating ? 'left' : 'top']; if (Math.abs(h - f) < b) { b = Math.abs(h - f); e = this.items[g]; @@ -3119,10 +3000,7 @@ : this._rearrange(a, null, this.containers[c].element, true); this._trigger('change', a, this._uiHash()); this.containers[c]._trigger('change', a, this._uiHash(this)); - this.options.placeholder.update( - this.currentContainer, - this.placeholder - ); + this.options.placeholder.update(this.currentContainer, this.placeholder); this.containers[c]._trigger('over', a, this._uiHash(this)); this.containers[c].containerCache.over = 1; } @@ -3184,11 +3062,8 @@ ) a = { top: 0, left: 0 }; return { - top: - a.top + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), - left: - a.left + - (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), + top: a.top + (parseInt(this.offsetParent.css('borderTopWidth'), 10) || 0), + left: a.left + (parseInt(this.offsetParent.css('borderLeftWidth'), 10) || 0), }; }, _getRelativeOffset: function () { @@ -3434,10 +3309,7 @@ this._trigger('remove', f, this._uiHash()); }); for (e = this.containers.length - 1; e >= 0; e--) - if ( - d.ui.contains(this.containers[e].element[0], this.currentItem[0]) && - !b - ) { + if (d.ui.contains(this.containers[e].element[0], this.currentItem[0]) && !b) { c.push( function (f) { return function (g) { @@ -3502,8 +3374,7 @@ return true; }, _trigger: function () { - d.Widget.prototype._trigger.apply(this, arguments) === false && - this.cancel(); + d.Widget.prototype._trigger.apply(this, arguments) === false && this.cancel(); }, _uiHash: function (a) { var b = a || this; @@ -3526,10 +3397,7 @@ jQuery.effects || var a; if (c && c.constructor == Array && c.length == 3) return c; if ( - (a = - /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec( - c - )) + (a = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c)) ) return [parseInt(a[1], 10), parseInt(a[2], 10), parseInt(a[3], 10)]; if ( @@ -3656,26 +3524,17 @@ jQuery.effects || b.elem.style[a] = 'rgb(' + Math.max( - Math.min( - parseInt(b.pos * (b.end[0] - b.start[0]) + b.start[0], 10), - 255 - ), + Math.min(parseInt(b.pos * (b.end[0] - b.start[0]) + b.start[0], 10), 255), 0 ) + ',' + Math.max( - Math.min( - parseInt(b.pos * (b.end[1] - b.start[1]) + b.start[1], 10), - 255 - ), + Math.min(parseInt(b.pos * (b.end[1] - b.start[1]) + b.start[1], 10), 255), 0 ) + ',' + Math.max( - Math.min( - parseInt(b.pos * (b.end[2] - b.start[2]) + b.start[2], 10), - 255 - ), + Math.min(parseInt(b.pos * (b.end[2] - b.start[2]) + b.start[2], 10), 255), 0 ) + ')'; @@ -3795,12 +3654,7 @@ jQuery.effects || : f.effects.animateClass.apply(this, [{ toggle: c }, a, b, d]); }, switchClass: function (c, a, b, d, e) { - return f.effects.animateClass.apply(this, [ - { add: a, remove: c }, - b, - d, - e, - ]); + return f.effects.animateClass.apply(this, [{ add: a, remove: c }, b, d, e]); }, }); f.extend(f.effects, { @@ -3880,8 +3734,7 @@ jQuery.effects || return b.css(a).show(); }, removeWrapper: function (c) { - if (c.parent().is('.ui-effects-wrapper')) - return c.parent().replaceWith(c); + if (c.parent().is('.ui-effects-wrapper')) return c.parent().replaceWith(c); return c; }, setTransition: function (c, a, b, d) { @@ -4053,9 +3906,7 @@ jQuery.effects || c = g / 4; } else c = (g / (2 * Math.PI)) * Math.asin(d / h); return ( - h * Math.pow(2, -10 * a) * Math.sin(((a * e - c) * 2 * Math.PI) / g) + - d + - b + h * Math.pow(2, -10 * a) * Math.sin(((a * e - c) * 2 * Math.PI) / g) + d + b ); }, easeInOutElastic: function (c, a, b, d, e) { @@ -4096,8 +3947,7 @@ jQuery.effects || }, easeInOutBack: function (c, a, b, d, e, g) { if (g == j) g = 1.70158; - if ((a /= e / 2) < 1) - return (d / 2) * a * a * (((g *= 1.525) + 1) * a - g) + b; + if ((a /= e / 2) < 1) return (d / 2) * a * a * (((g *= 1.525) + 1) * a - g) + b; return (d / 2) * ((a -= 2) * a * (((g *= 1.525) + 1) * a + g) + 2) + b; }, easeInBounce: function (c, a, b, d, e) { @@ -4113,11 +3963,8 @@ jQuery.effects || : d * (7.5625 * (a -= 2.625 / 2.75) * a + 0.984375) + b; }, easeInOutBounce: function (c, a, b, d, e) { - if (a < e / 2) - return f.easing.easeInBounce(c, a * 2, 0, d, e) * 0.5 + b; - return ( - f.easing.easeOutBounce(c, a * 2 - e, 0, d, e) * 0.5 + d * 0.5 + b - ); + if (a < e / 2) return f.easing.easeInBounce(c, a * 2, 0, d, e) * 0.5 + b; + return f.easing.easeOutBounce(c, a * 2 - e, 0, d, e) * 0.5 + d * 0.5 + b; }, }); })(jQuery); @@ -4182,11 +4029,7 @@ jQuery.effects || k = {}; j[f] = (d == 'pos' ? '-=' : '+=') + c; k[f] = (d == 'pos' ? '+=' : '-=') + c; - a.animate(j, i / 2, b.options.easing).animate( - k, - i / 2, - b.options.easing - ); + a.animate(j, i / 2, b.options.easing).animate(k, i / 2, b.options.easing); c = h == 'hide' ? c * 2 : c / 2; } if (h == 'hide') { @@ -4278,9 +4121,7 @@ jQuery.effects || : a.outerWidth({ margin: true }) / 2); if (e == 'show') a.css('opacity', 0).css(f, b == 'pos' ? -g : g); var i = { opacity: e == 'show' ? 1 : 0 }; - i[f] = - (e == 'show' ? (b == 'pos' ? '+=' : '-=') : b == 'pos' ? '-=' : '+=') + - g; + i[f] = (e == 'show' ? (b == 'pos' ? '+=' : '-=') : b == 'pos' ? '-=' : '+=') + g; a.animate(i, { queue: false, duration: d.duration, @@ -4311,11 +4152,7 @@ jQuery.effects || g = b.offset(); g.top -= parseInt(b.css('marginTop'), 10) || 0; g.left -= parseInt(b.css('marginLeft'), 10) || 0; - for ( - var h = b.outerWidth(true), i = b.outerHeight(true), e = 0; - e < c; - e++ - ) + for (var h = b.outerWidth(true), i = b.outerHeight(true), e = 0; e < c; e++) for (var f = 0; f < d; f++) b.clone() .appendTo('body') @@ -4336,15 +4173,11 @@ jQuery.effects || left: g.left + f * (h / d) + - (a.options.mode == 'show' - ? (f - Math.floor(d / 2)) * (h / d) - : 0), + (a.options.mode == 'show' ? (f - Math.floor(d / 2)) * (h / d) : 0), top: g.top + e * (i / c) + - (a.options.mode == 'show' - ? (e - Math.floor(c / 2)) * (i / c) - : 0), + (a.options.mode == 'show' ? (e - Math.floor(c / 2)) * (i / c) : 0), opacity: a.options.mode == 'show' ? 0 : 1, }) .animate( @@ -4352,15 +4185,11 @@ jQuery.effects || left: g.left + f * (h / d) + - (a.options.mode == 'show' - ? 0 - : (f - Math.floor(d / 2)) * (h / d)), + (a.options.mode == 'show' ? 0 : (f - Math.floor(d / 2)) * (h / d)), top: g.top + e * (i / c) + - (a.options.mode == 'show' - ? 0 - : (e - Math.floor(c / 2)) * (i / c)), + (a.options.mode == 'show' ? 0 : (e - Math.floor(c / 2)) * (i / c)), opacity: a.options.mode == 'show' ? 1 : 0, }, a.duration || 500 @@ -4413,24 +4242,18 @@ jQuery.effects || f = f ? [e.width(), e.height()] : [e.height(), e.width()]; var i = /([0-9]+)%/.exec(g); if (i) g = (parseInt(i[1], 10) / 100) * f[d == 'hide' ? 0 : 1]; - if (d == 'show') - e.css(h ? { height: 0, width: g } : { height: g, width: 0 }); + if (d == 'show') e.css(h ? { height: 0, width: g } : { height: g, width: 0 }); h = {}; i = {}; h[l[0]] = d == 'show' ? f[0] : g; i[l[1]] = d == 'show' ? f[1] : 0; - e.animate(h, k, a.options.easing).animate( - i, - k, - a.options.easing, - function () { - d == 'hide' && b.hide(); - c.effects.restore(b, j); - c.effects.removeWrapper(b); - a.callback && a.callback.apply(b[0], arguments); - b.dequeue(); - } - ); + e.animate(h, k, a.options.easing).animate(i, k, a.options.easing, function () { + d == 'hide' && b.hide(); + c.effects.restore(b, j); + c.effects.removeWrapper(b); + a.callback && a.callback.apply(b[0], arguments); + b.dequeue(); + }); }); }; })(jQuery); @@ -4455,9 +4278,7 @@ jQuery.effects || complete: function () { d == 'hide' && a.hide(); b.effects.restore(a, e); - d == 'show' && - !b.support.opacity && - this.style.removeAttribute('filter'); + d == 'show' && !b.support.opacity && this.style.removeAttribute('filter'); c.callback && c.callback.apply(this, arguments); a.dequeue(); }, @@ -4483,15 +4304,10 @@ jQuery.effects || b.animate({ opacity: animateTo }, duration, a.options.easing); animateTo = (animateTo + 1) % 2; } - b.animate( - { opacity: animateTo }, - duration, - a.options.easing, - function () { - animateTo == 0 && b.hide(); - a.callback && a.callback.apply(this, arguments); - } - ); + b.animate({ opacity: animateTo }, duration, a.options.easing, function () { + animateTo == 0 && b.hide(); + a.callback && a.callback.apply(this, arguments); + }); b.queue('fx', function () { b.dequeue(); }).dequeue(); @@ -4557,30 +4373,12 @@ jQuery.effects || c.effects.size = function (b) { return this.queue(function () { var a = c(this), - e = [ - 'position', - 'top', - 'left', - 'width', - 'height', - 'overflow', - 'opacity', - ], + e = ['position', 'top', 'left', 'width', 'height', 'overflow', 'opacity'], g = ['position', 'top', 'left', 'overflow', 'opacity'], h = ['width', 'height', 'overflow'], i = ['fontSize'], - f = [ - 'borderTopWidth', - 'borderBottomWidth', - 'paddingTop', - 'paddingBottom', - ], - k = [ - 'borderLeftWidth', - 'borderRightWidth', - 'paddingLeft', - 'paddingRight', - ], + f = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'], + k = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight'], p = c.effects.setMode(a, b.options.mode || 'effect'), n = b.options.restore || false, m = b.options.scale || 'both', @@ -4635,21 +4433,11 @@ jQuery.effects || }; child.to = { height: o.height * d.to.y, width: o.width * d.to.x }; if (d.from.y != d.to.y) { - child.from = c.effects.setTransition( - child, - f, - d.from.y, - child.from - ); + child.from = c.effects.setTransition(child, f, d.from.y, child.from); child.to = c.effects.setTransition(child, f, d.to.y, child.to); } if (d.from.x != d.to.x) { - child.from = c.effects.setTransition( - child, - k, - d.from.x, - child.from - ); + child.from = c.effects.setTransition(child, k, d.from.x, child.from); child.to = c.effects.setTransition(child, k, d.to.x, child.to); } child.css(child.from); @@ -4729,14 +4517,10 @@ jQuery.effects || b = b == 'up' || b == 'left' ? 'pos' : 'neg'; var g = d.options.distance || - (f == 'top' - ? a.outerHeight({ margin: true }) - : a.outerWidth({ margin: true })); + (f == 'top' ? a.outerHeight({ margin: true }) : a.outerWidth({ margin: true })); if (e == 'show') a.css(f, b == 'pos' ? -g : g); var i = {}; - i[f] = - (e == 'show' ? (b == 'pos' ? '+=' : '-=') : b == 'pos' ? '-=' : '+=') + - g; + i[f] = (e == 'show' ? (b == 'pos' ? '+=' : '-=') : b == 'pos' ? '-=' : '+=') + g; a.animate(i, { queue: false, duration: d.duration, @@ -4813,9 +4597,7 @@ jQuery.effects || .addClass('ui-accordion-li-fix'); a.headers = a.element .find(b.header) - .addClass( - 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all' - ) + .addClass('ui-accordion-header ui-helper-reset ui-state-default ui-corner-all') .bind('mouseenter.accordion', function () { b.disabled || c(this).addClass('ui-state-hover'); }) @@ -4925,9 +4707,7 @@ jQuery.effects || if (a == 'disabled') this.headers .add(this.headers.next()) - [ - b ? 'addClass' : 'removeClass' - ]('ui-accordion-disabled ui-state-disabled'); + [b ? 'addClass' : 'removeClass']('ui-accordion-disabled ui-state-disabled'); }, _keydown: function (a) { if (!(this.options.disabled || a.altKey || a.ctrlKey)) { @@ -4974,9 +4754,7 @@ jQuery.effects || this.headers .next() .each(function () { - c(this).height( - Math.max(0, b - c(this).innerHeight() + c(this).height()) - ); + c(this).height(Math.max(0, b - c(this).innerHeight() + c(this).height())); }) .css('overflow', 'auto'); } else if (a.autoHeight) { @@ -5161,11 +4939,8 @@ jQuery.effects || step: function (j, i) { if (i.prop == 'height') f = - i.end - i.start === 0 - ? 0 - : (i.now - i.start) / (i.end - i.start); - a.toShow[0].style[i.prop] = - f * g[i.prop].value + g[i.prop].unit; + i.end - i.start === 0 ? 0 : (i.now - i.start) / (i.end - i.start); + a.toShow[0].style[i.prop] = f * g[i.prop].value + g[i.prop].unit; }, duration: a.duration, easing: a.easing, @@ -5307,8 +5082,7 @@ jQuery.effects || a.element.focus(); a.previous = f; } - false !== a._trigger('select', c, { item: d }) && - a.element.val(d.value); + false !== a._trigger('select', c, { item: d }) && a.element.val(d.value); a.close(c); a.selectedItem = d; }, @@ -5338,9 +5112,7 @@ jQuery.effects || e.Widget.prototype._setOption.apply(this, arguments); a === 'source' && this._initSource(); if (a === 'appendTo') - this.menu.element.appendTo( - e(b || 'body', this.element[0].ownerDocument)[0] - ); + this.menu.element.appendTo(e(b || 'body', this.element[0].ownerDocument)[0]); }, _initSource: function () { var a, b; @@ -5390,10 +5162,7 @@ jQuery.effects || if (a.length && a[0].label && a[0].value) return a; return e.map(a, function (b) { if (typeof b === 'string') return { label: b, value: b }; - return e.extend( - { label: b.label || b.value, value: b.value || b.label }, - b - ); + return e.extend({ label: b.label || b.value, value: b.value || b.label }, b); }); }, _suggest: function (a) { @@ -5501,10 +5270,7 @@ jQuery.effects || }, deactivate: function () { if (this.active) { - this.active - .children('a') - .removeClass('ui-state-hover') - .removeAttr('id'); + this.active.children('a').removeClass('ui-state-hover').removeAttr('id'); this._trigger('blur'); this.active = null; } @@ -5524,9 +5290,7 @@ jQuery.effects || move: function (a, b, c) { if (this.active) { a = this.active[a + 'All']('.ui-menu-item').eq(0); - a.length - ? this.activate(c, a) - : this.activate(c, this.element.children(b)); + a.length ? this.activate(c, a) : this.activate(c, this.element.children(b)); } else this.activate(c, this.element.children(b)); }, nextPage: function (a) { @@ -5546,9 +5310,7 @@ jQuery.effects || else this.activate( a, - this.element.children( - !this.active || this.last() ? ':first' : ':last' - ) + this.element.children(!this.active || this.last() ? ':first' : ':last') ); }, previousPage: function (a) { @@ -5568,9 +5330,7 @@ jQuery.effects || else this.activate( a, - this.element.children( - !this.active || this.first() ? ':last' : ':first' - ) + this.element.children(!this.active || this.first() ? ':last' : ':first') ); }, hasScroll: function () { @@ -5610,10 +5370,7 @@ jQuery.effects || icons: { primary: null, secondary: null }, }, _create: function () { - this.element - .closest('form') - .unbind('reset.button') - .bind('reset.button', i); + this.element.closest('form').unbind('reset.button').bind('reset.button', i); this._determineButtonType(); this.hasTitle = !!this.buttonElement.attr('title'); var b = this, @@ -5680,10 +5437,7 @@ jQuery.effects || }) .bind('keydown.button', function (f) { if (c.disabled) return false; - if ( - f.keyCode == a.ui.keyCode.SPACE || - f.keyCode == a.ui.keyCode.ENTER - ) + if (f.keyCode == a.ui.keyCode.SPACE || f.keyCode == a.ui.keyCode.ENTER) a(this).addClass('ui-state-active'); }) .bind('keyup.button', function () { @@ -5733,9 +5487,7 @@ jQuery.effects || _setOption: function (b, c) { a.Widget.prototype._setOption.apply(this, arguments); if (b === 'disabled') - c - ? this.element.attr('disabled', true) - : this.element.removeAttr('disabled'); + c ? this.element.attr('disabled', true) : this.element.removeAttr('disabled'); this._resetButton(); }, refresh: function () { @@ -5755,9 +5507,7 @@ jQuery.effects || }); else if (this.type === 'checkbox') this.element.is(':checked') - ? this.buttonElement - .addClass('ui-state-active') - .attr('aria-pressed', true) + ? this.buttonElement.addClass('ui-state-active').attr('aria-pressed', true) : this.buttonElement .removeClass('ui-state-active') .attr('aria-pressed', false); @@ -5778,14 +5528,11 @@ jQuery.effects || e = d.primary && d.secondary; if (d.primary || d.secondary) { b.addClass( - 'ui-button-text-icon' + - (e ? 's' : d.primary ? '-primary' : '-secondary') + 'ui-button-text-icon' + (e ? 's' : d.primary ? '-primary' : '-secondary') ); d.primary && b.prepend( - "" + "" ); d.secondary && b.append( @@ -5794,9 +5541,7 @@ jQuery.effects || "'>" ); if (!this.options.text) { - b.addClass( - e ? 'ui-button-icons-only' : 'ui-button-icon-only' - ).removeClass( + b.addClass(e ? 'ui-button-icons-only' : 'ui-button-icon-only').removeClass( 'ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary' ); this.hasTitle || b.attr('title', c); @@ -6051,9 +5796,7 @@ jQuery.effects || e = this._get(b, 'isRTL'); b.append && b.append.remove(); if (c) { - b.append = d( - '' + c + '' - ); + b.append = d('' + c + ''); a[e ? 'before' : 'after'](b.append); } a.unbind('focus', this._showDatepicker); @@ -6070,9 +5813,7 @@ jQuery.effects || .attr({ src: f, alt: c, title: c }) : d('') .addClass(this._triggerClass) - .html( - f == '' ? c : d('').attr({ src: f, alt: c, title: c }) - ) + .html(f == '' ? c : d('').attr({ src: f, alt: c, title: c })) ); a[e ? 'before' : 'after'](b.trigger); b.trigger.click(function () { @@ -6096,9 +5837,7 @@ jQuery.effects || } return i; }; - b.setMonth( - e(this._get(a, c.match(/MM/) ? 'monthNames' : 'monthNamesShort')) - ); + b.setMonth(e(this._get(a, c.match(/MM/) ? 'monthNames' : 'monthNamesShort'))); b.setDate( e(this._get(a, c.match(/DD/) ? 'dayNames' : 'dayNamesShort')) + 20 - @@ -6302,12 +6041,7 @@ jQuery.effects || d('td.' + d.datepicker._currentClass, b.dpDiv) ); c[0] - ? d.datepicker._selectDay( - a.target, - b.selectedMonth, - b.selectedYear, - c[0] - ) + ? d.datepicker._selectDay(a.target, b.selectedMonth, b.selectedYear, c[0]) : d.datepicker._hideDatepicker(); return false; case 27: @@ -6353,8 +6087,7 @@ jQuery.effects || ); break; case 38: - if (a.ctrlKey || a.metaKey) - d.datepicker._adjustDate(a.target, -7, 'D'); + if (a.ctrlKey || a.metaKey) d.datepicker._adjustDate(a.target, -7, 'D'); c = a.ctrlKey || a.metaKey; break; case 39: @@ -6371,8 +6104,7 @@ jQuery.effects || ); break; case 40: - if (a.ctrlKey || a.metaKey) - d.datepicker._adjustDate(a.target, +7, 'D'); + if (a.ctrlKey || a.metaKey) d.datepicker._adjustDate(a.target, +7, 'D'); c = a.ctrlKey || a.metaKey; break; default: @@ -6416,9 +6148,7 @@ jQuery.effects || _showDatepicker: function (a) { a = a.target || a; if (a.nodeName.toLowerCase() != 'input') a = d('input', a.parentNode)[0]; - if ( - !(d.datepicker._isDisabledDatepicker(a) || d.datepicker._lastInput == a) - ) { + if (!(d.datepicker._isDisabledDatepicker(a) || d.datepicker._lastInput == a)) { var b = d.datepicker._getInst(a); d.datepicker._curInst && d.datepicker._curInst != b && @@ -6451,11 +6181,7 @@ jQuery.effects || c = d.datepicker._checkOffset(b, c, e); b.dpDiv.css({ position: - d.datepicker._inDialog && d.blockUI - ? 'static' - : e - ? 'fixed' - : 'absolute', + d.datepicker._inDialog && d.blockUI ? 'static' : e ? 'fixed' : 'absolute', display: 'none', left: c.left + 'px', top: c.top + 'px', @@ -6508,11 +6234,7 @@ jQuery.effects || d(this).removeClass('ui-datepicker-next-hover'); }) .bind('mouseover', function () { - if ( - !b._isDisabledDatepicker( - a.inline ? a.dpDiv.parent()[0] : a.input[0] - ) - ) { + if (!b._isDisabledDatepicker(a.inline ? a.dpDiv.parent()[0] : a.input[0])) { d(this) .parents('.ui-datepicker-calendar') .find('a') @@ -6531,9 +6253,7 @@ jQuery.effects || c = this._getNumberOfMonths(a); var e = c[1]; e > 1 - ? a.dpDiv - .addClass('ui-datepicker-multi-' + e) - .css('width', 17 * e + 'em') + ? a.dpDiv.addClass('ui-datepicker-multi-' + e).css('width', 17 * e + 'em') : a.dpDiv .removeClass( 'ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4' @@ -6569,10 +6289,8 @@ jQuery.effects || g = document.documentElement.clientWidth + d(document).scrollLeft(), k = document.documentElement.clientHeight + d(document).scrollTop(); b.left -= this._get(a, 'isRTL') ? e - h : 0; - b.left -= - c && b.left == a.input.offset().left ? d(document).scrollLeft() : 0; - b.top -= - c && b.top == a.input.offset().top + i ? d(document).scrollTop() : 0; + b.left -= c && b.left == a.input.offset().left ? d(document).scrollLeft() : 0; + b.top -= c && b.top == a.input.offset().top + i ? d(document).scrollTop() : 0; b.left -= Math.min( b.left, b.left + e > g && g > e ? Math.abs(b.left + e - g) : 0 @@ -6603,18 +6321,11 @@ jQuery.effects || d.effects && d.effects[a] ? b.dpDiv.hide(a, d.datepicker._get(b, 'showOptions'), c, e) : b.dpDiv[ - a == 'slideDown' - ? 'slideUp' - : a == 'fadeIn' - ? 'fadeOut' - : 'hide' + a == 'slideDown' ? 'slideUp' : a == 'fadeIn' ? 'fadeOut' : 'hide' ](a ? c : null, e); a || e(); if ((a = this._get(b, 'onClose'))) - a.apply(b.input ? b.input[0] : null, [ - b.input ? b.input.val() : '', - b, - ]); + a.apply(b.input ? b.input[0] : null, [b.input ? b.input.val() : '', b]); this._datepickerShowing = false; this._lastInput = null; if (this._inDialog) { @@ -6696,10 +6407,7 @@ jQuery.effects || _selectDay: function (a, b, c, e) { var f = d(a); if ( - !( - d(e).hasClass(this._unselectableClass) || - this._isDisabledDatepicker(f[0]) - ) + !(d(e).hasClass(this._unselectableClass) || this._isDisabledDatepicker(f[0])) ) { f = this._getInst(f[0]); f.selectedDay = f.currentDay = d('a', e).html(); @@ -6760,8 +6468,7 @@ jQuery.effects || b = typeof b == 'object' ? b.toString() : b + ''; if (b == '') return null; for ( - var e = - (c ? c.shortYearCutoff : null) || this._defaults.shortYearCutoff, + var e = (c ? c.shortYearCutoff : null) || this._defaults.shortYearCutoff, f = (c ? c.dayNamesShort : null) || this._defaults.dayNamesShort, h = (c ? c.dayNames : null) || this._defaults.dayNames, i = (c ? c.monthNamesShort : null) || this._defaults.monthNamesShort, @@ -6778,15 +6485,7 @@ jQuery.effects || o(p); p = new RegExp( '^\\d{1,' + - (p == '@' - ? 14 - : p == '!' - ? 20 - : p == 'y' - ? 4 - : p == 'o' - ? 3 - : 2) + + (p == '@' ? 14 : p == '!' ? 20 : p == 'y' ? 4 : p == 'o' ? 3 : 2) + '}' ); p = b.substring(s).match(p); @@ -6804,8 +6503,7 @@ jQuery.effects || throw 'Unknown name at position ' + s; }, r = function () { - if (b.charAt(s) != a.charAt(z)) - throw 'Unexpected literal at position ' + s; + if (b.charAt(s) != a.charAt(z)) throw 'Unexpected literal at position ' + s; s++; }, s = 0, @@ -6930,8 +6628,7 @@ jQuery.effects || case 'o': l += g( 'o', - (b.getTime() - new Date(b.getFullYear(), 0, 0).getTime()) / - 864e5, + (b.getTime() - new Date(b.getFullYear(), 0, 0).getTime()) / 864e5, 3 ); break; @@ -7048,11 +6745,7 @@ jQuery.effects || k = g.getFullYear(), l = g.getMonth(); g = g.getDate(); - for ( - var u = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, j = u.exec(h); - j; - - ) { + for (var u = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g, j = u.exec(h); j; ) { switch (j[2] || 'd') { case 'd': case 'D': @@ -7112,8 +6805,7 @@ jQuery.effects || a.selectedDay = a.currentDay = b.getDate(); a.drawMonth = a.selectedMonth = a.currentMonth = b.getMonth(); a.drawYear = a.selectedYear = a.currentYear = b.getFullYear(); - if ((f != a.selectedMonth || h != a.selectedYear) && !c) - this._notifyChange(a); + if ((f != a.selectedMonth || h != a.selectedYear) && !c) this._notifyChange(a); this._adjustInstDate(a); if (a.input) a.input.val(e ? '' : this._formatDate(a)); }, @@ -7330,34 +7022,24 @@ jQuery.effects || this._get(a, 'calculateWeek')(q) + ''; for (t = 0; t < 7; t++) { - var F = p - ? p.apply(a.input ? a.input[0] : null, [q]) - : [true, ''], + var F = p ? p.apply(a.input ? a.input[0] : null, [q]) : [true, ''], B = q.getMonth() != g, K = (B && !H) || !F[0] || (j && q < j) || (o && q > o); P += '' + - q.getDate() + - '' + ? '' + q.getDate() + '' : '' + @@ -7499,13 +7177,8 @@ jQuery.effects || _adjustInstDate: function (a, b, c) { var e = a.drawYear + (c == 'Y' ? b : 0), f = a.drawMonth + (c == 'M' ? b : 0); - b = - Math.min(a.selectedDay, this._getDaysInMonth(e, f)) + - (c == 'D' ? b : 0); - e = this._restrictMinMax( - a, - this._daylightSavingAdjust(new Date(e, f, b)) - ); + b = Math.min(a.selectedDay, this._getDaysInMonth(e, f)) + (c == 'D' ? b : 0); + e = this._restrictMinMax(a, this._daylightSavingAdjust(new Date(e, f, b))); a.selectedDay = e.getDate(); a.drawMonth = a.selectedMonth = e.getMonth(); a.drawYear = a.selectedYear = e.getFullYear(); @@ -7520,11 +7193,7 @@ jQuery.effects || _notifyChange: function (a) { var b = this._get(a, 'onChangeMonthYear'); if (b) - b.apply(a.input ? a.input[0] : null, [ - a.selectedYear, - a.selectedMonth + 1, - a, - ]); + b.apply(a.input ? a.input[0] : null, [a.selectedYear, a.selectedMonth + 1, a]); }, _getNumberOfMonths: function (a) { a = this._get(a, 'numberOfMonths'); @@ -7541,25 +7210,18 @@ jQuery.effects || }, _canAdjustMonth: function (a, b, c, e) { var f = this._getNumberOfMonths(a); - c = this._daylightSavingAdjust( - new Date(c, e + (b < 0 ? b : f[0] * f[1]), 1) - ); + c = this._daylightSavingAdjust(new Date(c, e + (b < 0 ? b : f[0] * f[1]), 1)); b < 0 && c.setDate(this._getDaysInMonth(c.getFullYear(), c.getMonth())); return this._isInRange(a, c); }, _isInRange: function (a, b) { var c = this._getMinMaxDate(a, 'min'); a = this._getMinMaxDate(a, 'max'); - return ( - (!c || b.getTime() >= c.getTime()) && (!a || b.getTime() <= a.getTime()) - ); + return (!c || b.getTime() >= c.getTime()) && (!a || b.getTime() <= a.getTime()); }, _getFormatConfig: function (a) { var b = this._get(a, 'shortYearCutoff'); - b = - typeof b != 'string' - ? b - : (new Date().getFullYear() % 100) + parseInt(b, 10); + b = typeof b != 'string' ? b : (new Date().getFullYear() % 100) + parseInt(b, 10); return { shortYearCutoff: b, dayNamesShort: this._get(a, 'dayNamesShort'), @@ -7581,11 +7243,7 @@ jQuery.effects || : this._daylightSavingAdjust( new Date(a.currentYear, a.currentMonth, a.currentDay) ); - return this.formatDate( - this._get(a, 'dateFormat'), - b, - this._getFormatConfig(a) - ); + return this.formatDate(this._get(a, 'dateFormat'), b, this._getFormatConfig(a)); }, }); d.fn.datepicker = function (a) { @@ -7597,29 +7255,19 @@ jQuery.effects || d.datepicker.initialized = true; } var b = Array.prototype.slice.call(arguments, 1); - if ( - typeof a == 'string' && - (a == 'isDisabled' || a == 'getDate' || a == 'widget') - ) + if (typeof a == 'string' && (a == 'isDisabled' || a == 'getDate' || a == 'widget')) return d.datepicker['_' + a + 'Datepicker'].apply( d.datepicker, [this[0]].concat(b) ); - if ( - a == 'option' && - arguments.length == 2 && - typeof arguments[1] == 'string' - ) + if (a == 'option' && arguments.length == 2 && typeof arguments[1] == 'string') return d.datepicker['_' + a + 'Datepicker'].apply( d.datepicker, [this[0]].concat(b) ); return this.each(function () { typeof a == 'string' - ? d.datepicker['_' + a + 'Datepicker'].apply( - d.datepicker, - [this].concat(b) - ) + ? d.datepicker['_' + a + 'Datepicker'].apply(d.datepicker, [this].concat(b)) : d.datepicker._attachDatepicker(this, a); }); }; @@ -7673,18 +7321,13 @@ jQuery.effects || .appendTo(document.body) .hide() .addClass( - 'ui-dialog ui-widget ui-widget-content ui-corner-all ' + - b.dialogClass + 'ui-dialog ui-widget ui-widget-content ui-corner-all ' + b.dialogClass ) .css({ zIndex: b.zIndex }) .attr('tabIndex', -1) .css('outline', 0) .keydown(function (i) { - if ( - b.closeOnEscape && - i.keyCode && - i.keyCode === c.ui.keyCode.ESCAPE - ) { + if (b.closeOnEscape && i.keyCode && i.keyCode === c.ui.keyCode.ESCAPE) { a.close(i); i.preventDefault(); } @@ -7729,11 +7372,7 @@ jQuery.effects || .addClass('ui-icon ui-icon-closethick') .text(b.closeText) .appendTo(h); - c('') - .addClass('ui-dialog-title') - .attr('id', f) - .html(d) - .prependTo(e); + c('').addClass('ui-dialog-title').attr('id', f).html(d).prependTo(e); if (c.isFunction(b.beforeclose) && !c.isFunction(b.beforeClose)) b.beforeClose = b.beforeclose; e.find('*').add(e).disableSelection(); @@ -7795,15 +7434,11 @@ jQuery.effects || moveToTop: function (a, b) { var d = this, f = d.options; - if ((f.modal && !a) || (!f.stack && !f.modal)) - return d._trigger('focus', b); + if ((f.modal && !a) || (!f.stack && !f.modal)) return d._trigger('focus', b); if (f.zIndex > c.ui.dialog.maxZ) c.ui.dialog.maxZ = f.zIndex; if (d.overlay) { c.ui.dialog.maxZ += 1; - d.overlay.$el.css( - 'z-index', - (c.ui.dialog.overlay.maxZ = c.ui.dialog.maxZ) - ); + d.overlay.$el.css('z-index', (c.ui.dialog.overlay.maxZ = c.ui.dialog.maxZ)); } a = { scrollTop: d.element.attr('scrollTop'), @@ -7845,9 +7480,7 @@ jQuery.effects || a.element .find(':tabbable') .get() - .concat( - d.find('.ui-dialog-buttonpane :tabbable').get().concat(d.get()) - ) + .concat(d.find('.ui-dialog-buttonpane :tabbable').get().concat(d.get())) ) .eq(0) .focus(); @@ -7958,9 +7591,7 @@ jQuery.effects || }, _minHeight: function () { var a = this.options; - return a.height === 'auto' - ? a.minHeight - : Math.min(a.minHeight, a.height); + return a.height === 'auto' ? a.minHeight : Math.min(a.minHeight, a.height); }, _position: function (a) { var b = [], @@ -8006,9 +7637,7 @@ jQuery.effects || ); break; case 'disabled': - b - ? f.addClass('ui-dialog-disabled') - : f.removeClass('ui-dialog-disabled'); + b ? f.addClass('ui-dialog-disabled') : f.removeClass('ui-dialog-disabled'); break; case 'draggable': b ? d._makeDraggable() : f.draggable('destroy'); @@ -8088,12 +7717,9 @@ jQuery.effects || oldInstances: [], maxZ: 0, events: c - .map( - 'focus,mousedown,mouseup,keydown,keypress,click'.split(','), - function (a) { - return a + '.dialog-overlay'; - } - ) + .map('focus,mousedown,mouseup,keydown,keypress,click'.split(','), function (a) { + return a + '.dialog-overlay'; + }) .join(' '), create: function (a) { if (this.instances.length === 0) { @@ -8116,8 +7742,7 @@ jQuery.effects || c(window).bind('resize.dialog-overlay', c.ui.dialog.overlay.resize); } var b = ( - this.oldInstances.pop() || - c('
').addClass('ui-widget-overlay') + this.oldInstances.pop() || c('
').addClass('ui-widget-overlay') ) .appendTo(document.body) .css({ width: this.width(), height: this.height() }); @@ -8126,11 +7751,8 @@ jQuery.effects || return b; }, destroy: function (a) { - this.oldInstances.push( - this.instances.splice(c.inArray(a, this.instances), 1)[0] - ); - this.instances.length === 0 && - c([document, window]).unbind('.dialog-overlay'); + this.oldInstances.push(this.instances.splice(c.inArray(a, this.instances), 1)[0]); + this.instances.length === 0 && c([document, window]).unbind('.dialog-overlay'); a.remove(); var b = 0; c.each(this.instances, function () { @@ -8141,28 +7763,16 @@ jQuery.effects || height: function () { var a, b; if (c.browser.msie && c.browser.version < 7) { - a = Math.max( - document.documentElement.scrollHeight, - document.body.scrollHeight - ); - b = Math.max( - document.documentElement.offsetHeight, - document.body.offsetHeight - ); + a = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight); + b = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight); return a < b ? c(window).height() + 'px' : a + 'px'; } else return c(document).height() + 'px'; }, width: function () { var a, b; if (c.browser.msie && c.browser.version < 7) { - a = Math.max( - document.documentElement.scrollWidth, - document.body.scrollWidth - ); - b = Math.max( - document.documentElement.offsetWidth, - document.body.offsetWidth - ); + a = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth); + b = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); return a < b ? c(window).width() + 'px' : a + 'px'; } else return c(document).width() + 'px'; }, @@ -8283,18 +7893,10 @@ jQuery.effects || var d = c(window); d = a.left + b.elemWidth - d.width() - d.scrollLeft(); var e = - b.my[0] === 'left' - ? -b.elemWidth - : b.my[0] === 'right' - ? b.elemWidth - : 0, + b.my[0] === 'left' ? -b.elemWidth : b.my[0] === 'right' ? b.elemWidth : 0, g = -2 * b.offset[0]; a.left += - a.left < 0 - ? e + b.targetWidth + g - : d > 0 - ? e - b.targetWidth + g - : 0; + a.left < 0 ? e + b.targetWidth + g : d > 0 ? e - b.targetWidth + g : 0; } }, top: function (a, b) { @@ -8384,9 +7986,7 @@ jQuery.effects || }, _refreshValue: function () { var a = this.value(); - this.valueDiv - .toggleClass('ui-corner-right', a === this.max) - .width(a + '%'); + this.valueDiv.toggleClass('ui-corner-right', a === this.max).width(a + '%'); this.element.attr('aria-valuenow', a); }, }); @@ -8434,14 +8034,10 @@ jQuery.effects || this.range.addClass('ui-widget-header'); } d('.ui-slider-handle', this.element).length === 0 && - d("
") - .appendTo(this.element) - .addClass('ui-slider-handle'); + d("").appendTo(this.element).addClass('ui-slider-handle'); if (b.values && b.values.length) for (; d('.ui-slider-handle', this.element).length < b.values.length; ) - d("") - .appendTo(this.element) - .addClass('ui-slider-handle'); + d("").appendTo(this.element).addClass('ui-slider-handle'); this.handles = d('.ui-slider-handle', this.element).addClass( 'ui-state-default ui-corner-all' ); @@ -8589,10 +8185,7 @@ jQuery.effects || h._handleIndex = g; f.addClass('ui-state-active').focus(); b = f.offset(); - this._clickOffset = !d(a.target) - .parents() - .andSelf() - .is('.ui-slider-handle') + this._clickOffset = !d(a.target).parents().andSelf().is('.ui-slider-handle') ? { left: 0, top: 0 } : { left: a.pageX - b.left - f.width() / 2, @@ -8812,17 +8405,13 @@ jQuery.effects || l; if (this.options.values && this.options.values.length) this.handles.each(function (k) { - f = - ((c.values(k) - c._valueMin()) / (c._valueMax() - c._valueMin())) * - 100; + f = ((c.values(k) - c._valueMin()) / (c._valueMax() - c._valueMin())) * 100; h[c.orientation === 'horizontal' ? 'left' : 'bottom'] = f + '%'; d(this).stop(1, 1)[e ? 'animate' : 'css'](h, b.animate); if (c.options.range === true) if (c.orientation === 'horizontal') { if (k === 0) - c.range - .stop(1, 1) - [e ? 'animate' : 'css']({ left: f + '%' }, b.animate); + c.range.stop(1, 1)[e ? 'animate' : 'css']({ left: f + '%' }, b.animate); if (k === 1) c.range[e ? 'animate' : 'css']( { width: f - g + '%' }, @@ -8849,18 +8438,14 @@ jQuery.effects || h[c.orientation === 'horizontal' ? 'left' : 'bottom'] = f + '%'; this.handle.stop(1, 1)[e ? 'animate' : 'css'](h, b.animate); if (a === 'min' && this.orientation === 'horizontal') - this.range - .stop(1, 1) - [e ? 'animate' : 'css']({ width: f + '%' }, b.animate); + this.range.stop(1, 1)[e ? 'animate' : 'css']({ width: f + '%' }, b.animate); if (a === 'max' && this.orientation === 'horizontal') this.range[e ? 'animate' : 'css']( { width: 100 - f + '%' }, { queue: false, duration: b.animate } ); if (a === 'min' && this.orientation === 'vertical') - this.range - .stop(1, 1) - [e ? 'animate' : 'css']({ height: f + '%' }, b.animate); + this.range.stop(1, 1)[e ? 'animate' : 'css']({ height: f + '%' }, b.animate); if (a === 'max' && this.orientation === 'vertical') this.range[e ? 'animate' : 'css']( { height: 100 - f + '%' }, @@ -8906,8 +8491,7 @@ jQuery.effects || }, _setOption: function (a, e) { if (a == 'selected') - (this.options.collapsible && e == this.options.selected) || - this.select(e); + (this.options.collapsible && e == this.options.selected) || this.select(e); else { this.options[a] = e; this._tabify(); @@ -8915,8 +8499,7 @@ jQuery.effects || }, _tabId: function (a) { return ( - (a.title && - a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')) || + (a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')) || this.options.idPrefix + u() ); }, @@ -8925,8 +8508,7 @@ jQuery.effects || }, _cookie: function () { var a = - this.cookie || - (this.cookie = this.options.cookie.name || 'ui-tabs-' + w()); + this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + w()); return d.cookie.apply(null, [a].concat(d.makeArray(arguments))); }, _ui: function (a, e) { @@ -8986,16 +8568,12 @@ jQuery.effects || } else c.disabled.push(g); }); if (a) { - this.element.addClass( - 'ui-tabs ui-widget ui-widget-content ui-corner-all' - ); + this.element.addClass('ui-tabs ui-widget ui-widget-content ui-corner-all'); this.list.addClass( 'ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all' ); this.lis.addClass('ui-state-default ui-corner-top'); - this.panels.addClass( - 'ui-tabs-panel ui-widget-content ui-corner-bottom' - ); + this.panels.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom'); if (c.selected === p) { location.hash && this.anchors.each(function (g, f) { @@ -9047,9 +8625,7 @@ jQuery.effects || b.lis = b.anchors = b.panels = null; }); } else c.selected = this.lis.index(this.lis.filter('.ui-tabs-selected')); - this.element[c.collapsible ? 'addClass' : 'removeClass']( - 'ui-tabs-collapsible' - ); + this.element[c.collapsible ? 'addClass' : 'removeClass']('ui-tabs-collapsible'); c.cookie && this._cookie(c.selected, c.cookie); a = 0; for (var i; (i = this.lis[a]); a++) @@ -9214,11 +8790,8 @@ jQuery.effects || a = !a.indexOf('#') ? a.replace('#', '') : this._tabId(d('a', e)[0]); e.addClass('ui-state-default ui-corner-top').data('destroy.tabs', true); var i = d('#' + a); - i.length || - (i = d(h.panelTemplate).attr('id', a).data('destroy.tabs', true)); - i.addClass( - 'ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide' - ); + i.length || (i = d(h.panelTemplate).attr('id', a).data('destroy.tabs', true)); + i.addClass('ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide'); if (b >= this.lis.length) { e.appendTo(this.list); i.appendTo(this.list[0].parentNode); @@ -9269,11 +8842,7 @@ jQuery.effects || e.disabled = d.grep(e.disabled, function (b) { return b != a; }); - this._trigger( - 'enable', - null, - this._ui(this.anchors[a], this.panels[a]) - ); + this._trigger('enable', null, this._ui(this.anchors[a], this.panels[a])); return this; } }, @@ -9284,11 +8853,7 @@ jQuery.effects || this.lis.eq(a).addClass('ui-state-disabled'); e.disabled.push(a); e.disabled.sort(); - this._trigger( - 'disable', - null, - this._ui(this.anchors[a], this.panels[a]) - ); + this._trigger('disable', null, this._ui(this.anchors[a], this.panels[a])); } return this; }, @@ -9308,10 +8873,7 @@ jQuery.effects || c = this.anchors.eq(a)[0], h = d.data(c, 'load.tabs'); this.abort(); - if ( - !h || - (this.element.queue('tabs').length !== 0 && d.data(c, 'cache.tabs')) - ) + if (!h || (this.element.queue('tabs').length !== 0 && d.data(c, 'cache.tabs'))) this.element.dequeue('tabs'); else { this.lis.eq(a).addClass('ui-state-processing'); diff --git a/boxoffice/assets/js/libs/jquery.form.js b/boxoffice/assets/js/libs/jquery.form.js index e5ec5ce6e..18d9a5e49 100644 --- a/boxoffice/assets/js/libs/jquery.form.js +++ b/boxoffice/assets/js/libs/jquery.form.js @@ -83,10 +83,7 @@ } // provide opportunity to alter form data before it is serialized - if ( - options.beforeSerialize && - options.beforeSerialize(this, options) === false - ) { + if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { log('ajaxSubmit: submit aborted via beforeSerialize callback'); return this; } @@ -110,10 +107,7 @@ } // give pre-submit callback an opportunity to abort the submit - if ( - options.beforeSubmit && - options.beforeSubmit(a, this, options) === false - ) { + if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { log('ajaxSubmit: submit aborted via beforeSubmit callback'); return this; } @@ -173,10 +167,7 @@ // options.iframe allows user to force iframe mode // 06-NOV-09: now defaulting to iframe mode if file input is detected - if ( - options.iframe !== false && - (fileInputs || options.iframe || multipart) - ) { + if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { // hack to fix Safari hang (thanks to Tim Molendijk for this) // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d if (options.closeKeepAlive) { @@ -500,10 +491,7 @@ if (typeof data === 'string') { if (type === 'json' || (!type && ct.indexOf('json') >= 0)) { data = parseJSON(data); - } else if ( - type === 'script' || - (!type && ct.indexOf('javascript') >= 0) - ) { + } else if (type === 'script' || (!type && ct.indexOf('javascript') >= 0)) { $.globalEval(data); } } diff --git a/boxoffice/assets/js/libs/modernizr-1.6.min.js b/boxoffice/assets/js/libs/modernizr-1.6.min.js index 97001f4ec..ed26a7b3a 100644 --- a/boxoffice/assets/js/libs/modernizr-1.6.min.js +++ b/boxoffice/assets/js/libs/modernizr-1.6.min.js @@ -127,8 +127,7 @@ window.Modernizr = (function (i, e, u) { b = e.createElement('div'); (function (k, g, r, x) { g += ':'; - k.style.cssText = - (g + q.join(r + ';' + g)).slice(0, -g.length) + (x || ''); + k.style.cssText = (g + q.join(r + ';' + g)).slice(0, -g.length) + (x || ''); })(a, 'display', 'box', 'width:42px;padding:0;'); b.style.cssText = q.join('box-flex:1;') + 'width:10px;'; a.appendChild(b); @@ -160,8 +159,7 @@ window.Modernizr = (function (i, e, u) { }; d.touch = function () { return ( - 'ontouchstart' in i || - Q('@media (' + q.join('touch-enabled),(') + 'modernizr)') + 'ontouchstart' in i || Q('@media (' + q.join('touch-enabled),(') + 'modernizr)') ); }; d.geolocation = function () { @@ -182,8 +180,7 @@ window.Modernizr = (function (i, e, u) { }; d.hashchange = function () { return ( - o('hashchange', i) && - (document.documentMode === u || document.documentMode > 7) + o('hashchange', i) && (document.documentMode === u || document.documentMode > 7) ); }; d.history = function () { @@ -363,9 +360,7 @@ window.Modernizr = (function (i, e, u) { return !!i.applicationCache; }; d.svg = function () { - return ( - !!e.createElementNS && !!e.createElementNS(v.svg, 'svg').createSVGRect - ); + return !!e.createElementNS && !!e.createElementNS(v.svg, 'svg').createSVGRect; }; d.inlinesvg = function () { var a = document.createElement('div'); @@ -374,14 +369,12 @@ window.Modernizr = (function (i, e, u) { }; d.smil = function () { return ( - !!e.createElementNS && - /SVG/.test(O.call(e.createElementNS(v.svg, 'animate'))) + !!e.createElementNS && /SVG/.test(O.call(e.createElementNS(v.svg, 'animate'))) ); }; d.svgclippaths = function () { return ( - !!e.createElementNS && - /SVG/.test(O.call(e.createElementNS(v.svg, 'clipPath'))) + !!e.createElementNS && /SVG/.test(O.call(e.createElementNS(v.svg, 'clipPath'))) ); }; for (var H in d) @@ -446,13 +439,8 @@ window.Modernizr = (function (i, e, u) { c(z); a.attachEvent('onbeforeprint', function () { for (var p = -1; ++p < r; ) - for ( - var m = b.getElementsByTagName(g[p]), I = m.length, t = -1; - ++t < I; - - ) - if (m[t].className.indexOf('iepp_') < 0) - m[t].className += ' iepp_' + g[p]; + for (var m = b.getElementsByTagName(g[p]), I = m.length, t = -1; ++t < I; ) + if (m[t].className.indexOf('iepp_') < 0) m[t].className += ' iepp_' + g[p]; K.insertBefore(B, K.firstChild); B.styleSheet.cssText = k(b.styleSheets, 'all').replace(T, '.iepp_$1'); z.appendChild(b.body); diff --git a/boxoffice/assets/js/models/util.js b/boxoffice/assets/js/models/util.js index b624b794e..6fc34b610 100644 --- a/boxoffice/assets/js/models/util.js +++ b/boxoffice/assets/js/models/util.js @@ -12,8 +12,7 @@ export const Util = { let val = value.toString(); val = val.replace(/[^0-9.]/g, ''); // Remove non-digits, assume . for decimals let afterPoint = ''; - if (val.indexOf('.') > 0) - afterPoint = val.substring(val.indexOf('.'), val.length); + if (val.indexOf('.') > 0) afterPoint = val.substring(val.indexOf('.'), val.length); val = Math.floor(val); val = val.toString(); let lastThree = val.substring(val.length - 3); diff --git a/boxoffice/assets/js/packed.js b/boxoffice/assets/js/packed.js index a88217ad0..8dc152d9c 100644 --- a/boxoffice/assets/js/packed.js +++ b/boxoffice/assets/js/packed.js @@ -16,8 +16,7 @@ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, rvalidchars = /^[\],:{}\s]*$/, rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, - rvalidtokens = - /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rwebkit = /(webkit)[ \/]([\w.]+)/, ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/, @@ -82,9 +81,8 @@ } } else { ret = jQuery.buildFragment([match[1]], [doc]); - selector = ( - ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment - ).childNodes; + selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment) + .childNodes; } return jQuery.merge(this, selector); } else { @@ -220,8 +218,7 @@ if ( deep && copy && - (jQuery.isPlainObject(copy) || - (copyIsArray = jQuery.isArray(copy))) + (jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy))) ) { if (copyIsArray) { copyIsArray = false; @@ -284,11 +281,7 @@ return setTimeout(jQuery.ready, 1); } if (document.addEventListener) { - document.addEventListener( - 'DOMContentLoaded', - DOMContentLoaded, - false - ); + document.addEventListener('DOMContentLoaded', DOMContentLoaded, false); window.addEventListener('load', jQuery.ready, false); } else if (document.attachEvent) { document.attachEvent('onreadystatechange', DOMContentLoaded); @@ -317,9 +310,7 @@ return !isNaN(parseFloat(obj)) && isFinite(obj); }, type: function (obj) { - return obj == null - ? String(obj) - : class2type[toString.call(obj)] || 'object'; + return obj == null ? String(obj) : class2type[toString.call(obj)] || 'object'; }, isPlainObject: function (obj) { if ( @@ -413,9 +404,7 @@ return string.replace(rmsPrefix, 'ms-').replace(rdashAlpha, fcamelCase); }, nodeName: function (elem, name) { - return ( - elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase() - ); + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); }, each: function (object, callback, args) { var name, @@ -615,11 +604,7 @@ jQuerySub.fn.constructor = jQuerySub; jQuerySub.sub = this.sub; jQuerySub.fn.init = function init(selector, context) { - if ( - context && - context instanceof jQuery && - !(context instanceof jQuerySub) - ) { + if (context && context instanceof jQuery && !(context instanceof jQuerySub)) { context = jQuerySub(context); } return jQuery.fn.init.call(this, selector, context, rootjQuerySub); @@ -651,11 +636,7 @@ rootjQuery = jQuery(document); if (document.addEventListener) { DOMContentLoaded = function () { - document.removeEventListener( - 'DOMContentLoaded', - DOMContentLoaded, - false - ); + document.removeEventListener('DOMContentLoaded', DOMContentLoaded, false); jQuery.ready(); }; } else if (document.attachEvent) { @@ -722,10 +703,7 @@ firingStart = 0; firingLength = list.length; for (; list && firingIndex < firingLength; firingIndex++) { - if ( - list[firingIndex].apply(context, args) === false && - flags.stopOnFalse - ) { + if (list[firingIndex].apply(context, args) === false && flags.stopOnFalse) { memory = true; break; } @@ -864,9 +842,7 @@ return this; }, always: function () { - deferred.done - .apply(deferred, arguments) - .fail.apply(deferred, arguments); + deferred.done.apply(deferred, arguments).fail.apply(deferred, arguments); return this; }, pipe: function (fnDone, fnFail, fnProgress) { @@ -888,11 +864,7 @@ if (returned && jQuery.isFunction(returned.promise)) { returned .promise() - .then( - newDefer.resolve, - newDefer.reject, - newDefer.notify - ); + .then(newDefer.resolve, newDefer.reject, newDefer.notify); } else { newDefer[action + 'With']( this === deferred ? newDefer : this, @@ -959,8 +931,7 @@ promise = deferred.promise(); function resolveFunc(i) { return function (value) { - args[i] = - arguments.length > 1 ? sliceDeferred.call(arguments, 0) : value; + args[i] = arguments.length > 1 ? sliceDeferred.call(arguments, 0) : value; if (!--count) { deferred.resolveWith(deferred, args); } @@ -968,21 +939,14 @@ } function progressFunc(i) { return function (value) { - pValues[i] = - arguments.length > 1 ? sliceDeferred.call(arguments, 0) : value; + pValues[i] = arguments.length > 1 ? sliceDeferred.call(arguments, 0) : value; deferred.notifyWith(promise, pValues); }; } if (length > 1) { for (; i < length; i++) { - if ( - args[i] && - args[i].promise && - jQuery.isFunction(args[i].promise) - ) { - args[i] - .promise() - .then(resolveFunc(i), deferred.reject, progressFunc(i)); + if (args[i] && args[i].promise && jQuery.isFunction(args[i].promise)) { + args[i].promise().then(resolveFunc(i), deferred.reject, progressFunc(i)); } else { --count; } @@ -1036,8 +1000,7 @@ getSetAttribute: div.className !== 't', enctype: !!document.createElement('form').enctype, html5Clone: - document.createElement('nav').cloneNode(true).outerHTML !== - '<:nav>', + document.createElement('nav').cloneNode(true).outerHTML !== '<:nav>', submitBubbles: true, changeBubbles: true, focusinBubbles: false, @@ -1070,9 +1033,7 @@ div.appendChild(input); fragment = document.createDocumentFragment(); fragment.appendChild(div.lastChild); - support.checkClone = fragment - .cloneNode(true) - .cloneNode(true).lastChild.checked; + support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked; support.appendChecked = input.checked; fragment.removeChild(input); fragment.appendChild(div); @@ -1085,8 +1046,7 @@ div.appendChild(marginDiv); support.reliableMarginRight = (parseInt( - (window.getComputedStyle(marginDiv, null) || { marginRight: 0 }) - .marginRight, + (window.getComputedStyle(marginDiv, null) || { marginRight: 0 }).marginRight, 10 ) || 0) === 0; } @@ -1133,10 +1093,7 @@ ''; container = document.createElement('div'); container.style.cssText = - vb + - 'width:0;height:0;position:static;top:0;margin-top:' + - conMarginTop + - 'px'; + vb + 'width:0;height:0;position:static;top:0;margin-top:' + conMarginTop + 'px'; body.insertBefore(container, body.firstChild); div = document.createElement('div'); container.appendChild(div); @@ -1169,15 +1126,12 @@ }; inner.style.position = 'fixed'; inner.style.top = '20px'; - offsetSupport.fixedPosition = - inner.offsetTop === 20 || inner.offsetTop === 15; + offsetSupport.fixedPosition = inner.offsetTop === 20 || inner.offsetTop === 15; inner.style.position = inner.style.top = ''; outer.style.overflow = 'hidden'; outer.style.position = 'relative'; - offsetSupport.subtractsBorderForOverflowNotVisible = - inner.offsetTop === -5; - offsetSupport.doesNotIncludeMarginInBodyOffset = - body.offsetTop !== conMarginTop; + offsetSupport.subtractsBorderForOverflowNotVisible = inner.offsetTop === -5; + offsetSupport.doesNotIncludeMarginInBodyOffset = body.offsetTop !== conMarginTop; body.removeChild(container); div = container = null; jQuery.extend(support, offsetSupport); @@ -1196,9 +1150,7 @@ applet: true, }, hasData: function (elem) { - elem = elem.nodeType - ? jQuery.cache[elem[jQuery.expando]] - : elem[jQuery.expando]; + elem = elem.nodeType ? jQuery.cache[elem[jQuery.expando]] : elem[jQuery.expando]; return !!elem && !isEmptyDataObject(elem); }, data: function (elem, name, data, pvt) { @@ -1435,10 +1387,7 @@ (src === 'mark' || !jQuery._data(elem, markDataKey)) ) { setTimeout(function () { - if ( - !jQuery._data(elem, queueDataKey) && - !jQuery._data(elem, markDataKey) - ) { + if (!jQuery._data(elem, queueDataKey) && !jQuery._data(elem, markDataKey)) { jQuery.removeData(elem, deferDataKey, true); defer.fire(); } @@ -1713,9 +1662,7 @@ for (; i < l; i++) { if ( this[i].nodeType === 1 && - (' ' + this[i].className + ' ') - .replace(rclass, ' ') - .indexOf(className) > -1 + (' ' + this[i].className + ' ').replace(rclass, ' ').indexOf(className) > -1 ) { return true; } @@ -1730,8 +1677,7 @@ if (!arguments.length) { if (elem) { hooks = - jQuery.valHooks[elem.nodeName.toLowerCase()] || - jQuery.valHooks[elem.type]; + jQuery.valHooks[elem.nodeName.toLowerCase()] || jQuery.valHooks[elem.type]; if ( hooks && 'get' in hooks && @@ -1770,8 +1716,7 @@ }); } hooks = - jQuery.valHooks[this.nodeName.toLowerCase()] || - jQuery.valHooks[this.type]; + jQuery.valHooks[this.nodeName.toLowerCase()] || jQuery.valHooks[this.type]; if ( !hooks || !('set' in hooks) || @@ -1868,8 +1813,7 @@ notxml = nType !== 1 || !jQuery.isXMLDoc(elem); if (notxml) { name = name.toLowerCase(); - hooks = - jQuery.attrHooks[name] || (rboolean.test(name) ? boolHook : nodeHook); + hooks = jQuery.attrHooks[name] || (rboolean.test(name) ? boolHook : nodeHook); } if (value !== undefined) { if (value === null) { @@ -2045,8 +1989,7 @@ get: function (elem, name) { var ret; ret = elem.getAttributeNode(name); - return ret && - (fixSpecified[name] ? ret.nodeValue !== '' : ret.specified) + return ret && (fixSpecified[name] ? ret.nodeValue !== '' : ret.specified) ? ret.nodeValue : undefined; }, @@ -2130,8 +2073,7 @@ jQuery.valHooks[this] = jQuery.extend(jQuery.valHooks[this], { set: function (elem, value) { if (jQuery.isArray(value)) { - return (elem.checked = - jQuery.inArray(jQuery(elem).val(), value) >= 0); + return (elem.checked = jQuery.inArray(jQuery(elem).val(), value) >= 0); } }, }); @@ -2294,9 +2236,7 @@ origCount = eventType.length; namespaces = namespaces ? new RegExp( - '(^|\\.)' + - namespaces.split('.').sort().join('\\.(?:.*\\.)?') + - '(\\.|$)' + '(^|\\.)' + namespaces.split('.').sort().join('\\.(?:.*\\.)?') + '(\\.|$)' ) : null; for (j = 0; j < eventType.length; j++) { @@ -2319,10 +2259,7 @@ } } if (eventType.length === 0 && origCount !== eventType.length) { - if ( - !special.teardown || - special.teardown.call(elem, namespaces) === false - ) { + if (!special.teardown || special.teardown.call(elem, namespaces) === false) { jQuery.removeEvent(elem, type, elemData.handle); } delete events[type]; @@ -2365,10 +2302,7 @@ type = namespaces.shift(); namespaces.sort(); } - if ( - (!elem || jQuery.event.customEvent[type]) && - !jQuery.event.global[type] - ) { + if ((!elem || jQuery.event.customEvent[type]) && !jQuery.event.global[type]) { return; } event = @@ -2414,10 +2348,7 @@ old = cur; } if (old && old === elem.ownerDocument) { - eventPath.push([ - old.defaultView || old.parentWindow || window, - bubbleType, - ]); + eventPath.push([old.defaultView || old.parentWindow || window, bubbleType]); } } for (i = 0; i < eventPath.length && !event.isPropagationStopped(); i++) { @@ -2430,11 +2361,7 @@ handle.apply(cur, data); } handle = ontype && cur[ontype]; - if ( - handle && - jQuery.acceptData(cur) && - handle.apply(cur, data) === false - ) { + if (handle && jQuery.acceptData(cur) && handle.apply(cur, data) === false) { event.preventDefault(); } } @@ -2449,8 +2376,7 @@ if ( ontype && elem[type] && - ((type !== 'focus' && type !== 'blur') || - event.target.offsetWidth !== 0) && + ((type !== 'focus' && type !== 'blur') || event.target.offsetWidth !== 0) && !jQuery.isWindow(elem) ) { old = elem[ontype]; @@ -2522,11 +2448,7 @@ matches: handlers.slice(delegateCount), }); } - for ( - i = 0; - i < handlerQueue.length && !event.isPropagationStopped(); - i++ - ) { + for (i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++) { matched = handlerQueue[i]; event.currentTarget = matched.elem; for ( @@ -2750,10 +2672,7 @@ handleObj = event.handleObj, selector = handleObj.selector, ret; - if ( - !related || - (related !== target && !jQuery.contains(target, related)) - ) { + if (!related || (related !== target && !jQuery.contains(target, related))) { event.type = handleObj.origType; ret = handleObj.handler.apply(this, arguments); event.type = fix; @@ -2845,12 +2764,7 @@ jQuery.each({ focus: 'focusin', blur: 'focusout' }, function (orig, fix) { var attaches = 0, handler = function (event) { - jQuery.event.simulate( - fix, - event.target, - jQuery.event.fix(event), - true - ); + jQuery.event.simulate(fix, event.target, jQuery.event.fix(event), true); }; jQuery.event.special[fix] = { setup: function () { @@ -2978,8 +2892,7 @@ guid = fn.guid || jQuery.guid++, i = 0, toggler = function (event) { - var lastToggle = - (jQuery._data(this, 'lastToggle' + fn.guid) || 0) % i; + var lastToggle = (jQuery._data(this, 'lastToggle' + fn.guid) || 0) % i; jQuery._data(this, 'lastToggle' + fn.guid, lastToggle + 1); event.preventDefault(); return args[lastToggle].apply(this, arguments) || false; @@ -3074,9 +2987,7 @@ if (parts.length === 2 && Expr.relative[parts[0]]) { set = posProcess(parts[0] + parts[1], context, seed); } else { - set = Expr.relative[parts[0]] - ? [context] - : Sizzle(parts.shift(), context); + set = Expr.relative[parts[0]] ? [context] : Sizzle(parts.shift(), context); while (parts.length) { selector = parts.shift(); if (Expr.relative[selector]) { @@ -3146,8 +3057,7 @@ if ( checkSet[i] && (checkSet[i] === true || - (checkSet[i].nodeType === 1 && - Sizzle.contains(context, checkSet[i]))) + (checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i]))) ) { results.push(set[i]); } @@ -3366,8 +3276,7 @@ if ((elem = checkSet[i])) { while ((elem = elem.previousSibling) && elem.nodeType !== 1) {} checkSet[i] = - isPartStrNotTag || - (elem && elem.nodeName.toLowerCase() === part) + isPartStrNotTag || (elem && elem.nodeName.toLowerCase() === part) ? elem || false : elem === part; } @@ -3387,17 +3296,14 @@ elem = checkSet[i]; if (elem) { var parent = elem.parentNode; - checkSet[i] = - parent.nodeName.toLowerCase() === part ? parent : false; + checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; } } } else { for (; i < l; i++) { elem = checkSet[i]; if (elem) { - checkSet[i] = isPartStr - ? elem.parentNode - : elem.parentNode === part; + checkSet[i] = isPartStr ? elem.parentNode : elem.parentNode === part; } } if (isPartStr) { @@ -3425,14 +3331,7 @@ nodeCheck = part; checkFn = dirNodeCheck; } - checkFn( - 'previousSibling', - part, - doneName, - checkSet, - nodeCheck, - isXML - ); + checkFn('previousSibling', part, doneName, checkSet, nodeCheck, isXML); }, }, find: { @@ -3524,10 +3423,7 @@ }, PSEUDO: function (match, curLoop, inplace, result, not) { if (match[1] === 'not') { - if ( - (chunker.exec(match[3]) || '').length > 1 || - /^\w/.test(match[3]) - ) { + if ((chunker.exec(match[3]) || '').length > 1 || /^\w/.test(match[3])) { match[3] = Sizzle(match[3], null, null, curLoop); } else { var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); @@ -3536,10 +3432,7 @@ } return false; } - } else if ( - Expr.match.POS.test(match[0]) || - Expr.match.CHILD.test(match[0]) - ) { + } else if (Expr.match.POS.test(match[0]) || Expr.match.CHILD.test(match[0])) { return true; } return match; @@ -3587,47 +3480,31 @@ ); }, radio: function (elem) { - return ( - elem.nodeName.toLowerCase() === 'input' && 'radio' === elem.type - ); + return elem.nodeName.toLowerCase() === 'input' && 'radio' === elem.type; }, checkbox: function (elem) { - return ( - elem.nodeName.toLowerCase() === 'input' && 'checkbox' === elem.type - ); + return elem.nodeName.toLowerCase() === 'input' && 'checkbox' === elem.type; }, file: function (elem) { - return ( - elem.nodeName.toLowerCase() === 'input' && 'file' === elem.type - ); + return elem.nodeName.toLowerCase() === 'input' && 'file' === elem.type; }, password: function (elem) { - return ( - elem.nodeName.toLowerCase() === 'input' && 'password' === elem.type - ); + return elem.nodeName.toLowerCase() === 'input' && 'password' === elem.type; }, submit: function (elem) { var name = elem.nodeName.toLowerCase(); - return ( - (name === 'input' || name === 'button') && 'submit' === elem.type - ); + return (name === 'input' || name === 'button') && 'submit' === elem.type; }, image: function (elem) { - return ( - elem.nodeName.toLowerCase() === 'input' && 'image' === elem.type - ); + return elem.nodeName.toLowerCase() === 'input' && 'image' === elem.type; }, reset: function (elem) { var name = elem.nodeName.toLowerCase(); - return ( - (name === 'input' || name === 'button') && 'reset' === elem.type - ); + return (name === 'input' || name === 'button') && 'reset' === elem.type; }, button: function (elem) { var name = elem.nodeName.toLowerCase(); - return ( - (name === 'input' && 'button' === elem.type) || name === 'button' - ); + return (name === 'input' && 'button' === elem.type) || name === 'button'; }, input: function (elem) { return /input|select|textarea|button/i.test(elem.nodeName); @@ -3670,12 +3547,9 @@ return filter(elem, i, match, array); } else if (name === 'contains') { return ( - ( - elem.textContent || - elem.innerText || - getText([elem]) || - '' - ).indexOf(match[3]) >= 0 + (elem.textContent || elem.innerText || getText([elem]) || '').indexOf( + match[3] + ) >= 0 ); } else if (name === 'not') { var not = match[3]; @@ -3754,11 +3628,9 @@ }, CLASS: function (elem, match) { return ( - ( - ' ' + - (elem.className || elem.getAttribute('class')) + - ' ' - ).indexOf(match) > -1 + (' ' + (elem.className || elem.getAttribute('class')) + ' ').indexOf( + match + ) > -1 ); }, ATTR: function (elem, match) { @@ -3790,12 +3662,10 @@ : type === '^=' ? value.indexOf(check) === 0 : type === '$=' - ? value.substr(value.length - check.length) === - check + ? value.substr(value.length - check.length) === check : type === '|=' ? value === check || - value.substr(0, check.length + 1) === - check + '-' + value.substr(0, check.length + 1) === check + '-' : false; }, POS: function (elem, match, i, array) { @@ -3816,8 +3686,7 @@ Expr.match[type].source + /(?![^\[]*\])(?![^\(]*\))/.source ); Expr.leftMatch[type] = new RegExp( - /(^(?:.|\r|\n)*?)/.source + - Expr.match[type].source.replace(/\\(\d+)/g, fescape) + /(^(?:.|\r|\n)*?)/.source + Expr.match[type].source.replace(/\\(\d+)/g, fescape) ); } var makeArray = function (array, results) { @@ -3829,8 +3698,7 @@ return array; }; try { - Array.prototype.slice.call(document.documentElement.childNodes, 0)[0] - .nodeType; + Array.prototype.slice.call(document.documentElement.childNodes, 0)[0].nodeType; } catch (e) { makeArray = function (array, results) { var i = 0, @@ -3901,9 +3769,7 @@ return siblingCheck(ap[i], bp[i]); } } - return i === al - ? siblingCheck(a, bp[i], -1) - : siblingCheck(ap[i], b, 1); + return i === al ? siblingCheck(a, bp[i], -1) : siblingCheck(ap[i], b, 1); }; siblingCheck = function (a, b, ret) { if (a === b) { @@ -3940,8 +3806,7 @@ }; Expr.filter.ID = function (elem, match) { var node = - typeof elem.getAttributeNode !== 'undefined' && - elem.getAttributeNode('id'); + typeof elem.getAttributeNode !== 'undefined' && elem.getAttributeNode('id'); return elem.nodeType === 1 && node && node.nodeValue === match; }; } @@ -3984,10 +3849,7 @@ div = document.createElement('div'), id = '__sizzle__'; div.innerHTML = "

"; - if ( - div.querySelectorAll && - div.querySelectorAll('.TEST').length === 0 - ) { + if (div.querySelectorAll && div.querySelectorAll('.TEST').length === 0) { return; } Sizzle = function (query, context, extra, seed) { @@ -4002,10 +3864,7 @@ Expr.find.CLASS && context.getElementsByClassName ) { - return makeArray( - context.getElementsByClassName(match[2]), - extra - ); + return makeArray(context.getElementsByClassName(match[2]), extra); } } if (context.nodeType === 9) { @@ -4072,10 +3931,7 @@ html.webkitMatchesSelector || html.msMatchesSelector; if (matches) { - var disconnectedMatch = !matches.call( - document.createElement('div'), - 'div' - ), + var disconnectedMatch = !matches.call(document.createElement('div'), 'div'), pseudoWorks = false; try { matches.call(document.documentElement, "[test!='']:sizzle"); @@ -4086,10 +3942,7 @@ expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); if (!Sizzle.isXML(node)) { try { - if ( - pseudoWorks || - (!Expr.match.PSEUDO.test(expr) && !/!=/.test(expr)) - ) { + if (pseudoWorks || (!Expr.match.PSEUDO.test(expr) && !/!=/.test(expr))) { var ret = matches.call(node, expr); if ( ret || @@ -4108,10 +3961,7 @@ (function () { var div = document.createElement('div'); div.innerHTML = "
"; - if ( - !div.getElementsByClassName || - div.getElementsByClassName('e').length === 0 - ) { + if (!div.getElementsByClassName || div.getElementsByClassName('e').length === 0) { return; } div.lastChild.className = 'e'; @@ -4197,8 +4047,7 @@ }; } Sizzle.isXML = function (elem) { - var documentElement = (elem ? elem.ownerDocument || elem : 0) - .documentElement; + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; return documentElement ? documentElement.nodeName !== 'HTML' : false; }; var posProcess = function (selector, context, seed) { @@ -4323,21 +4172,12 @@ for (i = 0, l = this.length; i < l; i++) { cur = this[i]; while (cur) { - if ( - pos - ? pos.index(cur) > -1 - : jQuery.find.matchesSelector(cur, selectors) - ) { + if (pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors)) { ret.push(cur); break; } else { cur = cur.parentNode; - if ( - !cur || - !cur.ownerDocument || - cur === context || - cur.nodeType === 11 - ) { + if (!cur || !cur.ownerDocument || cur === context || cur.nodeType === 11) { break; } } @@ -4359,14 +4199,10 @@ var set = typeof selector === 'string' ? jQuery(selector, context) - : jQuery.makeArray( - selector && selector.nodeType ? [selector] : selector - ), + : jQuery.makeArray(selector && selector.nodeType ? [selector] : selector), all = jQuery.merge(this.get(), set); return this.pushStack( - isDisconnected(set[0]) || isDisconnected(all[0]) - ? all - : jQuery.unique(all) + isDisconnected(set[0]) || isDisconnected(all[0]) ? all : jQuery.unique(all) ); }, andSelf: function () { @@ -4427,8 +4263,7 @@ if (selector && typeof selector === 'string') { ret = jQuery.filter(selector, ret); } - ret = - this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret; + ret = this.length > 1 && !guaranteedUnique[name] ? jQuery.unique(ret) : ret; if ( (this.length > 1 || rmultiselector.test(selector)) && rparentsprev.test(name) @@ -4548,11 +4383,7 @@ }, safeFragment = createSafeFragment(document); wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = - wrapMap.tfoot = - wrapMap.colgroup = - wrapMap.caption = - wrapMap.thead; + wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; if (!jQuery.support.htmlSerialize) { wrapMap._default = [1, 'div
', '
']; @@ -4689,8 +4520,7 @@ }, clone: function (dataAndEvents, deepDataAndEvents) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = - deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map(function () { return jQuery.clone(this, dataAndEvents, deepDataAndEvents); }); @@ -4845,9 +4675,7 @@ for (i = 0, l = events[type].length; i < l; i++) { jQuery.event.add( dest, - type + - (events[type][i].namespace ? '.' : '') + - events[type][i].namespace, + type + (events[type][i].namespace ? '.' : '') + events[type][i].namespace, events[type][i], events[type][i].data ); @@ -5031,9 +4859,7 @@ context = context || document; if (typeof context.createElement === 'undefined') { context = - context.ownerDocument || - (context[0] && context[0].ownerDocument) || - document; + context.ownerDocument || (context[0] && context[0].ownerDocument) || document; } var ret = [], j; @@ -5071,18 +4897,12 @@ ? div.childNodes : []; for (j = tbody.length - 1; j >= 0; --j) { - if ( - jQuery.nodeName(tbody[j], 'tbody') && - !tbody[j].childNodes.length - ) { + if (jQuery.nodeName(tbody[j], 'tbody') && !tbody[j].childNodes.length) { tbody[j].parentNode.removeChild(tbody[j]); } } } - if ( - !jQuery.support.leadingWhitespace && - rleadingWhitespace.test(elem) - ) { + if (!jQuery.support.leadingWhitespace && rleadingWhitespace.test(elem)) { div.insertBefore( context.createTextNode(rleadingWhitespace.exec(elem)[0]), div.firstChild @@ -5346,9 +5166,7 @@ set: function (elem, value) { var style = elem.style, currentStyle = elem.currentStyle, - opacity = jQuery.isNumeric(value) - ? 'alpha(opacity=' + value * 100 + ')' - : '', + opacity = jQuery.isNumeric(value) ? 'alpha(opacity=' + value * 100 + ')' : '', filter = (currentStyle && currentStyle.filter) || style.filter || ''; style.zoom = 1; if (value >= 1 && jQuery.trim(filter.replace(ralpha, '')) === '') { @@ -5389,10 +5207,7 @@ (computedStyle = defaultView.getComputedStyle(elem, null)) ) { ret = computedStyle.getPropertyValue(name); - if ( - ret === '' && - !jQuery.contains(elem.ownerDocument.documentElement, elem) - ) { + if (ret === '' && !jQuery.contains(elem.ownerDocument.documentElement, elem)) { ret = jQuery.style(elem, name); } } @@ -5440,8 +5255,7 @@ if (extra === 'margin') { val += parseFloat(jQuery.css(elem, extra + which[i])) || 0; } else { - val -= - parseFloat(jQuery.css(elem, 'border' + which[i] + 'Width')) || 0; + val -= parseFloat(jQuery.css(elem, 'border' + which[i] + 'Width')) || 0; } } } @@ -5456,8 +5270,7 @@ for (; i < len; i++) { val += parseFloat(jQuery.css(elem, 'padding' + which[i])) || 0; if (extra !== 'padding') { - val += - parseFloat(jQuery.css(elem, 'border' + which[i] + 'Width')) || 0; + val += parseFloat(jQuery.css(elem, 'border' + which[i] + 'Width')) || 0; } if (extra === 'margin') { val += parseFloat(jQuery.css(elem, extra + which[i])) || 0; @@ -5473,8 +5286,8 @@ return ( (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && - ((elem.style && elem.style.display) || - jQuery.css(elem, 'display')) === 'none') + ((elem.style && elem.style.display) || jQuery.css(elem, 'display')) === + 'none') ); }; jQuery.expr.filters.visible = function (elem) { @@ -5488,8 +5301,7 @@ rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, - rlocalProtocol = - /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, + rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rquery = /\?/, @@ -5774,8 +5586,7 @@ setRequestHeader: function (name, value) { if (!state) { var lname = name.toLowerCase(); - name = requestHeadersNames[lname] = - requestHeadersNames[lname] || name; + name = requestHeadersNames[lname] = requestHeadersNames[lname] || name; requestHeaders[name] = value; } return this; @@ -5826,9 +5637,7 @@ success, error, statusText = nativeStatusText, - response = responses - ? ajaxHandleResponses(s, jqXHR, responses) - : undefined, + response = responses ? ajaxHandleResponses(s, jqXHR, responses) : undefined, lastModified, etag; if ((status >= 200 && status < 300) || status === 304) { @@ -5872,10 +5681,11 @@ jqXHR.statusCode(statusCode); statusCode = undefined; if (fireGlobals) { - globalEventContext.trigger( - 'ajax' + (isSuccess ? 'Success' : 'Error'), - [jqXHR, s, isSuccess ? success : error] - ); + globalEventContext.trigger('ajax' + (isSuccess ? 'Success' : 'Error'), [ + jqXHR, + s, + isSuccess ? success : error, + ]); } completeDeferred.fireWith(callbackContext, [jqXHR, statusText]); if (fireGlobals) { @@ -5943,14 +5753,10 @@ var ts = jQuery.now(), ret = s.url.replace(rts, '$1_=' + ts); s.url = - ret + - (ret === s.url ? (rquery.test(s.url) ? '&' : '?') + '_=' + ts : ''); + ret + (ret === s.url ? (rquery.test(s.url) ? '&' : '?') + '_=' + ts : ''); } } - if ( - (s.data && s.hasContent && s.contentType !== false) || - options.contentType - ) { + if ((s.data && s.hasContent && s.contentType !== false) || options.contentType) { jqXHR.setRequestHeader('Content-Type', s.contentType); } if (s.ifModified) { @@ -6015,8 +5821,7 @@ var s = [], add = function (key, value) { value = jQuery.isFunction(value) ? value() : value; - s[s.length] = - encodeURIComponent(key) + '=' + encodeURIComponent(value); + s[s.length] = encodeURIComponent(key) + '=' + encodeURIComponent(value); }; if (traditional === undefined) { traditional = jQuery.ajaxSettings.traditional; @@ -6040,10 +5845,7 @@ add(prefix, v); } else { buildParams( - prefix + - '[' + - (typeof v === 'object' || jQuery.isArray(v) ? i : '') + - ']', + prefix + '[' + (typeof v === 'object' || jQuery.isArray(v) ? i : '') + ']', v, traditional, add @@ -6180,8 +5982,7 @@ typeof s.data === 'string'; if ( s.dataTypes[0] === 'jsonp' || - (s.jsonp !== false && - (jsre.test(s.url) || (inspectData && jsre.test(s.data)))) + (s.jsonp !== false && (jsre.test(s.url) || (inspectData && jsre.test(s.data)))) ) { var responseContainer, jsonpCallback = (s.jsonpCallback = jQuery.isFunction(s.jsonpCallback) @@ -6539,9 +6340,7 @@ val = prop[name] = val[0]; } else { opt.animatedProperties[name] = - (opt.specialEasing && opt.specialEasing[name]) || - opt.easing || - 'swing'; + (opt.specialEasing && opt.specialEasing[name]) || opt.easing || 'swing'; } if ((val === 'hide' && hidden) || (val === 'show' && !hidden)) { return opt.complete.call(this); @@ -6578,11 +6377,7 @@ jQuery._data(this, 'toggle' + p) || (val === 'toggle' ? (hidden ? 'show' : 'hide') : 0); if (method) { - jQuery._data( - this, - 'toggle' + p, - method === 'show' ? 'hide' : 'show' - ); + jQuery._data(this, 'toggle' + p, method === 'show' ? 'hide' : 'show'); e[method](); } else { e[val](); @@ -6703,12 +6498,10 @@ speed && typeof speed === 'object' ? jQuery.extend({}, speed) : { - complete: - fn || (!fn && easing) || (jQuery.isFunction(speed) && speed), + complete: fn || (!fn && easing) || (jQuery.isFunction(speed) && speed), duration: speed, easing: - (fn && easing) || - (easing && !jQuery.isFunction(easing) && easing), + (fn && easing) || (easing && !jQuery.isFunction(easing) && easing), }; opt.duration = jQuery.fx.off ? 0 @@ -6765,11 +6558,7 @@ } var parsed, r = jQuery.css(this.elem, this.prop); - return isNaN((parsed = parseFloat(r))) - ? !r || r === 'auto' - ? 0 - : r - : parsed; + return isNaN((parsed = parseFloat(r))) ? (!r || r === 'auto' ? 0 : r) : parsed; }, custom: function (from, to, unit) { var self = this, @@ -6778,8 +6567,7 @@ this.end = to; this.now = this.start = from; this.pos = this.state = 0; - this.unit = - unit || this.unit || (jQuery.cssNumber[this.prop] ? '' : 'px'); + this.unit = unit || this.unit || (jQuery.cssNumber[this.prop] ? '' : 'px'); function t(gotoEnd) { return self.step(gotoEnd); } @@ -6799,8 +6587,7 @@ }, show: function () { var dataShow = jQuery._data(this.elem, 'fxshow' + this.prop); - this.options.orig[this.prop] = - dataShow || jQuery.style(this.elem, this.prop); + this.options.orig[this.prop] = dataShow || jQuery.style(this.elem, this.prop); this.options.show = true; if (dataShow !== undefined) { this.custom(this.cur(), dataShow); @@ -7023,10 +6810,7 @@ top = elem.offsetTop, left = elem.offsetLeft; while ((elem = elem.parentNode) && elem !== body && elem !== docElem) { - if ( - jQuery.support.fixedPosition && - prevComputedStyle.position === 'fixed' - ) { + if (jQuery.support.fixedPosition && prevComputedStyle.position === 'fixed') { break; } computedStyle = defaultView @@ -7040,8 +6824,7 @@ if ( jQuery.support.doesNotAddBorder && !( - jQuery.support.doesAddBorderForTableAndCells && - rtable.test(elem.nodeName) + jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName) ) ) { top += parseFloat(computedStyle.borderTopWidth) || 0; @@ -7066,10 +6849,7 @@ top += body.offsetTop; left += body.offsetLeft; } - if ( - jQuery.support.fixedPosition && - prevComputedStyle.position === 'fixed' - ) { + if (jQuery.support.fixedPosition && prevComputedStyle.position === 'fixed') { top += Math.max(docElem.scrollTop, body.scrollTop); left += Math.max(docElem.scrollLeft, body.scrollLeft); } @@ -7175,8 +6955,7 @@ return win ? 'pageXOffset' in win ? win[i ? 'pageYOffset' : 'pageXOffset'] - : (jQuery.support.boxModel && - win.document.documentElement[method]) || + : (jQuery.support.boxModel && win.document.documentElement[method]) || win.document.body[method] : elem[method]; } @@ -7280,8 +7059,7 @@ $parent = $(selector); $parent.trigger('close'); e && e.preventDefault(); - $parent.length || - ($parent = $this.hasClass('alert') ? $this : $this.parent()); + $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()); $parent.trigger('close').removeClass('in'); function removeElement() { $parent.trigger('closed').remove(); @@ -7345,15 +7123,11 @@ $.fn.button.defaults = { loadingText: 'loading...' }; $.fn.button.Constructor = Button; $(function () { - $('body').on( - 'click.button.data-api', - '[data-toggle^=button]', - function (e) { - var $btn = $(e.target); - if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn'); - $btn.button('toggle'); - } - ); + $('body').on('click.button.data-api', '[data-toggle^=button]', function (e) { + var $btn = $(e.target); + if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn'); + $btn.button('toggle'); + }); }); })(window.jQuery); !(function ($) { @@ -7471,24 +7245,19 @@ animate = this.$element.hasClass('fade') ? 'fade' : ''; if (this.isShown && this.options.backdrop) { var doAnimate = $.support.transition && animate; - this.$backdrop = $( - '