PageSourceSearch

https://exploreburystedmunds.com/wp-content/uploads/hummingbird-assets/8fe5bd27b07ad3f2a9d24b6db692f6bd.js

js exploreburystedmunds.com collected 2026-10-09 17:14:18 UTC 38,710 bytes, 2 lines download raw bytes

1/**handles:morisjs**/
2!function(){var w,S,t,t,h=[].slice,p=function(t,i){return function(){return t.apply(i,arguments)}},o={}.hasOwnProperty,i=function(t,i){for(var e in i)o.call(i,e)&&(t[e]=i[e]);function s(){this.constructor=t}return s.prototype=i.prototype,t.prototype=new s,t.__super__=i.prototype,t},a=[].indexOf||function(t){for(var i=0,e=this.length;i<e;i++)if(i in this&&this[i]===t)return i;return-1},e,s,n,r,l,u,d;function c(){}function f(t){this.hasToShow=p(this.hasToShow,this),this.resizeHandler=p(this.resizeHandler,this);var r=this;if("string"==typeof t.element?this.el=w(document.getElementById(t.element)):this.el=w(t.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=w.extend({},this.gridDefaults,this.defaults||{},t),"string"==typeof this.options.units&&(this.options.postUnits=t.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",function(t){var i,e,s,o,n,e=r.el.offset(),n=t.pageX-e.left;return r.selectFrom?(i=r.data[r.hitTest(Math.min(n,r.selectFrom))]._x,s=r.data[r.hitTest(Math.max(n,r.selectFrom))]._x,r.selectionRect.attr({x:i,width:o=s-i})):r.fire("hovermove",n,t.pageY-e.top)}),this.el.bind("mouseleave",function(t){return r.selectFrom&&(r.selectionRect.hide(),r.selectFrom=null),r.fire("hoverout")}),this.el.bind("touchstart touchmove touchend",function(t){var i,t,t=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],i=r.el.offset();return r.fire("hovermove",t.pageX-i.left,t.pageY-i.top)}),this.el.bind("click",function(t){var i,i=r.el.offset();return r.fire("gridclick",t.pageX-i.left,t.pageY-i.top)}),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",function(t){var i,i=r.el.offset();return r.startRange(t.pageX-i.left)}),this.el.bind("mouseup",function(t){var i,i=r.el.offset();return r.endRange(t.pageX-i.left),r.fire("hovermove",t.pageX-i.left,t.pageY-i.top)})),this.options.resize&&w(window).bind("resize",function(t){return null!=r.timeoutId&&window.clearTimeout(r.timeoutId),r.timeoutId=window.setTimeout(r.resizeHandler,100)}),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}function g(t){this.options=w.extend({},S.Hover.defaults,t=null==t?{}:t),this.el=w("<div class='"+this.options.class+"'></div>"),this.el.hide(),this.options.parent.append(this.el)}function y(t){if(this.hilight=p(this.hilight,this),this.onHoverOut=p(this.onHoverOut,this),this.onHoverMove=p(this.onHoverMove,this),this.onGridClick=p(this.onGridClick,this),!(this instanceof S.Line))return new S.Line(t);y.__super__.constructor.call(this,t)}function m(t){var t;if(!(this instanceof S.Area))return new S.Area(t);t=w.extend({},r,t),this.cumulative=!t.behaveLikeLine,"auto"===t.fillOpacity&&(t.fillOpacity=t.behaveLikeLine?.8:1),m.__super__.constructor.call(this,t)}function x(t){if(this.onHoverOut=p(this.onHoverOut,this),this.onHoverMove=p(this.onHoverMove,this),this.onGridClick=p(this.onGridClick,this),!(this instanceof S.Bar))return new S.Bar(t);x.__super__.constructor.call(this,w.extend({},t,{parseTime:!1}))}function v(t){this.resizeHandler=p(this.resizeHandler,this),this.select=p(this.select,this),this.click=p(this.click,this);var i=this;if(!(this instanceof S.Donut))return new S.Donut(t);if(this.options=w.extend({},this.defaults,t),"string"==typeof t.element?this.el=w(document.getElementById(t.element)):this.el=w(t.element),null===this.el||0===this.el.length)throw new Error("Graph placeholder not found.");void 0!==t.data&&0!==t.data.length&&(this.raphael=new Raphael(this.el[0]),this.options.resize&&w(window).bind("resize",function(t){return null!=i.timeoutId&&window.clearTimeout(i.timeoutId),i.timeoutId=window.setTimeout(i.resizeHandler,100)}),this.setData(t.data))}function b(t,i,e,s,o,n,r,h,a,l){this.cx=t,this.cy=i,this.inner=e,this.outer=s,this.color=r,this.backgroundColor=h,this.index=a,this.raphael=l,this.deselect=p(this.deselect,this),this.select=p(this.select,this),this.sin_p0=Math.sin(o),this.cos_p0=Math.cos(o),this.sin_p1=Math.sin(n),this.cos_p1=Math.cos(n),this.is_long=n-o>Math.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}S=window.Morris={},w=jQuery,S.EventEmitter=(c.prototype.on=function(t,i){return null==this.handlers&&(this.handlers={}),null==this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(i),this},c.prototype.fire=function(){var t,i,e,s,o,n,r,e=arguments[0],t=2<=arguments.length?h.call(arguments,1
2):[];if(null!=this.handlers&&null!=this.handlers[e]){for(r=[],s=0,o=(n=this.handlers[e]).length;s<o;s++)i=n[s],r.push(i.apply(null,t));return r}},c),S.commas=function(t){var t,i,e,t;return null!=t?(e=t<0?"-":"",t=Math.abs(t),e+=(i=Math.floor(t).toFixed(0)).replace(/(?=(?:\d{3})+$)(?!^)/g,","),(t=t.toString()).length>i.length&&(e+=t.slice(i.length)),e):"-"},S.pad2=function(t){return(t<10?"0":"")+t},S.Grid=(i(f,e=S.EventEmitter),f.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},f.prototype.setData=function(s,t){var i,e,o,n,r,h,e,a,l,p,u,d,c,f,g,y,f,m,x,v,h;if(null==t&&(t=!0),null!=(this.options.data=s)&&0!==s.length){if(g=this.cumulative?0:null,y=this.cumulative?0:null,0<this.options.goals.length&&(e=Math.min.apply(Math,this.options.goals),h=Math.max.apply(Math,this.options.goals),y=null!=y?Math.min(y,e):e,g=null!=g?Math.max(g,h):h),this.data=function(){var t,i,e,e=[];for(r=t=0,i=s.length;t<i;r=++t)l=s[r],(a={src:l}).label=l[this.options.xkey],this.options.parseTime?(a.x=S.parseDate(a.label),this.options.dateFormat?a.label=this.options.dateFormat(a.x):"number"==typeof a.label&&(a.label=new Date(a.label).toString())):(a.x=r,this.options.xLabelFormat&&(a.label=this.options.xLabelFormat(a))),d=0,a.y=function(){var t,i,e,s,e=this.options.ykeys,s=[];for(n=t=0,i=e.length;t<i;n=++t)f=e[n],null!=(f=null!=(f="string"==typeof(f=l[f])?parseFloat(f):f)&&"number"!=typeof f?null:f)&&this.hasToShow(n)&&(this.cumulative?d+=f:null!=g?(g=Math.max(f,g),y=Math.min(f,y)):g=y=f),this.cumulative&&null!=d&&(g=Math.max(d,g),y=Math.min(d,y)),s.push(f);return s}.call(this),e.push(a);return e}.call(this),this.options.parseTime&&(this.data=this.data.sort(function(t,i){return(t.x>i.x)-(t.x<i.x)})),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],0<this.options.events.length){if(this.options.parseTime)for(m=0,x=(v=this.options.events).length;m<x;m++)(i=v[m])instanceof Array?(o=i[0],u=i[1],this.events.push([S.parseDate(o),S.parseDate(u)])):this.events.push(S.parseDate(i));else this.events=this.options.events;e=w.map(this.events,function(t){return t}),this.xmax=Math.max(this.xmax,Math.max.apply(Math,e)),this.xmin=Math.min(this.xmin,Math.min.apply(Math,e))}return this.xmin===this.xmax&&(--this.xmin,this.xmax+=1),this.ymin=this.yboundary("min",y),this.ymax=this.yboundary("max",g),this.ymin===this.ymax&&(y&&--this.ymin,this.ymax+=1),!0!==(h=this.options.axes)&&"both"!==h&&"y"!==h&&!0!==this.options.grid||(this.options.ymax===this.gridDefaults.ymax&&this.options.ymin===this.gridDefaults.ymin?(this.grid=this.autoGridLines(this.ymin,this.ymax,this.options.numLines),this.ymin=Math.min(this.ymin,this.grid[0]),this.ymax=Math.max(this.ymax,this.grid[this.grid.length-1])):(p=(this.ymax-this.ymin)/(this.options.numLines-1),this.grid=function(){var t,i,e,s,s=[];for(c=t=i=this.ymin,e=this.ymax;0<p?t<=e:e<=t;c=t+=p)s.push(c);return s}.call(this))),this.dirty=!0,t?this.redraw():void 0}this.data=[],this.raphael.clear(),null!=this.hover&&this.hover.hide()},f.prototype.yboundary=function(t,i){var e,s,e=this.options["y"+t];return"string"==typeof e?"auto"===e.slice(0,4)?5<e.length?(s=parseInt(e.slice(5),10),null==i?s:Math[t](i,s)):null!=i?i:0:parseInt(e,10):e},f.prototype.autoGridLines=function(t,i,e){var s,o,n,r,h,a,l,p,l,h,l=Math.floor(Math.log(i-t)/Math.log(10)),l=Math.pow(10,l),o=Math.floor(t/l)*l,s=Math.ceil(i/l)*l,a=(s-o)/(e-1);return 1===l&&1<a&&Math.ceil(a)!==a&&(a=Math.ceil(a),s=o+a*(e-1)),o<0&&0<s&&(o=Math.floor(t/a)*a,s=Math.ceil(i/a)*a),n=(a<1?(r=Math.floor(Math.log(a)/Math.log(10)),()=>{var t,i,i=[];for(p=t=o;0<a?t<=s:s<=t;p=t+=a)i.push(parseFloat(p.toFixed(1-r)));return i}):()=>{var t,i,i=[];for(p=t=o;0<a?t<=s:s<=t;p=t+=a)i.push(p);return i})()},f.prototype._calc=function(){var s,t,o,t,n,i,t,i,i,i=this.el.width(),t=this.el.height();if((this.elementWidth!==i||this.elementHeight!==t||this.dirty)&&(this.elementWidth=i,this.elementHeight=t,this.dirty=!1,this.left=this.options.padding,this.right=this.elementWidth-this.options.padding,this.top=this.options.padding,this.bottom=this.elementHeight-this.options.padding,!0!==(i=this.options.axes)&&"both"!==i&&"y"!==i||(t=function(){for(var t,i,e,s,e=this.grid,s=[],t=0,i=e.length;t<i;t++)o=e[t],s.push(this.measureText(this.yAxisFormat(o)).width);return s}.call(this),this.options.horizontal?this.bottom-=Math.max.apply(Math,t):this.left+=Math.max.apply(Math,t)),!0!==(i=this.options.axes)&&"both"!==i&&"x"!==i||(s=this.options.horizontal?-90:-this.options.xLabelAngle,t=function(){var t,i,e,e=[];for(n=t=0,i=this.data.length;0<=i?t<i:i<t;n=0<=i?++t:--t)e.push(this.measureText(this.data[n].label,s).height);return e}.call(this),this.options.horizontal?this.left+=Math.max.apply(Math,t):this.bottom-=Math.max.apply(Math,t)),this.width=Math.max(1,this.right-this.left),this.height=Math.max(1,this.bottom-this.top),this.options.horizontal?(this.dx=this.height/(this.xmax-this.xmin),this.dy=this.width/(this.ymax-this.ymin),this.yStart=this.left,this.yEnd=this.right,this.xStart=this.top,this.xEnd=this.bottom,this.xSize=this.height,this.ySize=this.width):(this.dx=this.width/(this.xmax-this.xmin),this.dy=this.height/(this.ymax-this.ymin),this.yStart=this.bottom,this.yEnd=this.top,this.xStart=this.left,this.xEnd=this.right,this.xSize=this.width,this.ySize=this.height),this.calc))return this.calc()},f.prototype.transY=function(t){return this.options.horizontal?this.left+(t-this.ymin)*this.dy:this.bottom-(t-this.ymin)*this.dy},f.prototype.transX=function(t){return 1===this.data.length?(this.xStart+this.xEnd)/2:this.xStart+(t-this.xmin)*this.dx},f.prototype.redraw=function(){if(this.raphael.clear(),this._calc(),this.drawGri
2d(),this.drawGoals(),this.drawEvents(),this.draw)return this.draw()},f.prototype.measureText=function(t,i){var i,t;return null==i&&(i=0),i=(t=this.raphael.text(100,100,t).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).rotate(i)).getBBox(),t.remove(),i},f.prototype.yAxisFormat=function(t){return this.yLabelFormat(t,0)},f.prototype.yLabelFormat=function(t,i){return"function"==typeof this.options.yLabelFormat?this.options.yLabelFormat(t,i):""+this.options.preUnits+S.commas(t)+this.options.postUnits},f.prototype.getYAxisLabelX=function(){return this.left-this.options.padding/2},f.prototype.drawGrid=function(){var t,i,e,s,o,n,r,h,a;if(!1!==this.options.grid||!0===(n=this.options.axes)||"both"===n||"y"===n){for(t=this.options.horizontal?this.getXAxisLabelY():this.getYAxisLabelX(),a=[],s=0,o=(r=this.grid).length;s<o;s++)i=r[s],e=this.transY(i),!0!==(h=this.options.axes)&&"both"!==h&&"y"!==h||(this.options.horizontal?this.drawXAxisLabel(e,t,this.yAxisFormat(i)):this.drawYAxisLabel(t,e,this.yAxisFormat(i))),this.options.grid?(e=Math.floor(e)+.5,this.options.horizontal?a.push(this.drawGridLine("M"+e+","+this.xStart+"V"+this.xEnd)):a.push(this.drawGridLine("M"+this.xStart+","+e+"H"+this.xEnd))):a.push(void 0);return a}},f.prototype.drawGoals=function(){for(var t,i,e,s,o,n,r,n=this.options.goals,r=[],e=s=0,o=n.length;s<o;e=++s)i=n[e],t=this.options.goalLineColors[e%this.options.goalLineColors.length],r.push(this.drawGoal(i,t));return r},f.prototype.drawEvents=function(){for(var t,i,e,s,o,n,r,n=this.events,r=[],e=s=0,o=n.length;s<o;e=++s)i=n[e],t=this.options.eventLineColors[e%this.options.eventLineColors.length],r.push(this.drawEvent(i,t));return r},f.prototype.drawGoal=function(t,i){var t,t,t=Math.floor(this.transY(t))+.5,t=this.options.horizontal?"M"+t+","+this.xStart+"V"+this.xEnd:"M"+this.xStart+","+t+"H"+this.xEnd;return this.raphael.path(t).attr("stroke",i).attr("stroke-width",this.options.goalStrokeWidth)},f.prototype.drawEvent=function(t,i){var e,e,s,s;return t instanceof Array?(e=t[0],s=t[1],e=Math.floor(this.transX(e))+.5,s=Math.floor(this.transX(s))+.5,(this.options.horizontal?this.raphael.rect(this.yStart,e,this.yEnd-this.yStart,s-e):this.raphael.rect(e,this.yEnd,s-e,this.yStart-this.yEnd)).attr({fill:i,stroke:!1}).toBack()):(s=Math.floor(this.transX(t))+.5,e=this.options.horizontal?"M"+this.yStart+","+s+"H"+this.yEnd:"M"+s+","+this.yStart+"V"+this.yEnd,this.raphael.path(e).attr("stroke",i).attr("stroke-width",this.options.eventStrokeWidth))},f.prototype.drawYAxisLabel=function(t,i,e){return this.raphael.text(t,i,e).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor).attr("text-anchor","end")},f.prototype.drawGridLine=function(t){return this.raphael.path(t).attr("stroke",this.options.gridLineColor).attr("stroke-width",this.options.gridStrokeWidth)},f.prototype.startRange=function(t){return this.hover.hide(),this.selectFrom=t,this.selectionRect.attr({x:t,width:0}).show()},f.prototype.endRange=function(t){var t,i;if(this.selectFrom)return i=Math.min(this.selectFrom,t),t=Math.max(this.selectFrom,t),this.options.rangeSelect.call(this.el,{start:this.data[this.hitTest(i)].x,end:this.data[this.hitTest(t)].x}),this.selectFrom=null},f.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},f.prototype.hasToShow=function(t){return!0===this.options.shown||!0===this.options.shown[t]},f),S.parseDate=function(t){var i,e,e,s,i,o,n,r,h,e,s;return"number"==typeof t?t:(e=t.match(/^(\d+) Q(\d)$/),s=t.match(/^(\d+)-(\d+)$/),i=t.match(/^(\d+)-(\d+)-(\d+)$/),n=t.match(/^(\d+) W(\d+)$/),r=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+)(Z|([+-])(\d\d):?(\d\d))?$/),h=t.match(/^(\d+)-(\d+)-(\d+)[ T](\d+):(\d+):(\d+(\.\d+)?)(Z|([+-])(\d\d):?(\d\d))?$/),e?new Date(parseInt(e[1],10),3*parseInt(e[2],10)-1,1).getTime():s?new Date(parseInt(s[1],10),parseInt(s[2],10)-1,1).getTime():i?new Date(parseInt(i[1],10),parseInt(i[2],10)-1,parseInt(i[3],10)).getTime():n?(4!==(e=new Date(parseInt(n[1],10),0,1)).getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7),e.getTime()+6048e5*parseInt(n[2],10)):r?r[6]?(o=0,"Z"!==r[6]&&(o=60*parseInt(r[8],10)+parseInt(r[9],10),"+"===r[7])&&(o=0-o),Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10)+o)):new Date(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10)).getTime():h?(s=parseFloat(h[6]),i=Math.floor(s),e=Math.round(1e3*(s-i)),h[8]?(o=0,"Z"!==h[8]&&(o=60*parseInt(h[10],10)+parseInt(h[11],10),"+"===h[9])&&(o=0-o),Date.UTC(parseInt(h[1],10),parseInt(h[2],10)-1,parseInt(h[3],10),parseInt(h[4],10),parseInt(h[5],10)+o,i,e)):new Date(parseInt(h[1],10),parseInt(h[2],10)-1,parseInt(h[3],10),parseInt(h[4],10),parseInt(h[5],10),i,e).getTime()):new Date(parseInt(t,10),0,1).getTime())},S.Hover=(g.defaults={class:"morris-hover morris-default-style"},g.prototype.update=function(t,i,e,s){return t?(this.html(t),this.show(),this.moveTo(i,e,s)):this.hide()},g.prototype.html=function(t){return this.el.html(t)}
2,g.prototype.moveTo=function(t,i,e){var s,o,t,n,r,h,r=this.options.parent.innerWidth(),n=this.options.parent.innerHeight(),o=this.el.outerWidth(),s=this.el.outerHeight(),t=Math.min(Math.max(0,t-o/2),r-o);return null!=i?!0===e?(h=i-s/2)<0&&(h=0):(h=i-s-10)<0&&n<(h=i+10)+s&&(h=n/2-s/2):h=n/2-s/2,this.el.css({left:t+"px",top:parseInt(h)+"px"})},g.prototype.show=function(){return this.el.show()},g.prototype.hide=function(){return this.el.hide()},g),S.Line=(i(y,s=S.Grid),y.prototype.init=function(){if("always"!==this.options.hideHover)return this.hover=new S.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)},y.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,shown:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1,trendLine:!1,trendLineWidth:2,trendLineColors:["#689bc3","#a2b3bf","#64b764"]},y.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},y.prototype.calcPoints=function(){for(var o,n,t,i,e,s,e=this.data,s=[],t=0,i=e.length;t<i;t++)(o=e[t])._x=this.transX(o.x),o._y=function(){for(var t,i,e,s,e=o.y,s=[],t=0,i=e.length;t<i;t++)n=e[t],s.push(null!=n?this.transY(n):n);return s}.call(this),s.push(o._ymax=Math.min.apply(Math,[this.bottom].concat((()=>{for(var t,i,e,s,e=o._y,s=[],t=0,i=e.length;t<i;t++)null!=(n=e[t])&&s.push(n);return s})())));return s},y.prototype.hitTest=function(t){var i,e,s,o,n;if(0===this.data.length)return null;for(i=s=0,o=(n=this.data.slice(1)).length;s<o&&!(t<((e=n[i])._x+this.data[i]._x)/2);i=++s);return i},y.prototype.onGridClick=function(t,i){var e,e=this.hitTest(t);return this.fire("click",e,this.data[e].src,t,i)},y.prototype.onHoverMove=function(t,i){var t,t=this.hitTest(t);return this.displayHoverForRow(t)},y.prototype.onHoverOut=function(){if(!1!==this.options.hideHover)return this.displayHoverForRow(null)},y.prototype.displayHoverForRow=function(t){var i;return null!=t?((i=this.hover).update.apply(i,this.hoverContentForRow(t)),this.hilight(t)):(this.hover.hide(),this.hilight())},y.prototype.hoverContentForRow=function(t){var i,e,s,o,n,r,h,s=this.data[t],i=w("<div class='morris-hover-row-label'>").text(s.label);for(i=i.prop("outerHTML"),e=n=0,r=(h=s.y).length;n<r;e=++n)o=h[e],!1!==this.options.labels[e]&&(i+="<div class='morris-hover-point' style='color: "+this.colorFor(s,e,"label")+"'>\n  "+this.options.labels[e]+":\n  "+this.yLabelFormat(o,e)+"\n</div>");return[i="function"==typeof this.options.hoverCallback?this.options.hoverCallback(t,this.options,i,s.src):i,s._x,s._ymax]},y.prototype.generatePaths=function(){var o,n,r,h;return this.paths=function(){var t,i,e,s,s=[];for(n=t=0,i=this.options.ykeys.length;0<=i?t<i:i<t;n=0<=i?++t:--t)h="boolean"==typeof this.options.smooth?this.options.smooth:(e=this.options.ykeys[n],0<=a.call(this.options.smooth,e)),1<(o=function(){for(var t,i,e,s,e=this.data,s=[],t=0,i=e.length;t<i;t++)void 0!==(r=e[t])._y[n]&&s.push({x:r._x,y:r._y[n]});return s}.call(this)).length?s.push(S.Line.createPath(o,h,this.bottom)):s.push(null);return s}.call(this)},y.prototype.draw=function(){var t;if(!0!==(t=this.options.axes)&&"both"!==t&&"x"!==t||this.drawXAxis(),this.drawSeries(),!1===this.options.hideHover)return this.displayHoverForRow(this.data.length-1)},y.prototype.drawXAxis=function(){var t,i,e,s,o,n,r,h,a,l,p=this,r=this.bottom+this.options.padding/2,o=null,s=null,t=function(t,i){var i,e,t,t,t,i=p.drawXAxisLabel(p.transX(i),r,t),t=i.getBBox();return i.transform("r"+-p.options.xLabelAngle),e=i.getBBox(),i.transform("t0,"+e.height/2+"..."),0!==p.options.xLabelAngle&&(t=-.5*t.width*Math.cos(p.options.xLabelAngle*Math.PI/180),i.transform("t"+t+",0...")),e=i.getBBox(),(null==o||o>=e.x+e.width||null!=s&&s>=e.x)&&0<=e.x&&e.x+e.width<p.el.width()?(0!==p.options.xLabelAngle&&(t=1.25*p.options.gridTextSize/Math.sin(p.options.xLabelAngle*Math.PI/180),s=e.x-t),o=e.x-p.options.xLabelMargin):i.remove()},e=this.options.parseTime?1===this.data.length&&"auto"===this.options.xLabels?[[this.data[0].label,this.data[0].x]]:S.labelSeries(this.xmin,this.xmax,this.width,this.options.xLabels,this.options.xLabelFormat):function(){for(var t,i,e,s,e=this.data,s=[],t=0,i=e.length;t<i;t++)n=e[t],s.push([n.label,n.x]);return s}.call(this);for(e.reverse(),l=[],h=0,a=e.length;h<a;h++)i=e[h],l.push(t(i[0],i[1]));return l},y.prototype.drawSeries=function(){var t,i,e,s,o,n;for(this.seriesPoints=[],t=i=s=this.options.ykeys.length-1;s<=0?i<=0:0<=i;t=s<=0?++i:--i)this.hasToShow(t)&&((!1!==this.options.trendLine&&!0===this.options.trendLine||!0===this.options.trendLine[t])&&this._drawTrendLine(t),this._drawLineFor(t));for(n=[],t=e=o=this.options.ykeys.length-1;o<=0?e<=0:0<=e;t=o<=0?++e:--e)this.hasToShow(t)?n.push(this._drawPointFor(t)):n.push(void 0);return n},y.prototype._drawPointFor=function(t){var i,e,s,o,n,r;for(this.seriesPoints[t]=[],r=[],s=0,o=(n=this.data).length;s<o;s++)(i=null)!=(e=n[s])._y[t]&&(i=this.drawLinePoint(e._x,e._y[t],this.colorFor(e,t,"point"),t)),r.push(this.seriesPoints[t].push(i));return r},y.prototype._drawLineFor=function(t){var i,i=this.paths[t];if(null!==i)return this.drawLinePath(i,this.colorFor(null,t,"line"),t)},y.prototype._drawTrendLine=function(t){for(var i,e,s,o,i,n,r,h,a,l,p,l,u,d,c,n=0,a=0,r=0,h=0,o=0,c=this.data,u=0,d=c.length;u<d;u++)p=(l=c[u]).x,void 0!==(l=l.y[t])&&(o+=1,n+=p,a+=l,r+=p*p,h+=p*l);return e=a/o-(i=(o*h-n*a)/(o*r-n*n))*n/o,(s=[{},{}])[0].x=this.transX(this.data[0].x),s[0].y=this.transY(this.data[0].x*i+e),s[1].x=this.transX(this.data[this.data.length-1].x),s[1].y=this.transY(this.data[this.data.length-1].x*i+e),i=S.Line.createPath(s,!1,this.bottom),this.raphael.path(i).attr("stroke",this.colorFor(null,t,"trendLine")).attr("stroke-width",this.options.trendLineWidth)},y.createPath=function(t,i,e){var s,o,n,r,h,a,l,p,u,d,c,f,g,y,l="";for(i&&(n=S.Line.gradients(t)),p={y:null},r=g=0,y=t.length;g<y;r=++g)null!=(s=t[r]).y&&(null!=p.y?i?(o=n[r],a=n[r-1],h=(s.x-p.x)/4,l+="C"+(u=p.x+h)+","+(c=Math.min(e,p.y+h*a))+","+(d=s.x-h)+","+(f=Math.min(e,s.y-h*o))+","+s.x+","+s.y):l+="L"+s.x+","+s.y:i&&null==n[r]||(l+="M"+s.x+","+s.y)),p=s;return l},y.gradients=function(t){for(var i,e,s,o,n,r,h,a,e=function(t,i){return(t.y-i.y)/(t.x-i.x)},a=[],s=r=0,h=t.length;r<h;s=++r)null!=(i=t[s]).y?(o=t[s+1]||{y:null},null!=(n=t[s-1]||{y:null}).y&&null!=o.y?a.push(e(n,o)):null!=n.y?a.push(e(n,i)):null!=o.y?a.push(e(i,o)):a.push(null)):a.push(null);return a},y.prototype.hilight=function(t){var i,e,s,o,n;if(null!==this.prevHilight&&this.prevHilight!==t)for(i=e=0,o=this.seriesPoints.length-1;0<=o?e<=o:o<=e;i=0<=o?++e:--e)this.seriesPoints[i][this.prevHilight]&&this.seriesPoints[i][this.prevHilight].animate(this.pointShrinkSeries(i));if(null!==t&&this.prevHilight!==t)for(i=s=0,n=this.seriesPoints.length-1;
20<=n?s<=n:n<=s;i=0<=n?++s:--s)this.seriesPoints[i][t]&&this.seriesPoints[i][t].animate(this.pointGrowSeries(i));return this.prevHilight=t},y.prototype.colorFor=function(t,i,e){return"function"==typeof this.options.lineColors?this.options.lineColors.call(this,t,i,e):"point"===e?this.options.pointFillColors[i%this.options.pointFillColors.length]||this.options.lineColors[i%this.options.lineColors.length]:"line"===e?this.options.lineColors[i%this.options.lineColors.length]:this.options.trendLineColors[i%this.options.trendLineColors.length]},y.prototype.drawXAxisLabel=function(t,i,e){return this.raphael.text(t,i,e).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},y.prototype.drawLinePath=function(t,i,e){return this.raphael.path(t).attr("stroke",i).attr("stroke-width",this.lineWidthForSeries(e))},y.prototype.drawLinePoint=function(t,i,e,s){return this.raphael.circle(t,i,this.pointSizeForSeries(s)).attr("fill",e).attr("stroke-width",this.pointStrokeWidthForSeries(s)).attr("stroke",this.pointStrokeColorForSeries(s))},y.prototype.pointStrokeWidthForSeries=function(t){return this.options.pointStrokeWidths[t%this.options.pointStrokeWidths.length]},y.prototype.pointStrokeColorForSeries=function(t){return this.options.pointStrokeColors[t%this.options.pointStrokeColors.length]},y.prototype.lineWidthForSeries=function(t){return this.options.lineWidth instanceof Array?this.options.lineWidth[t%this.options.lineWidth.length]:this.options.lineWidth},y.prototype.pointSizeForSeries=function(t){return this.options.pointSize instanceof Array?this.options.pointSize[t%this.options.pointSize.length]:this.options.pointSize},y.prototype.pointGrowSeries=function(t){if(0!==this.pointSizeForSeries(t))return Raphael.animation({r:this.pointSizeForSeries(t)+3},25,"linear")},y.prototype.pointShrinkSeries=function(t){return Raphael.animation({r:this.pointSizeForSeries(t)},25,"linear")},y),S.labelSeries=function(t,i,e,s,o){var n,e,r,h,a,h,l,p,u,d,c,r=200*(i-t)/e,e=new Date(t),l=S.LABEL_SPECS[s];if(void 0===l)for(u=0,d=(c=S.AUTO_LABEL_ORDER).length;u<d;u++)if(h=c[u],r>=(h=S.LABEL_SPECS[h]).span){l=h;break}for(void 0===l&&(l=S.LABEL_SPECS.second),n=(l=o?w.extend({},l,{fmt:o}):l).start(e),a=[];(p=n.getTime())<=i;)t<=p&&a.push([l.fmt(n),p]),l.incr(n);return a},S.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+S.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+S.pad2(t.getMonth()+1)+"-"+S.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+S.pad2(t.getMonth()+1)+"-"+S.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:(t=function(i){return{span:60*i*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return S.pad2(t.getHours())+":"+S.pad2(t.getMinutes())},incr:function(t){return t.setUTCMinutes(t.getUTCMinutes()+i)}}})(60),"30min":t(30),"15min":t(15),"10min":t(10),"5min":t(5),minute:t(1),"30sec":(t=function(i){return{span:1e3*i,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return S.pad2(t.getHours())+":"+S.pad2(t.getMinutes())+":"+S.pad2(t.getSeconds())},incr:function(t){return t.setUTCSeconds(t.getUTCSeconds()+i)}}})(30),"15sec":t(15),"10sec":t(10),"5sec":t(5),second:t(1)},S.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],S.Area=(i(m,n=S.Line),r={fillOpacity:"auto",behaveLikeLine:!1},m.prototype.calcPoints=function(){for(var o,n,r,t,i,e,s,e=this.data,s=[],t=0,i=e.length;t<i;t++)(o=e[t])._x=this.transX(o.x),n=0,o._y=function(){for(var t,i,e,s,e=o.y,s=[],t=0,i=e.length;t<i;t++)r=e[t],this.options.behaveLikeLine?s.push(this.transY(r)):(n+=r||0,s.push(this.transY(n)));return s}.call(this),s.push(o._ymax=Math.max.apply(Math,o._y));return s},m.prototype.drawSeries=function(){var t,i,e,s,o,n,r,h,a,l,p;for(this.seriesPoints=[],p=[],o=0,n=(i=(this.options.behaveLikeLine?function(){a=[];for(var t=0,i=this.options.ykeys.length-1;0<=i?t<=i:i<=t;0<=i?t++:t--)a.push(t);return a}:function(){l=[];for(var t=h=this.options.ykeys.length-1;h<=0?t<=0:0<=t;
2h<=0?t++:t--)l.push(t);return l}).apply(this)).length;o<n;o++)t=i[o],this._drawFillFor(t),this._drawLineFor(t),p.push(this._drawPointFor(t));return p},m.prototype._drawFillFor=function(t){var i,i=this.paths[t];if(null!==i)return i=i+("L"+this.transX(this.xmax)+","+this.bottom+"L"+this.transX(this.xmin)+","+this.bottom)+"Z",this.drawFilledPath(i,this.fillForSeries(t))},m.prototype.fillForSeries=function(t){var t,t=Raphael.rgb2hsl(this.colorFor(this.data[t],t,"line"));return Raphael.hsl(t.h,this.options.behaveLikeLine?.9*t.s:.75*t.s,Math.min(.98,this.options.behaveLikeLine?1.2*t.l:1.25*t.l))},m.prototype.drawFilledPath=function(t,i){return this.raphael.path(t).attr("fill",i).attr("fill-opacity",this.options.fillOpacity).attr("stroke","none")},m),S.Bar=(i(x,l=S.Grid),x.prototype.init=function(){if(this.cumulative=this.options.stacked,"always"!==this.options.hideHover)return this.hover=new S.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)},x.prototype.defaults={barSizeRatio:.75,barGap:3,barColors:["#0b62a4","#7a92a3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],barOpacity:1,barRadius:[0,0,0,0],xLabelMargin:50,horizontal:!1,shown:!0},x.prototype.calc=function(){var t;if(this.calcBars(),!1===this.options.hideHover)return(t=this.hover).update.apply(t,this.hoverContentForRow(this.data.length-1))},x.prototype.calcBars=function(){for(var t,o,n,i,e,s,r,s=this.data,r=[],t=i=0,e=s.length;i<e;t=++i)(o=s[t])._x=this.xStart+this.xSize*(t+.5)/this.data.length,r.push(o._y=function(){for(var t,i,e,s,e=o.y,s=[],t=0,i=e.length;t<i;t++)n=e[t],s.push(null!=n?this.transY(n):null);return s}.call(this));return r},x.prototype.draw=function(){var t;return!0!==(t=this.options.axes)&&"both"!==t&&"x"!==t||this.drawXAxis(),this.drawSeries()},x.prototype.drawXAxis=function(){for(var t,i,e,s,o,n,r,r,h,a,s,l,p,r,u,d,c,i=this.options.horizontal?this.getYAxisLabelX():this.getXAxisLabelY(),a=null,h=null,c=[],e=u=0,d=this.data.length;0<=d?u<d:d<u;e=0<=d?++u:--u)s=this.data[this.data.length-1-e],s=this.options.horizontal?this.drawYAxisLabel(i,s._x-.5*this.options.gridTextSize,s.label):this.drawXAxisLabel(s._x,i,s.label),t=this.options.horizontal?0:this.options.xLabelAngle,r=s.getBBox(),s.transform("r"+-t),o=s.getBBox(),s.transform("t0,"+o.height/2+"..."),0!==t&&(r=-.5*r.width*Math.cos(t*Math.PI/180),s.transform("t"+r+",0...")),r=this.options.horizontal?(p=o.y,l=o.height,this.el.height()):(p=o.x,l=o.width,this.el.width()),(null==a||p+l<=a||null!=h&&p<=h)&&0<=p&&p+l<r?(0!==t&&(h=p-(n=1.25*this.options.gridTextSize/Math.sin(t*Math.PI/180))),this.options.horizontal?c.push(a=p):c.push(a=p-this.options.xLabelMargin)):c.push(s.remove());return c},x.prototype.getXAxisLabelY=function(){return this.bottom+(this.options.xAxisLabelTopPadding||this.options.padding/2)},x.prototype.drawSeries=function(){var o,n,r,t,h,a,l,p,i,u,d,n,e,c,n,f,s,g,r=this.xSize/this.options.data.length;if(this.options.stacked)i=1;else for(t=s=i=0,g=this.options.ykeys.length-1;0<=g?s<=g:g<=s;t=0<=g?++s:--s)this.hasToShow(t)&&(i+=1);return o=(r*this.options.barSizeRatio-this.options.barGap*(i-1))/i,this.options.barSize&&(o=Math.min(o,this.options.barSize)),e=r-o*i-this.options.barGap*(i-1),p=e/2,f=this.ymin<=0&&0<=this.ymax?this.transY(0):null,this.bars=function(){var t,i,e,s,e=this.data,s=[];for(h=t=0,i=e.length;t<i;h=++t)u=e[h],a=0,s.push(function(){var t,i,e,s,e=u._y,s=[];for(d=t=0,i=e.length;t<i;d=++t)n=e[d],this.hasToShow(d)&&(null!==n?(n=f?(c=Math.min(n,f),Math.max(n,f)):(c=n,this.bottom),l=this.xStart+h*r+p,this.options.stacked||(l+=d*(o+this.options.barGap)),n=n-c,this.options.verticalGridCondition&&this.options.verticalGridCondition(u.x)&&(this.options.horizontal?this.drawBar(this.yStart,this.xStart+h*r,this.ySize,r,this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius):this.drawBar(this.xStart+h*r,this.yEnd,r,this.ySize,this.options.verticalGridColor,this.options.verticalGridOpacity,this.options.barRadius)),this.options.stacked&&(c-=a),this.options.horizontal?(this.drawBar(c,l,n,o,this.colorFor(u,d,"bar"),this.options.barOpacity,this.options.barRadius),s.push(a-=n)):(this.drawBar(l,c,o,n,this.colorFor(u,d,"bar"),this.options.barOpacity,this.options.barRadius),s.push(a+=n))):s.push(null));return s}.call(this));return s}.call(this)},x.prototype.colorFor=function(t,i,e){var t,s;return"function"==typeof this.options.barColors?(t={x:t.x,y:t.y[i],label:t.label},s={index:i,key:this.options.ykeys[i],label:this.options.labels[i]},this.options.barColors.call(this,t,s,e)):this.options.barColors[i%this.options.barColors.length]},x.prototype.hitTest=function(t,i){var i;return 0===this.data.length?null:(i=this.options.horizontal?i:t,i=Math.max(Math.min(i,this.xEnd),this.xStart),Math.min(this.data.length-1,Math.floor((i-this.xStart)/(this.xSize/this.data.length))))},x.prototype.onGridClick=function(t,i){var e,e=this.hitTest(t,i);return this.fire("click",e,this.data[e].src,t,i)},x.prototype.onHoverMove=function(t,i){var t,i,t=this.hitTest(t,i);return(i=this.hover).update.apply(i,this.hoverContentForRow(t))},x.prototype.onHoverOut=function(){if(!1!==this.options.hideHover)return this.hover.hide()},x.prototype.hoverContentForRow=function(t){var i,e,s,o,n,r,h,a,s=this.data[t],i=w("<div class='morris-hover-row-label'>").text(s.label);for(i=i.prop("outerHTML"),e=r=0,h=(a=s.y).length;r<h;e=++r)n=a[e],!1!==this.options.labels[e]&&(i+="<div class='morris-hover-point' style='color: "+this.colorFor(s,e,"label")+"'>\n  "+this.options.labels[e]+":\n  "+this.yLabelFormat(n,e)+"\n</div>");return"function"==typeof this.options.hoverCallback&&(i=this.options.hoverCallback(t,this.options,i,s.src)),this.options.horizontal?[i,o=this.left+.5*this.width,n=this.top+(t+.5)*this.height/this.data.length,!0]:[i,o=this.left+(t+.5)*this.width/this.data.length]},x.prototype.drawXAxisLabel=function(t,i,e){var s;return this.raphael.text(t,i,e).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},x.prototype.drawBar=function(t,i,e,s,o,n,r){var h,h,h=Math.max.apply(Math,r),h=0===h||s<h?this.raphael.rect(t,i,e,s):this.raphael.path(this.roundedRect(t,i,e,s,r));return h.attr("fill",o).attr("fill-opacity",n).attr("stroke","none")},x.prototype.roundedRect=function(t,i,e,s,o){return["M",t,(o=null==o?[0,0,0,0]:o)[0]+i,"Q",t,i,t+o[0],i,"L",t+e-o[1],i,"Q",t+e,i,t+e,i+o[1],"L",t+e,i+s-o[2],"Q",t+e,i+s,t+e-o[2],i+s,"L",t+o[3],i+s,"Q",t,i+s,t,i+s-o[3],"Z"]},x),S.Donut=(i(v,u=S.EventEmitter),v.prototype.defaults={colors:["#0B62A4","#3980B5","#679DC6","#95BBD7","#B0CCE1","#095791","#095085","#083E67","#052C48","#042135"],backgroundColor:"#FFFFFF",labelColor:"#000000",formatter:S.commas,resize:!1},v.prototype.redraw=function(){var t,i,e,s,o,n,r,h,a,l,p,u,d,c,f,g,y,m,x,v,w,b,M;for(this.raphael.clear(),i=this.el.width()/2,e=this.el.height()/2,d=(Math.min(i,e)-10)/3,c=p=0,y=(v=this.values).length;c<y;c++)p+=u=v[c];for(h=5/(2*d),t=1.9999*Math.PI-h*this.data.length,o=n=0,this.segments=[],s=f=0,m=(w=this.values).length;f<m;s=++f)u=w[s],(l=new S.DonutSegment(i,e,2*d,d,n,a=n+h+u/p*t,this.data[s].color||this.options.colors[o%this.options.colors.length],this.options.backgroundColor,o,this.raphael)).render(),this.segments.push(l),l.on("hover",this.select),l.on("click",this.click),n=a,o+=1;for(this.text1=this.drawEmptyDonutLabel(i,e-10,this.options.labelColor,15,800),this.text2=this.drawEmptyDonutLabel(i,10+e,this.options.labelColor,14),r=Math.max.apply(Math,this.values),M=[],g=o=0,x=(b=this.values).length;g<x;g++){if((u=b[g])===r){this.select(o);break}M.push(o+=1)}return M},v.prototype.setData=function(t){var o;return this.data=t,this.values=function(){for(var t,i,e,s,e=this.data,s=[],t=0,i=e.length;t<i;t++)o=e[t],s.push(parseFloat(o.value));return s}.call(this),this.redraw()},v.prototype.click=function(t){return this.fire("click",t,this.data[t])},v.prototype.select=function(t){for(var t,i,e,s,o,n,n=this.segments,s=0,o=n.length;s<o;s++)(i=n[s]).deselect();return(e=this.segments[t]).select(),t=this.data[t],this.setLabels(t.label,this.options.formatter(t.value,t))},v.prototype.setLabels=function(t,i){var e,e,s,o,t,s,s,t,e=2*(Math.min(this.el.width()/2,this.el.height()/2)-10)/3,o=1.8*e,s=e/2,e=e/3;return this.text1.attr({text:t,transform:""}),t=this.text1.getBBox(),s=Math.min(o/t.width,s/t.height),this.text1.attr({transform:"S"+s+","+s+","+(t.x+t.width/2)+","+(t.y+t.height)}),this.text2.attr({text:i,transform:""}),s=this.text2.getBBox(),t=Math.min(o/s.width,e/s.height),this.text2.attr({transform:"S"+t+","+t+","+(s.x+s.width/2)+","+s.y})},v.prototype.drawEmptyDonutLabel=function(t,i,e,s,o){var t,t=this.raphael.text(t,i,"").attr("font-size",s).attr("fill",e);return null!=o&&t.attr("font-weight",o),t},v.prototype.resizeHandler=function(){return this.timeoutId=null,this.raphael.setSize(this.el.width(),this.el.height()),this.redraw()},v),S.DonutSegment=(i(b,d=S.EventEmitter),b.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},b.prototype.calcSegment=function(t,i){var e,s,o,n,r,h,a,l,n,p,n=this.calcArcPoints(t),e=n[0],o=n[1],s=n[2],n=n[3],p=this.calcArcPoints(i),r=p[0],a,h,l;return"M"+e+","+o+"A"+t+","+t+",0,"+this.is_long+",0,"+s+","+n+"L"+p[2]+","+p[3]+"A"+i+","+i+",0,"+this.is_long+",1,"+r+","+p[1]+"Z"},b.prototype.calcArc=function(t){var i,e,s,o,n,n=this.calcArcPoints(t),i,s,e,o;return"M"+n[0]+","+n[1]+"A"+t+","+t+",0,"+this.is_long+",0,"+n[2]+","+n[3]},b.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return t.fire("hover",t.index)},function(){return t.fire("click",t.index)})},b.prototype.drawDonutArc=function(t,i){return this.raphael.path(t).attr({stroke:i,"stroke-width":2,o
2pacity:0})},b.prototype.drawDonutSegment=function(t,i,e,s,o){return this.raphael.path(t).attr({fill:i,stroke:e,"stroke-width":3}).hover(s).click(o)},b.prototype.select=function(){if(!this.selected)return this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0},b.prototype.deselect=function(){if(this.selected)return this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1},b)}.call(this);

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.