Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/xrange.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/xrange
 * @requires highcharts
 *
 * X-range series
 *
 * (c) 2010-2024 Torstein Honsi, Lars A. V. Cabrera
 *
 * License: www.highcharts.com/license
 */function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("highcharts"),require("highcharts").Color,require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/xrange",[["highcharts/highcharts"],["highcharts/highcharts","Color"],["highcharts/highcharts","SeriesRegistry"]],o):"object"==typeof exports?exports["highcharts/modules/xrange"]=o(require("highcharts"),require("highcharts").Color,require("highcharts").SeriesRegistry):t.Highcharts=o(t.Highcharts,t.Highcharts.Color,t.Highcharts.SeriesRegistry)}(this,function(t,o,e){return function(){"use strict";var i,r,n={620:function(t){t.exports=o},512:function(t){t.exports=e},944:function(o){o.exports=t}},s={};function a(t){var o=s[t];if(void 0!==o)return o.exports;var e=s[t]={exports:{}};return n[t](e,e.exports,a),e.exports}a.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(o,{a:o}),o},a.d=function(t,o){for(var e in o)a.o(o,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},a.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var p={};a.d(p,{default:function(){return k}});var l=a(944),h=a.n(l),c=a(620),u=a.n(c),d=a(512),f=a.n(d),y=h().correctFloat,g=h().isNumber,x=h().isObject,v={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if(x(t)&&(t=t.amount),g(t)&&t>0)return y(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},m=(i=function(t,o){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(t,o)},function(t,o){function e(){this.constructor=t}i(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),b=f().seriesTypes.column.prototype.pointClass,A=h().extend,C=function(t){function o(o,e){var i=t.call(this,o,e)||this;return i.y||(i.y=0),i}return m(o,t),o.getColorByCategory=function(t,o){var e=t.options.colors||t.chart.options.colors,i=e?e.length:t.chart.options.chart.colorCount,r=o.y%i,n=e&&e[r];return{colorIndex:r,color:n}},o.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var e=o.getColorByCategory(t,this);t.chart.styledMode||(this.color=e.color),this.options.colorIndex||(this.colorIndex=e.colorIndex)}else this.color=this.options.color||t.color},o.prototype.applyOptions=function(o,e){var i;return t.prototype.applyOptions.call(this,o,e),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null===(i=this.isValid)||void 0===i?void 0:i.call(this)),this},o.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},o.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},o}(b);A(C.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var w=(r=function(t,o){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}r(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),M=h().composed,P=h().noop,O=u().parse,_=f().seriesTypes.column,R=h().addEvent,S=h().clamp,j=h().crisp,X=h().defined,L=h().extend,B=h().find,F=h().isNumber,T=h().isObject,q=h().merge,I=h().pick,N=h().pushUnique,D=h().relativeLength;function V(){var t,o;if(this.isXAxis){t=I(this.dataMax,-Number.MAX_VALUE);for(var e=0,i=this.series;e<i.length;e++){var r=i[e],n=r.dataTable.getColumn("x2",!0)||r.dataTable.getColumn("end",!0);if(n)for(var s=0;s<n.length;s++){var a=n[s];F(a)&&a>t&&(t=a,o=!0)}}o&&(this.dataMax=t)}}var E=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return w(o,t),o.compose=function(t){N(M,"Series.XRange")&&R(t,"afterGetSeriesExtremes",V)},o.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},o.prototype.getColumnMetrics=function(){var o=this,e=function(){for(var t=0,e=o.chart.series;t<e.length;t++){var i=e[t],r=i.xAxis;i.xAxis=i.yAxis,i.yAxis=r}};e();var i=t.prototype.getColumnMetrics.call(this);return e(),i},o.prototype.cropData=function(o,e,i){var r=o.getColumn("x")||[],n=o.getColumn("x2");o.setColumn("x",n,void 0,{silent:!0});var s=t.prototype.cropData.call(this,o,e,i);return o.setColumn("x",r.slice(s.start,s.end),void 0,{silent:!0}),s},o.prototype.findPointIndex=function(t){var o,e=this.cropStart,i=this.points,r=t.id;if(r){var n=B(i,function(t){return t.id===r});o=n?n.index:void 0}if(void 0===o){var n=B(i,function(o){return o.x===t.x&&o.x2===t.x2&&!o.touched});o=n?n.index:void 0}return this.cropped&&F(o)&&F(e)&&o>=e&&(o-=e),o},o.prototype.alignDataLabel=function(o){var e,i=o.plotX;o.plotX=I(o.dlBox&&o.dlBox.centerX,o.plotX),o.dataLabel&&(null===(e=o.shapeArgs)||void 0===e?void 0:e.width)&&o.dataLabel.css({width:""+o.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),o.plotX=i},o.prototype.translatePoint=function(t){var o,e,i,r,n,s,a,p,l=this.xAxis,h=this.yAxis,c=this.columnMetrics,u=this.options,d=u.minPointLength||0,f=(t.shapeArgs&&t.shapeArgs.width||0)/2,y=this.pointXOffset=c.offset,g=I(t.x2,t.x+(t.len||0)),x=u.borderRadius,v=this.chart.plotTop,m=this.chart.plotLeft,b=t.plotX,A=l.translate(g,0,0,0,1),C=Math.abs(A-b),w=this.chart.inverted,M=I(u.borderWidth,1),P=c.offset,O=Math.round(c.width);d&&((i=d-C)<0&&(i=0),b-=i/2,A+=i/2),b=Math.max(b,-10),A=S(A,-10,l.len+10),X(t.options.pointWidth)&&(P-=(Math.ceil(t.options.pointWidth)-O)/2,O=Math.ceil(t.options.pointWidth)),u.pointPlacement&&F(t.plotY)&&h.categories&&(t.plotY=h.translate(t.y,0,1,0,1,u.pointPlacement));var _=j(Math.min(b,A),M),R=j(Math.max(b,A),M)-_,L=Math.min(D("object"==typeof x?x.radius:x||0,O),Math.min(R,O)/2),B={x:_,y:j((t.plotY||0)+P,M),width:R,height:O,r:L};t.shapeArgs=B,w?t.tooltipPos[1]+=y+f:t.tooltipPos[0]-=f+y-B.width/2,s=(n=B.x)+B.width,n<0||s>l.len?(n=S(n,0,l.len),a=(s=S(s,0,l.len))-n,t.dlBox=q(B,{x:n,width:s-n,centerX:a?a/2:null})):t.dlBox=null;var N=t.tooltipPos,V=w?1:0,E=w?0:1,Y=this.columnMetrics?this.columnMetrics.offset:-c.width/2;w?N[V]+=B.width/2:N[V]=S(N[V]+(l.reversed?-1:0)*B.width,l.left-m,l.left+l.len-m-1),N[E]=S(N[E]+(w?-1:1)*Y,h.top-v,h.top+h.len-v-1),(r=t.partialFill)&&(T(r)&&(r=r.amount),F(r)||(r=0),t.partShapeArgs=q(B),p=Math.max(Math.round(C*r+t.plotX-b),0),t.clipRectArgs={x:l.reversed?B.x+C-p:B.x,y:B.y,width:p,height:B.height}),t.key=t.category||t.name,t.yCategory=null===(o=h.categories)||void 0===o?void 0:o[null!==(e=t.y)&&void 0!==e?e:-1]},o.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var o=0,e=this.points;o<e.length;o++){var i=e[o];this.translatePoint(i)}},o.prototype.drawPoint=function(t,o){var e=this.options,i=this.chart.renderer,r=t.shapeType,n=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,p=t.state,l=e.states[p||"normal"]||{},h=void 0===p?"attr":o,c=this.pointAttribs(t,p),u=I(this.chart.options.chart.animation,l.animation),d=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)d&&(t.graphic=d.destroy());else if(d?d.rect[o](n):(t.graphic=d=i.g("point").addClass(t.getClassName()).add(t.group||this.group),d.rect=i[r](q(n)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(d)),s&&(d.partRect?(d.partRect[o](q(s)),d.partialClipRect[o](q(a))):(d.partialClipRect=i.clipRect(a.x,a.y,a.width,a.height),d.partRect=i[r](s).addClass("highcharts-partfill-overlay").add(d).clip(d.partialClipRect))),!this.chart.styledMode&&(d.rect[o](c,u).shadow(e.shadow),s)){T(f)||(f={}),T(e.partialFill)&&(f=q(e.partialFill,f));var y=f.fill||O(c.fill).brighten(-.3).get()||O(t.color||this.color).brighten(-.3).get();c.fill=y,d.partRect[h](c,u).shadow(e.shadow)}},o.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),o=0,e=this.points;o<e.length;o++){var i=e[o];this.drawPoint(i,t)}},o.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},o.prototype.isPointInside=function(o){var e=o.shapeArgs,i=o.plotX,r=o.plotY;return e?void 0!==i&&void 0!==r&&r>=0&&r<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&i<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},o.defaultOptions=q(_.defaultOptions,v),o}(_);L(E.prototype,{pointClass:C,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:f().series.prototype.animate,autoIncrement:P,buildKDTree:P}),f().registerSeriesType("xrange",E);var Y=h();E.compose(Y.Axis);var k=h();return p.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox