From bbe3980b8f922dff9f69becad0da666b6d38ef9c Mon Sep 17 00:00:00 2001
From: Dannon Baker =e||t>0&&(x>e||x==e&&I>=r)&&p<=e)&&(O<0||I>C)&&(O=z,C=t<0?I:b,t<0?x:p),h+=24}O>=0&&u([O],c+1)}};u([i.cirTreeOffset+48],1)},s.prototype.readWigData=function(e,r,t){var n,i=t-r;if(i<=25e3||0===this.zoomLevels.length)n=this.getUnzoomedView();else for(var o=0;ot.field-3)return o[t.field-3]==e},[{offset:y,size:p}],r)}m+=c}return r([])}for(var b=null,v=0;v=e||t>0&&(x>e||x==e&&I>=r)&&p<=e)&&(O<0||I>C)&&(O=z,C=t<0?I:b,t<0?x:p),h+=24}O>=0&&u([O],c+1)}};u([i.cirTreeOffset+48],1)},s.prototype.readWigData=function(e,r,t){var n,i=t-r;if(i<=25e3||0===this.zoomLevels.length)n=this.getUnzoomedView();else for(var o=0;ot.field-3)return o[t.field-3]==e},[{offset:y,size:p}],r)}m+=c}return r([])}for(var b=null,v=0;v15?(this.inflateEnd(t),-2):(this.wbits=i,t.istate.blocks=new e(t,0!=t.istate.nowrap?null:this,1<>4)>t.istate.wbits){t.istate.mode=13,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return e;if(e=i,t.avail_in--,t.total_in++,n=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+n)%31!=0){t.istate.mode=13,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&n)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?e:(e=i,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=13,t.msg="need dictionary",t.istate.marker=0,-2;case 7:if(-3==(e=t.istate.blocks.proc(t,e))){t.istate.mode=13,t.istate.marker=0;break}if(e==x&&(e=i),e!=u)return e;if(e=i,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return e;if(e=i,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=13,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return u;case 13:return-3;default:return-2}},i.prototype.inflateSetDictionary=function(t,i,e){var n=0,s=e;return null==t||null==t.istate||6!=t.istate.mode?-2:t._adler.adler32(1,i,0,e)!=t.adler?-3:(t.adler=t._adler.adler32(0,null,0,0),s>=1<>>16&65535)!=(65535&n))return this.mode=13,t.msg="invalid stored block lengths",i=-3,this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=_,this.inflate_flush(t,i);this.left=65535&n,n=s=0,this.mode=0!=this.left?2:0!=this.last?7:w;break;case 2:if(0==l)return this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=_,this.inflate_flush(t,i);if(0==d&&(_==end&&0!=read&&(_=0,d=_29||(e>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",i=-3,this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=_,this.inflate_flush(t,i);if(e=258+(31&e)+(e>>5&31),null==this.blens||this.blens.length>>=3,s-=3}for(;this.index<19;)this.blens[E[this.index++]]=0;if(this.bb[0]=7,(e=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t))!=x)return i=e,-3==i&&(this.blens=null,this.mode=9),this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=_,this.inflate_flush(t,i);this.index=0,this.mode=5;case 5:for(;;){if(e=this.table,!(this.index<258+(31&e)+(e>>5&31)))break;var k,m,y;for(e=this.bb[0];s15?(this.inflateEnd(t),-2):(this.wbits=i,t.istate.blocks=new e(t,0!=t.istate.nowrap?null:this,1<>4)>t.istate.wbits){t.istate.mode=13,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return e;if(e=i,t.avail_in--,t.total_in++,n=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+n)%31!=0){t.istate.mode=13,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&n)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?e:(e=i,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=13,t.msg="need dictionary",t.istate.marker=0,-2;case 7:if(-3==(e=t.istate.blocks.proc(t,e))){t.istate.mode=13,t.istate.marker=0;break}if(e==x&&(e=i),e!=u)return e;if(e=i,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return e;e=i,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return e;if(e=i,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=13,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return u;case 13:return-3;default:return-2}},i.prototype.inflateSetDictionary=function(t,i,e){var n=0,s=e;return null==t||null==t.istate||6!=t.istate.mode?-2:t._adler.adler32(1,i,0,e)!=t.adler?-3:(t.adler=t._adler.adler32(0,null,0,0),s>=1<>>16&65535)!=(65535&n))return this.mode=13,t.msg="invalid stored block lengths",i=-3,this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=_,this.inflate_flush(t,i);this.left=65535&n,n=s=0,this.mode=0!=this.left?2:0!=this.last?7:w;break;case 2:if(0==l)return this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=_,this.inflate_flush(t,i);if(0==d&&(_==end&&0!=read&&(_=0,d=_29||(e>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",i=-3,this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=_,this.inflate_flush(t,i);if(e=258+(31&e)+(e>>5&31),null==this.blens||this.blens.length>>=3,s-=3}for(;this.index<19;)this.blens[E[this.index++]]=0;if(this.bb[0]=7,(e=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t))!=x)return i=e,-3==i&&(this.blens=null,this.mode=9),this.bitb=n,this.bitk=s,t.avail_in=l,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=_,this.inflate_flush(t,i);this.index=0,this.mode=5;case 5:for(;;){if(e=this.table,!(this.index<258+(31&e)+(e>>5&31)))break;var k,m,y;for(e=this.bb[0];s
0?i.floor(R*(i.abs(g-m)/y))+1:1,g0;o-=s)t.splice(o,0,r);return t.join("")},d=function(t,i,e){var s;for(s=i.length;s--;)if((!e||null!==i[s])&&i[s]!==t)return!1;return!0},c=function(t){return e.isArray(t)?t:[t]},u=function(i){var e;t.createStyleSheet?t.createStyleSheet().cssText=i:(e=t.createElement("style"),e.type="text/css",t.getElementsByTagName("head")[0].appendChild(e),e["string"==typeof t.body.style.WebkitAppearance?"innerText":"innerHTML"]=i)},e.fn.simpledraw=function(i,s,r,n){var a,o;if(r&&(a=this.data("_jqs_vcanvas")))return a;if(!1===e.fn.sparkline.canvas)return!1;if(void 0===e.fn.sparkline.canvas){var h=t.createElement("canvas");if(h.getContext&&h.getContext("2d"))e.fn.sparkline.canvas=function(t,i,e,s){return new q(t,i,e,s)};else{if(!t.namespaces||t.namespaces.v)return e.fn.sparkline.canvas=!1,!1;t.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),e.fn.sparkline.canvas=function(t,i,e,s){return new I(t,i,e)}}}return void 0===i&&(i=e(this).innerWidth()),void 0===s&&(s=e(this).innerHeight()),a=e.fn.sparkline.canvas(i,s,this,n),o=e(this).data("_jqs_mhandler"),o&&o.registerCanvas(a),a},e.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},e.RangeMapClass=v=r({init:function(t){var i,e,s=[];for(i in t)t.hasOwnProperty(i)&&"string"==typeof i&&i.indexOf(":")>-1&&(e=i.split(":"),e[0]=0===e[0].length?-1/0:parseFloat(e[0]),e[1]=0===e[1].length?1/0:parseFloat(e[1]),e[2]=t[i],s.push(e));this.map=t,this.rangelist=s||!1},get:function(t){var i,e,s,r=this.rangelist;if(void 0!==(s=this.map[t]))return s;if(r)for(i=r.length;i--;)if(e=r[i],e[0]<=t&&e[1]>=t)return e[2]}}),e.range_map=function(t){return new v(t)},m=r({init:function(t,i){var s=e(t);this.$el=s,this.options=i,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!i.get("disableTooltips"),this.highlightEnabled=!i.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var i=e(t.canvas);this.canvas=t,this.$canvas=i,i.mouseenter(e.proxy(this.mouseenter,this)),i.mouseleave(e.proxy(this.mouseleave,this)),i.click(e.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=void 0)},mouseclick:function(t){var i=e.Event("sparklineClick");i.originalEvent=t,i.sparklines=this.splist,this.$el.trigger(i)},mouseenter:function(i){e(t.body).unbind("mousemove.jqs"),e(t.body).bind("mousemove.jqs",e.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=i.pageX,this.currentPageY=i.pageY,this.currentEl=i.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new x(this.options),this.tooltip.updatePosition(i.pageX,i.pageY)),this.updateDisplay()},mouseleave:function(){e(t.body).unbind("mousemove.jqs");var i,s,r=this.splist,n=r.length,a=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),s=0;sthis.canvasWidth||e>this.canvasHeight||i<0||e<0?null:(s=this.getRegion(t,i,e),r!==s&&(void 0!==r&&n&&this.removeHighlight(),this.currentRegion=s,void 0!==s&&n&&this.renderHighlight(),!0))},clearRegionHighlight:function(){return void 0!==this.currentRegion&&(this.removeHighlight(),this.currentRegion=void 0,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,i,s,r,a,o,h,l,g,p,d,u,c,f,v=this.options,m="",x=[];if(void 0===this.currentRegion)return"";if(t=this.getCurrentRegionFields(),d=v.get("tooltipFormatter"))return d(this,v,t);if(v.get("tooltipChartTitle")&&(m+=''+a+"