1(function(n){function e(t){this.$element=n(t);this.original_text=n.trim(this.$element.html());this.settings=n.extend({},n.fn.trunk8.defaults)}function u(n){var t=document.createElement("DIV");return(t.innerHTML=n,typeof t.textContent!="undefined")?t.textContent:t.innerText}function o(n){if(u(n)===n)return n.split(/\s/g);for(var i=[],f=/<([a-z]+)([^<]*)(?:>([\S\s]*?(?!<\1>))<\/\1>|\s+\/>)(['.?!,]*)|((?:[^<>\s])+['.?!,]*\w?|<br\s?\/?>)/ig,t=f.exec(n),e,r;t&&e!==f.lastIndex;)e=f.lastIndex,t[5]?i.push(t[5]):t[1]&&i.push({tag:t[1],attribs:t[2],content:t[3],after:t[4]}),t=f.exec(n);for(r=0;r<i.length;r++)typeof i[r]!="string"&&i[r].content&&(i[r].content=o(i[r].content));return i}function h(t,i,r){t=t.replace(r,"");var f=function(i,u){for(var s="",e,h,c,o=0;o<i.length;o++)e=i[o],c=n.trim(t).split(" ").length,n.trim(t).length&&(typeof e=="string"?(/<br\s*\/?>/i.test(e)||(c===1&&n.trim(t).length<=e.length?(e=t,(u==="p"||u==="div")&&(e+=r),t=""):t=t.replace(e,"")),s+=n.trim(e)+(o===i.length-1||c<=1?"":" ")):(h=f(e.content,e.tag),e.after&&(t=t.replace(e.after,"")),h&&(e.after||(e.after=" "),s+="<"+e.tag+e.attribs+">"+h+"<\/"+e.tag+">"+e.after)));return s},u=f(i);return u.slice(u.length-r.length)!==r&&(u+=r),u}function s(){var b=this.data("trunk8"),r=b.settings,l=r.width,k=r.side,p=r.fill,d=r.parseHTML,g=t.getLineHeight(this)*r.lines,i=b.original_text,a=i.length,v="",c,y,s,e,nt,w;if(this.html(i),nt=this.text(),d&&u(i)!==i&&(w=o(i),i=u(i),a=i.length),l===f.auto){if(this.height()<=g)return;for(c=0,y=a-1;c<=y;)s=c+(y-c>>1),e=t.eatStr(i,k,a-s,p),d&&w&&(e=h(e,w,p)),this.html(e),this.height()>g?y=s-1:(c=s+1,v=v.length>e.length?v:e);this.html("");this.html(v);r.tooltip&&this.attr("title",nt)}else{if(isNaN(l)){n.error('Invalid width "'+l+'".');return}s=a-l;e=t.eatStr(i,k,s,p);this.html(e);r.tooltip&&this.attr("title",i)}r.onTruncate()}var r,t,i={center:"center",left:"left",right:"right"},f={auto:"auto"};e.prototype.updateSettings=function(t){this.settings=n.extend(this.settings,t)};r={init:function(t){return this.each(function(){var i=n(this),r=i.data("trunk8");r||i.data("trunk8",r=new e(this));r.updateSettings(t);s.call(i)})},update:function(t){return this.each(function(){var i=n(this);t&&(i.data("trunk8").original_text=t);
1s.call(i)})},revert:function(){return this.each(function(){var t=n(this).data("trunk8").original_text;n(this).html(t)})},getSettings:function(){return n(this.get(0)).data("trunk8").settings}};t={eatStr:function(r,u,f,e){var o=r.length,s=t.eatStr.generateKey.apply(null,arguments),h,c;if(t.eatStr.cache[s])return t.eatStr.cache[s];if((typeof r!="string"||o===0)&&n.error('Invalid source string "'+r+'".'),f<0||f>o)n.error('Invalid bite size "'+f+'".');else if(f===0)return r;typeof(e+"")!="string"&&n.error("Fill unable to be converted to a string.");switch(u){case i.right:return t.eatStr.cache[s]=n.trim(r.substr(0,o-f))+e;case i.left:return t.eatStr.cache[s]=e+n.trim(r.substr(f));case i.center:return h=o>>1,c=f>>1,t.eatStr.cache[s]=n.trim(t.eatStr(r.substr(0,o-h),i.right,f-c,""))+e+n.trim(t.eatStr(r.substr(o-h),i.left,c,""));default:n.error('Invalid side "'+u+'".')}},getLineHeight:function(t){var u=n(t).css("float"),i,f,r,e;return u!=="none"&&n(t).css("float","none"),i=n(t).css("position"),i==="absolute"&&n(t).css("position","static"),f=n(t).html(),r="line-height-test",n(t).html("i").wrap('<div id="'+r+'" />'),e=n("#"+r).innerHeight(),n(t).html(f).css({float:u,position:i}).unwrap(),e}};t.eatStr.cache={};t.eatStr.generateKey=function(){return Array.prototype.join.call(arguments,"")};n.fn.trunk8=function(t){if(r[t])return r[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist on jQuery.trunk8");else return r.init.apply(this,arguments)};n.fn.trunk8.defaults={fill:"…",lines:1,side:i.right,tooltip:!0,width:f.auto,parseHTML:!1,onTruncate:function(){}}})(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.