1/**handles:dotdotdot**/ 2(o=>{var n="dotdotdot",t="3.1.0",h,e,i,s;function r(){s=o(window),h={},e={},i={},o.each([h,e,i],function(t,i){i.add=function(t){for(var e=0,n=(t=t.split(" ")).length;e<n;e++)i[t[e]]=i.ddd(t[e])}}),h.ddd=function(t){return"ddd-"+t},h.add("truncated keep text"),e.ddd=function(t){return"ddd-"+t},e.add("text"),i.ddd=function(t){return t+".ddd"},i.add("resize"),r=function(){}}o[n]&&o[n].version>t||(o[n]=function(t,e){this.$dot=t,this.api=["getInstance","truncate","restore","destroy","watch","unwatch"],this.opts=e;var t=this.$dot.data(n);return t&&t.destroy(),this.init(),this.truncate(),this.opts.watch&&this.watch(),this},o[n].version=t,o[n].uniqueId=0,o[n].defaults={ellipsis:"⦠",callback:function(t){},truncate:"word",tolerance:0,keep:null,watch:"window",height:null},o[n].prototype={init:function(){this.watchTimeout=null,this.watchInterval=null,this.uniqueId=o[n].uniqueId++,this.originalContent=this.$dot.contents(),this.originalStyle=this.$dot.attr("style")||"","break-word"!==this.$dot.css("word-wrap")&&this.$dot.css("word-wrap","break-word"),"nowrap"===this.$dot.css("white-space")&&this.$dot.css("white-space","normal"),null===this.opts.height&&(this.opts.height=this._getMaxHeight())},getInstance:function(){return this},truncate:function(){var i=this,t=(this.$inner=this.$dot.wrapInner("<div />").children().css({display:"block",height:"auto",width:"auto",border:"none",padding:0,margin:0}),this.$inner.contents().detach().end().append(this.originalContent.clone(!0)),this.$inner.find("script, style").addClass(h.keep),this.opts.keep&&this.$inner.find(this.opts.keep).addClass(h.keep),this.$inner.find("*").not("."+h.keep).add(this.$inner).contents().each(function(){var t=this,e=o(this),n;3==t.nodeType?e.parent().is("table, thead, tfoot, tr, dl, ul, ol, video")?e.remove():1<e.parent().contents().length&&(n=o('<span class="'+h.text+'">'+i.__getTextContent(t)+"</span>").css({display:"inline",height:"auto",width:"auto",border:"none",padding:0,margin:0}),e.replaceWith(n)):8==t.nodeType&&e.remove()}),this.maxHeight=this._getMaxHeight(),this._truncateNode(this.$dot));return this.$dot[t?"addClass":"removeClass"](h.truncated),this.$inner.find("."+h.text).each(function(){o(this).replaceWith(o(this).contents())}),this.$inner.find("."+h.keep).removeClass(h.keep),this.$inner.replaceWith(this.$inner.contents()),this.$inner=null,this.opts.callback.call(this.$dot[0],t),t},restore:function(){this.unwatch(),this.$dot.contents().detach().end().append(this.originalContent).attr("style",this.originalStyle).removeClass(h.truncated)},destroy:function(){this.restore(),this.$dot.data(n,null)},watch:function(){var e=this,n=(this.unwatch(),{});"window"==this.opts.watch?s.on(i.resize+e.uniqueId,function(t){e.watchTimeout&&clearTimeout(e.watchTimeout),e.watchTimeout=setTimeout(function(){n=e._watchSizes(n,s,"width","height")},100)}):this.watchInterval=setInterval(function(){n=e._watchSizes(n,e.$dot,"innerWidth","innerHeight")},500)},unwatch:function(){s.off(i.resize+this.uniqueId),this.watchInterval&&clearInterval(this.watchInterval),this.watchTimeout&&clearTimeout(this.watchTimeout)},_api:function(){var n=this,i={};return o.each(this.api,function(t){var e=this;i[e]=function(){var t=n[e].apply(n,arguments);return void 0===t?i:t}}),i},_truncateNode:function(t){var i=this,s=!1,r=!1;return o(t.children().get().reverse()).not("."+h.keep).each(function(){var t=o(this).contents()[0],e=o(this);if(!s&&!e.hasClass(h.keep)){if(e.children().length)s=i._truncateNode(e);else if(!i._fits()||r){var n=o("<span>").css("display","none");if(e.replaceWith(n),e.detach(),i._fits()){if("node"==i.opts.truncate)return!0;n.replaceWith(e),(s=i._truncateWord(e))||(r=!0,e.detach())}else n.remove()}e.contents().length||e.remove()}}),s},_truncateWord:function(t){var e=t.contents()[0];if(e)for(var n=this,t=this.__getTextContent(e),i=-1!==t.indexOf(" ")?" ":"ã",s=t.split(i),r="",o=s.length;0<=o;o--){if(r=s.slice(0,o).join(i),0==o)return"letter"==n.opts.truncate&&(n.__setTextContent(e,s.slice(0,o+1).join(i)),n._truncateLetter(e));if(r.length&&(n.__setTextContent(e,n._addEllipsis(r)),n._fits()))return"letter"!=n.opts.truncate||(n.__setTextContent(e,s.slice(0,o+1).join(i)),n._truncateLetter(e))}return!1},_truncateLetter:function(t){for(var e=this,n,i=this.__getTextContent(t).split(""),s="",r=i.length;0<=r;r--)if((s=i.slice(0,r).join("")).length&&(e.__setTextContent(t,e._addEllipsis(s)),e._fits()))return!0;return!1}
2,_fits:function(){return this.$inner.innerHeight()<=this.maxHeight+this.opts.tolerance},_addEllipsis:function(t){for(var e=[" ","ã",",",";",".","!","?"];-1<o.inArray(t.slice(-1),e);)t=t.slice(0,-1);return t+=this.opts.ellipsis},_getMaxHeight:function(){if("number"==typeof this.opts.height)return this.opts.height;for(var t=["maxHeight","height"],e=0,n=0;n<t.length;n++)if("px"==(e=window.getComputedStyle(this.$dot[0])[t[n]]).slice(-2)){e=parseFloat(e);break}var t=[];switch(this.$dot.css("boxSizing")){case"border-box":t.push("borderTopWidth"),t.push("borderBottomWidth");case"padding-box":t.push("paddingTop"),t.push("paddingBottom")}for(var n=0;n<t.length;n++){var i=window.getComputedStyle(this.$dot[0])[t[n]];"px"==i.slice(-2)&&(e-=parseFloat(i))}return Math.max(e,0)},_watchSizes:function(t,e,n,i){var n;return this.$dot.is(":visible")?(n={width:e[n](),height:e[i]()},t.width==n.width&&t.height==n.height||this.truncate(),n):t},__getTextContent:function(t){for(var e=["nodeValue","textContent","innerText"],n=0;n<e.length;n++)if("string"==typeof t[e[n]])return t[e[n]];return""},__setTextContent:function(t,e){for(var n=["nodeValue","textContent","innerText"],i=0;i<n.length;i++)t[n[i]]=e}},o.fn[n]=function(t){return r(),t=o.extend(!0,{},o[n].defaults,t),this.each(function(){o(this).data(n,new o[n](o(this),t)._api())})})})(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.