1"use strict";(()=>{(function(e){"use strict";e.jscroll={defaults:{debug:!1,autoTrigger:!0,autoTriggerUntil:!1,loadingHtml:"<small>Loading...</small>",loadingFunction:!1,padding:0,nextSelector:"a:last",contentSelector:"",pagingSelector:"",callback:!1}};var y=function(t,i){var a=t.data("jscroll"),S=typeof i=="function"?{callback:i}:i,l=e.extend({},e.jscroll.defaults,S,a||{}),j=t.css("overflow-y")==="visible",m=t.find(l.nextSelector).first(),s=e(window),H=e("body"),c=j?s:t,T=e.trim(m.prop("href")+" "+l.contentSelector),k=function(){var n=e(l.loadingHtml).filter("img").attr("src");if(n){var r=new Image;r.src=n}},h=function(){t.find(".jscroll-inner").length||t.contents().wrapAll('<div class="jscroll-inner" />')},v=function(n){var r;l.pagingSelector?n.closest(l.pagingSelector).hide():(r=n.parent().not(".jscroll-inner,.jscroll-added").addClass("jscroll-next-parent").hide(),r.length||n.wrap('<div class="jscroll-next-parent" />').parent().hide())},u=function(){return c.unbind(".jscroll").removeData("jscroll").find(".jscroll-inner").children().unwrap().filter(".jscroll-added").children().unwrap()},b=function(){if(t.is(":visible")){h();var n=t.find("div.jscroll-inner").first(),r=t.data("jscroll"),o=parseInt(t.css("borderTopWidth"),10),f=isNaN(o)?0:o,p=parseInt(t.css("paddingTop"),10)+f,d=j?c.scrollTop():t.offset().top,U=n.length?n.offset().top:0,_=Math.ceil(d-U+c.height()+p);if(!r.waiting&&_+l.padding>=n.outerHeight())return g("info","jScroll:",n.outerHeight()-_,"from bottom. Loading next request..."),w()}},I=function(n){return n=n||t.data("jscroll"),!n||!n.nextHref?(g("warn","jScroll: nextSelector not found - destroying"),u(),!1):(x(),!0)},x=function(){var n=t.find(l.nextSelector).first();if(n.length)if(l.autoTrigger&&(l.autoTriggerUntil===!1||l.autoTriggerUntil>0)){v(n);var r=H.height()-t.offset().top,o=t.height()<r?t.height():r,f=t.offset().top-s.scrollTop()>0?s.height()-(t.offset().top-e(window).scrollTop()):s.height();o<=f&&b(),c.unbind(".jscroll").bind("scroll.jscroll",function(){return b()}),l.autoTriggerUntil>0&&l.autoTriggerUntil--}else c.unbind(".jscroll"),n.bind("click.jscroll",function(){return v(n),w(),!1})},w=function(){var n=t.find("div.jscroll-inner").first(),r=t.data("jscroll");return r.waiting=!0,n.append('<div class="jscroll-added" />').children(".jscroll-added").last().html('<div class="jscroll-loading" id="jscroll-loading">'+l.loadingHtml+"</div>").promise().done(function(){l.loadingFunction&&l.loadingFunction()}),t.animate({scrollTop:n.outerHeight()},0,function(){var o=r.nextHref;n.find("div.jscroll-added").last().load(o,function(f,p){if(p==="error")return u();var d=e(this).find(l.nextSelector).first();r.waiting=!1,r.nextHref=d.prop("href")?e.trim(d.prop("href")+" "+l.contentSelector):!1,e(".jscroll-next-parent",t).remove(),I(),l.callback&&l.callback.call(this,o),g("dir",r)})})},g=function(n){if(l.debug&&typeof console=="object"&&(typeof n=="object"||typeof console[n]=="function"))if(typeof n=="object"){var r=[];for(var o in n)typeof console[o]=="function"?(r=n[o].length?n[o]:[n[o]],console[o].apply(console,r)):console.log.apply(console,r)}else console[n].apply(console,Array.prototype.slice.call(arguments,1))};return t.data("jscroll",e.extend({},a,{initialized:!0,waiting:!1,nextHref:T})),h(),k(),x(),e.extend(t.jscroll,{destroy:u}),t};e.fn.jscroll=function(t){return this.each(function(){var i=e(this),a=i.data("jscroll");a&&a.initialized||y(i,t)})}})(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.