UNPKG

tradingraph

Version:

Based on rpiontik chart https://github.com/rpiontik/crypto-chart

1 lines 26.1 kB
(function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="eb28")})({"01f9":function(t,e,n){"use strict";var r=n("2d00"),a=n("5ca1"),i=n("2aba"),o=n("32e9"),c=n("84f2"),s=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",v="values",m=function(){return this};t.exports=function(t,e,n,g,y,b,x){s(n,e,g);var w,_,P,E=function(t){if(!h&&t in S)return S[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",j=y==v,M=!1,S=t.prototype,T=S[l]||S[d]||y&&S[y],k=T||E(y),A=y?j?E("entries"):k:void 0,D="Array"==e&&S.entries||T;if(D&&(P=f(D.call(new t)),P!==Object.prototype&&P.next&&(u(P,O,!0),r||"function"==typeof P[l]||o(P,l,m))),j&&T&&T.name!==v&&(M=!0,k=function(){return T.call(this)}),r&&!x||!h&&!M&&S[l]||o(S,l,k),c[e]=k,c[O]=m,y)if(w={values:j?k:E(v),keys:b?k:E(p),entries:A},x)for(_ in w)_ in S||i(S,_,w[_]);else a(a.P+a.F*(h||M),e,w);return w}},"097d":function(t,e,n){"use strict";var r=n("5ca1"),a=n("8378"),i=n("7726"),o=n("ebd6"),c=n("bcaa");r(r.P+r.R,"Promise",{finally:function(t){var e=o(this,a.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},"0d58":function(t,e,n){var r=n("ce10"),a=n("e11e");t.exports=Object.keys||function(t){return r(t,a)}},1495:function(t,e,n){var r=n("86cc"),a=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){a(t);var n,o=i(e),c=o.length,s=0;while(c>s)r.f(t,n=o[s++],e[n]);return t}},1991:function(t,e,n){var r,a,i,o=n("9b43"),c=n("31f4"),s=n("fab2"),u=n("230e"),f=n("7726"),l=f.process,h=f.setImmediate,d=f.clearImmediate,p=f.MessageChannel,v=f.Dispatch,m=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},x=function(t){b.call(t.data)};h&&d||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return g[++m]=function(){c("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete g[t]},"process"==n("2d95")(l)?r=function(t){l.nextTick(o(b,t,1))}:v&&v.now?r=function(t){v.now(o(b,t,1))}:p?(a=new p,i=a.port2,a.port1.onmessage=x,r=o(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r=y in u("script")?function(t){s.appendChild(u("script"))[y]=function(){s.removeChild(this),b.call(t)}}:function(t){setTimeout(o(b,t,1),0)}),t.exports={set:h,clear:d}},"1fa8":function(t,e,n){var r=n("cb7c");t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){var i=t["return"];throw void 0!==i&&r(i.call(t)),e}}},"230e":function(t,e,n){var r=n("d3f4"),a=n("7726").document,i=r(a)&&r(a.createElement);t.exports=function(t){return i?a.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),a=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),a))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"27ee":function(t,e,n){var r=n("23c6"),a=n("2b4c")("iterator"),i=n("84f2");t.exports=n("8378").getIteratorMethod=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"2aba":function(t,e,n){var r=n("7726"),a=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),c="toString",s=Function[c],u=(""+s).split(c);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,c){var s="function"==typeof n;s&&(i(n,"name")||a(n,"name",e)),t[e]!==n&&(s&&(i(n,o)||a(n,o,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:a(t,e,n):(delete t[e],a(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[o]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),a=n("1495"),i=n("e11e"),o=n("613b")("IE_PROTO"),c=function(){},s="prototype",u=function(){var t,e=n("230e")("iframe"),r=i.length,a="<",o=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(a+"script"+o+"document.F=Object"+a+"/script"+o),t.close(),u=t.F;while(r--)delete u[s][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(c[s]=r(t),n=new c,c[s]=null,n[o]=t):n=u(),void 0===e?n:a(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),a=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=o&&i[t]||(o?i:a)("Symbol."+t))};c.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"31f4":function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},"32e9":function(t,e,n){var r=n("86cc"),a=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},"33a4":function(t,e,n){var r=n("84f2"),a=n("2b4c")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[a]===t)}},"38fd":function(t,e,n){var r=n("69a8"),a=n("4bf8"),i=n("613b")("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=a(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),a=n("4630"),i=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(o,{next:a(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),a=n("0d58");n("5eda")("keys",function(){return function(t){return a(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4a59":function(t,e,n){var r=n("9b43"),a=n("1fa8"),i=n("33a4"),o=n("cb7c"),c=n("9def"),s=n("27ee"),u={},f={};e=t.exports=function(t,e,n,l,h){var d,p,v,m,g=h?function(){return t}:s(t),y=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(d=c(t.length);d>b;b++)if(m=e?y(o(p=t[b])[0],p[1]):y(t[b]),m===u||m===f)return m}else for(v=g.call(t);!(p=v.next()).done;)if(m=a(v,y,p.value,e),m===u||m===f)return m};e.BREAK=u,e.RETURN=f},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"551c":function(t,e,n){"use strict";var r,a,i,o,c=n("2d00"),s=n("7726"),u=n("9b43"),f=n("23c6"),l=n("5ca1"),h=n("d3f4"),d=n("d8e8"),p=n("f605"),v=n("4a59"),m=n("ebd6"),g=n("1991").set,y=n("8079")(),b=n("a5b8"),x=n("9c80"),w=n("a25f"),_=n("bcaa"),P="Promise",E=s.TypeError,O=s.process,j=O&&O.versions,M=j&&j.v8||"",S=s[P],T="process"==f(O),k=function(){},A=a=b.f,D=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(k,k)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e&&0!==M.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),R=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){var r=t._v,a=1==t._s,i=0,o=function(e){var n,i,o,c=a?e.ok:e.fail,s=e.resolve,u=e.reject,f=e.domain;try{c?(a||(2==t._h&&C(t),t._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),o=!0)),n===e.promise?u(E("Promise-chain cycle")):(i=R(n))?i.call(n,s,u):s(n)):u(r)}catch(t){f&&!o&&f.exit(),u(t)}};while(n.length>i)o(n[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){g.call(s,function(){var e,n,r,a=t._v,i=F(t);if(i&&(e=x(function(){T?O.emit("unhandledRejection",a,t):(n=s.onunhandledrejection)?n({promise:t,reason:a}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",a)}),t._h=T||F(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},C=function(t){g.call(s,function(){var e;T?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},V=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},I=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=R(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(I,r,1),u(V,r,1))}catch(t){V.call(r,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){V.call({_w:n,_d:!1},t)}}};D||(S=function(t){p(this,S,P,"_h"),d(t),r.call(this);try{t(u(I,this,1),u(V,this,1))}catch(t){V.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(S.prototype,{then:function(t,e){var n=A(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=u(I,t,1),this.reject=u(V,t,1)},b.f=A=function(t){return t===S||t===o?new i(t):a(t)}),l(l.G+l.W+l.F*!D,{Promise:S}),n("7f20")(S,P),n("7a56")(P),o=n("8378")[P],l(l.S+l.F*!D,P,{reject:function(t){var e=A(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(c||!D),P,{resolve:function(t){return _(c&&this===o?S:this,t)}}),l(l.S+l.F*!(D&&n("5cc5")(function(t){S.all(t)["catch"](k)})),P,{all:function(t){var e=this,n=A(e),r=n.resolve,a=n.reject,i=x(function(){var n=[],i=0,o=1;v(t,!1,function(t){var c=i++,s=!1;n.push(void 0),o++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--o||r(n))},a)}),--o||r(n)});return i.e&&a(i.v),n.promise},race:function(t){var e=this,n=A(e),r=n.reject,a=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return a.e&&r(a.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),a=n("7726"),i="__core-js_shared__",o=a[i]||(a[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),a=n("d8e8"),i=n("4bf8"),o=n("79e5"),c=[].sort,s=[1,2,3];r(r.P+r.F*(o(function(){s.sort(void 0)})||!o(function(){s.sort(null)})||!n("2f21")(c)),"Array",{sort:function(t){return void 0===t?c.call(i(this)):c.call(i(this),a(t))}})},"5ca1":function(t,e,n){var r=n("7726"),a=n("8378"),i=n("32e9"),o=n("2aba"),c=n("9b43"),s="prototype",u=function(t,e,n){var f,l,h,d,p=t&u.F,v=t&u.G,m=t&u.S,g=t&u.P,y=t&u.B,b=v?r:m?r[e]||(r[e]={}):(r[e]||{})[s],x=v?a:a[e]||(a[e]={}),w=x[s]||(x[s]={});for(f in v&&(n=e),n)l=!p&&b&&void 0!==b[f],h=(l?b:n)[f],d=y&&l?c(h,r):g&&"function"==typeof h?c(Function.call,h):h,b&&o(b,f,h,t&u.U),x[f]!=h&&i(x,f,d),g&&w[f]!=h&&(w[f]=h)};r.core=a,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),a=!1;try{var i=[7][r]();i["return"]=function(){a=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},t(i)}catch(t){}return n}},"5eda":function(t,e,n){var r=n("5ca1"),a=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(a.Object||{})[t]||Object[t],o={};o[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",o)}},"613b":function(t,e,n){var r=n("5537")("keys"),a=n("ca5a");t.exports=function(t){return r[t]||(r[t]=a(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),a=n("be13");t.exports=function(t){return r(a(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,a;if(e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t)))return a;if("function"==typeof(n=t.valueOf)&&!r(a=n.call(t)))return a;if(!e&&"function"==typeof(n=t.toString)&&!r(a=n.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var r=n("0d58"),a=n("2621"),i=n("52a7"),o=n("4bf8"),c=n("626a"),s=Object.assign;t.exports=!s||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){var n=o(t),s=arguments.length,u=1,f=a.f,l=i.f;while(s>u){var h,d=c(arguments[u++]),p=f?r(d).concat(f(d)):r(d),v=p.length,m=0;while(v>m)l.call(d,h=p[m++])&&(n[h]=d[h])}return n}:s},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),a=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?a(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),a=n("86cc"),i=n("9e1e"),o=n("2b4c")("species");t.exports=function(t){var e=r[t];i&&e&&!e[o]&&a.f(e,o,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var r=n("86cc").f,a=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!a(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),a=n("1991").set,i=r.MutationObserver||r.WebKitMutationObserver,o=r.process,c=r.Promise,s="process"==n("2d95")(o);t.exports=function(){var t,e,n,u=function(){var r,a;s&&(r=o.domain)&&r.exit();while(t){a=t.fn,t=t.next;try{a()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){o.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);n=function(){f.then(u)}}else n=function(){a.call(r,u)};else{var l=!0,h=document.createTextNode("");new i(u).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var a={fn:r,next:void 0};e&&(e.next=a),t||(t=a,n()),e=a}}},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),a=n("c69a"),i=n("6a99"),o=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),a)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,a){return t.call(e,n,r,a)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),a=Array.prototype;void 0==a[r]&&n("32e9")(a,r,{}),t.exports=function(t){a[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},"9def":function(t,e,n){var r=n("4588"),a=Math.min;t.exports=function(t){return t>0?a(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a25f:function(t,e,n){var r=n("7726"),a=r.navigator;t.exports=a&&a.userAgent||""},a5b8:function(t,e,n){"use strict";var r=n("d8e8");function a(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new a(t)}},ac6a:function(t,e,n){for(var r=n("cadf"),a=n("0d58"),i=n("2aba"),o=n("7726"),c=n("32e9"),s=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),h=s.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=a(d),v=0;v<p.length;v++){var m,g=p[v],y=d[g],b=o[g],x=b&&b.prototype;if(x&&(x[f]||c(x,f,h),x[l]||c(x,l,g),s[g]=h,y))for(m in r)x[m]||i(x,m,r[m],!0)}},bcaa:function(t,e,n){var r=n("cb7c"),a=n("d3f4"),i=n("a5b8");t.exports=function(t,e){if(r(t),a(e)&&e.constructor===t)return e;var n=i.f(t),o=n.resolve;return o(e),n.promise}},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),a=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,o){var c,s=r(e),u=a(s.length),f=i(o,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),a=n("d53b"),i=n("84f2"),o=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,a(1)):a(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),a=n("6821"),i=n("c366")(!1),o=n("613b")("IE_PROTO");t.exports=function(t,e){var n,c=a(t),s=0,u=[];for(n in c)n!=o&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~i(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},dcbc:function(t,e,n){var r=n("2aba");t.exports=function(t,e,n){for(var a in e)r(t,a,e[a],n);return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},eb28:function(t,e,n){"use strict";n.r(e);n("f751"),n("55dd"),n("ac6a"),n("456d");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n("cadf"),n("551c"),n("097d");var o=10,c=.3,s=function(){function t(){r(this,t),this.data={treeReady:!1,raw:[],start:null,width:null,tree:[]},this.averageData=[],this.params={empty:!1,noMoreData:!1,dataRequestPending:!1,candleWidths:[],firstTimestamp:0,lastTimestamp:0,defaultExposition:2592e3},this.requestParams()}return i(t,[{key:"sendMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;postMessage({type:t,body:e})}},{key:"messageHandler",value:function(t){switch(t.data.task){case"SET-PARAMS":this.setParams(t.data.params),this.params.lastTimestamp>0&&!this.params.dataRequestPending&&!this.data.raw.length&&this.initialLoading();break;case"APPEND":this.append(t.data.data);break;case"APPEND_AVERAGE":this.appendAverage(t.data.data);break;case"RENDER":this.renderCandles(t.data.offset,t.data.exposition,t.data.viewWidth,t.data.viewHeight);break;case"RENDER_AVERAGE":this.renderAverage(t.data.offset,t.data.exposition,t.data.viewWidth,t.data.viewHeight);break;case"RELOAD":this.params.empty=!1,this.params.noMoreData=!1,this.resetData(),this.requestParams();break;default:break}}},{key:"resetData",value:function(){this.data.treeReady=!1,this.data.raw=[],this.data.start=null,this.data.width=null,this.data.tree=[],this.averageData=[],this.params.dataRequestPending=!1}},{key:"setParams",value:function(t){var e=this;Object.keys(t).map(function(n){e.params[n]=t[n]}),this.data.treeReady=!1}},{key:"requestParams",value:function(){this.sendMessage("NEED_PARAMS",{inner:{candleWidths:null},outer:{firstTimestamp:null,lastTimestamp:null}})}},{key:"initialLoading",value:function(){var t=this.params.defaultExposition,e=this.params.lastTimestamp-t;e=e>this.params.firstTimestamp?e:this.params.firstTimestamp,this.params.dataRequestPending=!0,this.sendMessage("NEED_DATA",{offset:e,exposition:t})}},{key:"append",value:function(t){this.params.dataRequestPending=!1,t.length>0?(this.data.treeReady=!1,this.data.raw.splice(0),this.data.raw=t.slice(),this.data.raw.sort(function(t,e){return t.date-e.date})):this.params.empty||this.params.noMoreData||this.resetData(),this.sendMessage("APPENDED")}},{key:"appendAverage",value:function(t){this.averageData.splice(0),this.averageData=t.slice(),this.sendMessage("APPENDED_AVERAGE")}},{key:"makeTree",value:function(){var t=this;this.data.raw.length>0&&(this.data.start=this.data.raw[0].date,this.data.end=this.data.raw[this.data.raw.length-1].date,this.params.candleWidths.map(function(e){t.data.tree[e]=[];var n=null;t.data.raw.map(function(r){var a=r.date-r.date%e;n&&a===n.id?(n.low=r.low<n.low?r.low:n.low,n.high=r.high>n.high?r.high:n.high,n.close=r.close,n.volume+=r.volume):(n&&t.data.tree[e].push(n),n={id:a,timestamp:r.date,open:r.open,low:r.low,high:r.high,close:r.close,volume:r.volume})}),n&&t.data.tree[e].push(n)}),this.data.treeReady=!0)}},{key:"findCandleWidthForUse",value:function(t,e){var n=e/o,r=null,a=0;return this.params.candleWidths.map(function(e){if(r){var i=Math.abs(Math.round(n-t/e));i<a&&(a=i,r=e)}else r=e,a=Math.abs(Math.round(n-t/e))}),r}},{key:"renderCandles",value:function(t,e,n,r){this.data.treeReady||this.makeTree();var a={low:null,high:null,maxVolume:null,width:null,candles:[],candlesPositivePath:[],candlesNegativePath:[],volumePath:[]},i=this.findCandleWidthForUse(e,n),o=this.data.tree[i],s=n/e;a.width=i*s;var u=0;console.log(o);var f=o.length;t>this.data.start&&(u=-Math.floor((t-this.data.start)/i));for(var l=-u;l<f;l++){var h=o[l];if(!(h.timestamp<=t)){if(h.timestamp>t+e){f=l;break}u<0&&(u=l),(null==a.low||a.low>h.low)&&(a.low=h.low),(null==a.high||a.high<h.high)&&(a.high=h.high),(null==a.maxVolume||a.maxVolume<h.volume)&&(a.maxVolume=h.volume)}}u=Math.abs(u),null==f&&(f=o.length);for(var d=r/(a.high-a.low),p=r*c/a.maxVolume,v=i*s*.25,m=u;m<f;m++){var g=o[m],y=(g.timestamp-t)*s,b="M".concat(y," ").concat((a.high-g.low)*d," L").concat(y," ").concat((a.high-g.high)*d," "),x="M".concat(y-v," ").concat((a.high-g.close)*d," L").concat(y+v," ").concat((a.high-g.close)*d," ")+"L".concat(y+v," ").concat((a.high-g.open)*d," L").concat(y-v," ").concat((a.high-g.open)*d," "),w=Object.assign({},g);g.open<=g.close?(w.class="positive",w.candlePathIndex=a.candlesPositivePath.push(b+x)-1):(w.class="negative",w.candlePathIndex=a.candlesNegativePath.push(b+x)-1),w.volumePathIndex=a.volumePath.push("M".concat(y-v," ").concat(r-g.volume*p," L").concat(y+v," ").concat(r-g.volume*p," ")+"L".concat(y+v," ").concat(r," L").concat(y-v," ").concat(r," "))-1,w.x=y,a.candles.push(w)}this.data.start>0&&this.data.start<t||this.params.dataRequestPending||(this.params.dataRequestPending=!0,this.sendMessage("NEED_DATA",{offset:t,exposition:this.params.defaultExposition})),this.sendMessage("RENDERED",a)}},{key:"renderAverage",value:function(t,e,n,r){if(this.averageData.length){var a=this.averageData.length,i=n/this.averageData.length,o={minTimestamp:this.averageData[0].date,maxTimestamp:this.averageData[a-1].date,path:[]},c=this.averageData.slice().sort(function(t,e){return t.average-e.average}),s=c[a-1].average,u=c[0].average,f=r/(s-u);o.path.push("M6 ".concat(f*(s-this.averageData[0].average)));for(var l=1;l<a;l++)o.path.push("L".concat(i*l," ").concat(f*(s-this.averageData[l].average)));this.sendMessage("RENDERED_AVERAGE",o)}}}]),t}(),u=new s;onmessage=function(t){u.messageHandler(t)}},ebd6:function(t,e,n){var r=n("cb7c"),a=n("d8e8"),i=n("2b4c")("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[i])?e:a(n)}},f605:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement}});