1/* Stylish Forms 3.1.6 */ 2!function (e) { window.stylishForms || (window.stylishForms = {}), window.stylishForms = new function () { var t, s = !1, i = function (i) { var o = function () { i.find('input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], textarea').each(function () { e(this).attr("tabindex", 0).wrap('<div class="stylish-' + this.type + '" data-type="' + this.type + '" tabindex="-1" />').before("<span></span>"), r.setFocusClass(e(this)), r.disableField(e(this)) }), i.find("input.date").each(function () { e(this).parent().addClass("multidate").children("span").addClass("date"), r.setFocusClass(e(this)) }) }, n = function () { i.find("select").each(function () { e(this).wrap('<div class="stylish-select" data-type="' + this.type + '" tabindex="-1" />').css({ opacity: 0, position: "absolute", left: "-9999px" }).after('<span class="selected"><span class="text">' + e(this).find("option:selected").text() + '</span><span class="ico"></span></span><div class="dropdown-list" role="listbox"><div></div></div>'), d(e(this)), r.setFocusClass(e(this)), r.disableField(e(this)) }) }, d = function (t) { var s, i = 0, o = ""; return t.children().each(function () { e(this).is("optgroup") ? (o += '<div class="dropdown-option group">', o += "<span>" + e(this).attr("label") + "</span>", o += "<ul>", e(this).children().each(function () { e(this).data("index", i), o += '<li class="dropdown-option" role="option" data-index="' + i + '" ' + (e(this).is(":disabled") ? 'class="disabled"' : "") + (e(this).is(":selected") ? " option-selected" : "") + ">" + e(this).text() + "</li>", i += 1 }), o += "</ul>", o += "</div>") : (e(this).data("index", i), o += '<div class="dropdown-option' + (e(this).is(":disabled") ? " disabled" : "") + (e(this).is(":selected") ? " option-selected" : "") + '" role="option" data-index="' + i + '">' + e(this).text() + "</div>", i += 1) }), (s = t.closest(".stylish-select").find(".dropdown-list > div")).append(o), s.find(".dropdown-option").add(s.find(".dropdown-option")).not(".disabled, .group").attr("tabindex", 0), o }, a = function () { i.find('.dropdown-list[data-stylish-group="checkbox-dropdown"]').each(function () { e(this).wrap('<div class="stylish-select checkbox-dropdown" data-type="' + this.type + '" tabindex="-1" />').before('<span class="selected"></span>'), l(e(this)), r.setFocusClass(e(this)) }) }, l = function (e) { e.siblings(".selected").html('<span class="text">' + e.data("default-option-text") + '</span><span class="ico"></span>'), e.find(".dropdown-option").attr("tabindex", 0) }, c = function () { i.find('input[type="checkbox"], input[type="radio"]').each(function () { r.dualStatesHelper(e(this), e(this).attr("type")), r.setFocusClass(e(this)) }) }, p = function () { i.find('[data-type="range"]').each(function () { var t = e(this), s = t.data(), i = s.updateValue, o = s.inputfor, n = t.parent().find('[data-input-from="' + o + '"]'), d = t.parent().find('[data-input-to="' + o + '"]'), a = [n.val(), d.val()].filter(function (e) { return void 0 !== e }); t.slider({ range: a.length > 1, values: a, step: s.precision, min: s.min, max: s.max, slide: function (e, t) { var s = t.values[0], o = t.values[1]; i && (n && n.val(s), d && d.val(o)) }, start: r.hideDropdowns }) }) }, r = { checkboxDdSelected: function (t) { var s = t.find('input[type="checkbox"]:checked, input[type="radio"]:checked'), i = t.find(".selected > span.text"), o = [], n = ""; 0 === s.length ? i.html(t.find(".dropdown-list").data("default-option-text")) : (s.each(function () { o.push(e('label[for="' + e(this).attr("id") + '"]').text()) }), n = o.join(", "), i.html(n), i.attr("title", n)) }, setDropdownHeight: function (t) { var s = t.offset(), i = e(window).scrollTop(), o = s.top + t.outerHeight(), n = e(window).height() + i, d = s.top - i, a = n - s.top; o > n ? d > a ? (t.css("max-height", .8 * d), t.addClass("show-above")) : (t.css("max-height", .8 * (n - s.top)), t.removeClass("show-above")) : (t.removeClass("show-above"), t.css("max-height", "")) }, hideDropdowns: function (t) { 0 === e(t.target).closest(".stylish-select").length && e("[data-stylish-form]").find(".stylish-select").removeClass("active").find(".dropdown-list").hide().css("max-height", "").removeClass("show-above") }, setFocusClass: function (e) { e.on({ focus: function () { e.parent().addClass("focus") }, blur: function () { e.parent().removeClass("focus") } }) }, returnDefaultSelected: function (e) { var t = e.find("option").filter(function () { return this.defaultSelected }), s = e.closest(".stylish-select").find(".dropdown-list .dropdown-option"); return 0 === t.length ? (s.eq(0).addClass("option-selected"), s.eq(0)) : (s.eq(t.index()).addClass("option-selected"), t) }, returnDefaultChecked: function (e) { e.closest(".stylish-form").find('input
2:radio[name="' + e.attr("name") + '"]').filter(function () { return this.defaultChecked }).prop("checked", !0).siblings("span").addClass("checked") }, disableField: function (e) { e.parent().toggleClass("disabled", e.is(":disabled")) }, checkField: function (t) { "radio" === t.attr("type") && (t.closest(".stylish-form").find("input:radio").not(":checked").each(function () { e(this).attr("name") === t.attr("name") && e(this).siblings("span").removeClass("checked") }), e('input:radio[name="' + t.attr("name") + '"]:checked').val() || r.returnDefaultChecked(t)), t.siblings("span").toggleClass("checked", t.is(":checked")) }, dualStatesHelper: function (e, t) { e.wrap('<div class="stylish-ds" data-type="' + t + '" />').css({ opacity: 0, position: "absolute" }).before('<span class="' + (e.is(":checked") ? "checked" : "") + '"><span class="ico"></span></span>') }, updateCheckboxSelected: function (e) { e.closest(".stylish-select.checkbox-dropdown").length && (r.checkboxDdSelected(e.closest(".stylish-select.checkbox-dropdown")), e.closest("li").toggleClass("checked")) } }, h = function () { var t, o = "", n = !1; i.on("change", '.stylish-ds input[type="checkbox"]', function () { e(this).siblings("span").toggleClass("checked"), r.updateCheckboxSelected(e(this)) }), i.on("change", ".stylish-ds input[type=radio]", function () { i.find('input[type="radio"][name="' + e(this).attr("name") + '"]').each(function () { e(this).siblings("span").removeClass("checked") }), e(this).siblings("span").addClass("checked") }), i.on("click", ".stylish-select > .selected", function (t) { var s = e(this).closest(".stylish-select").find(".dropdown-list"), i = e(this).siblings("select"); t.stopPropagation(), i.is(":disabled") || (e(".stylish-select .dropdown-list").not(s).hide().closest(".stylish-select").removeClass("active"), s.toggle(), s.is(":visible") ? (s.closest(".stylish-select").addClass("active"), r.setDropdownHeight(s)) : s.closest(".stylish-select").removeClass("active"), 0 === s.find(".option-selected").length && r.returnDefaultSelected(i)) }), i.on("mouseover", ".stylish-select:not(.checkbox-dropdown) .dropdown-option", function (t) { e(this).not(".disabled").addClass("option-selected").siblings(".option-selected").removeClass("option-selected") }), i.on("click", ".stylish-select:not(.checkbox-dropdown) .dropdown-option", function (t) { var s = e(this); t.stopPropagation(), s.is(":not(.group, .disabled)") && (s.closest(".stylish-select").find(".dropdown-list").hide(), s.closest(".stylish-select").find("select").prop("selectedIndex", s.data("index")).change(), s.closest(".stylish-select").removeClass("active")) }), i.on("change", ".stylish-select select", function () { var t = e(this), s = t.find("option:selected"), i = t.closest(".stylish-select").find(".dropdown-list"); t.parent().find("span.selected > span.text").html(s.text()), i.find(".dropdown-option[data-index]").removeClass("option-selected").eq(t.prop("selectedIndex")).addClass("option-selected") }), i.on("keypress, keyup, keydown", ".stylish-select select", function (t) { var s = e(this), i = s.closest(".stylish-select"), o = i.find(".dropdown-list"); switch (t.which) { case 13: case 32: t.preventDefault(), t.stopPropagation(), i.hasClass("active") ? r.hideDropdowns(s) : (i.addClass("active"), o.show(), r.setDropdownHeight(o)), s.blur(), i.focus(), s.trigger("change"); break; case 27: case 9: s.trigger("change"), r.hideDropdowns(s); break; case 38: case 40: s.trigger("change") } }), i.on("keypress, keyup, keydown", ".stylish-select.active", function (s) { function i(t) { if (o === e(this).text().trim().substring(0, o.length).toLowerCase()) return p.removeClass("option-selected"), e(this).addClass("option-selected"), h = !0, !1 } var d = e(this), a = d.find("select"), l = d.find(".dropdown-list"), c = l.find(".dropdown-option:not(.disabled)"), p = c.filter(".option-selected"), h = !1; switch (s.which) { case 13: case 32: case 27: case 9: s.preventDefault(), a.find("option").eq(p.data("index")).prop("selected", !0), a.focus(), d.blur().removeClass("active"), a.trigger("change"), r.hideDropdowns(a); break; case 38: s.preventDefault(), p.length ? p.index() && (p.removeClass("option-selected").prevAll(".dropdown-option:not(.disabled)").first().addClass("option-selected"), l.scrollTop(c.filter(".option-selected").position().top)) : c.last(
2).addClass("option-selected"); break; case 40: s.preventDefault(), p.length ? p.index() + 1 < c.length && (p.removeClass("option-selected").nextAll(".dropdown-option:not(.disabled)").first().addClass("option-selected"), l.scrollTop(c.filter(".option-selected").position().top)) : c.first().addClass("option-selected"); break; default: (s.which >= 48 && s.which <= 57 || s.which >= 65 && s.which <= 90) && p.length && (n ? (clearTimeout(t), o += String.fromCharCode(s.which).toLowerCase()) : o = String.fromCharCode(s.which).toLowerCase(), n = !0, t = setTimeout(function () { n = !1 }, 1e3), c.slice(p.index() + 1).each(i), h || c.slice(0, p.index()).each(i), l.scrollTop(c.filter(".option-selected").position().top)) } }), !1 === s && (e(document).on("click touchend", r.hideDropdowns), s = !0) }; t = function (t) { t.is("select") ? (t.closest(".stylish-select").find(".dropdown-list").html(d(t)), t.siblings(".selected").find(".text").text(r.returnDefaultSelected(t).text()), r.disableField(t)) : t.is(".checkbox-dropdown") ? (l(t), r.disableField(t), t.find(".dropdown-option").each(function () { if (0 === e(this).children(".stylish-ds").length) { var t = e(this).find('input[type="checkbox"], input[type="radio"]'); r.dualStatesHelper(t, t.attr("type")), r.updateCheckboxSelected(t) } })) : "checkbox" !== t.attr("type") && "radio" !== t.attr("type") || (r.checkField(t), r.disableField(t), r.updateCheckboxSelected(t)) }, i.off(), i.addClass("stylish-form").attr("data-stylish-form", "set"), o(), n(), c(), a(), jQuery.ui && p(), h() }; this.apply = function () { e('[data-stylish-form="true"]').each(function () { i(e(this)) }) }, this.update = function () { this.apply() }, this.refresh = function (e) { t(e) } } }(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.