MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / Ka

Function Ka

quantdigger/widgets/web/test-highstock/highstock.js:10–11  ·  view source on GitHub ↗
(a,
b,c,d)

Source from the content-addressed store, hash-verified

8(function(){function s(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function x(){var a,b=arguments,c,d={},e=function(a,b){var c,d;typeof a!=="object"&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&typeof c==="object"&&Object.prototype.toString.call(c)!=="[object Array]"&&d!=="renderTo"&&typeof c.nodeType!=="number"?e(a[d]||{},c):b[d]);return a};b[0]===!0&&(d=b[1],b=Array.prototype.slice.call(b,2));c=b.length;for(a=0;a<c;a++)d=e(d,b[a]);return d}function G(a,b){return parseInt(a,b||
910)}function Qa(a){return typeof a==="string"}function ga(a){return a&&typeof a==="object"}function Ra(a){return Object.prototype.toString.call(a)==="[object Array]"}function ma(a){return typeof a==="number"}function Ia(a){return X.log(a)/X.LN10}function ra(a){return X.pow(10,a)}function sa(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function t(a){return a!==r&&a!==null}function Y(a,b,c){var d,e;if(Qa(b))t(c)?a.setAttribute(b,c):a&&a.getAttribute&&(e=a.getAttribute(b));else if(t(b)&&
10ga(b))for(d in b)a.setAttribute(d,b[d]);return e}function na(a){return Ra(a)?a:[a]}function q(){var a=arguments,b,c,d=a.length;for(b=0;b<d;b++)if(c=a[b],c!==r&&c!==null)return c}function K(a,b){if(Ja&&!da&&b&&b.opacity!==r)b.filter="alpha(opacity="+b.opacity*100+")";s(a.style,b)}function aa(a,b,c,d,e){a=D.createElement(a);b&&s(a,b);e&&K(a,{padding:0,border:$,margin:0});c&&K(a,c);d&&d.appendChild(a);return a}function ha(a,b){var c=function(){return r};c.prototype=new a;s(c.prototype,b);return c}function Ka(a,
11b,c,d){var e=F.lang,a=+a||0,f=b===-1?(a.toString().split(".")[1]||"").length:isNaN(b=P(b))?2:b,b=c===void 0?e.decimalPoint:c,d=d===void 0?e.thousandsSep:d,e=a<0?"-":"",c=String(G(a=P(a).toFixed(f))),g=c.length>3?c.length%3:0;return e+(g?c.substr(0,g)+d:"")+c.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?b+P(a-c).toFixed(f).slice(2):"")}function Sa(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function M(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);a.unshift(d);
12return c.apply(this,a)}}function La(a,b){for(var c="{",d=!1,e,f,g,h,i,j=[];(c=a.indexOf(c))!==-1;){e=a.slice(0,c);if(d){f=e.split(":");g=f.shift().split(".");i=g.length;e=b;for(h=0;h<i;h++)e=e[g[h]];if(f.length)f=f.join(":"),g=/\.([0-9])/,h=F.lang,i=void 0,/f$/.test(f)?(i=(i=f.match(g))?i[1]:-1,e!==null&&(e=Ka(e,i,h.decimalPoint,f.indexOf(",")>-1?h.thousandsSep:""))):e=wa(f,e)}j.push(e);a=a.slice(c+1);c=(d=!d)?"}":"{"}j.push(a);return j.join("")}function ub(a){return X.pow(10,V(X.log(a)/X.LN10))}
13function vb(a,b,c,d){var e,c=q(c,1);e=a/c;b||(b=[1,2,2.5,5,10],d&&d.allowDecimals===!1&&(c===1?b=[1,2,5,10]:c<=0.1&&(b=[1/c])));for(d=0;d<b.length;d++)if(a=b[d],e<=(b[d]+(b[d+1]||b[d]))/2)break;a*=c;return a}function wb(a,b){var c=a.length,d,e;for(e=0;e<c;e++)a[e].ss_i=e;a.sort(function(a,c){d=b(a,c);return d===0?a.ss_i-c.ss_i:d});for(e=0;e<c;e++)delete a[e].ss_i}function Ta(a){for(var b=a.length,c=a[0];b--;)a[b]<c&&(c=a[b]);return c}function Da(a){for(var b=a.length,c=a[0];b--;)a[b]>c&&(c=a[b]);
14return c}function Ma(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function Ua(a){jb||(jb=aa(Va));a&&jb.appendChild(a);jb.innerHTML=""}function ia(a){return parseFloat(a.toPrecision(14))}function $a(a,b){Ea=q(a,b.animation)}function Lb(){var a=F.global.useUTC,b=a?"getUTC":"get",c=a?"setUTC":"set";Na=(a&&F.global.timezoneOffset||0)*6E4;kb=a?Date.UTC:function(a,b,c,g,h,i){return(new Date(a,b,q(c,1),q(g,0),q(h,0),q(i,0))).getTime()};xb=b+"Minutes";yb=b+"Hours";zb=b+"Day";

Callers 7

JbFunction · 0.85
dFunction · 0.85
fFunction · 0.85
eFunction · 0.85
CbFunction · 0.85
LaFunction · 0.85
highstock.jsFile · 0.85

Calls 2

PFunction · 0.70
GFunction · 0.70

Tested by

no test coverage detected