/**
 * Copyright (c) 2024 Visa, Inc.
 *
 * This source code is licensed under the MIT license
 * https://github.com/visa/visa-chart-components/blob/master/LICENSE
 *
 **/
System.register(["./p-0187065a.system.js","./p-5a08c504.system.js","./p-185c8552.system.js"],(function(t){"use strict";var i,s,h,n,e,u;return{setters:[function(t){i=t.w;s=t.a;h=t.c},function(t){n=t.x;e=t.y},function(t){u=t.e}],execute:function(){t({c:f,l:c});function a(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,i){t=+t,i=+i;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function f(t){return new a(t)}function c(t,u){var a=h(true),c=null,r=f,o=null,l=i(d);t=typeof t==="function"?t:t===undefined?n:h(t);u=typeof u==="function"?u:u===undefined?e:h(u);function d(i){var h,n=(i=s(i)).length,e,f=false,d;if(c==null)o=r(d=l());for(h=0;h<=n;++h){if(!(h<n&&a(e=i[h],h,i))===f){if(f=!f)o.lineStart();else o.lineEnd()}if(f)o.point(+t(e,h,i),+u(e,h,i))}if(d)return o=null,d+""||null}d.x=function(i){return arguments.length?(t=typeof i==="function"?i:h(+i),d):t};d.y=function(t){return arguments.length?(u=typeof t==="function"?t:h(+t),d):u};d.defined=function(t){return arguments.length?(a=typeof t==="function"?t:h(!!t),d):a};d.curve=function(t){return arguments.length?(r=t,c!=null&&(o=r(c)),d):r};d.context=function(t){return arguments.length?(t==null?c=o=null:o=r(c=t),d):c};return d}function r(t,i,s){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-i),t._y2+t._k*(t._y1-s),t._x2,t._y2)}function o(t,i){this._context=t;this._k=(1-i)/6}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,i){t=+t,i=+i;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;this._x1=t,this._y1=i;break;case 2:this._point=3;default:r(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=i}};function l(t,i,s){var h=t._x1,n=t._y1,e=t._x2,a=t._y2;if(t._l01_a>u){var f=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);h=(h*f-t._x0*t._l12_2a+t._x2*t._l01_2a)/c;n=(n*f-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>u){var r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,o=3*t._l23_a*(t._l23_a+t._l12_a);e=(e*r+t._x1*t._l23_2a-i*t._l12_2a)/o;a=(a*r+t._y1*t._l23_2a-s*t._l12_2a)/o}t._context.bezierCurveTo(h,n,e,a,t._x2,t._y2)}function d(t,i){this._context=t;this._alpha=i}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,i){t=+t,i=+i;if(this._point){var s=this._x2-t,h=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+h*h,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:l(this,t,i);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=i}};var b=t("a",function t(i){function s(t){return i?new d(t,i):new o(t,0)}s.alpha=function(i){return t(+i)};return s}(.5))}}}));
//# sourceMappingURL=p-7ff4c362.system.js.map