vendor: 1,728 bytes, line 1
1!function(a){a.fn.niceSelect=function(b){function c(f){f.after(a("<div></div>").addClass("nice-select").addClass(f.attr("class")||"").addClass(f.attr("disabled")?"disabled":"").attr("tabindex",f.attr("disabled")?null:"0").html('<span class="current"></span><ul class="list"></ul>'));var g=f.next(),h=f.find("option"),e=f.find("option:selected");g.find(".current").html(e.data("display")||e.text()),h.each(function(k){var l=a(this),j=l.data("display");g.find("ul").append(a("<li></li>").attr("data-value",l.val()).attr("data-display",j||null).addClass("option"+(l.is(":selected")?" selected":"")+(l.is(":disabled")?" disabled":"")).html(l.text()))})}if("string"==typeof b){return"update"==b?this.each(function(){var f=a(this),g=a(this).next(".nice-select"),e=g.hasClass("open");g.length&&(g.remove(),c(f),e&&f.next().trigger("click"))}):"destroy"==b?(this.each(function(){var e=a(this),f=a(this).next(".nice-select");f.length&&(f.remove(),e.css("display",""))}),0==a(".nice-select").length&&a(document).off(".nice_select")):console.log('Method "'+b+'" does not exist.'),this}this.hide(),this.each(function(){var e=a(this);e.next().hasClass("nice-select")||c(e)}),a(document).off(".nice_select"),a(document).on("click.nice_select",".nice-select",function(e){var f=a(this);a(".nice-select").not(f).removeClass("open"),f.toggleClass("open"),f.hasClass("open")?(f.find(".option"),f.find(".focus").removeClass("focus"),f.find(".selected").addClass("focus")):f.focus()}),a(document).on("click.nice_select",function(e){0===a(e.target).closest(".nice-select").length&&a(".nice-select").removeClass("open").find(".option")}),a(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(f){var g=a(this),h=g.closest(".
1nice-select");h.find(".selected").removeClass("selected"),g.addClass("selected");var e=g.data("display")||g.text();h.find(".current").text(e),h.prev("select").val(g.data("value")).trigger("change")}),a(document).on("keydown.nice_select",".nice-select",function(g){var h=a(this),j=a(h.find(".focus")||h.find(".list .option.selected"));if(32==g.keyCode||13==g.keyCode){return h.hasClass("open")?j.trigger("click"):h.trigger("click"),!1}if(40==g.keyCode){if(h.hasClass("open")){var f=j.nextAll(".option:not(.disabled)").first();f.length>0&&(h.find(".focus").removeClass("focus"),f.addClass("focus"))}else{h.trigger("click")}return !1}if(38==g.keyCode){if(h.hasClass("open")){var e=j.prevAll(".option:not(.disabled)").first();e.length>0&&(h.find(".focus").removeClass("focus"),e.addClass("focus"))}else{h.trigger("click")}return !1}if(27==g.keyCode){h.hasClass("open")&&h.trigger("click")}else{if(9==g.keyCode&&h.hasClass("open")){return !1}}});var d=document.createElement("a").style;return d.cssText="pointer-events:auto","auto"!==d.pointerEvents&&a("html").addClass("no-csspointerevents"),this}}(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.