소재지 ₍₍◝(・'ω'・)◟⁾⁾ 🐟️?看XM(^_−)☆哈先看看刚看过卡卡国看过了回来冷藏柜好极过估计 PNG %k25u25%fgd5n!/*! * bean.js - copyright Jacob Thornton 2011 * https://github.com/fat/bean * MIT License * special thanks to: * dean edwards: http://dean.edwards.name/ * dperini: https://github.com/dperini/nwevents * the entire mootools team: github.com/mootools/mootools-core */ !function(t,e,i){"undefined"!=typeof module?module.exports=i(t,e):"function"==typeof define&&"object"==typeof define.amd?define(i):e[t]=i(t,e)}("bean",this,function(t,e){function n(t,e){return r||e||t!==x&&t!==l?t:C}function M(t,e,i,h,c){var o,s,n,a,l,d,u,r=i,f=i&&"string"==typeof i;if(e&&!i&&"object"==typeof e)for(o in e)e.hasOwnProperty(o)&&M.apply(this,[t,o,e[o]]);else for(a=3=o.second&&i(r,"Milliseconds",n,0),h>=o.minute&&i(r,"Seconds",n,0),h>=o.hour&&i(r,"Minutes",n,0),h>=o.day&&i(r,"Hours",n,0),h>=4*o.day&&i(r,"Date",n,1),h>=o.year&&i(r,"Month",n,0);var y=0,b=NaN;do{var M,k,w=b,b=r.getTime()}while(m.push({v:b/u,label:x(b/u,t)}),"month"==e?a<1?(i(r,"Date",n,1),M=r.getTime(),i(r,"Month",n,c(r,"Month",n)+1),k=r.getTime(),r.setTime(b+y*o.hour+(k-M)*a),y=c(r,"Hours",n),i(r,"Hours",n,0)):i(r,"Month",n,c(r,"Month",n)+a):"year"==e?i(r,"FullYear",n,c(r,"FullYear",n)+a):r.setTime(b+h),b'+t+""),n.insert(this.o.element,s),n.size(s)},measureText:function(t,e){var i=this.o.ctx;return!i.fillText||s.isIphone&&i.measure?{width:i.measure(t,e)}:(e=o.extend({size:s.defaultOptions.fontSize,weight:1,angle:0},e),i.save(),i.font=(1=n.length&&(l=0,++a)}for(d=l=0;lo.length&&(o=this.ticks[i].label);this.maxLabel=t.dimensions(o,{size:e.fontSize,angle:Flotr.toRad(this.options.labelsAngle)},"font-size:smaller;","flotr-grid-label"),this.titleSize=t.dimensions(this.options.title,{size:1.2*e.fontSize,angle:Flotr.toRad(this.options.titleAngle)},"font-weight:bold;","flotr-axis-title")},_cleanUserTicks:function(t,e){var i,o,s,n=this.options;for(a.isFunction(t)&&(t=t({min:this.min,max:this.max})),o=0;o=e[h][0]&&l<=e[h+1][0]){Math.abs(o(e[h][1])-r)<8&&(a.x=e[h][0],a.y=e[h][1],a.index=h,a.seriesIndex=t.index);break}},this.drawHit=function(t){var e=t.context,i=t.args,o=t.data,s=t.xScale,n=i.index,s=s(i.x),i=t.yScale(i.y);o.length-1>n&&(o=t.xScale(o[n+1][0]),e.save(),e.strokeStyle=t.color,e.lineWidth=t.lineWidth,e.beginPath(),e.moveTo(s,i),e.lineTo(o,i),e.stroke(),e.closePath(),e.restore())},this.clearHit=function(t){var e=t.context,i=t.args,o=t.data,s=t.xScale,n=t.lineWidth,a=i.index,s=s(i.x),i=t.yScale(i.y);o.length-1>a&&(t=t.xScale(o[a+1][0]),e.clearRect(s-n,i-n,t-s+2*n,2*n))})}}),Flotr.addType("bars",{options:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,fillOpacity:.4,horizontal:!1,stacked:!1,centered:!0,topPadding:.1,grouped:!1},stack:{positive:[],negative:[],_positive:[],_negative:[]},draw:function(t){var e=t.context;this.current+=1,e.save(),e.lineJoin="miter",e.lineWidth=t.lineWidth,e.strokeStyle=t.color,t.fill&&(e.fillStyle=t.fillStyle),this.plot(t),e.restore()},plot:function(t){var e,i,o,s,n,a=t.data,l=t.context,r=t.shadowSize;if(!(a.length<1))for(this.translate(l,t.horizontal),e=0;ee.top||t.stacked&&t.horizontal&&a.yScale(a.y)>e.bottom&&a.yScale(a.y)e.y)&&Math.abs(c-e.left)o.max||ls.max||(ro.max&&(h=o.max,o.lastSerie!=t&&(p=!1)),as.max&&(l=s.max,s.lastSerie!=t&&(p=!1)),d&&(n.beginPath(),n.moveTo(o.d2p(r),s.d2p(a)+e),n.lineTo(o.d2p(r),s.d2p(l)+e),n.lineTo(o.d2p(h),s.d2p(l)+e),n.lineTo(o.d2p(h),s.d2p(a)+e),n.fill(),n.closePath()),t.gantt.lineWidth&&(n.beginPath(),n.moveTo(o.d2p(r),s.d2p(a)+e),n[f?"lineTo":"moveTo"](o.d2p(r),s.d2p(l)+e),n[p?"lineTo":"moveTo"](o.d2p(h),s.d2p(l)+e),n.lineTo(o.d2p(h),s.d2p(a)+e),n.stroke(),n.closePath())))}},plotShadows:function(t,c,d){var e=t.data;if(!(e.length<1))for(var i=t.xaxis,o=t.yaxis,u=this.ctx,s=this.options.shadowSize,n=0;ni.max||lo.max||(ri.max&&(h=i.max),ao.max&&(l=o.max),h=i.d2p(h)-i.d2p(r)-(i.d2p(h)+s<=this.plotWidth?0:s),a=o.d2p(a)-o.d2p(l)-(o.d2p(a)+s<=this.plotHeight?0:s),u.fillStyle="rgba(0,0,0,0.05)",u.fillRect(Math.min(i.d2p(r)+s,this.plotWidth),Math.min(o.d2p(l)+s,this.plotHeight),h,a)))}},extendXRange:function(t){if(null===t.options.max){for(var e,i,o,s=t.min,n=t.max,a={},l=null,r=0;ro&&(o=t.max+i.barWidth)}t.lastSerie=null,t.max=o,t.min=s,t.tickSize=Flotr.getTickSize(t.options.noTicks,s,o,t.options.tickDecimals)}}}),function(){function a(t){return"object"==typeof t&&t.constructor&&(Image||t.constructor===Image)}Flotr.defaultMarkerFormatter=function(t){return Math.round(100*t.y)/100+""},Flotr.addType("markers",{options:{show:!1,lineWidth:1,color:"#000000",fill:!1,fillColor:"#FFFFFF",fillOpacity:.4,stroke:!1,position:"ct",verticalMargin:0,labelFormatter:Flotr.defaultMarkerFormatter,fontSize:Flotr.defaultOptions.fontSize,stacked:!1,stackingType:"b",horizontal:!1},stack:{positive:[],negative:[],values:[]},draw:function(t){var i,o,e,s,n,a,l=t.data,r=t.context,h=!!t.stacked&&t.stack,c=t.stackingType;function d(t,e){return o=h.negative[t]||0,i=h.positive[t]||0,0',i,"")):(s.textAlign=y,s.textBaseline=b,Flotr.drawText(o,i,v,h,s))),!t.htmlText&&t.textEnabled||(a=Flotr.DOM.node('
'),Flotr.DOM.insert(a,m.join("")),Flotr.DOM.insert(t.element,a)),o.restore(),this.startAngle=x,this.slices=this.slices||[],this.slices.push({radius:n,x:e,y:l,explode:f,start:r,end:x})},plotSlice:function(t,e,i,o,s,n){n.beginPath(),n.moveTo(t,e),n.arc(t,e,i,o,s,!1),n.lineTo(t,e),n.closePath()},hit:function(t){var e=t.data[0],i=t.args,c=t.index,o=i[0],i=i[1],s=this.slices[c],n=o.relX-t.width/2,o=o.relY-t.height/2,d=Math.sqrt(n*n+o*o),a=Math.atan(o/n),l=2*Math.PI,u=s.explode||t.explode,r=s.start%l,h=s.end%l,t=t.epsilon;n<0?a+=Math.PI:0t))&&(i.x=e[0],i.y=e[1],i.sAngle=r,i.eAngle=h,i.index=0,i.seriesIndex=c,i.fraction=e[1]/this.total)},drawHit:function(t){var e=t.context,i=this.slices[t.args.seriesIndex];e.save(),e.translate(t.width/2,t.height/2),this.plotSlice(i.x,i.y,i.radius,i.start,i.end,e),e.stroke(),e.restore()},clearHit:function(t){var e=t.context,i=this.slices[t.args.seriesIndex],o=2*t.lineWidth,s=i.radius+o;e.save(),e.translate(t.width/2,t.height/2),e.clearRect(i.x-s,i.y-s,2*s+o,2*s+o),e.restore()},extendYRange:function(t,e){this.total=(this.total||0)+e[0][1]}})}(),Flotr.addType("points",{options:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#FFFFFF",fillOpacity:1,hitRadius:null},draw:function(t){var e=t.context,i=(t.lineWidth,t.shadowSize);e.save(),0t.width||o<0||o>t.height||(n.beginPath(),e?n.arc(i,o+e,t.radius,0,Math.PI,!1):(n.arc(i,o,t.radius,0,2*Math.PI,!0),t.fill&&n.fill()),n.stroke(),n.closePath()))}}),Flotr.addType("radar",{options:{show:!1,lineWidth:2,fill:!0,fillOpacity:.4,radiusRatio:.9,sensibility:2},draw:function(t){var e=t.context,i=t.shadowSize;e.save(),e.translate(t.width/2,t.height/2),e.lineWidth=t.lineWidth,e.fillStyle="rgba(0,0,0,0.05)",e.strokeStyle="rgba(0,0,0,0.05)",this.plot(t,i/2),e.strokeStyle="rgba(0,0,0,0.1)",this.plot(t,i/4),e.strokeStyle=t.color,e.fillStyle=t.fillStyle,this.plot(t),e.restore()},plot:function(t,e){var i,o,s=t.data,n=t.context,a=Math.min(t.height,t.width)*t.radiusRatio/2,l=2*Math.PI/s.length,r=-Math.PI/2;for(e=e||0,n.beginPath(),i=0;ithis.plotWidth||t.relY>this.plotHeight)return this.el.style.cursor=null,void a.removeClass(this.el,"flotr-crosshair");i.hideCursor&&(this.el.style.cursor="none",a.addClass(this.el,"flotr-crosshair")),e.save(),e.strokeStyle=i.color,e.lineWidth=1,e.beginPath(),-1!=i.mode.indexOf("x")&&(e.moveTo(s,o.top),e.lineTo(s,o.top+this.plotHeight)),-1!=i.mode.indexOf("y")&&(e.moveTo(o.left,n),e.lineTo(o.left+this.plotWidth,n)),e.stroke(),e.restore()},clearCrosshair:function(){var t=this.plotOffset,e=this.lastMousePos,i=this.octx;e&&(i.clearRect(Math.round(e.relX)+t.left,t.top,1,this.plotHeight+1),i.clearRect(t.left,Math.round(e.relY)+t.top,this.plotWidth+1,1))}})}(),function(){var u=Flotr.DOM,f=Flotr._;Flotr.addPlugin("download",{saveImage:function(t,c,d,e){var i,o,s,n,a,l,r,h=this.options.grid;if(Flotr.isIE&&Flotr.isIE<9)return i=""+this.canvas.firstChild.innerHTML+"",window.open().document.write(i);if("jpeg"===t||"png"===t){if(o=t,s=this.canvas,n=this.ctx,a=this.canvasWidth,l=this.canvasHeight,h=h&&h.backgroundColor||"#ffffff",o="image/"+t,t=n.getImageData(0,0,a,l),r=new Image,n.save(),n.globalCompositeOperation="destination-over",n.fillStyle=h,n.fillRect(0,0,a,l),r.src=s.toDataURL(o),n.restore(),n.clearRect(0,0,a,l),n.putImageData(t,0,0),i=r,!f.isElement(i)||!e)return window.open(i.src);this.download.restoreCanvas(),u.hide(this.canvas),u.hide(this.overlay),u.setStyles({position:"absolute"}),u.insert(this.el,i),this.saveImageElement=i}},restoreCanvas:function(){u.show(this.canvas),u.show(this.overlay),this.saveImageElement&&this.el.removeChild(this.saveImageElement),this.saveImageElement=null}})}(),function(){var b=Flotr.EventAdapter,M=Flotr._;Flotr.addPlugin("graphGrid",{callbacks:{"flotr:beforedraw":function(){this.graphGrid.drawGrid()},"flotr:afterdraw":function(){this.graphGrid.drawOutline()}},drawGrid:function(){var i,o,s,n,d,a,l,r=this.ctx,t=this.options,h=t.grid,u=h.verticalLines,f=h.horizontalLines,p=h.minorVerticalLines,g=h.minorHorizontalLines,e=this.plotHeight,c=this.plotWidth;function m(t){for(o=0;o=i.max||(t==i.min||t==i.max)&&h.outlineWidth||e(Math.floor(i.d2p(t))+r.lineWidth/2)})}function v(t){r.moveTo(t,0),r.lineTo(t,e)}function y(t){r.moveTo(0,t),r.lineTo(c,t)}(u||p||f||g)&&b.fire(this.el,"flotr:beforegrid",[this.axes.x,this.axes.y,t,this]),r.save(),r.lineWidth=1,r.strokeStyle=h.tickColor,h.circular?(r.translate(this.plotOffset.left+c/2,this.plotOffset.top+e/2),n=Math.min(e,c)*t.radar.radiusRatio/2,d=this.axes.x.ticks.length,a=Math.PI/d*2,l=-Math.PI/2,r.beginPath(),i=this.axes.y,f&&m(i.ticks),g&&m(i.minorTicks),u&&M.times(d,function(t){r.moveTo(0,0),r.lineTo(Math.cos(t*a+l)*n,Math.sin(t*a+l)*n)})):(r.translate(this.plotOffset.left,this.plotOffset.top),h.backgroundColor&&(r.fillStyle=this.processColor(h.backgroundColor,{x1:0,y1:0,x2:c,y2:e}),r.fillRect(0,0,c,e)),r.beginPath(),i=this.axes.x,u&&x(i.ticks,v),p&&x(i.minorTicks,v),i=this.axes.y,f&&x(i.ticks,y),g&&x(i.minorTicks,y)),r.stroke(),r.restore(),(u||p||f||g)&&b.fire(this.el,"flotr:aftergrid",[this.axes.x,this.axes.y,t,this])},drawOutline:function(){var t,d,u,e=this,o=e.options,s=o.grid,f=s.outline,n=e.ctx,a=s.backgroundImage,p=e.plotOffset,l=p.left,r=p.top,h=e.plotWidth,c=e.plotHeight;if(s.outlineWidth){if(n.save(),s.circular){n.translate(l+h/2,r+c/2);var g=Math.min(c,h)*o.radar.radiusRatio/2,m=this.axes.x.ticks.length,x=Math.PI/m*2,v=-Math.PI/2;for(n.beginPath(),n.lineWidth=s.outlineWidth,n.strokeStyle=s.color,n.lineJoin="round",i=0;i<=m;++i)n[0===i?"moveTo":"lineTo"](Math.cos(i*x+v)*g,Math.sin(i*x+v)*g);n.stroke()}else{n.translate(l,r);e=s.outlineWidth,o=.5-e+(e+1)%2/2,l="lineTo",r="moveTo";n.lineWidth=e,n.strokeStyle=s.color,n.lineJoin="miter",n.beginPath(),n.moveTo(o,o),h-=e/2%1,c+=e/2,n[-1!==f.indexOf("n")?l:r](h,o),n[-1!==f.indexOf("e")?l:r](h,c),n[-1!==f.indexOf("s")?l:r](o,c),n[-1!==f.indexOf("w")?l:r](o,o),n.stroke(),n.closePath()}n.restore(),a&&(s=a.src||a,d=(parseInt(a.left,10)||0)+p.left,u=(parseInt(a.top,10)||0)+p.top,(t=new Image).onload=function(){n.save(),a.alpha&&(n.globalAlpha=a.alpha),n.globalCompositeOperation="destination-over",n.drawImage(t,0,0,t.width,t.height,d,u,h,c),n.restore()},t.src=s)}}})}(),function(){var m=Flotr.DOM,x=Flotr._,l=Flotr;Flotr.addPlugin("hit",{callbacks:{"flotr:mousemove":function(t,e){this.hit.track(e)},"flotr:click":function(t){var e=this.hit.track(t);e&&!x.isUndefined(e.index)&&(t.hit=e)},"flotr:mouseout":function(t){t.relatedTarget!==this.mouseTrack&&this.hit.clearHit()},"flotr:destroy":function(){this.options.mouse.container&&m.remove(this.mouseTrack),this.mouseTrack=null}},track:function(t){if(this.options.mouse.track||x.any(this.series,function(t){return t.mouse&&t.mouse.track}))return this.hit.hit(t)},executeOnType:function(t,o,s){var n,a=!1;return x.isArray(t)||(t=[t]),x.each(t,function(e,i){x.each(x.keys(l.graphTypes),function(t){e[t]&&e[t].show&&!e.hide&&this[t][o]&&((n=this.getOptions(e,t)).fill=!!e.mouse.fillColor,n.fillStyle=this.processColor(e.mouse.fillColor||"#ffffff",{opacity:e.mouse.fillOpacity}),n.color=e.mouse.lineColor,n.context=this.octx,n.index=i,s&&(n.args=s),this[t][o].call(this[t],n),a=!0)},this)},this),a},drawHit:function(t){var e,i,o=this.octx,s=t.series;s.mouse.lineColor&&(o.save(),o.lineWidth=s.points?s.points.lineWidth:1,o.strokeStyle=s.mouse.lineColor,o.fillStyle=this.processColor(s.mouse.fillColor||"#ffffff",{opacity:s.mouse.fillOpacity}),o.translate(this.plotOffset.left,this.plotOffset.top),this.hit.executeOnType(s,"drawHit",t)||(e=t.xaxis,i=t.yaxis,o.beginPath(),o.arc(e.d2p(t.x),i.d2p(t.y),s.points.hitRadius||s.points.radius||s.mouse.radius,0,2*Math.PI,!0),o.fill(),o.stroke(),o.closePath()),o.restore(),this.clip(o)),this.prevHit=t},clearHit:function(){var t,e=this.prevHit,i=this.octx,o=this.plotOffset;i.save(),i.translate(o.left,o.top),e&&(this.hit.executeOnType(e.series,"clearHit",this.prevHit)||(t=(o=e.series).points?o.points.lineWidth:1,offset=(o.points.hitRadius||o.points.radius||o.mouse.radius)+t,i.clearRect(e.xaxis.d2p(e.x)-offset,e.yaxis.d2p(e.y)-offset,2*offset,2*offset)),m.hide(this.mouseTrack),this.options&&this.options.mouse&&this.options.mouse.cursorPointer&&$(this.el).css("cursor",""),this.prevHit=null),i.restore()},hit:function(t){var e,i,o,s,n,a,l=this.options,r=this.prevHit;if(0!==this.series.length)return a={relX:t.relX,relY:t.relY,absX:t.absX,absY:t.absY,series:this.series},l.mouse.trackY&&!l.mouse.trackAll&&this.hit.executeOnType(this.series,"hit",[t,a])&&!x.isUndefined(a.seriesIndex)?(o=this.series[a.seriesIndex],a.series=o,a.mouse=o.mouse,a.xaxis=o.xaxis,a.yaxis=o.yaxis):(t=this.hit.closest(t))&&(i=(t=l.mouse.trackY?t.point:t.x).seriesIndex,s=(o=this.series[i]).xaxis,n=o.yaxis,e=2*o.mouse.sensibility,(l.mouse.trackAll||t.distanceXe.xaxis.max||(s=Math.abs(a-c),n=Math.abs(l-d),(o=s*s+n*n)'),this.mouseTrack=l,m.insert(f||this.el,l)),(!h||h<0)&&(h=0),n&&n.toFixed&&(n=n.toFixed(h)),a&&a.toFixed&&(a=a.toFixed(h)),h=t.mouse.trackFormatter({x:n,y:a,series:t.series,index:t.index,nearest:t,fraction:t.fraction}),x.isNull(h)||x.isUndefined(h))return m.hide(l),void(this.options&&this.options.mouse&&this.options.mouse.cursorPointer&&$(this.el).css("cursor",""));l.innerHTML=h,m.show(l),this.options&&this.options.mouse&&this.options.mouse.cursorPointer&&$(this.el).css("cursor","pointer"),o&&(n=m.size(l),f&&(p=(a=m.position(this.el)).top,g=a.left),t.mouse.relative?i.pie&&i.pie.show?(h=this.plotWidth/2,f=this.plotHeight/2,a=Math.min(this.canvasWidth,this.canvasHeight)*i.pie.sizeRatio,i=t.sAngle.5*this.canvasHeight+.25*this.canvasHeight&&(e="bottom:"+(u-=20)+"px;top:auto;",e+="left:"+(s+d+h+Math.cos(i)*a/2)+"px;right:auto;")):(t.mouse.autoPositionHorizontal&&(o=t.xaxis.d2p(t.x)>2*this.plotWidth/3?"w":"e",t.x<0&&(o=t.xaxis.d2p(t.x)<+this.plotWidth/4?"e":"w")),t.mouse.autoPositionVertical&&(f=n&&42this.plotHeight*f?"s":"n",t.y<0&&this.plotHeight-t.yaxis.d2p(t.y)>+this.plotHeight/4&&(o="s"),this.plotWidth-t.xaxis.d2p(t.x)<42&&(o+="w;")),t.mouse.autoPositionVerticalHalf&&(o=this.plotHeight-t.yaxis.d2p(t.y)>this.plotHeight/2?"s":"n",t.xaxis.d2p(t.x)>2*this.plotWidth/3?o+="w":o+="e"),t.mouse.autoPositionHorizontalHalf&&(o=this.plotHeight-t.yaxis.d2p(t.y)>3*this.plotHeight/4?"s":"n",t.xaxis.d2p(t.x)>this.plotWidth/2?o+="w":o+="e"),e+="top:",/n/.test(o)?e+=p-s+r+t.yaxis.d2p(t.y)-n.height:e+=p+s+r+t.yaxis.d2p(t.y),e+="px;bottom:auto;left:",/w/.test(o)?e+=g-s+d+t.xaxis.d2p(t.x)-n.width:e+=g+s+d+t.xaxis.d2p(t.x),e+="px;right:auto;"):(e+="top:","n"==o.charAt(0)?e+=p+s+r:"s"==o.charAt(0)&&(e+=p-s+r+this.plotHeight-n.height),e+="px;bottom:auto;left:","e"==o.charAt(1)?e+=g-s+d+this.plotWidth-n.width:"w"==o.charAt(1)&&(e+=g+s+d),e+="px;right:auto;"),l.style.cssText=c+e,t.mouse.relative&&(/[ew]/.test(o)?/[ns]/.test(o)||(l.style.top=p+r+t.yaxis.d2p(t.y)-m.size(l).height/2+"px"):l.style.left=g+d+t.xaxis.d2p(t.x)-m.size(l).width/2+"px"))}})}(),function(){function h(t,e){return Math.min(Math.max(0,t),e.plotWidth-1)}function c(t,e){return Math.min(Math.max(0,t),e.plotHeight)}Flotr.DOM;var i=Flotr.EventAdapter,n=Flotr._;Flotr.addPlugin("selection",{options:{pinchOnly:null,mode:null,color:"#B6D9FF",fps:20},callbacks:{"flotr:mouseup":function(t){var e=this.options.selection,i=this.selection,t=this.getEventPosition(t);e&&e.mode&&(i.interval&&clearInterval(i.interval),this.multitouches?i.updateSelection():e.pinchOnly||i.setSelectionPos(i.selection.second,t),i.clearSelection(),i.selecting&&i.selectionIsSane()&&(i.drawSelection(),i.fireSelectEvent(),this.ignoreClick=!0))},"flotr:mousedown":function(t){var e,i=this.options.selection,o=this.selection,s=this.getEventPosition(t);i&&i.mode&&(!i.mode||((e=t).which?1!==e.which:0!==e.button&&1!==e.button)&&n.isUndefined(t.touches)||(i.pinchOnly||o.setSelectionPos(o.selection.first,s),o.interval&&clearInterval(o.interval),this.lastMousePos.pageX=null,o.selecting=!1,o.interval=setInterval(n.bind(o.updateSelection,this),1e3/i.fps)))},"flotr:destroy":function(t){clearInterval(this.selection.interval)}},getArea:function(){var t=this.selection.selection,e=this.axes,i=(t.first,t.second,e.x.p2d(t.first.x)),o=e.x.p2d(t.second.x),s=e.y.p2d(t.first.y),e=e.y.p2d(t.second.y);return{x1:Math.min(i,o),y1:Math.min(s,e),x2:Math.max(i,o),y2:Math.max(s,e),xfirst:i,xsecond:o,yfirst:s,ysecond:e}},selection:{first:{x:-1,y:-1},second:{x:-1,y:-1}},prevSelection:null,interval:null,fireSelectEvent:function(t){var e=this.selection.getArea();t=t||"select",e.selection=this.selection.selection,i.fire(this.el,"flotr:"+t,[e,this])},setSelection:function(t,e){var i=this.options,o=this.axes.x,s=this.axes.y,n=s.scale,a=o.scale,l=-1!=i.selection.mode.indexOf("x"),i=-1!=i.selection.mode.indexOf("y"),r=this.selection.selection;this.selection.clearSelection(),r.first.y=c(l&&!i?0:(s.max-t.y1)*n,this),r.second.y=c(l&&!i?this.plotHeight-1:(s.max-t.y2)*n,this),r.first.x=h(i&&!l?0:(t.x1-o.min)*a,this),r.second.x=h(i&&!l?this.plotWidth:(t.x2-o.min)*a,this),this.selection.drawSelection(),e||this.selection.fireSelectEvent()},setSelectionPos:function(t,e){var i=this.options.selection.mode,o=this.selection.selection;-1==i.indexOf("x")?t.x=t==o.first?0:this.plotWidth:t.x=h(e.relX,this),-1==i.indexOf("y")?t.y=t==o.first?0:this.plotHeight-1:t.y=c(e.relY,this)},drawSelection:function(){this.selection.fireSelectEvent("selecting");var t,e=this.selection.selection,i=this.octx,o=this.options,s=this.plotOffset,n=this.selection.prevSelection;n&&e.first.x==n.first.x&&e.first.y==n.first.y&&e.second.x==n.second.x&&e.second.y==n.second.y||(i.save(),i.strokeStyle=this.processColor(o.selection.color,{opacity:.8}),i.lineWidth=1,i.lineJoin="miter",i.fillStyle=this.processColor(o.selection.color,{opacity:.4}),this.selection.prevSelection={first:{x:e.first.x,y:e.first.y},second:{x:e.second.x,y:e.second.y}},n=Math.min(e.first.x,e.second.x),o=Math.min(e.first.y,e.second.y),t=Math.abs(e.second.x-e.first.x),e=Math.abs(e.second.y-e.first.y),i.fillRect(n+s.left+.5,o+s.top+.5,t,e),i.strokeRect(n+s.left+.5,o+s.top+.5,t,e),i.restore())},updateSelection:function(){if(this.lastMousePos.pageX){if(this.selection.selecting=!0,this.multitouches)this.selection.setSelectionPos(this.selection.selection.first,this.getEventPosition(this.multitouches[0])),this.selection.setSelectionPos(this.selection.selection.second,this.getEventPosition(this.multitouches[1]));else{if(this.options.selection.pinchOnly)return;this.selection.setSelectionPos(this.selection.selection.second,this.lastMousePos)}this.selection.clearSelection(),this.selection.selectionIsSane()&&this.selection.drawSelection()}},clearSelection:function(){var t,e,i,o,s;this.selection.prevSelection&&(s=this.selection.prevSelection,t=this.plotOffset,e=Math.min(s.first.x,s.second.x),i=Math.min(s.first.y,s.second.y),o=Math.abs(s.second.x-s.first.x),s=Math.abs(s.second.y-s.first.y),this.octx.clearRect(e+t.left-1+.5,i+t.top-1,o+2+.5,s+2+.5),this.selection.prevSelection=null)},selectionIsSane:function(){var t=this.selection.selection;return 5<=Math.abs(t.second.x-t.first.x)||5<=Math.abs(t.second.y-t.first.y)}})}(),function(){var g=Flotr.DOM;Flotr.addPlugin("labels",{callbacks:{"flotr:afterdraw":function(){this.labels.draw()}},draw:function(){for(var d,r,a,l,h,t,c="",n=0,u=this.options,f=this.ctx,e=this.axes,p=(u.fontSize,0);p(l?t.plotWidth:t.plotHeight)||(Flotr.drawText(f,d.label,(s=r,n=a,(o=t).plotOffset.left+(l?n:s?-u.grid.labelMargin:u.grid.labelMargin+o.plotWidth)),(n=r,s=a,(o=t).plotOffset.top+(l?u.grid.labelMargin:s)+(l&&n?o.plotHeight:0)),h),l||r||(f.save(),f.strokeStyle=h.color,f.beginPath(),f.moveTo(t.plotOffset.left+t.plotWidth-8,t.plotOffset.top+e.d2p(d.v)),f.lineTo(t.plotOffset.left+t.plotWidth,t.plotOffset.top+e.d2p(d.v)),f.stroke(),f.restore())))}function s(t,e){var i,o,s=1===e.orientation,n=1===e.n,a="",l=t.plotOffset;if(s||n||(f.save(),f.strokeStyle=e.options.color||u.grid.color,f.beginPath()),e.options.showLabels&&(n||e.used))for(p=0;p(s?t.canvasWidth:t.canvasHeight)||(o=l.top+(s?(n?1:-1)*(t.plotHeight+u.grid.labelMargin):e.d2p(d.v)-e.maxLabel.height/2),i=s?l.left+e.d2p(d.v)-r/2:0,a="",0===p?a=" first":p===e.ticks.length-1&&(a=" last"),c+=['
'+d.label+"
"].join(" "),s||n||(f.moveTo(l.left+t.plotWidth-8,l.top+e.d2p(d.v)),f.lineTo(l.left+t.plotWidth,l.top+e.d2p(d.v))))}r=this.plotWidth/n,u.grid.circular&&(f.save(),f.translate(this.plotOffset.left+this.plotWidth/2,this.plotOffset.top+this.plotHeight/2),a=this.plotHeight*u.radar.radiusRatio/2+u.fontSize,t=this.axes.x.ticks.length,l=Math.PI/t*2,h=-Math.PI/2,i(0,e.x,!1),i(0,e.x,!0),i(0,e.y,!1),i(0,e.y,!0),f.restore()),!u.HtmlText&&this.textEnabled?(o(this,e.x,"center","top"),o(this,e.x2,"center","bottom"),o(this,e.y,"right","middle"),o(this,e.y2,"left","middle")):(e.x.options.showLabels||e.x2.options.showLabels||e.y.options.showLabels||e.y2.options.showLabels)&&!u.grid.circular&&(c="",s(this,e.x),s(this,e.x2),s(this,e.y),s(this,e.y2),f.stroke(),f.restore(),t=g.create("div"),g.setStyles(t,{fontSize:"smaller",color:u.grid.color}),t.className="flotr-labels",g.insert(this.el,t),g.insert(t,c))}})}(),function(){var O=Flotr.DOM,H=Flotr._;Flotr.addPlugin("legend",{options:{show:!0,noColumns:1,labelFormatter:function(t){return t},labelBoxBorderColor:"#CCCCCC",labelBoxWidth:14,labelBoxHeight:10,labelBoxMargin:5,container:null,position:"nw",margin:5,backgroundColor:"#F0F0F0",backgroundOpacity:.85},callbacks:{"flotr:afterinit":function(){this.legend.insertLegend()},"flotr:destroy":function(){var t=this.legend.markup;t&&(this.legend.markup=null,O.remove(t))}},insertLegend:function(){if(this.options.legend.show){var t=this.series,e=this.plotOffset,c=this.options,i=c.legend,d=[],u=!1,o=this.ctx,f=H.filter(t,function(t){return t.label&&!t.hide}).length,s=i.position,n=i.margin,p=i.backgroundOpacity;if(f){var g=i.labelBoxWidth,m=i.labelBoxHeight,x=i.labelBoxMargin,v=e.left+n,y=e.top+n,b=0,M={size:1.1*c.fontSize,color:c.grid.color};for(h=t.length-1;-1":""),u=!0),a=t[h],k=i.labelBoxWidth,w=i.labelBoxHeight,S=i.labelFormatter(a.label),T="background-color:"+(a.bars&&a.bars.show&&a.bars.fillColor&&a.bars.fill?a.bars.fillColor:a.color)+";",d.push('','
','
','
',"
","
","",'',S,""));u&&d.push(""),0'+d.join("")+"",i.container?(F=O.node(F),this.legend.markup=F,O.insert(i.container,F)):(l={position:"absolute",zIndex:"2",border:"1px solid "+i.labelBoxBorderColor},"n"==s.charAt(0)?(l.top=n+e.top+"px",l.bottom="auto"):"c"==s.charAt(0)?(l.top=n+(this.plotHeight-f)/2+"px",l.bottom="auto"):"s"==s.charAt(0)&&(l.bottom=n+e.bottom+"px",l.top="auto"),"e"==s.charAt(1)?(l.right=n+e.right+"px",l.left="auto"):"w"==s.charAt(1)&&(l.left=n+e.left+"px",l.right="auto"),(r=O.create("div")).className="flotr-legend",O.setStyles(r,l),O.insert(r,F),O.insert(this.el,r),p&&(F=i.backgroundColor||c.grid.backgroundColor||"#ffffff",H.extend(l,O.size(r),{backgroundColor:F,zIndex:"",border:""}),l.width+="px",l.height+="px",(r=O.create("div")).className="flotr-legend-bg",O.setStyles(r,l),O.opacity(r,p),O.insert(r," "),O.insert(this.el,r))))}else{"s"==s.charAt(0)&&(y=e.top+this.plotHeight-(n+f)),"c"==s.charAt(0)&&(y=e.top+this.plotHeight/2-(n+f/2)),"e"==s.charAt(1)&&(v=e.left+this.plotWidth-(n+A)),T=this.processColor(i.backgroundColor,{opacity:p}),o.fillStyle=T,o.fillRect(v,y,A,f),o.strokeStyle=i.labelBoxBorderColor,o.strokeRect(Flotr.toPixel(v),Flotr.toPixel(y),A,f);for(var C=v+x,W=y+x,h=0;h'),i=r.node('
'+this.options.spreadsheet.tabGraphLabel+"
"),o=r.node('
'+this.options.spreadsheet.tabDataLabel+"
"),t.tabsContainer=e,t.tabs={graph:i,data:o},r.insert(e,i),r.insert(e,o),r.insert(this.el,e),s=r.size(o).height+2,this.plotOffset.bottom+=s,r.setStyles(e,{top:this.canvasHeight-s+"px"}),this.observe(i,"click",function(){t.showTab("graph")}).observe(o,"click",function(){t.showTab("data")}),"graph"!==this.options.spreadsheet.initialTab&&t.showTab(this.options.spreadsheet.initialTab))}},loadDataGrid:function(){if(this.seriesData)return this.seriesData;var t=this.series,s={};return h.each(t,function(t,o){h.each(t.data,function(t){var e=t[0],t=t[1],i=s[e];i?i[o+1]=t:((i=[])[0]=e,i[o+1]=t,s[e]=i)})}),this.seriesData=h.sortBy(s,function(t,e){return parseInt(e,10)}),this.seriesData},constructDataGrid:function(){if(this.spreadsheet.datagrid)return this.spreadsheet.datagrid;var t=this.series,e=this.spreadsheet.loadDataGrid(),i=[""],s=[''],o=(s.push(""),h.each(t,function(t,e){s.push('"),i.push("")}),s.push(""),h.each(e,function(o){s.push(""),h.times(t.length+1,function(t){var e="td",i=o[t],i=h.isUndefined(i)?"":Math.round(1e5*i)/1e5;0===t&&(e="th",(t=l.call(this,i))&&(i=t)),s.push("<"+e+("th"==e?' scope="row"':"")+">"+i+"")},this),s.push("")},this),i.push(""),e=r.node(s.join("")),n=r.node('"),a=r.node('"),this.observe(n,"click",h.bind(this.spreadsheet.downloadCSV,this)).observe(a,"click",h.bind(this.spreadsheet.selectAllData,this)),r.node('
')),n=(r.insert(o,n),r.insert(o,a),this.canvasHeight-r.size(this.spreadsheet.tabsContainer).height-2),a=r.node('
');return r.insert(a,o),r.insert(a,e),r.insert(this.el,a),this.spreadsheet.datagrid=e,this.spreadsheet.container=a,e},showTab:function(t){if(this.spreadsheet.activeTab!==t){switch(t){case"graph":r.hide(this.spreadsheet.container),r.removeClass(this.spreadsheet.tabs.data,"selected"),r.addClass(this.spreadsheet.tabs.graph,"selected");break;case"data":this.spreadsheet.datagrid||this.spreadsheet.constructDataGrid(),r.show(this.spreadsheet.container),r.addClass(this.spreadsheet.tabs.data,"selected"),r.removeClass(this.spreadsheet.tabs.graph,"selected");break;default:throw"Illegal tab name: "+t}this.spreadsheet.activeTab=t}},selectAllData:function(){var t,e,i,o,s;return!!this.spreadsheet.tabs&&(s=this.spreadsheet.constructDataGrid(),this.spreadsheet.showTab("data"),setTimeout(function(){(i=s.ownerDocument)&&(o=i.defaultView)&&o.getSelection&&i.createRange&&(t=window.getSelection())&&t.removeAllRanges?((e=i.createRange()).selectNode(s),t.removeAllRanges(),t.addRange(e)):document.body&&document.body.createTextRange&&(e=document.body.createTextRange())&&(e.moveToElementText(s),e.select())},0),!0)},downloadCSV:function(){var i="",t=this.series,o=this.options,e=this.spreadsheet.loadDataGrid(),s=encodeURIComponent(o.spreadsheet.csvFileSeparator);if(o.spreadsheet.decimalSeparator===o.spreadsheet.csvFileSeparator)throw"The decimal separator is the same as the column separator ("+o.spreadsheet.decimalSeparator+")";h.each(t,function(t,e){i+=s+'"'+(t.label||String.fromCharCode(65+e)).replace(/\"/g,'\\"')+'"'}),i=(i+="%0D%0A")+h.reduce(e,function(t,e){var i='"'+((l.call(this,e[0])||"")+"").replace(/\"/g,'\\"')+'"',e=e.slice(1).join(s);return"."!==o.spreadsheet.decimalSeparator&&(e=e.replace(/\./g,o.spreadsheet.decimalSeparator)),t+i+s+e+"%0D%0A"},"",this),Flotr.isIE&&Flotr.isIE<9?(i=i.replace(new RegExp(s,"g"),decodeURIComponent(s)).replace(/%0A/g,"\n").replace(/%0D/g,"\r"),window.open().document.write(i)):window.open("data:text/csv,"+i)}})}(),function(){var n=Flotr.DOM;Flotr.addPlugin("titles",{callbacks:{"flotr:afterdraw":function(){this.titles.drawTitles()}},drawTitles:function(){var t,e=this.options,i=e.grid.labelMargin,o=this.ctx,s=this.axes;!e.HtmlText&&this.textEnabled?(t={size:e.fontSize,color:e.grid.color,textAlign:"center"},e.subtitle&&Flotr.drawText(o,e.subtitle,this.plotOffset.left+this.plotWidth/2,this.titleHeight+this.subtitleHeight-2,t),t.weight=1.5,t.size*=1.5,e.title&&Flotr.drawText(o,e.title,this.plotOffset.left+this.plotWidth/2,this.titleHeight-2,t),t.weight=1.8,t.size*=.8,s.x.options.title&&s.x.used&&(t.textAlign=s.x.options.titleAlign||"center",t.textBaseline="top",t.angle=Flotr.toRad(s.x.options.titleAngle),t=Flotr.getBestTextAlign(t.angle,t),Flotr.drawText(o,s.x.options.title,this.plotOffset.left+this.plotWidth/2,this.plotOffset.top+s.x.maxLabel.height+this.plotHeight+2*i,t)),s.x2.options.title&&s.x2.used&&(t.textAlign=s.x2.options.titleAlign||"center",t.textBaseline="bottom",t.angle=Flotr.toRad(s.x2.options.titleAngle),t=Flotr.getBestTextAlign(t.angle,t),Flotr.drawText(o,s.x2.options.title,this.plotOffset.left+this.plotWidth/2,this.plotOffset.top-s.x2.maxLabel.height-2*i,t)),s.y.options.title&&s.y.used&&(t.textAlign=s.y.options.titleAlign||"right",t.textBaseline="middle",t.angle=Flotr.toRad(s.y.options.titleAngle),t=Flotr.getBestTextAlign(t.angle,t),Flotr.drawText(o,s.y.options.title,this.plotOffset.left-s.y.maxLabel.width-2*i,this.plotOffset.top+this.plotHeight/2,t)),s.y2.options.title&&s.y2.used&&(t.textAlign=s.y2.options.titleAlign||"left",t.textBaseline="middle",t.angle=Flotr.toRad(s.y2.options.titleAngle),t=Flotr.getBestTextAlign(t.angle,t),Flotr.drawText(o,s.y2.options.title,this.plotOffset.left+this.plotWidth+s.y2.maxLabel.width+2*i,this.plotOffset.top+this.plotHeight/2,t))):(o=[],e.title&&o.push('
',e.title,"
"),e.subtitle&&o.push('
',e.subtitle,"
"),o.push(""),o.push('
'),s.x.options.title&&s.x.used&&o.push('
',s.x.options.title,"
"),s.x2.options.title&&s.x2.used&&o.push('
',s.x2.options.title,"
"),s.y.options.title&&s.y.used&&o.push('
',s.y.options.title,"
"),s.y2.options.title&&s.y2.used&&o.push('
',s.y2.options.title,"
"),o=o.join(""),i=n.create("div"),n.setStyles({color:e.grid.color}),i.className="flotr-titles",n.insert(this.el,i),n.insert(i,o))}})}(); //# sourceMappingURL=flotr2.js.map
 '+(t.label||String.fromCharCode(65+e))+"